From 35f0cab97ca9ff27fd602c7088bc196aba415ee3 Mon Sep 17 00:00:00 2001 From: Azure DevOps Date: Tue, 11 May 2021 19:23:50 +0300 Subject: [PATCH] test --- README.md | 691 +- circle.yml | 20 - docs/Accept.md | 2 +- docs/AccountDetail.md | 17 + docs/AccountDetailBase.md | 12 + docs/AccountFieldDefinition.md | 58 + docs/AccountFieldKeyValuePair.md | 42 + docs/AccountFieldsDefinitions.md | 8 + docs/AccountsApi.md | 693 + docs/AddItemDetails.md | 9 + docs/AllMetadataResult.md | 9 + docs/AnalyticsClientEvent.md | 18 + docs/ApmApi.md | 342 + docs/ApmCurrencyDataPoint.md | 10 + docs/ApmDataPoint.md | 10 + docs/ApmHourlyDataPoint.md | 31 + docs/ApmStatistics.md | 10 + docs/ApmStatus.md | 8 + docs/App.md | 291 + docs/AppCompliance.md | 20 + docs/AppConfigUpdateModel.md | 26 + docs/AppCreatedEvent.md | 16 + docs/AppUpdatedEvent.md | 17 + docs/AppsApi.md | 690 + docs/AssignedBankAccount.md | 9 + docs/AuthorizationTokensApi.md | 22 +- docs/BalanceDetails.md | 9 + docs/BankAccount.md | 34 + docs/BankAccountApi.md | 488 + docs/BankAccountCreate.md | 270 + docs/BankAccountCreatedEvent.md | 13 + docs/BankAccountDeletedEvent.md | 13 + docs/BankAccountDetail.md | 289 + docs/BankAccountDetailsUpdateRequest.md | 34 + docs/BankAccountSummary.md | 49 + docs/BankAccountUpdatedEvent.md | 13 + docs/BluetoothTerminalStatus.md | 41 + docs/BusinessHoursOverride.md | 36 + docs/BusinessHoursOverrideBase.md | 35 + docs/BusinessHoursPeriod.md | 16 +- docs/BusinessHoursPeriodBase.md | 33 + docs/CampaignCreatedEvent.md | 14 - docs/CampaignStatistics.md | 12 + docs/CampaignsApi.md | 535 + docs/CardReadersApi.md | 388 + docs/CertificateCreatedEvent.md | 13 + docs/CertificateRenewedEvent.md | 13 + docs/ChangePasswordModel.md | 9 + docs/ChargebackDetails.md | 11 + docs/ContentSecurityPolicyApi.md | 58 + docs/Coordinates.md | 4 +- docs/CountryWithAccountFieldsDefinitions.md | 11 + docs/CreateAccountModel.md | 12 + docs/CreateFullMenu.md | 36 + docs/CreateFullMenuItemOptionSet.md | 29 + docs/CreateFullMenuItemOptionSetItem.md | 30 + docs/CreateFullMenuSection.md | 15 + docs/CreateFullMenuSectionItem.md | 50 + docs/CreateMenuTaxRate.md | 9 + docs/CreateMetadata.md | 10 + docs/CreateTeammate.md | 34 + docs/CreateVoucher.md | 44 + ...iResultVoucher.md => CreditNoteDetails.md} | 4 +- docs/CspReport.md | 14 + docs/CspReportRequest.md | 8 + docs/CurrencyData.md | 242 + docs/Customer.md | 12 + docs/CustomerConsentUpdatedEvent.md | 15 +- docs/CustomerCreatedEvent.md | 14 +- docs/CustomerDeliveryTrackingOrder.md | 259 + docs/CustomerDeliveryTrackingOrderLine.md | 9 + docs/CustomerSummary.md | 10 +- docs/CustomerUpdateModel.md | 10 + docs/CustomerUpdatedEvent.md | 13 +- docs/CustomersApi.md | 117 + docs/DeliveryFeeArea.md | 9 - docs/DeliveryLocation.md | 14 +- docs/DeliveryTrackingApi.md | 339 + docs/DeliveryZone.md | 12 + docs/DeliveryZoneApi.md | 220 + docs/DeliveryZoneBase.md | 11 + docs/DeliveryZoneCreatedEvent.md | 17 + docs/DeliveryZoneDeletedEvent.md | 17 + docs/DeliveryZoneUpdatedEvent.md | 17 + docs/DeviceSettings.md | 10 + docs/DnsRecordInformation.md | 10 + docs/DnsVerifiedEvent.md | 13 + docs/Driver.md | 13 + docs/DriverInvitation.md | 10 + docs/DriverLoginModel.md | 9 + docs/DriverRequestLoginPinModel.md | 8 + docs/DriverStore.md | 21 + docs/DriversApi.md | 542 + docs/EmvNotificationEvent.md | 22 + docs/EmvTerminal.md | 13 + docs/EmvTerminalWithAssignments.md | 13 + docs/EventSearchResult.md | 128 +- docs/EventsApi.md | 198 +- docs/FeeSummary.md | 6 +- docs/FilesApi.md | 61 + docs/FlipdishEventBase.md | 12 + docs/FlipdishFeesDetails.md | 14 + docs/GroupedCoordinates.md | 10 + docs/HeartbeatApi.md | 184 + docs/HomeAction.md | 26 + docs/HomeApi.md | 208 + docs/HomeStatistics.md | 8 + docs/HttpRequestAndResponseLog.md | 29 +- docs/HttpRequestResponseLogsApi.md | 15 +- docs/HydraApi.md | 856 + docs/HydraAssignedEvent.md | 14 + docs/HydraConfig.md | 27 + docs/HydraConnectionStatusChangedEvent.md | 28 + docs/HydraDeviceDetails.md | 44 + docs/HydraRegistrationRequest.md | 10 + docs/HydraRequestResetEvent.md | 13 + docs/HydraSettingChangedEvent.md | 14 + docs/HydraStatus.md | 26 + docs/HydraStoreAssignedEvent.md | 14 + docs/HydraStoreData.md | 9 + docs/HydraStoreUnassignedEvent.md | 14 + docs/HydraUnAssignedEvent.md | 14 + docs/IndexPage.md | 23 + docs/IndexPageBase.md | 21 + docs/JobAddress.md | 13 + docs/JobCancellation.md | 10 + docs/JobContact.md | 13 + docs/JobDelivery.md | 20 + docs/JobDeliveryDetail.md | 13 + docs/JobDriver.md | 14 + docs/JobEta.md | 9 + docs/JobPricing.md | 13 + docs/JobProof.md | 8 + docs/JobResponse.md | 21 + ...ioskBluetoothInstallUpdateInitiateEvent.md | 30 + docs/KioskBluetoothPairingModeEvent.md | 30 + ...uetoothTerminalInitiateUpdateCheckEvent.md | 14 + docs/KioskBluetoothTerminalUpdatedEvent.md | 32 + docs/KioskBluetoothUnpairingModeEvent.md | 30 + docs/Language.md | 10 + docs/LightspeedApi.md | 161 + docs/LightspeedSettings.md | 38 + docs/LocalisedTimeZone.md | 10 + docs/LoginModel.md | 9 + docs/LoginWithPinModel.md | 9 + docs/LoyaltyCampaign.md | 18 + docs/LoyaltyCampaignBase.md | 15 + docs/LoyaltyCampaignCreatedEvent.md | 16 + docs/LoyaltyCampaignDeletedEvent.md | 16 + docs/LoyaltyCampaignUpdatedEvent.md | 16 + docs/LumpDiscountDetails.md | 8 + docs/MaskedPhoneNumber.md | 10 + docs/Menu.md | 29 +- docs/MenuBase.md | 16 +- docs/MenuCheckpoint.md | 11 + docs/MenuCheckpointCreatedEvent.md | 15 + docs/MenuCreatedEvent.md | 15 +- docs/MenuElementEditResponse.md | 32 + docs/MenuElementHide.md | 20 + docs/MenuItemOptionSet.md | 21 +- docs/MenuItemOptionSetBase.md | 14 +- docs/MenuItemOptionSetCreatedEvent.md | 16 + docs/MenuItemOptionSetDeletedEvent.md | 16 + docs/MenuItemOptionSetItem.md | 18 +- docs/MenuItemOptionSetItemBase.md | 13 +- docs/MenuItemOptionSetItemCreatedEvent.md | 16 + docs/MenuItemOptionSetItemDeletedEvent.md | 16 + docs/MenuItemOptionSetItemUpdatedEvent.md | 16 + docs/MenuItemOptionSetUpdatedEvent.md | 16 + docs/MenuObjectDisplayOrders.md | 8 + docs/MenuOptionSetItemsApi.md | 73 +- docs/MenuOptionSetsApi.md | 18 +- docs/MenuSection.md | 19 +- docs/MenuSectionAvailability.md | 4 +- docs/MenuSectionAvailabilityBase.md | 23 + docs/MenuSectionBase.md | 11 +- docs/MenuSectionCreatedEvent.md | 16 + docs/MenuSectionDeletedEvent.md | 16 + docs/MenuSectionItem.md | 30 +- docs/MenuSectionItemBase.md | 20 +- docs/MenuSectionItemCreatedEvent.md | 16 + docs/MenuSectionItemDeletedEvent.md | 16 + docs/MenuSectionItemUpdatedEvent.md | 16 + docs/MenuSectionItemsApi.md | 182 +- docs/MenuSectionUpdatedEvent.md | 16 + docs/MenuSectionsApi.md | 243 +- docs/MenuStoreNames.md | 8 + docs/MenuSummary.md | 13 + docs/MenuTaxDetails.md | 23 + docs/MenuTaxRate.md | 10 + docs/MenuUpdatedEvent.md | 15 +- docs/MenuUploadedEvent.md | 15 + docs/MenusApi.md | 1097 +- docs/Metadata.md | 5 +- docs/OAuthApp.md | 41 + docs/OAuthClient.md | 11 - docs/OAuthClientsApi.md | 272 +- docs/OAuthTokenModel.md | 10 +- docs/OauthClientRedirectUri.md | 4 +- docs/ObjectDisplayOrder.md | 9 + docs/Order.md | 166 +- docs/OrderAcceptedEvent.md | 15 +- docs/OrderCapacityConfigUpdatedEvent.md | 16 + docs/OrderCreatedEvent.md | 15 +- docs/OrderCustomerTrackingCreatedEvent.md | 14 + ...OrderDeliveryTrackingStatusUpdatedEvent.md | 14 + docs/OrderDispatchedEvent.md | 15 + docs/OrderIdAndSequenceNumber.md | 9 + docs/OrderItem.md | 23 +- docs/OrderItemOption.md | 15 +- docs/OrderPaymentInformation.md | 9 + docs/OrderRatingUpdatedEvent.md | 15 +- docs/OrderRefundedEvent.md | 15 +- docs/OrderRejectedEvent.md | 16 +- docs/OrderSummary.md | 411 + docs/OrderTipUpdatedEvent.md | 15 +- docs/OrderVoucherSummary.md | 49 + docs/OrdersApi.md | 130 +- docs/OtherChargesDetails.md | 9 + docs/PasswordResetModel.md | 11 + docs/PaymentTerminalDetails.md | 11 + docs/PaymentTerminalTransactionDetails.md | 13 + docs/PaymentsApi.md | 58 + docs/Payout.md | 281 + docs/PayoutChargeback.md | 260 + docs/PayoutDetail.md | 282 + docs/PayoutOrder.md | 270 + docs/PayoutOtherCharge.md | 271 + docs/PayoutRefund.md | 262 + docs/PayoutStore.md | 17 + docs/PayoutSummary.md | 261 + docs/PayoutsApi.md | 752 + docs/PercentDiscountDetails.md | 8 + docs/PhoneCall.md | 42 + docs/PhoneCallEndedEvent.md | 15 + docs/PhoneCallStartedEvent.md | 15 + docs/PreOrderConfig.md | 30 + docs/PreOrderTime.md | 9 + docs/PredefinedAnswer.md | 9 + docs/Printer.md | 9 + docs/PrinterAssignedToStoreEvent.md | 17 + docs/PrinterTurnedOffEvent.md | 17 + docs/PrinterTurnedOnEvent.md | 17 + docs/PrinterUnassignedFromStoreEvent.md | 17 + docs/ProcessingFeeConfig.md | 34 + docs/ProcessingFeeConfigsApi.md | 58 + docs/PushNotificationDeletedEvent.md | 14 + docs/PushNotificationRequest.md | 10 + docs/PushNotificationResponse.md | 12 + docs/PushNotificationScheduledEvent.md | 15 + docs/PushNotificationSentEvent.md | 14 + docs/PushNotificationsApi.md | 226 + docs/Range.md | 6 +- docs/RedeemInvitationResult.md | 22 + docs/Refund.md | 6 +- docs/Reject.md | 3 +- docs/RequestLoginPinModel.md | 8 + docs/RequestLoginPinResposne.md | 8 + docs/RequestPasswordResetModel.md | 8 + docs/RestApiArrayResultAllMetadataResult.md | 8 + .../RestApiArrayResultApmCurrencyDataPoint.md | 8 + docs/RestApiArrayResultApmDataPoint.md | 8 + docs/RestApiArrayResultApmHourlyDataPoint.md | 8 + docs/RestApiArrayResultBankAccountSummary.md | 8 + docs/RestApiArrayResultBusinessHoursPeriod.md | 8 + ...sultCountryWithAccountFieldsDefinitions.md | 8 + docs/RestApiArrayResultDeliveryZone.md | 8 + docs/RestApiArrayResultDriver.md | 8 + docs/RestApiArrayResultDriverStore.md | 8 + ...piArrayResultEmvTerminalWithAssignments.md | 8 + docs/RestApiArrayResultHomeAction.md | 8 + docs/RestApiArrayResultLocalisedTimeZone.md | 8 + docs/RestApiArrayResultLoyaltyCampaign.md | 8 + docs/RestApiArrayResultMenuCheckpoint.md | 8 + ...stApiArrayResultMenuElementEditResponse.md | 8 + docs/RestApiArrayResultMenuItemOptionSet.md | 2 +- ...RestApiArrayResultMenuItemOptionSetItem.md | 2 +- docs/RestApiArrayResultMenuSection.md | 2 +- docs/RestApiArrayResultMenuSectionItem.md | 2 +- docs/RestApiArrayResultMenuStoreNames.md | 8 + docs/RestApiArrayResultMenuSummary.md | 8 + docs/RestApiArrayResultMenuTaxDetails.md | 8 + docs/RestApiArrayResultMetadata.md | 2 +- docs/RestApiArrayResultOAuthApp.md | 8 + docs/RestApiArrayResultOAuthClient.md | 8 - ...estApiArrayResultOauthClientRedirectUri.md | 2 +- docs/RestApiArrayResultPayoutSummary.md | 8 + docs/RestApiArrayResultPreOrderTime.md | 8 + docs/RestApiArrayResultProcessingFeeConfig.md | 8 + ...estApiArrayResultRestApiDefaultResponse.md | 2 +- docs/RestApiArrayResultRetentionCampaign.md | 8 + docs/RestApiArrayResultStoreListItem.md | 8 + docs/RestApiArrayResultStoreStatistics.md | 8 + docs/RestApiArrayResultSupportedCountry.md | 8 + docs/RestApiArrayResultTeammate.md | 8 + docs/RestApiArrayResultVoucherDataPoint.md | 8 + docs/RestApiArrayResultWebhookSubscription.md | 8 - docs/RestApiDefaultResponse.md | 2 +- docs/RestApiErrorResult.md | 6 +- docs/RestApiEventSearchPaginationResult.md | 8 +- docs/RestApiForbiddenResult.md | 2 +- docs/RestApiIntegerResult.md | 2 +- docs/RestApiPaginationResultApp.md | 11 + ...piPaginationResultBusinessHoursOverride.md | 11 + ...ginationResultHttpRequestAndResponseLog.md | 8 +- ...stApiPaginationResultHydraDeviceDetails.md | 11 + .../RestApiPaginationResultOAuthTokenModel.md | 8 +- docs/RestApiPaginationResultOrder.md | 8 +- docs/RestApiPaginationResultOrderSummary.md | 11 + docs/RestApiPaginationResultPayout.md | 11 + ...RestApiPaginationResultPayoutChargeback.md | 11 + docs/RestApiPaginationResultPayoutOrder.md | 11 + ...estApiPaginationResultPayoutOtherCharge.md | 11 + docs/RestApiPaginationResultPayoutRefund.md | 11 + docs/RestApiPaginationResultPhoneCall.md | 11 + ...aginationResultPushNotificationResponse.md | 11 + docs/RestApiPaginationResultStore.md | 8 +- docs/RestApiPaginationResultStoreGroup.md | 11 + ...stApiPaginationResultStoreGroupExtended.md | 11 + docs/RestApiPaginationResultStoreHeader.md | 11 + docs/RestApiPaginationResultVoucher.md | 11 - docs/RestApiPaginationResultVoucherSummary.md | 11 + docs/RestApiPaginationResultWebhookLog.md | 8 +- ...tApiPaginationResultWebhookSubscription.md | 11 + docs/RestApiResultAccountDetail.md | 8 + docs/RestApiResultAccountFieldsDefinitions.md | 8 + docs/RestApiResultApmStatistics.md | 8 + docs/RestApiResultApmStatus.md | 8 + docs/RestApiResultApp.md | 8 + docs/RestApiResultAppCompliance.md | 8 + docs/RestApiResultAssignedBankAccount.md | 8 + docs/RestApiResultBankAccountDetail.md | 8 + docs/RestApiResultBluetoothTerminalStatus.md | 8 + docs/RestApiResultBusinessHoursOverride.md | 8 + docs/RestApiResultBusinessHoursPeriod.md | 8 + docs/RestApiResultCoordinates.md | 8 + docs/RestApiResultCustomer.md | 8 + docs/RestApiResultDeliveryZone.md | 8 + docs/RestApiResultDnsRecordInformation.md | 8 + docs/RestApiResultDriver.md | 8 + docs/RestApiResultHomeStatistics.md | 8 + docs/RestApiResultHydraConfig.md | 8 + docs/RestApiResultHydraStatus.md | 8 + docs/RestApiResultIndexPage.md | 8 + docs/RestApiResultIndexPageBase.md | 8 + docs/RestApiResultJobResponse.md | 8 + docs/RestApiResultLightspeedSettings.md | 8 + docs/RestApiResultLoyaltyCampaign.md | 8 + docs/RestApiResultMenu.md | 2 +- docs/RestApiResultMenuItemOptionSet.md | 2 +- docs/RestApiResultMenuItemOptionSetItem.md | 2 +- docs/RestApiResultMenuSection.md | 2 +- docs/RestApiResultMenuSectionAvailability.md | 8 + docs/RestApiResultMenuSectionItem.md | 2 +- docs/RestApiResultMetadata.md | 2 +- docs/RestApiResultOAuthApp.md | 8 + docs/RestApiResultOAuthClient.md | 8 - docs/RestApiResultOauthClientRedirectUri.md | 2 +- docs/RestApiResultOrder.md | 2 +- docs/RestApiResultOrderPaymentInformation.md | 8 + docs/RestApiResultPaymentTerminalDetails.md | 8 + ...ResultPaymentTerminalTransactionDetails.md | 8 + docs/RestApiResultPreOrderConfig.md | 8 + docs/RestApiResultProcessingFeeConfig.md | 8 + docs/RestApiResultPushNotificationResponse.md | 8 + docs/RestApiResultRedeemInvitationResult.md | 8 + docs/RestApiResultRetentionCampaign.md | 8 + docs/RestApiResultStore.md | 2 +- docs/RestApiResultStoreAddress.md | 8 + docs/RestApiResultStoreEndOfDayReport.md | 8 + docs/RestApiResultStoreGroup.md | 8 + docs/RestApiResultStoreGroupBase.md | 8 + docs/RestApiResultStoreOrderCapacityConfig.md | 8 + docs/RestApiResultStripeConnectedAccount.md | 8 + docs/RestApiResultStripeTerminalPrivateKey.md | 8 + docs/RestApiResultStuartSettings.md | 8 + docs/RestApiResultTeammate.md | 8 + docs/RestApiResultVoucherWithStats.md | 8 + docs/RestApiResultWebsiteImage.md | 8 + docs/RestApiResultWebsiteTestimonial.md | 8 + docs/RestApiStringArrayResult.md | 2 +- docs/RestApiStringResult.md | 2 +- docs/RestApiUnauthorizedResult.md | 2 +- docs/RetentionCampaign.md | 19 + docs/RetentionCampaignBase.md | 16 + docs/RetentionCampaignCreatedEvent.md | 16 + docs/RetentionCampaignDeletedEvent.md | 16 + docs/RetentionCampaignUpdatedEvent.md | 16 + docs/RevenueAdjustmentsDetails.md | 12 + docs/RevenueDetail.md | 19 + docs/SearchCriteria.md | 18 +- docs/SetPasswordWithPinModel.md | 9 + docs/SignupStep.md | 23 + docs/SmsInfo.md | 10 + docs/SmsReceivedEvent.md | 14 + docs/StatisticsCurrencyDataPoint.md | 244 + docs/Store.md | 320 +- docs/StoreAddress.md | 14 +- docs/StoreAddressBase.md | 12 + docs/StoreAddressUpdatedEvent.md | 17 + docs/StoreArchivedEvent.md | 17 + docs/StoreBase.md | 36 + .../StoreBusinessHoursOverrideCreatedEvent.md | 17 + .../StoreBusinessHoursOverrideDeletedEvent.md | 17 + docs/StoreCampaignStartTime.md | 9 + docs/StoreCloneSettings.md | 8 + docs/StoreCreateBase.md | 10 + docs/StoreCreatedEvent.md | 16 +- docs/StoreDataPoint.md | 9 + docs/StoreDeletedEvent.md | 17 +- docs/StoreDeliveryZoneUpdatedEvent.md | 14 - docs/StoreEndOfDayReport.md | 266 + docs/StoreGroup.md | 245 + docs/StoreGroupBase.md | 242 + docs/StoreGroupCreatedEvent.md | 16 + docs/StoreGroupDeletedEvent.md | 16 + docs/StoreGroupExtended.md | 248 + docs/StoreGroupUpdatedEvent.md | 16 + docs/StoreGroupsApi.md | 332 + docs/StoreHeader.md | 9 + docs/StoreKioskSetting.md | 14 + docs/StoreKioskSettingUpdatedEvent.md | 16 + docs/StoreListItem.md | 13 + docs/StoreLogoCreatedEvent.md | 15 + docs/StoreLogoDeletedEvent.md | 15 + docs/StoreLogoUpdatedEvent.md | 15 + docs/StoreMenuAssignedEvent.md | 16 + docs/StoreNote.md | 6 +- docs/StoreOpeningHoursUpdatedEvent.md | 30 +- docs/StoreOrderCapacityApi.md | 123 + docs/StoreOrderCapacityConfig.md | 22 + docs/StoreOrderCapacityConfigEditModel.md | 8 + docs/StoreOrderCapacityPeriod.md | 34 + docs/StorePreOrderConfigUpdatedEvent.md | 16 + docs/StorePublishedEvent.md | 17 + docs/StoreStatistics.md | 9 + docs/StoreSummary.md | 15 +- docs/StoreUnarchivedEvent.md | 17 + docs/StoreUnpublishedEvent.md | 17 + docs/StoreUpdatedEvent.md | 17 +- docs/StoresApi.md | 1405 +- docs/StripeAccountLinkRequest.md | 33 + docs/StripeConnectedAccount.md | 64 + docs/StripeConnectedAccountInfo.md | 46 + docs/StripeCustomConnectApi.md | 388 + docs/StripeTerminalPrivateKey.md | 9 + docs/StuartApi.md | 217 + docs/StuartSettings.md | 54 + docs/StuartSettingsTransportPrices.md | 14 + docs/SupportedCountry.md | 56 + docs/Teammate.md | 52 + docs/TeammateBase.md | 33 + docs/TeammateDeletedEvent.md | 14 + docs/TeammateInviteAcceptedEvent.md | 14 + docs/TeammateInviteSentEvent.md | 14 + docs/TeammateUpdatedEvent.md | 14 + docs/TeammatesApi.md | 326 + docs/UpdateDriverNotificationToken.md | 8 + docs/UpdateDriverProfileModel.md | 8 + docs/UserAnsweredSignupQuestionsEvent.md | 14 + docs/UserCreatedEvent.md | 14 + docs/UserDeletedEvent.md | 14 + docs/UserEventInfo.md | 8 +- docs/UserLoginEvent.md | 14 + docs/UserPasswordCreatedEvent.md | 14 + docs/UserUpdatedEvent.md | 14 + docs/UsersApi.md | 53 + docs/ValidationErrorResult.md | 4 +- docs/Voucher.md | 297 +- docs/VoucherBase.md | 23 + docs/VoucherCreatedEvent.md | 16 + docs/VoucherDataPoint.md | 10 + docs/VoucherDeletedEvent.md | 16 + docs/VoucherSummary.md | 38 +- docs/VoucherUpdatedEvent.md | 16 + docs/VoucherWithStats.md | 325 + docs/VouchersApi.md | 228 +- docs/WebhookEventSample.md | 10 + docs/WebhookLog.md | 30 +- docs/WebhookSubscription.md | 14 +- docs/WebhookSubscriptionCreatedEvent.md | 11 +- docs/WebhookSubscriptionDeletedEvent.md | 11 +- docs/WebhookSubscriptionEventInfo.md | 8 +- docs/WebhookSubscriptionUpdatedEvent.md | 11 +- docs/WebhooksApi.md | 193 +- docs/WebsiteApi.md | 432 + docs/WebsiteImage.md | 29 + docs/WebsiteTestimonial.md | 10 + docs/WebsiteTestimonialBase.md | 9 + docs/WebsiteUpdatedEvent.md | 15 + docs/WebsiteVanityUrlUpdatedEvent.md | 15 + git_push.sh | 52 - package.json | 23 +- src/ApiClient.js | 15 +- src/api/AccountsApi.js | 675 + src/api/ApmApi.js | 391 + src/api/AppsApi.js | 711 + src/api/AuthorizationTokensApi.js | 38 +- src/api/BankAccountApi.js | 538 + src/api/CampaignsApi.js | 580 + src/api/CardReadersApi.js | 431 + src/api/ContentSecurityPolicyApi.js | 97 + src/api/CustomersApi.js | 166 + src/api/DeliveryTrackingApi.js | 387 + src/api/DeliveryZoneApi.js | 265 + src/api/DriversApi.js | 543 + src/api/EventsApi.js | 200 +- src/api/FilesApi.js | 106 + src/api/HeartbeatApi.js | 208 + src/api/HomeApi.js | 247 + src/api/HttpRequestResponseLogsApi.js | 27 +- src/api/HydraApi.js | 897 + src/api/LightspeedApi.js | 196 + src/api/MenuOptionSetItemsApi.js | 97 +- src/api/MenuOptionSetsApi.js | 32 +- src/api/MenuSectionItemsApi.js | 211 +- src/api/MenuSectionsApi.js | 277 +- src/api/MenusApi.js | 1218 +- src/api/OAuthClientsApi.js | 368 +- src/api/OrdersApi.js | 138 +- src/api/PaymentsApi.js | 99 + src/api/PayoutsApi.js | 865 + src/api/ProcessingFeeConfigsApi.js | 102 + src/api/PushNotificationsApi.js | 271 + src/api/StoreGroupsApi.js | 363 + src/api/StoreOrderCapacityApi.js | 179 + src/api/StoresApi.js | 1426 +- src/api/StripeCustomConnectApi.js | 446 + src/api/StuartApi.js | 260 + src/api/TeammatesApi.js | 373 + src/api/UsersApi.js | 65 +- src/api/VouchersApi.js | 333 +- src/api/WebhooksApi.js | 291 +- src/api/WebsiteApi.js | 478 + src/index.js | 1947 +- src/model/Accept.js | 22 +- src/model/AccountDetail.js | 145 + src/model/AccountDetailBase.js | 105 + src/model/AccountFieldDefinition.js | 227 + src/model/AccountFieldKeyValuePair.js | 167 + src/model/AccountFieldsDefinitions.js | 73 + src/model/AddItemDetails.js | 81 + src/model/AllMetadataResult.js | 81 + src/model/AnalyticsClientEvent.js | 153 + src/model/ApmCurrencyDataPoint.js | 89 + src/model/ApmDataPoint.js | 89 + src/model/ApmHourlyDataPoint.js | 139 + src/model/ApmStatistics.js | 89 + src/model/ApmStatus.js | 73 + src/model/App.js | 973 + src/model/AppCompliance.js | 101 + src/model/AppConfigUpdateModel.js | 139 + src/model/AppCreatedEvent.js | 137 + src/model/AppUpdatedEvent.js | 145 + src/model/AssignedBankAccount.js | 81 + src/model/BalanceDetails.js | 79 + src/model/BankAccount.js | 193 + src/model/BankAccountCreate.js | 903 + src/model/BankAccountCreatedEvent.js | 113 + src/model/BankAccountDeletedEvent.js | 113 + src/model/BankAccountDetail.js | 967 + src/model/BankAccountDetailsUpdateRequest.js | 193 + src/model/BankAccountSummary.js | 225 + src/model/BankAccountUpdatedEvent.js | 113 + src/model/BluetoothTerminalStatus.js | 171 + src/model/BusinessHoursOverride.js | 155 + src/model/BusinessHoursOverrideBase.js | 147 + src/model/BusinessHoursPeriod.js | 131 +- src/model/BusinessHoursPeriodBase.js | 155 + src/model/CampaignCreatedEvent.js | 137 - src/model/CampaignStatistics.js | 105 + src/model/CertificateCreatedEvent.js | 113 + src/model/CertificateRenewedEvent.js | 113 + src/model/ChangePasswordModel.js | 85 + src/model/ChargebackDetails.js | 97 + src/model/Coordinates.js | 31 +- .../CountryWithAccountFieldsDefinitions.js | 97 + src/model/CreateAccountModel.js | 109 + src/model/CreateFullMenu.js | 161 + src/model/CreateFullMenuItemOptionSet.js | 153 + src/model/CreateFullMenuItemOptionSetItem.js | 161 + src/model/CreateFullMenuSection.js | 129 + src/model/CreateFullMenuSectionItem.js | 233 + src/model/CreateMenuTaxRate.js | 81 + src/model/CreateMetadata.js | 89 + src/model/CreateTeammate.js | 153 + src/model/CreateVoucher.js | 273 + src/model/CreditNoteDetails.js | 73 + src/model/CspReport.js | 113 + src/model/CspReportRequest.js | 71 + src/model/CurrencyData.js | 767 + src/model/Customer.js | 105 + src/model/CustomerConsentUpdatedEvent.js | 82 +- src/model/CustomerCreatedEvent.js | 82 +- src/model/CustomerDeliveryTrackingOrder.js | 903 + .../CustomerDeliveryTrackingOrderLine.js | 81 + src/model/CustomerSummary.js | 58 +- src/model/CustomerUpdateModel.js | 89 + src/model/CustomerUpdatedEvent.js | 73 +- src/model/DeliveryLocation.js | 76 +- src/model/DeliveryZone.js | 105 + src/model/DeliveryZoneBase.js | 97 + src/model/DeliveryZoneCreatedEvent.js | 145 + src/model/DeliveryZoneDeletedEvent.js | 145 + src/model/DeliveryZoneUpdatedEvent.js | 145 + src/model/DeviceSettings.js | 95 + src/model/DnsRecordInformation.js | 89 + src/model/DnsVerifiedEvent.js | 113 + src/model/Driver.js | 113 + src/model/DriverInvitation.js | 89 + src/model/DriverLoginModel.js | 85 + src/model/DriverRequestLoginPinModel.js | 75 + src/model/DriverStore.js | 109 + src/model/EmvNotificationEvent.js | 185 + src/model/EmvTerminal.js | 113 + src/model/EmvTerminalWithAssignments.js | 113 + src/model/EventSearchResult.js | 913 +- src/model/FeeSummary.js | 40 +- src/model/FlipdishEventBase.js | 105 + src/model/FlipdishFeesDetails.js | 121 + src/model/GroupedCoordinates.js | 89 + src/model/HomeAction.js | 149 + src/model/HomeStatistics.js | 73 + src/model/HttpRequestAndResponseLog.js | 147 +- src/model/HydraAssignedEvent.js | 121 + src/model/HydraConfig.js | 153 + .../HydraConnectionStatusChangedEvent.js | 155 + src/model/HydraDeviceDetails.js | 205 + src/model/HydraRegistrationRequest.js | 93 + src/model/HydraRequestResetEvent.js | 113 + src/model/HydraSettingChangedEvent.js | 121 + src/model/HydraStatus.js | 143 + src/model/HydraStoreAssignedEvent.js | 121 + src/model/HydraStoreData.js | 81 + src/model/HydraStoreUnassignedEvent.js | 121 + src/model/HydraUnAssignedEvent.js | 121 + src/model/IndexPage.js | 193 + src/model/IndexPageBase.js | 177 + src/model/JobAddress.js | 113 + ...{DeliveryFeeArea.js => JobCancellation.js} | 63 +- src/model/JobContact.js | 113 + src/model/JobDelivery.js | 169 + src/model/JobDeliveryDetail.js | 113 + src/model/JobDriver.js | 121 + src/model/JobEta.js | 81 + src/model/JobPricing.js | 113 + src/model/JobProof.js | 73 + src/model/JobResponse.js | 177 + ...ioskBluetoothInstallUpdateInitiateEvent.js | 161 + src/model/KioskBluetoothPairingModeEvent.js | 161 + ...uetoothTerminalInitiateUpdateCheckEvent.js | 121 + .../KioskBluetoothTerminalUpdatedEvent.js | 177 + src/model/KioskBluetoothUnpairingModeEvent.js | 161 + src/model/Language.js | 89 + src/model/LightspeedSettings.js | 235 + src/model/LocalisedTimeZone.js | 89 + src/model/LoginModel.js | 85 + src/model/LoginWithPinModel.js | 85 + src/model/LoyaltyCampaign.js | 153 + src/model/LoyaltyCampaignBase.js | 129 + src/model/LoyaltyCampaignCreatedEvent.js | 137 + src/model/LoyaltyCampaignDeletedEvent.js | 137 + src/model/LoyaltyCampaignUpdatedEvent.js | 137 + src/model/LumpDiscountDetails.js | 73 + src/model/MaskedPhoneNumber.js | 89 + src/model/Menu.js | 141 +- src/model/MenuBase.js | 64 +- src/model/MenuCheckpoint.js | 97 + src/model/MenuCheckpointCreatedEvent.js | 129 + src/model/MenuCreatedEvent.js | 82 +- src/model/MenuElementEditResponse.js | 129 + src/model/MenuElementHide.js | 101 + src/model/MenuItemOptionSet.js | 116 +- src/model/MenuItemOptionSetBase.js | 81 +- src/model/MenuItemOptionSetCreatedEvent.js | 137 + src/model/MenuItemOptionSetDeletedEvent.js | 137 + src/model/MenuItemOptionSetItem.js | 118 +- src/model/MenuItemOptionSetItemBase.js | 80 +- .../MenuItemOptionSetItemCreatedEvent.js | 137 + .../MenuItemOptionSetItemDeletedEvent.js | 137 + .../MenuItemOptionSetItemUpdatedEvent.js | 137 + src/model/MenuItemOptionSetUpdatedEvent.js | 137 + src/model/MenuObjectDisplayOrders.js | 73 + src/model/MenuSection.js | 108 +- src/model/MenuSectionAvailability.js | 44 +- src/model/MenuSectionAvailabilityBase.js | 105 + src/model/MenuSectionBase.js | 64 +- src/model/MenuSectionCreatedEvent.js | 137 + src/model/MenuSectionDeletedEvent.js | 137 + src/model/MenuSectionItem.js | 198 +- src/model/MenuSectionItemBase.js | 128 +- src/model/MenuSectionItemCreatedEvent.js | 137 + src/model/MenuSectionItemDeletedEvent.js | 137 + src/model/MenuSectionItemUpdatedEvent.js | 137 + src/model/MenuSectionUpdatedEvent.js | 137 + src/model/MenuStoreNames.js | 73 + src/model/MenuSummary.js | 113 + src/model/MenuTaxDetails.js | 125 + src/model/MenuTaxRate.js | 89 + src/model/MenuUpdatedEvent.js | 82 +- src/model/MenuUploadedEvent.js | 129 + src/model/Metadata.js | 39 +- src/model/OAuthApp.js | 181 + src/model/OAuthClient.js | 110 - src/model/OAuthTokenModel.js | 58 +- src/model/OauthClientRedirectUri.js | 31 +- src/model/ObjectDisplayOrder.js | 81 + src/model/Order.js | 714 +- src/model/OrderAcceptedEvent.js | 82 +- src/model/OrderCapacityConfigUpdatedEvent.js | 137 + src/model/OrderCreatedEvent.js | 82 +- .../OrderCustomerTrackingCreatedEvent.js | 121 + ...OrderDeliveryTrackingStatusUpdatedEvent.js | 121 + src/model/OrderDispatchedEvent.js | 129 + src/model/OrderIdAndSequenceNumber.js | 81 + src/model/OrderItem.js | 120 +- src/model/OrderItemOption.js | 84 +- src/model/OrderPaymentInformation.js | 81 + src/model/OrderRatingUpdatedEvent.js | 82 +- src/model/OrderRefundedEvent.js | 82 +- src/model/OrderRejectedEvent.js | 90 +- src/model/OrderSummary.js | 1283 + src/model/OrderTipUpdatedEvent.js | 82 +- src/model/OrderVoucherSummary.js | 195 + src/model/OtherChargesDetails.js | 81 + src/model/PasswordResetModel.js | 101 + src/model/PaymentTerminalDetails.js | 97 + .../PaymentTerminalTransactionDetails.js | 113 + src/model/Payout.js | 913 + src/model/PayoutChargeback.js | 843 + src/model/PayoutDetail.js | 920 + src/model/PayoutOrder.js | 921 + src/model/PayoutOtherCharge.js | 871 + src/model/PayoutRefund.js | 859 + src/model/PayoutStore.js | 145 + src/model/PayoutSummary.js | 821 + src/model/PercentDiscountDetails.js | 73 + src/model/PhoneCall.js | 207 + src/model/PhoneCallEndedEvent.js | 129 + src/model/PhoneCallStartedEvent.js | 129 + src/model/PreOrderConfig.js | 171 + src/model/PreOrderTime.js | 81 + src/model/PredefinedAnswer.js | 81 + src/model/Printer.js | 81 + src/model/PrinterAssignedToStoreEvent.js | 145 + src/model/PrinterTurnedOffEvent.js | 145 + src/model/PrinterTurnedOnEvent.js | 145 + src/model/PrinterUnassignedFromStoreEvent.js | 145 + src/model/ProcessingFeeConfig.js | 153 + src/model/PushNotificationDeletedEvent.js | 121 + src/model/PushNotificationRequest.js | 91 + src/model/PushNotificationResponse.js | 107 + src/model/PushNotificationScheduledEvent.js | 129 + src/model/PushNotificationSentEvent.js | 121 + src/model/Range.js | 64 +- src/model/RedeemInvitationResult.js | 107 + src/model/Refund.js | 48 +- src/model/Reject.js | 64 +- src/model/RequestLoginPinModel.js | 75 + src/model/RequestLoginPinResposne.js | 73 + src/model/RequestPasswordResetModel.js | 73 + .../RestApiArrayResultAllMetadataResult.js | 75 + .../RestApiArrayResultApmCurrencyDataPoint.js | 75 + src/model/RestApiArrayResultApmDataPoint.js | 75 + .../RestApiArrayResultApmHourlyDataPoint.js | 75 + .../RestApiArrayResultBankAccountSummary.js | 75 + ... RestApiArrayResultBusinessHoursPeriod.js} | 50 +- ...sultCountryWithAccountFieldsDefinitions.js | 75 + src/model/RestApiArrayResultDeliveryZone.js | 75 + src/model/RestApiArrayResultDriver.js | 75 + ...nt.js => RestApiArrayResultDriverStore.js} | 50 +- ...piArrayResultEmvTerminalWithAssignments.js | 75 + src/model/RestApiArrayResultHomeAction.js | 75 + .../RestApiArrayResultLocalisedTimeZone.js | 75 + .../RestApiArrayResultLoyaltyCampaign.js | 75 + src/model/RestApiArrayResultMenuCheckpoint.js | 75 + ...stApiArrayResultMenuElementEditResponse.js | 75 + .../RestApiArrayResultMenuItemOptionSet.js | 26 +- ...RestApiArrayResultMenuItemOptionSetItem.js | 26 +- src/model/RestApiArrayResultMenuSection.js | 26 +- .../RestApiArrayResultMenuSectionItem.js | 26 +- src/model/RestApiArrayResultMenuStoreNames.js | 75 + src/model/RestApiArrayResultMenuSummary.js | 75 + src/model/RestApiArrayResultMenuTaxDetails.js | 75 + src/model/RestApiArrayResultMetadata.js | 26 +- src/model/RestApiArrayResultOAuthApp.js | 75 + ...estApiArrayResultOauthClientRedirectUri.js | 26 +- src/model/RestApiArrayResultPayoutSummary.js | 75 + src/model/RestApiArrayResultPreOrderTime.js | 75 + .../RestApiArrayResultProcessingFeeConfig.js | 75 + ...estApiArrayResultRestApiDefaultResponse.js | 26 +- .../RestApiArrayResultRetentionCampaign.js | 75 + src/model/RestApiArrayResultStoreListItem.js | 75 + .../RestApiArrayResultStoreStatistics.js | 75 + .../RestApiArrayResultSupportedCountry.js | 75 + src/model/RestApiArrayResultTeammate.js | 75 + .../RestApiArrayResultVoucherDataPoint.js | 75 + src/model/RestApiDefaultResponse.js | 22 +- src/model/RestApiErrorResult.js | 51 +- .../RestApiEventSearchPaginationResult.js | 59 +- src/model/RestApiForbiddenResult.js | 26 +- src/model/RestApiIntegerResult.js | 26 +- src/model/RestApiPaginationResultApp.js | 105 + ...piPaginationResultBusinessHoursOverride.js | 105 + ...ginationResultHttpRequestAndResponseLog.js | 59 +- ...stApiPaginationResultHydraDeviceDetails.js | 105 + .../RestApiPaginationResultOAuthTokenModel.js | 59 +- src/model/RestApiPaginationResultOrder.js | 59 +- .../RestApiPaginationResultOrderSummary.js | 105 + src/model/RestApiPaginationResultPayout.js | 105 + ...RestApiPaginationResultPayoutChargeback.js | 105 + .../RestApiPaginationResultPayoutOrder.js | 105 + ...estApiPaginationResultPayoutOtherCharge.js | 105 + .../RestApiPaginationResultPayoutRefund.js | 105 + src/model/RestApiPaginationResultPhoneCall.js | 105 + ...aginationResultPushNotificationResponse.js | 105 + src/model/RestApiPaginationResultStore.js | 59 +- .../RestApiPaginationResultStoreGroup.js | 105 + ...stApiPaginationResultStoreGroupExtended.js | 105 + .../RestApiPaginationResultStoreHeader.js | 105 + src/model/RestApiPaginationResultVoucher.js | 110 - .../RestApiPaginationResultVoucherSummary.js | 105 + .../RestApiPaginationResultWebhookLog.js | 59 +- ...tApiPaginationResultWebhookSubscription.js | 105 + src/model/RestApiResultAccountDetail.js | 75 + .../RestApiResultAccountFieldsDefinitions.js | 75 + src/model/RestApiResultApmStatistics.js | 75 + src/model/RestApiResultApmStatus.js | 75 + ...piResultVoucher.js => RestApiResultApp.js} | 50 +- src/model/RestApiResultAppCompliance.js | 75 + src/model/RestApiResultAssignedBankAccount.js | 75 + src/model/RestApiResultBankAccountDetail.js | 75 + .../RestApiResultBluetoothTerminalStatus.js | 75 + .../RestApiResultBusinessHoursOverride.js | 75 + src/model/RestApiResultBusinessHoursPeriod.js | 75 + ...hClient.js => RestApiResultCoordinates.js} | 50 +- src/model/RestApiResultCustomer.js | 75 + src/model/RestApiResultDeliveryZone.js | 75 + .../RestApiResultDnsRecordInformation.js | 75 + src/model/RestApiResultDriver.js | 75 + src/model/RestApiResultHomeStatistics.js | 75 + src/model/RestApiResultHydraConfig.js | 75 + src/model/RestApiResultHydraStatus.js | 75 + src/model/RestApiResultIndexPage.js | 75 + src/model/RestApiResultIndexPageBase.js | 75 + src/model/RestApiResultJobResponse.js | 75 + src/model/RestApiResultLightspeedSettings.js | 75 + src/model/RestApiResultLoyaltyCampaign.js | 75 + src/model/RestApiResultMenu.js | 26 +- src/model/RestApiResultMenuItemOptionSet.js | 26 +- .../RestApiResultMenuItemOptionSetItem.js | 26 +- src/model/RestApiResultMenuSection.js | 26 +- .../RestApiResultMenuSectionAvailability.js | 75 + src/model/RestApiResultMenuSectionItem.js | 26 +- src/model/RestApiResultMetadata.js | 26 +- src/model/RestApiResultOAuthApp.js | 75 + .../RestApiResultOauthClientRedirectUri.js | 26 +- src/model/RestApiResultOrder.js | 26 +- .../RestApiResultOrderPaymentInformation.js | 75 + .../RestApiResultPaymentTerminalDetails.js | 75 + ...ResultPaymentTerminalTransactionDetails.js | 75 + src/model/RestApiResultPreOrderConfig.js | 75 + src/model/RestApiResultProcessingFeeConfig.js | 75 + .../RestApiResultPushNotificationResponse.js | 75 + .../RestApiResultRedeemInvitationResult.js | 75 + src/model/RestApiResultRetentionCampaign.js | 75 + src/model/RestApiResultStore.js | 26 +- src/model/RestApiResultStoreAddress.js | 75 + src/model/RestApiResultStoreEndOfDayReport.js | 75 + src/model/RestApiResultStoreGroup.js | 75 + src/model/RestApiResultStoreGroupBase.js | 75 + .../RestApiResultStoreOrderCapacityConfig.js | 75 + .../RestApiResultStripeConnectedAccount.js | 75 + .../RestApiResultStripeTerminalPrivateKey.js | 75 + src/model/RestApiResultStuartSettings.js | 75 + src/model/RestApiResultTeammate.js | 75 + src/model/RestApiResultVoucherWithStats.js | 75 + src/model/RestApiResultWebsiteImage.js | 75 + src/model/RestApiResultWebsiteTestimonial.js | 75 + src/model/RestApiStringArrayResult.js | 26 +- src/model/RestApiStringResult.js | 26 +- src/model/RestApiUnauthorizedResult.js | 26 +- src/model/RetentionCampaign.js | 161 + src/model/RetentionCampaignBase.js | 137 + src/model/RetentionCampaignCreatedEvent.js | 137 + src/model/RetentionCampaignDeletedEvent.js | 137 + src/model/RetentionCampaignUpdatedEvent.js | 137 + src/model/RevenueAdjustmentsDetails.js | 105 + src/model/RevenueDetail.js | 161 + src/model/SearchCriteria.js | 126 +- src/model/SetPasswordWithPinModel.js | 85 + src/model/SignupStep.js | 115 + src/model/SmsInfo.js | 89 + src/model/SmsReceivedEvent.js | 121 + src/model/StatisticsCurrencyDataPoint.js | 783 + src/model/Store.js | 1198 +- src/model/StoreAddress.js | 84 +- src/model/StoreAddressBase.js | 105 + src/model/StoreAddressUpdatedEvent.js | 145 + src/model/StoreArchivedEvent.js | 145 + src/model/StoreBase.js | 297 + .../StoreBusinessHoursOverrideCreatedEvent.js | 145 + .../StoreBusinessHoursOverrideDeletedEvent.js | 145 + src/model/StoreCampaignStartTime.js | 81 + src/model/StoreCloneSettings.js | 73 + src/model/StoreCreateBase.js | 89 + src/model/StoreCreatedEvent.js | 100 +- src/model/StoreDataPoint.js | 81 + src/model/StoreDeletedEvent.js | 108 +- src/model/StoreDeliveryZoneUpdatedEvent.js | 137 - src/model/StoreEndOfDayReport.js | 959 + src/model/StoreGroup.js | 791 + src/model/StoreGroupBase.js | 767 + src/model/StoreGroupCreatedEvent.js | 137 + src/model/StoreGroupDeletedEvent.js | 137 + src/model/StoreGroupExtended.js | 815 + src/model/StoreGroupUpdatedEvent.js | 137 + src/model/StoreHeader.js | 81 + src/model/StoreKioskSetting.js | 121 + src/model/StoreKioskSettingUpdatedEvent.js | 137 + src/model/StoreListItem.js | 113 + src/model/StoreLogoCreatedEvent.js | 129 + src/model/StoreLogoDeletedEvent.js | 129 + src/model/StoreLogoUpdatedEvent.js | 129 + src/model/StoreMenuAssignedEvent.js | 137 + src/model/StoreNote.js | 40 +- src/model/StoreOpeningHoursUpdatedEvent.js | 144 +- src/model/StoreOrderCapacityConfig.js | 117 + .../StoreOrderCapacityConfigEditModel.js | 73 + src/model/StoreOrderCapacityPeriod.js | 163 + src/model/StorePreOrderConfigUpdatedEvent.js | 137 + src/model/StorePublishedEvent.js | 145 + src/model/StoreStatistics.js | 81 + src/model/StoreSummary.js | 431 +- src/model/StoreUnarchivedEvent.js | 145 + src/model/StoreUnpublishedEvent.js | 145 + src/model/StoreUpdatedEvent.js | 108 +- src/model/StripeAccountLinkRequest.js | 137 + src/model/StripeConnectedAccount.js | 227 + src/model/StripeConnectedAccountInfo.js | 171 + src/model/StripeTerminalPrivateKey.js | 81 + src/model/StuartSettings.js | 224 + src/model/StuartSettingsTransportPrices.js | 114 + src/model/SupportedCountry.js | 223 + src/model/Teammate.js | 219 + src/model/TeammateBase.js | 145 + src/model/TeammateDeletedEvent.js | 121 + src/model/TeammateInviteAcceptedEvent.js | 121 + src/model/TeammateInviteSentEvent.js | 121 + src/model/TeammateUpdatedEvent.js | 121 + src/model/UpdateDriverNotificationToken.js | 75 + src/model/UpdateDriverProfileModel.js | 73 + src/model/UserAnsweredSignupQuestionsEvent.js | 121 + src/model/UserCreatedEvent.js | 121 + src/model/UserDeletedEvent.js | 121 + src/model/UserEventInfo.js | 51 +- src/model/UserLoginEvent.js | 121 + src/model/UserPasswordCreatedEvent.js | 121 + src/model/UserUpdatedEvent.js | 121 + src/model/ValidationErrorResult.js | 31 +- src/model/Voucher.js | 1096 +- src/model/VoucherBase.js | 193 + src/model/VoucherCreatedEvent.js | 137 + src/model/VoucherDataPoint.js | 89 + src/model/VoucherDeletedEvent.js | 137 + src/model/VoucherSummary.js | 182 +- src/model/VoucherUpdatedEvent.js | 137 + src/model/VoucherWithStats.js | 1127 + src/model/WebhookEventSample.js | 89 + src/model/WebhookLog.js | 148 +- src/model/WebhookSubscription.js | 76 +- src/model/WebhookSubscriptionCreatedEvent.js | 64 +- src/model/WebhookSubscriptionDeletedEvent.js | 64 +- src/model/WebhookSubscriptionEventInfo.js | 49 +- src/model/WebhookSubscriptionUpdatedEvent.js | 64 +- src/model/WebsiteImage.js | 133 + src/model/WebsiteTestimonial.js | 89 + src/model/WebsiteTestimonialBase.js | 81 + src/model/WebsiteUpdatedEvent.js | 129 + src/model/WebsiteVanityUrlUpdatedEvent.js | 129 + test/api/AccountsApi.spec.js | 400 + test/api/ApmApi.spec.js | 305 + test/api/AppsApi.spec.js | 770 + test/api/AuthorizationTokensApi.spec.js | 105 +- test/api/BankAccountApi.spec.js | 534 + test/api/CampaignsApi.spec.js | 774 + test/api/CardReadersApi.spec.js | 210 + test/api/ContentSecurityPolicyApi.spec.js | 71 + test/api/CustomersApi.spec.js | 111 + test/api/DeliveryTrackingApi.spec.js | 239 + test/api/DeliveryZoneApi.spec.js | 177 + test/api/DriversApi.spec.js | 309 + test/api/EventsApi.spec.js | 99394 +++++++++++++++- test/api/FilesApi.spec.js | 64 + test/api/HeartbeatApi.spec.js | 127 + test/api/HomeApi.spec.js | 169 + test/api/HttpRequestResponseLogsApi.spec.js | 116 +- test/api/HydraApi.spec.js | 637 + test/api/LightspeedApi.spec.js | 230 + test/api/MenuOptionSetItemsApi.spec.js | 360 +- test/api/MenuOptionSetsApi.spec.js | 383 +- test/api/MenuSectionItemsApi.spec.js | 820 +- test/api/MenuSectionsApi.spec.js | 1076 +- test/api/MenusApi.spec.js | 1559 +- test/api/OAuthClientsApi.spec.js | 410 +- test/api/OrdersApi.spec.js | 750 +- test/api/PaymentsApi.spec.js | 67 + test/api/PayoutsApi.spec.js | 713 + test/api/ProcessingFeeConfigsApi.spec.js | 80 + test/api/PushNotificationsApi.spec.js | 184 + test/api/StoreGroupsApi.spec.js | 291 + test/api/StoreOrderCapacityApi.spec.js | 122 + test/api/StoresApi.spec.js | 2537 +- test/api/StripeCustomConnectApi.spec.js | 430 + test/api/StuartApi.spec.js | 340 + test/api/TeammatesApi.spec.js | 300 + test/api/UsersApi.spec.js | 80 +- test/api/VouchersApi.spec.js | 541 +- test/api/WebhooksApi.spec.js | 458 +- test/api/WebsiteApi.spec.js | 340 + test/assert-equals.js | 81 + test/model/Accept.spec.js | 47 +- test/model/AccountDetail.spec.js | 106 + test/model/AccountDetailBase.spec.js | 76 + test/model/AccountFieldDefinition.spec.js | 88 + test/model/AccountFieldKeyValuePair.spec.js | 58 + test/model/AccountFieldsDefinitions.spec.js | 52 + test/model/AddItemDetails.spec.js | 58 + test/model/AllMetadataResult.spec.js | 58 + test/model/AnalyticsClientEvent.spec.js | 112 + test/model/ApmCurrencyDataPoint.spec.js | 64 + test/model/ApmDataPoint.spec.js | 64 + test/model/ApmHourlyDataPoint.spec.js | 64 + test/model/ApmStatistics.spec.js | 64 + test/model/ApmStatus.spec.js | 52 + test/model/App.spec.js | 160 + test/model/AppCompliance.spec.js | 58 + test/model/AppConfigUpdateModel.spec.js | 82 + test/model/AppCreatedEvent.spec.js | 100 + test/model/AppUpdatedEvent.spec.js | 106 + test/model/AssignedBankAccount.spec.js | 58 + test/model/BalanceDetails.spec.js | 58 + test/model/BankAccount.spec.js | 118 + test/model/BankAccountCreate.spec.js | 136 + test/model/BankAccountCreatedEvent.spec.js | 82 + test/model/BankAccountDeletedEvent.spec.js | 82 + test/model/BankAccountDetail.spec.js | 160 + .../BankAccountDetailsUpdateRequest.spec.js | 118 + test/model/BankAccountSummary.spec.js | 118 + test/model/BankAccountUpdatedEvent.spec.js | 82 + test/model/BluetoothTerminalStatus.spec.js | 82 + test/model/BusinessHoursOverride.spec.js | 76 + test/model/BusinessHoursOverrideBase.spec.js | 70 + test/model/BusinessHoursPeriod.spec.js | 135 +- test/model/BusinessHoursPeriodBase.spec.js | 76 + test/model/CampaignCreatedEvent.spec.js | 103 - test/model/CampaignStatistics.spec.js | 76 + test/model/CertificateCreatedEvent.spec.js | 82 + test/model/CertificateRenewedEvent.spec.js | 82 + test/model/ChangePasswordModel.spec.js | 58 + test/model/ChargebackDetails.spec.js | 70 + test/model/Coordinates.spec.js | 63 +- ...ountryWithAccountFieldsDefinitions.spec.js | 70 + test/model/CreateAccountModel.spec.js | 76 + test/model/CreateFullMenu.spec.js | 88 + .../model/CreateFullMenuItemOptionSet.spec.js | 88 + .../CreateFullMenuItemOptionSetItem.spec.js | 94 + test/model/CreateFullMenuSection.spec.js | 94 + test/model/CreateFullMenuSectionItem.spec.js | 124 + test/model/CreateMenuTaxRate.spec.js | 58 + test/model/CreateMetadata.spec.js | 64 + test/model/CreateTeammate.spec.js | 70 + test/model/CreateVoucher.spec.js | 178 + test/model/CreditNoteDetails.spec.js | 52 + test/model/CspReport.spec.js | 88 + test/model/CspReportRequest.spec.js | 52 + test/model/CurrencyData.spec.js | 58 + test/model/Customer.spec.js | 76 + .../model/CustomerConsentUpdatedEvent.spec.js | 111 +- test/model/CustomerCreatedEvent.spec.js | 107 +- .../CustomerDeliveryTrackingOrder.spec.js | 160 + .../CustomerDeliveryTrackingOrderLine.spec.js | 58 + test/model/CustomerSummary.spec.js | 87 +- test/model/CustomerUpdateModel.spec.js | 64 + test/model/CustomerUpdatedEvent.spec.js | 101 +- test/model/DeliveryFeeArea.spec.js | 73 - test/model/DeliveryLocation.spec.js | 107 +- test/model/DeliveryZone.spec.js | 76 + test/model/DeliveryZoneBase.spec.js | 70 + test/model/DeliveryZoneCreatedEvent.spec.js | 106 + test/model/DeliveryZoneDeletedEvent.spec.js | 106 + test/model/DeliveryZoneUpdatedEvent.spec.js | 106 + test/model/DeviceSettings.spec.js | 64 + test/model/DnsRecordInformation.spec.js | 64 + test/model/DnsVerifiedEvent.spec.js | 82 + test/model/Driver.spec.js | 82 + test/model/DriverInvitation.spec.js | 64 + test/model/DriverLoginModel.spec.js | 58 + test/model/DriverRequestLoginPinModel.spec.js | 52 + test/model/DriverStore.spec.js | 64 + test/model/EmvNotificationEvent.spec.js | 136 + test/model/EmvTerminal.spec.js | 82 + test/model/EmvTerminalWithAssignments.spec.js | 82 + test/model/EventSearchResult.spec.js | 763 +- test/model/FeeSummary.spec.js | 67 +- test/model/FlipdishEventBase.spec.js | 76 + test/model/FlipdishFeesDetails.spec.js | 88 + test/model/GroupedCoordinates.spec.js | 64 + test/model/HomeAction.spec.js | 94 + test/model/HomeStatistics.spec.js | 52 + test/model/HttpRequestAndResponseLog.spec.js | 213 +- test/model/HydraAssignedEvent.spec.js | 88 + test/model/HydraConfig.spec.js | 88 + .../HydraConnectionStatusChangedEvent.spec.js | 94 + test/model/HydraDeviceDetails.spec.js | 112 + test/model/HydraRegistrationRequest.spec.js | 64 + test/model/HydraRequestResetEvent.spec.js | 82 + test/model/HydraSettingChangedEvent.spec.js | 88 + test/model/HydraStatus.spec.js | 82 + test/model/HydraStoreAssignedEvent.spec.js | 88 + test/model/HydraStoreData.spec.js | 58 + test/model/HydraStoreUnassignedEvent.spec.js | 88 + test/model/HydraUnAssignedEvent.spec.js | 88 + test/model/IndexPage.spec.js | 142 + test/model/IndexPageBase.spec.js | 130 + test/model/JobAddress.spec.js | 82 + test/model/JobCancellation.spec.js | 64 + test/model/JobContact.spec.js | 82 + test/model/JobDelivery.spec.js | 124 + test/model/JobDeliveryDetail.spec.js | 82 + test/model/JobDriver.spec.js | 88 + test/model/JobEta.spec.js | 58 + test/model/JobPricing.spec.js | 82 + test/model/JobProof.spec.js | 52 + test/model/JobResponse.spec.js | 130 + ...luetoothInstallUpdateInitiateEvent.spec.js | 94 + .../KioskBluetoothPairingModeEvent.spec.js | 94 + ...thTerminalInitiateUpdateCheckEvent.spec.js | 88 + ...KioskBluetoothTerminalUpdatedEvent.spec.js | 106 + .../KioskBluetoothUnpairingModeEvent.spec.js | 94 + test/model/Language.spec.js | 64 + test/model/LightspeedSettings.spec.js | 154 + test/model/LocalisedTimeZone.spec.js | 64 + test/model/LoginModel.spec.js | 58 + test/model/LoginWithPinModel.spec.js | 58 + test/model/LoyaltyCampaign.spec.js | 112 + test/model/LoyaltyCampaignBase.spec.js | 94 + .../model/LoyaltyCampaignCreatedEvent.spec.js | 100 + .../model/LoyaltyCampaignDeletedEvent.spec.js | 100 + .../model/LoyaltyCampaignUpdatedEvent.spec.js | 100 + test/model/LumpDiscountDetails.spec.js | 52 + test/model/MaskedPhoneNumber.spec.js | 64 + test/model/Menu.spec.js | 129 +- test/model/MenuBase.spec.js | 61 +- test/model/MenuCheckpoint.spec.js | 70 + test/model/MenuCheckpointCreatedEvent.spec.js | 94 + test/model/MenuCreatedEvent.spec.js | 111 +- test/model/MenuElementEditResponse.spec.js | 64 + test/model/MenuElementHide.spec.js | 58 + test/model/MenuItemOptionSet.spec.js | 153 +- test/model/MenuItemOptionSetBase.spec.js | 97 +- .../MenuItemOptionSetCreatedEvent.spec.js | 100 + .../MenuItemOptionSetDeletedEvent.spec.js | 100 + test/model/MenuItemOptionSetItem.spec.js | 117 +- test/model/MenuItemOptionSetItemBase.spec.js | 91 +- .../MenuItemOptionSetItemCreatedEvent.spec.js | 100 + .../MenuItemOptionSetItemDeletedEvent.spec.js | 100 + .../MenuItemOptionSetItemUpdatedEvent.spec.js | 100 + .../MenuItemOptionSetUpdatedEvent.spec.js | 100 + test/model/MenuObjectDisplayOrders.spec.js | 52 + test/model/MenuSection.spec.js | 153 +- test/model/MenuSectionAvailability.spec.js | 63 +- .../model/MenuSectionAvailabilityBase.spec.js | 52 + test/model/MenuSectionBase.spec.js | 91 +- test/model/MenuSectionCreatedEvent.spec.js | 100 + test/model/MenuSectionDeletedEvent.spec.js | 100 + test/model/MenuSectionItem.spec.js | 207 +- test/model/MenuSectionItemBase.spec.js | 147 +- .../model/MenuSectionItemCreatedEvent.spec.js | 100 + .../model/MenuSectionItemDeletedEvent.spec.js | 100 + .../model/MenuSectionItemUpdatedEvent.spec.js | 100 + test/model/MenuSectionUpdatedEvent.spec.js | 100 + test/model/MenuStoreNames.spec.js | 52 + test/model/MenuSummary.spec.js | 82 + test/model/MenuTaxDetails.spec.js | 76 + test/model/MenuTaxRate.spec.js | 64 + test/model/MenuUpdatedEvent.spec.js | 111 +- test/model/MenuUploadedEvent.spec.js | 94 + test/model/Metadata.spec.js | 61 +- test/model/OAuthApp.spec.js | 94 + test/model/OAuthClient.spec.js | 85 - test/model/OAuthTokenModel.spec.js | 87 +- test/model/OauthClientRedirectUri.spec.js | 63 +- test/model/ObjectDisplayOrder.spec.js | 58 + test/model/Order.spec.js | 423 +- test/model/OrderAcceptedEvent.spec.js | 111 +- .../OrderCapacityConfigUpdatedEvent.spec.js | 100 + test/model/OrderCreatedEvent.spec.js | 111 +- .../OrderCustomerTrackingCreatedEvent.spec.js | 88 + ...DeliveryTrackingStatusUpdatedEvent.spec.js | 88 + test/model/OrderDispatchedEvent.spec.js | 94 + test/model/OrderIdAndSequenceNumber.spec.js | 58 + test/model/OrderItem.spec.js | 177 +- test/model/OrderItemOption.spec.js | 111 +- test/model/OrderPaymentInformation.spec.js | 58 + test/model/OrderRatingUpdatedEvent.spec.js | 111 +- test/model/OrderRefundedEvent.spec.js | 111 +- test/model/OrderRejectedEvent.spec.js | 117 +- test/model/OrderSummary.spec.js | 178 + test/model/OrderTipUpdatedEvent.spec.js | 111 +- test/model/OrderVoucherSummary.spec.js | 82 + test/model/OtherChargesDetails.spec.js | 58 + test/model/PasswordResetModel.spec.js | 70 + test/model/PaymentTerminalDetails.spec.js | 70 + .../PaymentTerminalTransactionDetails.spec.js | 82 + test/model/Payout.spec.js | 124 + test/model/PayoutChargeback.spec.js | 100 + test/model/PayoutDetail.spec.js | 130 + test/model/PayoutOrder.spec.js | 160 + test/model/PayoutOtherCharge.spec.js | 94 + test/model/PayoutRefund.spec.js | 112 + test/model/PayoutStore.spec.js | 106 + test/model/PayoutSummary.spec.js | 70 + test/model/PercentDiscountDetails.spec.js | 52 + test/model/PhoneCall.spec.js | 106 + test/model/PhoneCallEndedEvent.spec.js | 94 + test/model/PhoneCallStartedEvent.spec.js | 94 + test/model/PreOrderConfig.spec.js | 106 + test/model/PreOrderTime.spec.js | 58 + test/model/PredefinedAnswer.spec.js | 58 + test/model/Printer.spec.js | 58 + .../model/PrinterAssignedToStoreEvent.spec.js | 106 + test/model/PrinterTurnedOffEvent.spec.js | 106 + test/model/PrinterTurnedOnEvent.spec.js | 106 + .../PrinterUnassignedFromStoreEvent.spec.js | 106 + test/model/ProcessingFeeConfig.spec.js | 70 + .../PushNotificationDeletedEvent.spec.js | 88 + test/model/PushNotificationRequest.spec.js | 64 + test/model/PushNotificationResponse.spec.js | 76 + .../PushNotificationScheduledEvent.spec.js | 94 + test/model/PushNotificationSentEvent.spec.js | 88 + test/model/Range.spec.js | 67 +- test/model/RedeemInvitationResult.spec.js | 58 + test/model/Refund.spec.js | 67 +- test/model/Reject.spec.js | 57 +- test/model/RequestLoginPinModel.spec.js | 52 + test/model/RequestLoginPinResposne.spec.js | 52 + test/model/RequestPasswordResetModel.spec.js | 52 + ...estApiArrayResultAllMetadataResult.spec.js | 52 + ...ApiArrayResultApmCurrencyDataPoint.spec.js | 52 + .../RestApiArrayResultApmDataPoint.spec.js | 52 + ...stApiArrayResultApmHourlyDataPoint.spec.js | 52 + ...stApiArrayResultBankAccountSummary.spec.js | 52 + ...tApiArrayResultBusinessHoursPeriod.spec.js | 52 + ...ountryWithAccountFieldsDefinitions.spec.js | 52 + .../RestApiArrayResultDeliveryZone.spec.js | 52 + test/model/RestApiArrayResultDriver.spec.js | 52 + .../RestApiArrayResultDriverStore.spec.js | 52 + ...ayResultEmvTerminalWithAssignments.spec.js | 52 + .../RestApiArrayResultHomeAction.spec.js | 52 + ...estApiArrayResultLocalisedTimeZone.spec.js | 52 + .../RestApiArrayResultLoyaltyCampaign.spec.js | 52 + .../RestApiArrayResultMenuCheckpoint.spec.js | 52 + ...ArrayResultMenuElementEditResponse.spec.js | 52 + ...estApiArrayResultMenuItemOptionSet.spec.js | 47 +- ...piArrayResultMenuItemOptionSetItem.spec.js | 47 +- .../RestApiArrayResultMenuSection.spec.js | 47 +- .../RestApiArrayResultMenuSectionItem.spec.js | 47 +- .../RestApiArrayResultMenuStoreNames.spec.js | 52 + .../RestApiArrayResultMenuSummary.spec.js | 52 + .../RestApiArrayResultMenuTaxDetails.spec.js | 52 + test/model/RestApiArrayResultMetadata.spec.js | 47 +- test/model/RestApiArrayResultOAuthApp.spec.js | 52 + .../RestApiArrayResultOAuthClient.spec.js | 67 - ...iArrayResultOauthClientRedirectUri.spec.js | 47 +- .../RestApiArrayResultPayoutSummary.spec.js | 52 + .../RestApiArrayResultPreOrderTime.spec.js | 52 + ...tApiArrayResultProcessingFeeConfig.spec.js | 52 + ...iArrayResultRestApiDefaultResponse.spec.js | 47 +- ...estApiArrayResultRetentionCampaign.spec.js | 52 + .../RestApiArrayResultStoreListItem.spec.js | 52 + .../RestApiArrayResultStoreStatistics.spec.js | 52 + ...RestApiArrayResultSupportedCountry.spec.js | 52 + test/model/RestApiArrayResultTeammate.spec.js | 52 + ...RestApiArrayResultVoucherDataPoint.spec.js | 52 + ...tApiArrayResultWebhookSubscription.spec.js | 67 - test/model/RestApiDefaultResponse.spec.js | 47 +- test/model/RestApiErrorResult.spec.js | 67 +- ...RestApiEventSearchPaginationResult.spec.js | 77 +- test/model/RestApiForbiddenResult.spec.js | 47 +- test/model/RestApiIntegerResult.spec.js | 47 +- test/model/RestApiPaginationResultApp.spec.js | 70 + ...inationResultBusinessHoursOverride.spec.js | 70 + ...ionResultHttpRequestAndResponseLog.spec.js | 77 +- ...PaginationResultHydraDeviceDetails.spec.js | 70 + ...ApiPaginationResultOAuthTokenModel.spec.js | 77 +- .../RestApiPaginationResultOrder.spec.js | 77 +- ...estApiPaginationResultOrderSummary.spec.js | 70 + .../RestApiPaginationResultPayout.spec.js | 70 + ...piPaginationResultPayoutChargeback.spec.js | 70 + ...RestApiPaginationResultPayoutOrder.spec.js | 70 + ...iPaginationResultPayoutOtherCharge.spec.js | 70 + ...estApiPaginationResultPayoutRefund.spec.js | 70 + .../RestApiPaginationResultPhoneCall.spec.js | 70 + ...tionResultPushNotificationResponse.spec.js | 70 + .../RestApiPaginationResultStore.spec.js | 77 +- .../RestApiPaginationResultStoreGroup.spec.js | 70 + ...PaginationResultStoreGroupExtended.spec.js | 70 + ...RestApiPaginationResultStoreHeader.spec.js | 70 + .../RestApiPaginationResultVoucher.spec.js | 85 - ...tApiPaginationResultVoucherSummary.spec.js | 70 + .../RestApiPaginationResultWebhookLog.spec.js | 77 +- ...aginationResultWebhookSubscription.spec.js | 70 + test/model/RestApiResultAccountDetail.spec.js | 52 + ...tApiResultAccountFieldsDefinitions.spec.js | 52 + test/model/RestApiResultApmStatistics.spec.js | 52 + test/model/RestApiResultApmStatus.spec.js | 52 + test/model/RestApiResultApp.spec.js | 52 + test/model/RestApiResultAppCompliance.spec.js | 52 + .../RestApiResultAssignedBankAccount.spec.js | 52 + .../RestApiResultBankAccountDetail.spec.js | 52 + ...stApiResultBluetoothTerminalStatus.spec.js | 52 + ...RestApiResultBusinessHoursOverride.spec.js | 52 + .../RestApiResultBusinessHoursPeriod.spec.js | 52 + test/model/RestApiResultCoordinates.spec.js | 52 + test/model/RestApiResultCustomer.spec.js | 52 + test/model/RestApiResultDeliveryZone.spec.js | 52 + .../RestApiResultDnsRecordInformation.spec.js | 52 + test/model/RestApiResultDriver.spec.js | 52 + .../model/RestApiResultHomeStatistics.spec.js | 52 + test/model/RestApiResultHydraConfig.spec.js | 52 + test/model/RestApiResultHydraStatus.spec.js | 52 + test/model/RestApiResultIndexPage.spec.js | 52 + test/model/RestApiResultIndexPageBase.spec.js | 52 + test/model/RestApiResultJobResponse.spec.js | 52 + .../RestApiResultLightspeedSettings.spec.js | 52 + .../RestApiResultLoyaltyCampaign.spec.js | 52 + test/model/RestApiResultMenu.spec.js | 47 +- .../RestApiResultMenuItemOptionSet.spec.js | 47 +- ...RestApiResultMenuItemOptionSetItem.spec.js | 47 +- test/model/RestApiResultMenuSection.spec.js | 47 +- ...stApiResultMenuSectionAvailability.spec.js | 52 + .../RestApiResultMenuSectionItem.spec.js | 47 +- test/model/RestApiResultMetadata.spec.js | 47 +- test/model/RestApiResultOAuthApp.spec.js | 52 + test/model/RestApiResultOAuthClient.spec.js | 67 - ...estApiResultOauthClientRedirectUri.spec.js | 47 +- test/model/RestApiResultOrder.spec.js | 47 +- ...stApiResultOrderPaymentInformation.spec.js | 52 + ...estApiResultPaymentTerminalDetails.spec.js | 52 + ...tPaymentTerminalTransactionDetails.spec.js | 52 + .../model/RestApiResultPreOrderConfig.spec.js | 52 + .../RestApiResultProcessingFeeConfig.spec.js | 52 + ...tApiResultPushNotificationResponse.spec.js | 52 + ...estApiResultRedeemInvitationResult.spec.js | 52 + .../RestApiResultRetentionCampaign.spec.js | 52 + test/model/RestApiResultStore.spec.js | 47 +- test/model/RestApiResultStoreAddress.spec.js | 52 + .../RestApiResultStoreEndOfDayReport.spec.js | 52 + test/model/RestApiResultStoreGroup.spec.js | 52 + .../model/RestApiResultStoreGroupBase.spec.js | 52 + ...tApiResultStoreOrderCapacityConfig.spec.js | 52 + ...estApiResultStripeConnectedAccount.spec.js | 52 + ...tApiResultStripeTerminalPrivateKey.spec.js | 52 + .../model/RestApiResultStuartSettings.spec.js | 52 + test/model/RestApiResultTeammate.spec.js | 52 + test/model/RestApiResultVoucher.spec.js | 67 - .../RestApiResultVoucherWithStats.spec.js | 52 + test/model/RestApiResultWebsiteImage.spec.js | 52 + .../RestApiResultWebsiteTestimonial.spec.js | 52 + test/model/RestApiStringArrayResult.spec.js | 47 +- test/model/RestApiStringResult.spec.js | 47 +- test/model/RestApiUnauthorizedResult.spec.js | 47 +- test/model/RetentionCampaign.spec.js | 118 + test/model/RetentionCampaignBase.spec.js | 100 + .../RetentionCampaignCreatedEvent.spec.js | 100 + .../RetentionCampaignDeletedEvent.spec.js | 100 + .../RetentionCampaignUpdatedEvent.spec.js | 100 + test/model/RevenueAdjustmentsDetails.spec.js | 76 + test/model/RevenueDetail.spec.js | 118 + test/model/SearchCriteria.spec.js | 133 +- test/model/SetPasswordWithPinModel.spec.js | 58 + test/model/SignupStep.spec.js | 64 + test/model/SmsInfo.spec.js | 64 + test/model/SmsReceivedEvent.spec.js | 88 + .../model/StatisticsCurrencyDataPoint.spec.js | 70 + test/model/Store.spec.js | 525 +- test/model/StoreAddress.spec.js | 107 +- test/model/StoreAddressBase.spec.js | 76 + test/model/StoreAddressUpdatedEvent.spec.js | 106 + test/model/StoreArchivedEvent.spec.js | 106 + test/model/StoreBase.spec.js | 220 + ...eBusinessHoursOverrideCreatedEvent.spec.js | 106 + ...eBusinessHoursOverrideDeletedEvent.spec.js | 106 + test/model/StoreCampaignStartTime.spec.js | 58 + test/model/StoreCloneSettings.spec.js | 52 + test/model/StoreCreateBase.spec.js | 64 + test/model/StoreCreatedEvent.spec.js | 117 +- test/model/StoreDataPoint.spec.js | 58 + test/model/StoreDeletedEvent.spec.js | 123 +- .../StoreDeliveryZoneUpdatedEvent.spec.js | 103 - test/model/StoreEndOfDayReport.spec.js | 202 + test/model/StoreGroup.spec.js | 76 + test/model/StoreGroupBase.spec.js | 58 + test/model/StoreGroupCreatedEvent.spec.js | 100 + test/model/StoreGroupDeletedEvent.spec.js | 100 + test/model/StoreGroupExtended.spec.js | 94 + test/model/StoreGroupUpdatedEvent.spec.js | 100 + test/model/StoreHeader.spec.js | 58 + test/model/StoreKioskSetting.spec.js | 88 + .../StoreKioskSettingUpdatedEvent.spec.js | 100 + test/model/StoreListItem.spec.js | 82 + test/model/StoreLogoCreatedEvent.spec.js | 94 + test/model/StoreLogoDeletedEvent.spec.js | 94 + test/model/StoreLogoUpdatedEvent.spec.js | 94 + test/model/StoreMenuAssignedEvent.spec.js | 100 + test/model/StoreNote.spec.js | 67 +- .../StoreOpeningHoursUpdatedEvent.spec.js | 135 +- test/model/StoreOrderCapacityConfig.spec.js | 70 + .../StoreOrderCapacityConfigEditModel.spec.js | 52 + test/model/StoreOrderCapacityPeriod.spec.js | 82 + .../StorePreOrderConfigUpdatedEvent.spec.js | 100 + test/model/StorePublishedEvent.spec.js | 106 + test/model/StoreStatistics.spec.js | 58 + test/model/StoreSummary.spec.js | 103 +- test/model/StoreUnarchivedEvent.spec.js | 106 + test/model/StoreUnpublishedEvent.spec.js | 106 + test/model/StoreUpdatedEvent.spec.js | 123 +- test/model/StripeAccountLinkRequest.spec.js | 70 + test/model/StripeConnectedAccount.spec.js | 82 + test/model/StripeConnectedAccountInfo.spec.js | 64 + test/model/StripeTerminalPrivateKey.spec.js | 58 + test/model/StuartSettings.spec.js | 100 + .../StuartSettingsTransportPrices.spec.js | 88 + test/model/SupportedCountry.spec.js | 106 + test/model/Teammate.spec.js | 100 + test/model/TeammateBase.spec.js | 64 + test/model/TeammateDeletedEvent.spec.js | 88 + .../model/TeammateInviteAcceptedEvent.spec.js | 88 + test/model/TeammateInviteSentEvent.spec.js | 88 + test/model/TeammateUpdatedEvent.spec.js | 88 + .../UpdateDriverNotificationToken.spec.js | 52 + test/model/UpdateDriverProfileModel.spec.js | 52 + .../UserAnsweredSignupQuestionsEvent.spec.js | 88 + test/model/UserCreatedEvent.spec.js | 88 + test/model/UserDeletedEvent.spec.js | 88 + test/model/UserEventInfo.spec.js | 77 +- test/model/UserLoginEvent.spec.js | 88 + test/model/UserPasswordCreatedEvent.spec.js | 88 + test/model/UserUpdatedEvent.spec.js | 88 + test/model/ValidationErrorResult.spec.js | 63 +- test/model/Voucher.spec.js | 339 +- test/model/VoucherBase.spec.js | 142 + test/model/VoucherCreatedEvent.spec.js | 100 + test/model/VoucherDataPoint.spec.js | 64 + test/model/VoucherDeletedEvent.spec.js | 100 + test/model/VoucherSummary.spec.js | 101 +- test/model/VoucherUpdatedEvent.spec.js | 100 + test/model/VoucherWithStats.spec.js | 238 + test/model/WebhookEventSample.spec.js | 64 + test/model/WebhookLog.spec.js | 219 +- test/model/WebhookSubscription.spec.js | 107 +- .../WebhookSubscriptionCreatedEvent.spec.js | 91 +- .../WebhookSubscriptionDeletedEvent.spec.js | 91 +- .../WebhookSubscriptionEventInfo.spec.js | 77 +- .../WebhookSubscriptionUpdatedEvent.spec.js | 91 +- test/model/WebsiteImage.spec.js | 64 + test/model/WebsiteTestimonial.spec.js | 64 + test/model/WebsiteTestimonialBase.spec.js | 58 + test/model/WebsiteUpdatedEvent.spec.js | 94 + .../WebsiteVanityUrlUpdatedEvent.spec.js | 94 + 1471 files changed, 249461 insertions(+), 12729 deletions(-) delete mode 100644 circle.yml create mode 100644 docs/AccountDetail.md create mode 100644 docs/AccountDetailBase.md create mode 100644 docs/AccountFieldDefinition.md create mode 100644 docs/AccountFieldKeyValuePair.md create mode 100644 docs/AccountFieldsDefinitions.md create mode 100644 docs/AccountsApi.md create mode 100644 docs/AddItemDetails.md create mode 100644 docs/AllMetadataResult.md create mode 100644 docs/AnalyticsClientEvent.md create mode 100644 docs/ApmApi.md create mode 100644 docs/ApmCurrencyDataPoint.md create mode 100644 docs/ApmDataPoint.md create mode 100644 docs/ApmHourlyDataPoint.md create mode 100644 docs/ApmStatistics.md create mode 100644 docs/ApmStatus.md create mode 100644 docs/App.md create mode 100644 docs/AppCompliance.md create mode 100644 docs/AppConfigUpdateModel.md create mode 100644 docs/AppCreatedEvent.md create mode 100644 docs/AppUpdatedEvent.md create mode 100644 docs/AppsApi.md create mode 100644 docs/AssignedBankAccount.md create mode 100644 docs/BalanceDetails.md create mode 100644 docs/BankAccount.md create mode 100644 docs/BankAccountApi.md create mode 100644 docs/BankAccountCreate.md create mode 100644 docs/BankAccountCreatedEvent.md create mode 100644 docs/BankAccountDeletedEvent.md create mode 100644 docs/BankAccountDetail.md create mode 100644 docs/BankAccountDetailsUpdateRequest.md create mode 100644 docs/BankAccountSummary.md create mode 100644 docs/BankAccountUpdatedEvent.md create mode 100644 docs/BluetoothTerminalStatus.md create mode 100644 docs/BusinessHoursOverride.md create mode 100644 docs/BusinessHoursOverrideBase.md create mode 100644 docs/BusinessHoursPeriodBase.md delete mode 100644 docs/CampaignCreatedEvent.md create mode 100644 docs/CampaignStatistics.md create mode 100644 docs/CampaignsApi.md create mode 100644 docs/CardReadersApi.md create mode 100644 docs/CertificateCreatedEvent.md create mode 100644 docs/CertificateRenewedEvent.md create mode 100644 docs/ChangePasswordModel.md create mode 100644 docs/ChargebackDetails.md create mode 100644 docs/ContentSecurityPolicyApi.md create mode 100644 docs/CountryWithAccountFieldsDefinitions.md create mode 100644 docs/CreateAccountModel.md create mode 100644 docs/CreateFullMenu.md create mode 100644 docs/CreateFullMenuItemOptionSet.md create mode 100644 docs/CreateFullMenuItemOptionSetItem.md create mode 100644 docs/CreateFullMenuSection.md create mode 100644 docs/CreateFullMenuSectionItem.md create mode 100644 docs/CreateMenuTaxRate.md create mode 100644 docs/CreateMetadata.md create mode 100644 docs/CreateTeammate.md create mode 100644 docs/CreateVoucher.md rename docs/{RestApiResultVoucher.md => CreditNoteDetails.md} (51%) create mode 100644 docs/CspReport.md create mode 100644 docs/CspReportRequest.md create mode 100644 docs/CurrencyData.md create mode 100644 docs/Customer.md create mode 100644 docs/CustomerDeliveryTrackingOrder.md create mode 100644 docs/CustomerDeliveryTrackingOrderLine.md create mode 100644 docs/CustomerUpdateModel.md create mode 100644 docs/CustomersApi.md delete mode 100644 docs/DeliveryFeeArea.md create mode 100644 docs/DeliveryTrackingApi.md create mode 100644 docs/DeliveryZone.md create mode 100644 docs/DeliveryZoneApi.md create mode 100644 docs/DeliveryZoneBase.md create mode 100644 docs/DeliveryZoneCreatedEvent.md create mode 100644 docs/DeliveryZoneDeletedEvent.md create mode 100644 docs/DeliveryZoneUpdatedEvent.md create mode 100644 docs/DeviceSettings.md create mode 100644 docs/DnsRecordInformation.md create mode 100644 docs/DnsVerifiedEvent.md create mode 100644 docs/Driver.md create mode 100644 docs/DriverInvitation.md create mode 100644 docs/DriverLoginModel.md create mode 100644 docs/DriverRequestLoginPinModel.md create mode 100644 docs/DriverStore.md create mode 100644 docs/DriversApi.md create mode 100644 docs/EmvNotificationEvent.md create mode 100644 docs/EmvTerminal.md create mode 100644 docs/EmvTerminalWithAssignments.md create mode 100644 docs/FilesApi.md create mode 100644 docs/FlipdishEventBase.md create mode 100644 docs/FlipdishFeesDetails.md create mode 100644 docs/GroupedCoordinates.md create mode 100644 docs/HeartbeatApi.md create mode 100644 docs/HomeAction.md create mode 100644 docs/HomeApi.md create mode 100644 docs/HomeStatistics.md create mode 100644 docs/HydraApi.md create mode 100644 docs/HydraAssignedEvent.md create mode 100644 docs/HydraConfig.md create mode 100644 docs/HydraConnectionStatusChangedEvent.md create mode 100644 docs/HydraDeviceDetails.md create mode 100644 docs/HydraRegistrationRequest.md create mode 100644 docs/HydraRequestResetEvent.md create mode 100644 docs/HydraSettingChangedEvent.md create mode 100644 docs/HydraStatus.md create mode 100644 docs/HydraStoreAssignedEvent.md create mode 100644 docs/HydraStoreData.md create mode 100644 docs/HydraStoreUnassignedEvent.md create mode 100644 docs/HydraUnAssignedEvent.md create mode 100644 docs/IndexPage.md create mode 100644 docs/IndexPageBase.md create mode 100644 docs/JobAddress.md create mode 100644 docs/JobCancellation.md create mode 100644 docs/JobContact.md create mode 100644 docs/JobDelivery.md create mode 100644 docs/JobDeliveryDetail.md create mode 100644 docs/JobDriver.md create mode 100644 docs/JobEta.md create mode 100644 docs/JobPricing.md create mode 100644 docs/JobProof.md create mode 100644 docs/JobResponse.md create mode 100644 docs/KioskBluetoothInstallUpdateInitiateEvent.md create mode 100644 docs/KioskBluetoothPairingModeEvent.md create mode 100644 docs/KioskBluetoothTerminalInitiateUpdateCheckEvent.md create mode 100644 docs/KioskBluetoothTerminalUpdatedEvent.md create mode 100644 docs/KioskBluetoothUnpairingModeEvent.md create mode 100644 docs/Language.md create mode 100644 docs/LightspeedApi.md create mode 100644 docs/LightspeedSettings.md create mode 100644 docs/LocalisedTimeZone.md create mode 100644 docs/LoginModel.md create mode 100644 docs/LoginWithPinModel.md create mode 100644 docs/LoyaltyCampaign.md create mode 100644 docs/LoyaltyCampaignBase.md create mode 100644 docs/LoyaltyCampaignCreatedEvent.md create mode 100644 docs/LoyaltyCampaignDeletedEvent.md create mode 100644 docs/LoyaltyCampaignUpdatedEvent.md create mode 100644 docs/LumpDiscountDetails.md create mode 100644 docs/MaskedPhoneNumber.md create mode 100644 docs/MenuCheckpoint.md create mode 100644 docs/MenuCheckpointCreatedEvent.md create mode 100644 docs/MenuElementEditResponse.md create mode 100644 docs/MenuElementHide.md create mode 100644 docs/MenuItemOptionSetCreatedEvent.md create mode 100644 docs/MenuItemOptionSetDeletedEvent.md create mode 100644 docs/MenuItemOptionSetItemCreatedEvent.md create mode 100644 docs/MenuItemOptionSetItemDeletedEvent.md create mode 100644 docs/MenuItemOptionSetItemUpdatedEvent.md create mode 100644 docs/MenuItemOptionSetUpdatedEvent.md create mode 100644 docs/MenuObjectDisplayOrders.md create mode 100644 docs/MenuSectionAvailabilityBase.md create mode 100644 docs/MenuSectionCreatedEvent.md create mode 100644 docs/MenuSectionDeletedEvent.md create mode 100644 docs/MenuSectionItemCreatedEvent.md create mode 100644 docs/MenuSectionItemDeletedEvent.md create mode 100644 docs/MenuSectionItemUpdatedEvent.md create mode 100644 docs/MenuSectionUpdatedEvent.md create mode 100644 docs/MenuStoreNames.md create mode 100644 docs/MenuSummary.md create mode 100644 docs/MenuTaxDetails.md create mode 100644 docs/MenuTaxRate.md create mode 100644 docs/MenuUploadedEvent.md create mode 100644 docs/OAuthApp.md delete mode 100644 docs/OAuthClient.md create mode 100644 docs/ObjectDisplayOrder.md create mode 100644 docs/OrderCapacityConfigUpdatedEvent.md create mode 100644 docs/OrderCustomerTrackingCreatedEvent.md create mode 100644 docs/OrderDeliveryTrackingStatusUpdatedEvent.md create mode 100644 docs/OrderDispatchedEvent.md create mode 100644 docs/OrderIdAndSequenceNumber.md create mode 100644 docs/OrderPaymentInformation.md create mode 100644 docs/OrderSummary.md create mode 100644 docs/OrderVoucherSummary.md create mode 100644 docs/OtherChargesDetails.md create mode 100644 docs/PasswordResetModel.md create mode 100644 docs/PaymentTerminalDetails.md create mode 100644 docs/PaymentTerminalTransactionDetails.md create mode 100644 docs/PaymentsApi.md create mode 100644 docs/Payout.md create mode 100644 docs/PayoutChargeback.md create mode 100644 docs/PayoutDetail.md create mode 100644 docs/PayoutOrder.md create mode 100644 docs/PayoutOtherCharge.md create mode 100644 docs/PayoutRefund.md create mode 100644 docs/PayoutStore.md create mode 100644 docs/PayoutSummary.md create mode 100644 docs/PayoutsApi.md create mode 100644 docs/PercentDiscountDetails.md create mode 100644 docs/PhoneCall.md create mode 100644 docs/PhoneCallEndedEvent.md create mode 100644 docs/PhoneCallStartedEvent.md create mode 100644 docs/PreOrderConfig.md create mode 100644 docs/PreOrderTime.md create mode 100644 docs/PredefinedAnswer.md create mode 100644 docs/Printer.md create mode 100644 docs/PrinterAssignedToStoreEvent.md create mode 100644 docs/PrinterTurnedOffEvent.md create mode 100644 docs/PrinterTurnedOnEvent.md create mode 100644 docs/PrinterUnassignedFromStoreEvent.md create mode 100644 docs/ProcessingFeeConfig.md create mode 100644 docs/ProcessingFeeConfigsApi.md create mode 100644 docs/PushNotificationDeletedEvent.md create mode 100644 docs/PushNotificationRequest.md create mode 100644 docs/PushNotificationResponse.md create mode 100644 docs/PushNotificationScheduledEvent.md create mode 100644 docs/PushNotificationSentEvent.md create mode 100644 docs/PushNotificationsApi.md create mode 100644 docs/RedeemInvitationResult.md create mode 100644 docs/RequestLoginPinModel.md create mode 100644 docs/RequestLoginPinResposne.md create mode 100644 docs/RequestPasswordResetModel.md create mode 100644 docs/RestApiArrayResultAllMetadataResult.md create mode 100644 docs/RestApiArrayResultApmCurrencyDataPoint.md create mode 100644 docs/RestApiArrayResultApmDataPoint.md create mode 100644 docs/RestApiArrayResultApmHourlyDataPoint.md create mode 100644 docs/RestApiArrayResultBankAccountSummary.md create mode 100644 docs/RestApiArrayResultBusinessHoursPeriod.md create mode 100644 docs/RestApiArrayResultCountryWithAccountFieldsDefinitions.md create mode 100644 docs/RestApiArrayResultDeliveryZone.md create mode 100644 docs/RestApiArrayResultDriver.md create mode 100644 docs/RestApiArrayResultDriverStore.md create mode 100644 docs/RestApiArrayResultEmvTerminalWithAssignments.md create mode 100644 docs/RestApiArrayResultHomeAction.md create mode 100644 docs/RestApiArrayResultLocalisedTimeZone.md create mode 100644 docs/RestApiArrayResultLoyaltyCampaign.md create mode 100644 docs/RestApiArrayResultMenuCheckpoint.md create mode 100644 docs/RestApiArrayResultMenuElementEditResponse.md create mode 100644 docs/RestApiArrayResultMenuStoreNames.md create mode 100644 docs/RestApiArrayResultMenuSummary.md create mode 100644 docs/RestApiArrayResultMenuTaxDetails.md create mode 100644 docs/RestApiArrayResultOAuthApp.md delete mode 100644 docs/RestApiArrayResultOAuthClient.md create mode 100644 docs/RestApiArrayResultPayoutSummary.md create mode 100644 docs/RestApiArrayResultPreOrderTime.md create mode 100644 docs/RestApiArrayResultProcessingFeeConfig.md create mode 100644 docs/RestApiArrayResultRetentionCampaign.md create mode 100644 docs/RestApiArrayResultStoreListItem.md create mode 100644 docs/RestApiArrayResultStoreStatistics.md create mode 100644 docs/RestApiArrayResultSupportedCountry.md create mode 100644 docs/RestApiArrayResultTeammate.md create mode 100644 docs/RestApiArrayResultVoucherDataPoint.md delete mode 100644 docs/RestApiArrayResultWebhookSubscription.md create mode 100644 docs/RestApiPaginationResultApp.md create mode 100644 docs/RestApiPaginationResultBusinessHoursOverride.md create mode 100644 docs/RestApiPaginationResultHydraDeviceDetails.md create mode 100644 docs/RestApiPaginationResultOrderSummary.md create mode 100644 docs/RestApiPaginationResultPayout.md create mode 100644 docs/RestApiPaginationResultPayoutChargeback.md create mode 100644 docs/RestApiPaginationResultPayoutOrder.md create mode 100644 docs/RestApiPaginationResultPayoutOtherCharge.md create mode 100644 docs/RestApiPaginationResultPayoutRefund.md create mode 100644 docs/RestApiPaginationResultPhoneCall.md create mode 100644 docs/RestApiPaginationResultPushNotificationResponse.md create mode 100644 docs/RestApiPaginationResultStoreGroup.md create mode 100644 docs/RestApiPaginationResultStoreGroupExtended.md create mode 100644 docs/RestApiPaginationResultStoreHeader.md delete mode 100644 docs/RestApiPaginationResultVoucher.md create mode 100644 docs/RestApiPaginationResultVoucherSummary.md create mode 100644 docs/RestApiPaginationResultWebhookSubscription.md create mode 100644 docs/RestApiResultAccountDetail.md create mode 100644 docs/RestApiResultAccountFieldsDefinitions.md create mode 100644 docs/RestApiResultApmStatistics.md create mode 100644 docs/RestApiResultApmStatus.md create mode 100644 docs/RestApiResultApp.md create mode 100644 docs/RestApiResultAppCompliance.md create mode 100644 docs/RestApiResultAssignedBankAccount.md create mode 100644 docs/RestApiResultBankAccountDetail.md create mode 100644 docs/RestApiResultBluetoothTerminalStatus.md create mode 100644 docs/RestApiResultBusinessHoursOverride.md create mode 100644 docs/RestApiResultBusinessHoursPeriod.md create mode 100644 docs/RestApiResultCoordinates.md create mode 100644 docs/RestApiResultCustomer.md create mode 100644 docs/RestApiResultDeliveryZone.md create mode 100644 docs/RestApiResultDnsRecordInformation.md create mode 100644 docs/RestApiResultDriver.md create mode 100644 docs/RestApiResultHomeStatistics.md create mode 100644 docs/RestApiResultHydraConfig.md create mode 100644 docs/RestApiResultHydraStatus.md create mode 100644 docs/RestApiResultIndexPage.md create mode 100644 docs/RestApiResultIndexPageBase.md create mode 100644 docs/RestApiResultJobResponse.md create mode 100644 docs/RestApiResultLightspeedSettings.md create mode 100644 docs/RestApiResultLoyaltyCampaign.md create mode 100644 docs/RestApiResultMenuSectionAvailability.md create mode 100644 docs/RestApiResultOAuthApp.md delete mode 100644 docs/RestApiResultOAuthClient.md create mode 100644 docs/RestApiResultOrderPaymentInformation.md create mode 100644 docs/RestApiResultPaymentTerminalDetails.md create mode 100644 docs/RestApiResultPaymentTerminalTransactionDetails.md create mode 100644 docs/RestApiResultPreOrderConfig.md create mode 100644 docs/RestApiResultProcessingFeeConfig.md create mode 100644 docs/RestApiResultPushNotificationResponse.md create mode 100644 docs/RestApiResultRedeemInvitationResult.md create mode 100644 docs/RestApiResultRetentionCampaign.md create mode 100644 docs/RestApiResultStoreAddress.md create mode 100644 docs/RestApiResultStoreEndOfDayReport.md create mode 100644 docs/RestApiResultStoreGroup.md create mode 100644 docs/RestApiResultStoreGroupBase.md create mode 100644 docs/RestApiResultStoreOrderCapacityConfig.md create mode 100644 docs/RestApiResultStripeConnectedAccount.md create mode 100644 docs/RestApiResultStripeTerminalPrivateKey.md create mode 100644 docs/RestApiResultStuartSettings.md create mode 100644 docs/RestApiResultTeammate.md create mode 100644 docs/RestApiResultVoucherWithStats.md create mode 100644 docs/RestApiResultWebsiteImage.md create mode 100644 docs/RestApiResultWebsiteTestimonial.md create mode 100644 docs/RetentionCampaign.md create mode 100644 docs/RetentionCampaignBase.md create mode 100644 docs/RetentionCampaignCreatedEvent.md create mode 100644 docs/RetentionCampaignDeletedEvent.md create mode 100644 docs/RetentionCampaignUpdatedEvent.md create mode 100644 docs/RevenueAdjustmentsDetails.md create mode 100644 docs/RevenueDetail.md create mode 100644 docs/SetPasswordWithPinModel.md create mode 100644 docs/SignupStep.md create mode 100644 docs/SmsInfo.md create mode 100644 docs/SmsReceivedEvent.md create mode 100644 docs/StatisticsCurrencyDataPoint.md create mode 100644 docs/StoreAddressBase.md create mode 100644 docs/StoreAddressUpdatedEvent.md create mode 100644 docs/StoreArchivedEvent.md create mode 100644 docs/StoreBase.md create mode 100644 docs/StoreBusinessHoursOverrideCreatedEvent.md create mode 100644 docs/StoreBusinessHoursOverrideDeletedEvent.md create mode 100644 docs/StoreCampaignStartTime.md create mode 100644 docs/StoreCloneSettings.md create mode 100644 docs/StoreCreateBase.md create mode 100644 docs/StoreDataPoint.md delete mode 100644 docs/StoreDeliveryZoneUpdatedEvent.md create mode 100644 docs/StoreEndOfDayReport.md create mode 100644 docs/StoreGroup.md create mode 100644 docs/StoreGroupBase.md create mode 100644 docs/StoreGroupCreatedEvent.md create mode 100644 docs/StoreGroupDeletedEvent.md create mode 100644 docs/StoreGroupExtended.md create mode 100644 docs/StoreGroupUpdatedEvent.md create mode 100644 docs/StoreGroupsApi.md create mode 100644 docs/StoreHeader.md create mode 100644 docs/StoreKioskSetting.md create mode 100644 docs/StoreKioskSettingUpdatedEvent.md create mode 100644 docs/StoreListItem.md create mode 100644 docs/StoreLogoCreatedEvent.md create mode 100644 docs/StoreLogoDeletedEvent.md create mode 100644 docs/StoreLogoUpdatedEvent.md create mode 100644 docs/StoreMenuAssignedEvent.md create mode 100644 docs/StoreOrderCapacityApi.md create mode 100644 docs/StoreOrderCapacityConfig.md create mode 100644 docs/StoreOrderCapacityConfigEditModel.md create mode 100644 docs/StoreOrderCapacityPeriod.md create mode 100644 docs/StorePreOrderConfigUpdatedEvent.md create mode 100644 docs/StorePublishedEvent.md create mode 100644 docs/StoreStatistics.md create mode 100644 docs/StoreUnarchivedEvent.md create mode 100644 docs/StoreUnpublishedEvent.md create mode 100644 docs/StripeAccountLinkRequest.md create mode 100644 docs/StripeConnectedAccount.md create mode 100644 docs/StripeConnectedAccountInfo.md create mode 100644 docs/StripeCustomConnectApi.md create mode 100644 docs/StripeTerminalPrivateKey.md create mode 100644 docs/StuartApi.md create mode 100644 docs/StuartSettings.md create mode 100644 docs/StuartSettingsTransportPrices.md create mode 100644 docs/SupportedCountry.md create mode 100644 docs/Teammate.md create mode 100644 docs/TeammateBase.md create mode 100644 docs/TeammateDeletedEvent.md create mode 100644 docs/TeammateInviteAcceptedEvent.md create mode 100644 docs/TeammateInviteSentEvent.md create mode 100644 docs/TeammateUpdatedEvent.md create mode 100644 docs/TeammatesApi.md create mode 100644 docs/UpdateDriverNotificationToken.md create mode 100644 docs/UpdateDriverProfileModel.md create mode 100644 docs/UserAnsweredSignupQuestionsEvent.md create mode 100644 docs/UserCreatedEvent.md create mode 100644 docs/UserDeletedEvent.md create mode 100644 docs/UserLoginEvent.md create mode 100644 docs/UserPasswordCreatedEvent.md create mode 100644 docs/UserUpdatedEvent.md create mode 100644 docs/VoucherBase.md create mode 100644 docs/VoucherCreatedEvent.md create mode 100644 docs/VoucherDataPoint.md create mode 100644 docs/VoucherDeletedEvent.md create mode 100644 docs/VoucherUpdatedEvent.md create mode 100644 docs/VoucherWithStats.md create mode 100644 docs/WebhookEventSample.md create mode 100644 docs/WebsiteApi.md create mode 100644 docs/WebsiteImage.md create mode 100644 docs/WebsiteTestimonial.md create mode 100644 docs/WebsiteTestimonialBase.md create mode 100644 docs/WebsiteUpdatedEvent.md create mode 100644 docs/WebsiteVanityUrlUpdatedEvent.md delete mode 100644 git_push.sh create mode 100644 src/api/AccountsApi.js create mode 100644 src/api/ApmApi.js create mode 100644 src/api/AppsApi.js create mode 100644 src/api/BankAccountApi.js create mode 100644 src/api/CampaignsApi.js create mode 100644 src/api/CardReadersApi.js create mode 100644 src/api/ContentSecurityPolicyApi.js create mode 100644 src/api/CustomersApi.js create mode 100644 src/api/DeliveryTrackingApi.js create mode 100644 src/api/DeliveryZoneApi.js create mode 100644 src/api/DriversApi.js create mode 100644 src/api/FilesApi.js create mode 100644 src/api/HeartbeatApi.js create mode 100644 src/api/HomeApi.js create mode 100644 src/api/HydraApi.js create mode 100644 src/api/LightspeedApi.js create mode 100644 src/api/PaymentsApi.js create mode 100644 src/api/PayoutsApi.js create mode 100644 src/api/ProcessingFeeConfigsApi.js create mode 100644 src/api/PushNotificationsApi.js create mode 100644 src/api/StoreGroupsApi.js create mode 100644 src/api/StoreOrderCapacityApi.js create mode 100644 src/api/StripeCustomConnectApi.js create mode 100644 src/api/StuartApi.js create mode 100644 src/api/TeammatesApi.js create mode 100644 src/api/WebsiteApi.js create mode 100644 src/model/AccountDetail.js create mode 100644 src/model/AccountDetailBase.js create mode 100644 src/model/AccountFieldDefinition.js create mode 100644 src/model/AccountFieldKeyValuePair.js create mode 100644 src/model/AccountFieldsDefinitions.js create mode 100644 src/model/AddItemDetails.js create mode 100644 src/model/AllMetadataResult.js create mode 100644 src/model/AnalyticsClientEvent.js create mode 100644 src/model/ApmCurrencyDataPoint.js create mode 100644 src/model/ApmDataPoint.js create mode 100644 src/model/ApmHourlyDataPoint.js create mode 100644 src/model/ApmStatistics.js create mode 100644 src/model/ApmStatus.js create mode 100644 src/model/App.js create mode 100644 src/model/AppCompliance.js create mode 100644 src/model/AppConfigUpdateModel.js create mode 100644 src/model/AppCreatedEvent.js create mode 100644 src/model/AppUpdatedEvent.js create mode 100644 src/model/AssignedBankAccount.js create mode 100644 src/model/BalanceDetails.js create mode 100644 src/model/BankAccount.js create mode 100644 src/model/BankAccountCreate.js create mode 100644 src/model/BankAccountCreatedEvent.js create mode 100644 src/model/BankAccountDeletedEvent.js create mode 100644 src/model/BankAccountDetail.js create mode 100644 src/model/BankAccountDetailsUpdateRequest.js create mode 100644 src/model/BankAccountSummary.js create mode 100644 src/model/BankAccountUpdatedEvent.js create mode 100644 src/model/BluetoothTerminalStatus.js create mode 100644 src/model/BusinessHoursOverride.js create mode 100644 src/model/BusinessHoursOverrideBase.js create mode 100644 src/model/BusinessHoursPeriodBase.js delete mode 100644 src/model/CampaignCreatedEvent.js create mode 100644 src/model/CampaignStatistics.js create mode 100644 src/model/CertificateCreatedEvent.js create mode 100644 src/model/CertificateRenewedEvent.js create mode 100644 src/model/ChangePasswordModel.js create mode 100644 src/model/ChargebackDetails.js create mode 100644 src/model/CountryWithAccountFieldsDefinitions.js create mode 100644 src/model/CreateAccountModel.js create mode 100644 src/model/CreateFullMenu.js create mode 100644 src/model/CreateFullMenuItemOptionSet.js create mode 100644 src/model/CreateFullMenuItemOptionSetItem.js create mode 100644 src/model/CreateFullMenuSection.js create mode 100644 src/model/CreateFullMenuSectionItem.js create mode 100644 src/model/CreateMenuTaxRate.js create mode 100644 src/model/CreateMetadata.js create mode 100644 src/model/CreateTeammate.js create mode 100644 src/model/CreateVoucher.js create mode 100644 src/model/CreditNoteDetails.js create mode 100644 src/model/CspReport.js create mode 100644 src/model/CspReportRequest.js create mode 100644 src/model/CurrencyData.js create mode 100644 src/model/Customer.js create mode 100644 src/model/CustomerDeliveryTrackingOrder.js create mode 100644 src/model/CustomerDeliveryTrackingOrderLine.js create mode 100644 src/model/CustomerUpdateModel.js create mode 100644 src/model/DeliveryZone.js create mode 100644 src/model/DeliveryZoneBase.js create mode 100644 src/model/DeliveryZoneCreatedEvent.js create mode 100644 src/model/DeliveryZoneDeletedEvent.js create mode 100644 src/model/DeliveryZoneUpdatedEvent.js create mode 100644 src/model/DeviceSettings.js create mode 100644 src/model/DnsRecordInformation.js create mode 100644 src/model/DnsVerifiedEvent.js create mode 100644 src/model/Driver.js create mode 100644 src/model/DriverInvitation.js create mode 100644 src/model/DriverLoginModel.js create mode 100644 src/model/DriverRequestLoginPinModel.js create mode 100644 src/model/DriverStore.js create mode 100644 src/model/EmvNotificationEvent.js create mode 100644 src/model/EmvTerminal.js create mode 100644 src/model/EmvTerminalWithAssignments.js create mode 100644 src/model/FlipdishEventBase.js create mode 100644 src/model/FlipdishFeesDetails.js create mode 100644 src/model/GroupedCoordinates.js create mode 100644 src/model/HomeAction.js create mode 100644 src/model/HomeStatistics.js create mode 100644 src/model/HydraAssignedEvent.js create mode 100644 src/model/HydraConfig.js create mode 100644 src/model/HydraConnectionStatusChangedEvent.js create mode 100644 src/model/HydraDeviceDetails.js create mode 100644 src/model/HydraRegistrationRequest.js create mode 100644 src/model/HydraRequestResetEvent.js create mode 100644 src/model/HydraSettingChangedEvent.js create mode 100644 src/model/HydraStatus.js create mode 100644 src/model/HydraStoreAssignedEvent.js create mode 100644 src/model/HydraStoreData.js create mode 100644 src/model/HydraStoreUnassignedEvent.js create mode 100644 src/model/HydraUnAssignedEvent.js create mode 100644 src/model/IndexPage.js create mode 100644 src/model/IndexPageBase.js create mode 100644 src/model/JobAddress.js rename src/model/{DeliveryFeeArea.js => JobCancellation.js} (55%) create mode 100644 src/model/JobContact.js create mode 100644 src/model/JobDelivery.js create mode 100644 src/model/JobDeliveryDetail.js create mode 100644 src/model/JobDriver.js create mode 100644 src/model/JobEta.js create mode 100644 src/model/JobPricing.js create mode 100644 src/model/JobProof.js create mode 100644 src/model/JobResponse.js create mode 100644 src/model/KioskBluetoothInstallUpdateInitiateEvent.js create mode 100644 src/model/KioskBluetoothPairingModeEvent.js create mode 100644 src/model/KioskBluetoothTerminalInitiateUpdateCheckEvent.js create mode 100644 src/model/KioskBluetoothTerminalUpdatedEvent.js create mode 100644 src/model/KioskBluetoothUnpairingModeEvent.js create mode 100644 src/model/Language.js create mode 100644 src/model/LightspeedSettings.js create mode 100644 src/model/LocalisedTimeZone.js create mode 100644 src/model/LoginModel.js create mode 100644 src/model/LoginWithPinModel.js create mode 100644 src/model/LoyaltyCampaign.js create mode 100644 src/model/LoyaltyCampaignBase.js create mode 100644 src/model/LoyaltyCampaignCreatedEvent.js create mode 100644 src/model/LoyaltyCampaignDeletedEvent.js create mode 100644 src/model/LoyaltyCampaignUpdatedEvent.js create mode 100644 src/model/LumpDiscountDetails.js create mode 100644 src/model/MaskedPhoneNumber.js create mode 100644 src/model/MenuCheckpoint.js create mode 100644 src/model/MenuCheckpointCreatedEvent.js create mode 100644 src/model/MenuElementEditResponse.js create mode 100644 src/model/MenuElementHide.js create mode 100644 src/model/MenuItemOptionSetCreatedEvent.js create mode 100644 src/model/MenuItemOptionSetDeletedEvent.js create mode 100644 src/model/MenuItemOptionSetItemCreatedEvent.js create mode 100644 src/model/MenuItemOptionSetItemDeletedEvent.js create mode 100644 src/model/MenuItemOptionSetItemUpdatedEvent.js create mode 100644 src/model/MenuItemOptionSetUpdatedEvent.js create mode 100644 src/model/MenuObjectDisplayOrders.js create mode 100644 src/model/MenuSectionAvailabilityBase.js create mode 100644 src/model/MenuSectionCreatedEvent.js create mode 100644 src/model/MenuSectionDeletedEvent.js create mode 100644 src/model/MenuSectionItemCreatedEvent.js create mode 100644 src/model/MenuSectionItemDeletedEvent.js create mode 100644 src/model/MenuSectionItemUpdatedEvent.js create mode 100644 src/model/MenuSectionUpdatedEvent.js create mode 100644 src/model/MenuStoreNames.js create mode 100644 src/model/MenuSummary.js create mode 100644 src/model/MenuTaxDetails.js create mode 100644 src/model/MenuTaxRate.js create mode 100644 src/model/MenuUploadedEvent.js create mode 100644 src/model/OAuthApp.js delete mode 100644 src/model/OAuthClient.js create mode 100644 src/model/ObjectDisplayOrder.js create mode 100644 src/model/OrderCapacityConfigUpdatedEvent.js create mode 100644 src/model/OrderCustomerTrackingCreatedEvent.js create mode 100644 src/model/OrderDeliveryTrackingStatusUpdatedEvent.js create mode 100644 src/model/OrderDispatchedEvent.js create mode 100644 src/model/OrderIdAndSequenceNumber.js create mode 100644 src/model/OrderPaymentInformation.js create mode 100644 src/model/OrderSummary.js create mode 100644 src/model/OrderVoucherSummary.js create mode 100644 src/model/OtherChargesDetails.js create mode 100644 src/model/PasswordResetModel.js create mode 100644 src/model/PaymentTerminalDetails.js create mode 100644 src/model/PaymentTerminalTransactionDetails.js create mode 100644 src/model/Payout.js create mode 100644 src/model/PayoutChargeback.js create mode 100644 src/model/PayoutDetail.js create mode 100644 src/model/PayoutOrder.js create mode 100644 src/model/PayoutOtherCharge.js create mode 100644 src/model/PayoutRefund.js create mode 100644 src/model/PayoutStore.js create mode 100644 src/model/PayoutSummary.js create mode 100644 src/model/PercentDiscountDetails.js create mode 100644 src/model/PhoneCall.js create mode 100644 src/model/PhoneCallEndedEvent.js create mode 100644 src/model/PhoneCallStartedEvent.js create mode 100644 src/model/PreOrderConfig.js create mode 100644 src/model/PreOrderTime.js create mode 100644 src/model/PredefinedAnswer.js create mode 100644 src/model/Printer.js create mode 100644 src/model/PrinterAssignedToStoreEvent.js create mode 100644 src/model/PrinterTurnedOffEvent.js create mode 100644 src/model/PrinterTurnedOnEvent.js create mode 100644 src/model/PrinterUnassignedFromStoreEvent.js create mode 100644 src/model/ProcessingFeeConfig.js create mode 100644 src/model/PushNotificationDeletedEvent.js create mode 100644 src/model/PushNotificationRequest.js create mode 100644 src/model/PushNotificationResponse.js create mode 100644 src/model/PushNotificationScheduledEvent.js create mode 100644 src/model/PushNotificationSentEvent.js create mode 100644 src/model/RedeemInvitationResult.js create mode 100644 src/model/RequestLoginPinModel.js create mode 100644 src/model/RequestLoginPinResposne.js create mode 100644 src/model/RequestPasswordResetModel.js create mode 100644 src/model/RestApiArrayResultAllMetadataResult.js create mode 100644 src/model/RestApiArrayResultApmCurrencyDataPoint.js create mode 100644 src/model/RestApiArrayResultApmDataPoint.js create mode 100644 src/model/RestApiArrayResultApmHourlyDataPoint.js create mode 100644 src/model/RestApiArrayResultBankAccountSummary.js rename src/model/{RestApiArrayResultWebhookSubscription.js => RestApiArrayResultBusinessHoursPeriod.js} (54%) create mode 100644 src/model/RestApiArrayResultCountryWithAccountFieldsDefinitions.js create mode 100644 src/model/RestApiArrayResultDeliveryZone.js create mode 100644 src/model/RestApiArrayResultDriver.js rename src/model/{RestApiArrayResultOAuthClient.js => RestApiArrayResultDriverStore.js} (56%) create mode 100644 src/model/RestApiArrayResultEmvTerminalWithAssignments.js create mode 100644 src/model/RestApiArrayResultHomeAction.js create mode 100644 src/model/RestApiArrayResultLocalisedTimeZone.js create mode 100644 src/model/RestApiArrayResultLoyaltyCampaign.js create mode 100644 src/model/RestApiArrayResultMenuCheckpoint.js create mode 100644 src/model/RestApiArrayResultMenuElementEditResponse.js create mode 100644 src/model/RestApiArrayResultMenuStoreNames.js create mode 100644 src/model/RestApiArrayResultMenuSummary.js create mode 100644 src/model/RestApiArrayResultMenuTaxDetails.js create mode 100644 src/model/RestApiArrayResultOAuthApp.js create mode 100644 src/model/RestApiArrayResultPayoutSummary.js create mode 100644 src/model/RestApiArrayResultPreOrderTime.js create mode 100644 src/model/RestApiArrayResultProcessingFeeConfig.js create mode 100644 src/model/RestApiArrayResultRetentionCampaign.js create mode 100644 src/model/RestApiArrayResultStoreListItem.js create mode 100644 src/model/RestApiArrayResultStoreStatistics.js create mode 100644 src/model/RestApiArrayResultSupportedCountry.js create mode 100644 src/model/RestApiArrayResultTeammate.js create mode 100644 src/model/RestApiArrayResultVoucherDataPoint.js create mode 100644 src/model/RestApiPaginationResultApp.js create mode 100644 src/model/RestApiPaginationResultBusinessHoursOverride.js create mode 100644 src/model/RestApiPaginationResultHydraDeviceDetails.js create mode 100644 src/model/RestApiPaginationResultOrderSummary.js create mode 100644 src/model/RestApiPaginationResultPayout.js create mode 100644 src/model/RestApiPaginationResultPayoutChargeback.js create mode 100644 src/model/RestApiPaginationResultPayoutOrder.js create mode 100644 src/model/RestApiPaginationResultPayoutOtherCharge.js create mode 100644 src/model/RestApiPaginationResultPayoutRefund.js create mode 100644 src/model/RestApiPaginationResultPhoneCall.js create mode 100644 src/model/RestApiPaginationResultPushNotificationResponse.js create mode 100644 src/model/RestApiPaginationResultStoreGroup.js create mode 100644 src/model/RestApiPaginationResultStoreGroupExtended.js create mode 100644 src/model/RestApiPaginationResultStoreHeader.js delete mode 100644 src/model/RestApiPaginationResultVoucher.js create mode 100644 src/model/RestApiPaginationResultVoucherSummary.js create mode 100644 src/model/RestApiPaginationResultWebhookSubscription.js create mode 100644 src/model/RestApiResultAccountDetail.js create mode 100644 src/model/RestApiResultAccountFieldsDefinitions.js create mode 100644 src/model/RestApiResultApmStatistics.js create mode 100644 src/model/RestApiResultApmStatus.js rename src/model/{RestApiResultVoucher.js => RestApiResultApp.js} (56%) create mode 100644 src/model/RestApiResultAppCompliance.js create mode 100644 src/model/RestApiResultAssignedBankAccount.js create mode 100644 src/model/RestApiResultBankAccountDetail.js create mode 100644 src/model/RestApiResultBluetoothTerminalStatus.js create mode 100644 src/model/RestApiResultBusinessHoursOverride.js create mode 100644 src/model/RestApiResultBusinessHoursPeriod.js rename src/model/{RestApiResultOAuthClient.js => RestApiResultCoordinates.js} (57%) create mode 100644 src/model/RestApiResultCustomer.js create mode 100644 src/model/RestApiResultDeliveryZone.js create mode 100644 src/model/RestApiResultDnsRecordInformation.js create mode 100644 src/model/RestApiResultDriver.js create mode 100644 src/model/RestApiResultHomeStatistics.js create mode 100644 src/model/RestApiResultHydraConfig.js create mode 100644 src/model/RestApiResultHydraStatus.js create mode 100644 src/model/RestApiResultIndexPage.js create mode 100644 src/model/RestApiResultIndexPageBase.js create mode 100644 src/model/RestApiResultJobResponse.js create mode 100644 src/model/RestApiResultLightspeedSettings.js create mode 100644 src/model/RestApiResultLoyaltyCampaign.js create mode 100644 src/model/RestApiResultMenuSectionAvailability.js create mode 100644 src/model/RestApiResultOAuthApp.js create mode 100644 src/model/RestApiResultOrderPaymentInformation.js create mode 100644 src/model/RestApiResultPaymentTerminalDetails.js create mode 100644 src/model/RestApiResultPaymentTerminalTransactionDetails.js create mode 100644 src/model/RestApiResultPreOrderConfig.js create mode 100644 src/model/RestApiResultProcessingFeeConfig.js create mode 100644 src/model/RestApiResultPushNotificationResponse.js create mode 100644 src/model/RestApiResultRedeemInvitationResult.js create mode 100644 src/model/RestApiResultRetentionCampaign.js create mode 100644 src/model/RestApiResultStoreAddress.js create mode 100644 src/model/RestApiResultStoreEndOfDayReport.js create mode 100644 src/model/RestApiResultStoreGroup.js create mode 100644 src/model/RestApiResultStoreGroupBase.js create mode 100644 src/model/RestApiResultStoreOrderCapacityConfig.js create mode 100644 src/model/RestApiResultStripeConnectedAccount.js create mode 100644 src/model/RestApiResultStripeTerminalPrivateKey.js create mode 100644 src/model/RestApiResultStuartSettings.js create mode 100644 src/model/RestApiResultTeammate.js create mode 100644 src/model/RestApiResultVoucherWithStats.js create mode 100644 src/model/RestApiResultWebsiteImage.js create mode 100644 src/model/RestApiResultWebsiteTestimonial.js create mode 100644 src/model/RetentionCampaign.js create mode 100644 src/model/RetentionCampaignBase.js create mode 100644 src/model/RetentionCampaignCreatedEvent.js create mode 100644 src/model/RetentionCampaignDeletedEvent.js create mode 100644 src/model/RetentionCampaignUpdatedEvent.js create mode 100644 src/model/RevenueAdjustmentsDetails.js create mode 100644 src/model/RevenueDetail.js create mode 100644 src/model/SetPasswordWithPinModel.js create mode 100644 src/model/SignupStep.js create mode 100644 src/model/SmsInfo.js create mode 100644 src/model/SmsReceivedEvent.js create mode 100644 src/model/StatisticsCurrencyDataPoint.js create mode 100644 src/model/StoreAddressBase.js create mode 100644 src/model/StoreAddressUpdatedEvent.js create mode 100644 src/model/StoreArchivedEvent.js create mode 100644 src/model/StoreBase.js create mode 100644 src/model/StoreBusinessHoursOverrideCreatedEvent.js create mode 100644 src/model/StoreBusinessHoursOverrideDeletedEvent.js create mode 100644 src/model/StoreCampaignStartTime.js create mode 100644 src/model/StoreCloneSettings.js create mode 100644 src/model/StoreCreateBase.js create mode 100644 src/model/StoreDataPoint.js delete mode 100644 src/model/StoreDeliveryZoneUpdatedEvent.js create mode 100644 src/model/StoreEndOfDayReport.js create mode 100644 src/model/StoreGroup.js create mode 100644 src/model/StoreGroupBase.js create mode 100644 src/model/StoreGroupCreatedEvent.js create mode 100644 src/model/StoreGroupDeletedEvent.js create mode 100644 src/model/StoreGroupExtended.js create mode 100644 src/model/StoreGroupUpdatedEvent.js create mode 100644 src/model/StoreHeader.js create mode 100644 src/model/StoreKioskSetting.js create mode 100644 src/model/StoreKioskSettingUpdatedEvent.js create mode 100644 src/model/StoreListItem.js create mode 100644 src/model/StoreLogoCreatedEvent.js create mode 100644 src/model/StoreLogoDeletedEvent.js create mode 100644 src/model/StoreLogoUpdatedEvent.js create mode 100644 src/model/StoreMenuAssignedEvent.js create mode 100644 src/model/StoreOrderCapacityConfig.js create mode 100644 src/model/StoreOrderCapacityConfigEditModel.js create mode 100644 src/model/StoreOrderCapacityPeriod.js create mode 100644 src/model/StorePreOrderConfigUpdatedEvent.js create mode 100644 src/model/StorePublishedEvent.js create mode 100644 src/model/StoreStatistics.js create mode 100644 src/model/StoreUnarchivedEvent.js create mode 100644 src/model/StoreUnpublishedEvent.js create mode 100644 src/model/StripeAccountLinkRequest.js create mode 100644 src/model/StripeConnectedAccount.js create mode 100644 src/model/StripeConnectedAccountInfo.js create mode 100644 src/model/StripeTerminalPrivateKey.js create mode 100644 src/model/StuartSettings.js create mode 100644 src/model/StuartSettingsTransportPrices.js create mode 100644 src/model/SupportedCountry.js create mode 100644 src/model/Teammate.js create mode 100644 src/model/TeammateBase.js create mode 100644 src/model/TeammateDeletedEvent.js create mode 100644 src/model/TeammateInviteAcceptedEvent.js create mode 100644 src/model/TeammateInviteSentEvent.js create mode 100644 src/model/TeammateUpdatedEvent.js create mode 100644 src/model/UpdateDriverNotificationToken.js create mode 100644 src/model/UpdateDriverProfileModel.js create mode 100644 src/model/UserAnsweredSignupQuestionsEvent.js create mode 100644 src/model/UserCreatedEvent.js create mode 100644 src/model/UserDeletedEvent.js create mode 100644 src/model/UserLoginEvent.js create mode 100644 src/model/UserPasswordCreatedEvent.js create mode 100644 src/model/UserUpdatedEvent.js create mode 100644 src/model/VoucherBase.js create mode 100644 src/model/VoucherCreatedEvent.js create mode 100644 src/model/VoucherDataPoint.js create mode 100644 src/model/VoucherDeletedEvent.js create mode 100644 src/model/VoucherUpdatedEvent.js create mode 100644 src/model/VoucherWithStats.js create mode 100644 src/model/WebhookEventSample.js create mode 100644 src/model/WebsiteImage.js create mode 100644 src/model/WebsiteTestimonial.js create mode 100644 src/model/WebsiteTestimonialBase.js create mode 100644 src/model/WebsiteUpdatedEvent.js create mode 100644 src/model/WebsiteVanityUrlUpdatedEvent.js create mode 100644 test/api/AccountsApi.spec.js create mode 100644 test/api/ApmApi.spec.js create mode 100644 test/api/AppsApi.spec.js create mode 100644 test/api/BankAccountApi.spec.js create mode 100644 test/api/CampaignsApi.spec.js create mode 100644 test/api/CardReadersApi.spec.js create mode 100644 test/api/ContentSecurityPolicyApi.spec.js create mode 100644 test/api/CustomersApi.spec.js create mode 100644 test/api/DeliveryTrackingApi.spec.js create mode 100644 test/api/DeliveryZoneApi.spec.js create mode 100644 test/api/DriversApi.spec.js create mode 100644 test/api/FilesApi.spec.js create mode 100644 test/api/HeartbeatApi.spec.js create mode 100644 test/api/HomeApi.spec.js create mode 100644 test/api/HydraApi.spec.js create mode 100644 test/api/LightspeedApi.spec.js create mode 100644 test/api/PaymentsApi.spec.js create mode 100644 test/api/PayoutsApi.spec.js create mode 100644 test/api/ProcessingFeeConfigsApi.spec.js create mode 100644 test/api/PushNotificationsApi.spec.js create mode 100644 test/api/StoreGroupsApi.spec.js create mode 100644 test/api/StoreOrderCapacityApi.spec.js create mode 100644 test/api/StripeCustomConnectApi.spec.js create mode 100644 test/api/StuartApi.spec.js create mode 100644 test/api/TeammatesApi.spec.js create mode 100644 test/api/WebsiteApi.spec.js create mode 100644 test/assert-equals.js create mode 100644 test/model/AccountDetail.spec.js create mode 100644 test/model/AccountDetailBase.spec.js create mode 100644 test/model/AccountFieldDefinition.spec.js create mode 100644 test/model/AccountFieldKeyValuePair.spec.js create mode 100644 test/model/AccountFieldsDefinitions.spec.js create mode 100644 test/model/AddItemDetails.spec.js create mode 100644 test/model/AllMetadataResult.spec.js create mode 100644 test/model/AnalyticsClientEvent.spec.js create mode 100644 test/model/ApmCurrencyDataPoint.spec.js create mode 100644 test/model/ApmDataPoint.spec.js create mode 100644 test/model/ApmHourlyDataPoint.spec.js create mode 100644 test/model/ApmStatistics.spec.js create mode 100644 test/model/ApmStatus.spec.js create mode 100644 test/model/App.spec.js create mode 100644 test/model/AppCompliance.spec.js create mode 100644 test/model/AppConfigUpdateModel.spec.js create mode 100644 test/model/AppCreatedEvent.spec.js create mode 100644 test/model/AppUpdatedEvent.spec.js create mode 100644 test/model/AssignedBankAccount.spec.js create mode 100644 test/model/BalanceDetails.spec.js create mode 100644 test/model/BankAccount.spec.js create mode 100644 test/model/BankAccountCreate.spec.js create mode 100644 test/model/BankAccountCreatedEvent.spec.js create mode 100644 test/model/BankAccountDeletedEvent.spec.js create mode 100644 test/model/BankAccountDetail.spec.js create mode 100644 test/model/BankAccountDetailsUpdateRequest.spec.js create mode 100644 test/model/BankAccountSummary.spec.js create mode 100644 test/model/BankAccountUpdatedEvent.spec.js create mode 100644 test/model/BluetoothTerminalStatus.spec.js create mode 100644 test/model/BusinessHoursOverride.spec.js create mode 100644 test/model/BusinessHoursOverrideBase.spec.js create mode 100644 test/model/BusinessHoursPeriodBase.spec.js delete mode 100644 test/model/CampaignCreatedEvent.spec.js create mode 100644 test/model/CampaignStatistics.spec.js create mode 100644 test/model/CertificateCreatedEvent.spec.js create mode 100644 test/model/CertificateRenewedEvent.spec.js create mode 100644 test/model/ChangePasswordModel.spec.js create mode 100644 test/model/ChargebackDetails.spec.js create mode 100644 test/model/CountryWithAccountFieldsDefinitions.spec.js create mode 100644 test/model/CreateAccountModel.spec.js create mode 100644 test/model/CreateFullMenu.spec.js create mode 100644 test/model/CreateFullMenuItemOptionSet.spec.js create mode 100644 test/model/CreateFullMenuItemOptionSetItem.spec.js create mode 100644 test/model/CreateFullMenuSection.spec.js create mode 100644 test/model/CreateFullMenuSectionItem.spec.js create mode 100644 test/model/CreateMenuTaxRate.spec.js create mode 100644 test/model/CreateMetadata.spec.js create mode 100644 test/model/CreateTeammate.spec.js create mode 100644 test/model/CreateVoucher.spec.js create mode 100644 test/model/CreditNoteDetails.spec.js create mode 100644 test/model/CspReport.spec.js create mode 100644 test/model/CspReportRequest.spec.js create mode 100644 test/model/CurrencyData.spec.js create mode 100644 test/model/Customer.spec.js create mode 100644 test/model/CustomerDeliveryTrackingOrder.spec.js create mode 100644 test/model/CustomerDeliveryTrackingOrderLine.spec.js create mode 100644 test/model/CustomerUpdateModel.spec.js delete mode 100644 test/model/DeliveryFeeArea.spec.js create mode 100644 test/model/DeliveryZone.spec.js create mode 100644 test/model/DeliveryZoneBase.spec.js create mode 100644 test/model/DeliveryZoneCreatedEvent.spec.js create mode 100644 test/model/DeliveryZoneDeletedEvent.spec.js create mode 100644 test/model/DeliveryZoneUpdatedEvent.spec.js create mode 100644 test/model/DeviceSettings.spec.js create mode 100644 test/model/DnsRecordInformation.spec.js create mode 100644 test/model/DnsVerifiedEvent.spec.js create mode 100644 test/model/Driver.spec.js create mode 100644 test/model/DriverInvitation.spec.js create mode 100644 test/model/DriverLoginModel.spec.js create mode 100644 test/model/DriverRequestLoginPinModel.spec.js create mode 100644 test/model/DriverStore.spec.js create mode 100644 test/model/EmvNotificationEvent.spec.js create mode 100644 test/model/EmvTerminal.spec.js create mode 100644 test/model/EmvTerminalWithAssignments.spec.js create mode 100644 test/model/FlipdishEventBase.spec.js create mode 100644 test/model/FlipdishFeesDetails.spec.js create mode 100644 test/model/GroupedCoordinates.spec.js create mode 100644 test/model/HomeAction.spec.js create mode 100644 test/model/HomeStatistics.spec.js create mode 100644 test/model/HydraAssignedEvent.spec.js create mode 100644 test/model/HydraConfig.spec.js create mode 100644 test/model/HydraConnectionStatusChangedEvent.spec.js create mode 100644 test/model/HydraDeviceDetails.spec.js create mode 100644 test/model/HydraRegistrationRequest.spec.js create mode 100644 test/model/HydraRequestResetEvent.spec.js create mode 100644 test/model/HydraSettingChangedEvent.spec.js create mode 100644 test/model/HydraStatus.spec.js create mode 100644 test/model/HydraStoreAssignedEvent.spec.js create mode 100644 test/model/HydraStoreData.spec.js create mode 100644 test/model/HydraStoreUnassignedEvent.spec.js create mode 100644 test/model/HydraUnAssignedEvent.spec.js create mode 100644 test/model/IndexPage.spec.js create mode 100644 test/model/IndexPageBase.spec.js create mode 100644 test/model/JobAddress.spec.js create mode 100644 test/model/JobCancellation.spec.js create mode 100644 test/model/JobContact.spec.js create mode 100644 test/model/JobDelivery.spec.js create mode 100644 test/model/JobDeliveryDetail.spec.js create mode 100644 test/model/JobDriver.spec.js create mode 100644 test/model/JobEta.spec.js create mode 100644 test/model/JobPricing.spec.js create mode 100644 test/model/JobProof.spec.js create mode 100644 test/model/JobResponse.spec.js create mode 100644 test/model/KioskBluetoothInstallUpdateInitiateEvent.spec.js create mode 100644 test/model/KioskBluetoothPairingModeEvent.spec.js create mode 100644 test/model/KioskBluetoothTerminalInitiateUpdateCheckEvent.spec.js create mode 100644 test/model/KioskBluetoothTerminalUpdatedEvent.spec.js create mode 100644 test/model/KioskBluetoothUnpairingModeEvent.spec.js create mode 100644 test/model/Language.spec.js create mode 100644 test/model/LightspeedSettings.spec.js create mode 100644 test/model/LocalisedTimeZone.spec.js create mode 100644 test/model/LoginModel.spec.js create mode 100644 test/model/LoginWithPinModel.spec.js create mode 100644 test/model/LoyaltyCampaign.spec.js create mode 100644 test/model/LoyaltyCampaignBase.spec.js create mode 100644 test/model/LoyaltyCampaignCreatedEvent.spec.js create mode 100644 test/model/LoyaltyCampaignDeletedEvent.spec.js create mode 100644 test/model/LoyaltyCampaignUpdatedEvent.spec.js create mode 100644 test/model/LumpDiscountDetails.spec.js create mode 100644 test/model/MaskedPhoneNumber.spec.js create mode 100644 test/model/MenuCheckpoint.spec.js create mode 100644 test/model/MenuCheckpointCreatedEvent.spec.js create mode 100644 test/model/MenuElementEditResponse.spec.js create mode 100644 test/model/MenuElementHide.spec.js create mode 100644 test/model/MenuItemOptionSetCreatedEvent.spec.js create mode 100644 test/model/MenuItemOptionSetDeletedEvent.spec.js create mode 100644 test/model/MenuItemOptionSetItemCreatedEvent.spec.js create mode 100644 test/model/MenuItemOptionSetItemDeletedEvent.spec.js create mode 100644 test/model/MenuItemOptionSetItemUpdatedEvent.spec.js create mode 100644 test/model/MenuItemOptionSetUpdatedEvent.spec.js create mode 100644 test/model/MenuObjectDisplayOrders.spec.js create mode 100644 test/model/MenuSectionAvailabilityBase.spec.js create mode 100644 test/model/MenuSectionCreatedEvent.spec.js create mode 100644 test/model/MenuSectionDeletedEvent.spec.js create mode 100644 test/model/MenuSectionItemCreatedEvent.spec.js create mode 100644 test/model/MenuSectionItemDeletedEvent.spec.js create mode 100644 test/model/MenuSectionItemUpdatedEvent.spec.js create mode 100644 test/model/MenuSectionUpdatedEvent.spec.js create mode 100644 test/model/MenuStoreNames.spec.js create mode 100644 test/model/MenuSummary.spec.js create mode 100644 test/model/MenuTaxDetails.spec.js create mode 100644 test/model/MenuTaxRate.spec.js create mode 100644 test/model/MenuUploadedEvent.spec.js create mode 100644 test/model/OAuthApp.spec.js delete mode 100644 test/model/OAuthClient.spec.js create mode 100644 test/model/ObjectDisplayOrder.spec.js create mode 100644 test/model/OrderCapacityConfigUpdatedEvent.spec.js create mode 100644 test/model/OrderCustomerTrackingCreatedEvent.spec.js create mode 100644 test/model/OrderDeliveryTrackingStatusUpdatedEvent.spec.js create mode 100644 test/model/OrderDispatchedEvent.spec.js create mode 100644 test/model/OrderIdAndSequenceNumber.spec.js create mode 100644 test/model/OrderPaymentInformation.spec.js create mode 100644 test/model/OrderSummary.spec.js create mode 100644 test/model/OrderVoucherSummary.spec.js create mode 100644 test/model/OtherChargesDetails.spec.js create mode 100644 test/model/PasswordResetModel.spec.js create mode 100644 test/model/PaymentTerminalDetails.spec.js create mode 100644 test/model/PaymentTerminalTransactionDetails.spec.js create mode 100644 test/model/Payout.spec.js create mode 100644 test/model/PayoutChargeback.spec.js create mode 100644 test/model/PayoutDetail.spec.js create mode 100644 test/model/PayoutOrder.spec.js create mode 100644 test/model/PayoutOtherCharge.spec.js create mode 100644 test/model/PayoutRefund.spec.js create mode 100644 test/model/PayoutStore.spec.js create mode 100644 test/model/PayoutSummary.spec.js create mode 100644 test/model/PercentDiscountDetails.spec.js create mode 100644 test/model/PhoneCall.spec.js create mode 100644 test/model/PhoneCallEndedEvent.spec.js create mode 100644 test/model/PhoneCallStartedEvent.spec.js create mode 100644 test/model/PreOrderConfig.spec.js create mode 100644 test/model/PreOrderTime.spec.js create mode 100644 test/model/PredefinedAnswer.spec.js create mode 100644 test/model/Printer.spec.js create mode 100644 test/model/PrinterAssignedToStoreEvent.spec.js create mode 100644 test/model/PrinterTurnedOffEvent.spec.js create mode 100644 test/model/PrinterTurnedOnEvent.spec.js create mode 100644 test/model/PrinterUnassignedFromStoreEvent.spec.js create mode 100644 test/model/ProcessingFeeConfig.spec.js create mode 100644 test/model/PushNotificationDeletedEvent.spec.js create mode 100644 test/model/PushNotificationRequest.spec.js create mode 100644 test/model/PushNotificationResponse.spec.js create mode 100644 test/model/PushNotificationScheduledEvent.spec.js create mode 100644 test/model/PushNotificationSentEvent.spec.js create mode 100644 test/model/RedeemInvitationResult.spec.js create mode 100644 test/model/RequestLoginPinModel.spec.js create mode 100644 test/model/RequestLoginPinResposne.spec.js create mode 100644 test/model/RequestPasswordResetModel.spec.js create mode 100644 test/model/RestApiArrayResultAllMetadataResult.spec.js create mode 100644 test/model/RestApiArrayResultApmCurrencyDataPoint.spec.js create mode 100644 test/model/RestApiArrayResultApmDataPoint.spec.js create mode 100644 test/model/RestApiArrayResultApmHourlyDataPoint.spec.js create mode 100644 test/model/RestApiArrayResultBankAccountSummary.spec.js create mode 100644 test/model/RestApiArrayResultBusinessHoursPeriod.spec.js create mode 100644 test/model/RestApiArrayResultCountryWithAccountFieldsDefinitions.spec.js create mode 100644 test/model/RestApiArrayResultDeliveryZone.spec.js create mode 100644 test/model/RestApiArrayResultDriver.spec.js create mode 100644 test/model/RestApiArrayResultDriverStore.spec.js create mode 100644 test/model/RestApiArrayResultEmvTerminalWithAssignments.spec.js create mode 100644 test/model/RestApiArrayResultHomeAction.spec.js create mode 100644 test/model/RestApiArrayResultLocalisedTimeZone.spec.js create mode 100644 test/model/RestApiArrayResultLoyaltyCampaign.spec.js create mode 100644 test/model/RestApiArrayResultMenuCheckpoint.spec.js create mode 100644 test/model/RestApiArrayResultMenuElementEditResponse.spec.js create mode 100644 test/model/RestApiArrayResultMenuStoreNames.spec.js create mode 100644 test/model/RestApiArrayResultMenuSummary.spec.js create mode 100644 test/model/RestApiArrayResultMenuTaxDetails.spec.js create mode 100644 test/model/RestApiArrayResultOAuthApp.spec.js delete mode 100644 test/model/RestApiArrayResultOAuthClient.spec.js create mode 100644 test/model/RestApiArrayResultPayoutSummary.spec.js create mode 100644 test/model/RestApiArrayResultPreOrderTime.spec.js create mode 100644 test/model/RestApiArrayResultProcessingFeeConfig.spec.js create mode 100644 test/model/RestApiArrayResultRetentionCampaign.spec.js create mode 100644 test/model/RestApiArrayResultStoreListItem.spec.js create mode 100644 test/model/RestApiArrayResultStoreStatistics.spec.js create mode 100644 test/model/RestApiArrayResultSupportedCountry.spec.js create mode 100644 test/model/RestApiArrayResultTeammate.spec.js create mode 100644 test/model/RestApiArrayResultVoucherDataPoint.spec.js delete mode 100644 test/model/RestApiArrayResultWebhookSubscription.spec.js create mode 100644 test/model/RestApiPaginationResultApp.spec.js create mode 100644 test/model/RestApiPaginationResultBusinessHoursOverride.spec.js create mode 100644 test/model/RestApiPaginationResultHydraDeviceDetails.spec.js create mode 100644 test/model/RestApiPaginationResultOrderSummary.spec.js create mode 100644 test/model/RestApiPaginationResultPayout.spec.js create mode 100644 test/model/RestApiPaginationResultPayoutChargeback.spec.js create mode 100644 test/model/RestApiPaginationResultPayoutOrder.spec.js create mode 100644 test/model/RestApiPaginationResultPayoutOtherCharge.spec.js create mode 100644 test/model/RestApiPaginationResultPayoutRefund.spec.js create mode 100644 test/model/RestApiPaginationResultPhoneCall.spec.js create mode 100644 test/model/RestApiPaginationResultPushNotificationResponse.spec.js create mode 100644 test/model/RestApiPaginationResultStoreGroup.spec.js create mode 100644 test/model/RestApiPaginationResultStoreGroupExtended.spec.js create mode 100644 test/model/RestApiPaginationResultStoreHeader.spec.js delete mode 100644 test/model/RestApiPaginationResultVoucher.spec.js create mode 100644 test/model/RestApiPaginationResultVoucherSummary.spec.js create mode 100644 test/model/RestApiPaginationResultWebhookSubscription.spec.js create mode 100644 test/model/RestApiResultAccountDetail.spec.js create mode 100644 test/model/RestApiResultAccountFieldsDefinitions.spec.js create mode 100644 test/model/RestApiResultApmStatistics.spec.js create mode 100644 test/model/RestApiResultApmStatus.spec.js create mode 100644 test/model/RestApiResultApp.spec.js create mode 100644 test/model/RestApiResultAppCompliance.spec.js create mode 100644 test/model/RestApiResultAssignedBankAccount.spec.js create mode 100644 test/model/RestApiResultBankAccountDetail.spec.js create mode 100644 test/model/RestApiResultBluetoothTerminalStatus.spec.js create mode 100644 test/model/RestApiResultBusinessHoursOverride.spec.js create mode 100644 test/model/RestApiResultBusinessHoursPeriod.spec.js create mode 100644 test/model/RestApiResultCoordinates.spec.js create mode 100644 test/model/RestApiResultCustomer.spec.js create mode 100644 test/model/RestApiResultDeliveryZone.spec.js create mode 100644 test/model/RestApiResultDnsRecordInformation.spec.js create mode 100644 test/model/RestApiResultDriver.spec.js create mode 100644 test/model/RestApiResultHomeStatistics.spec.js create mode 100644 test/model/RestApiResultHydraConfig.spec.js create mode 100644 test/model/RestApiResultHydraStatus.spec.js create mode 100644 test/model/RestApiResultIndexPage.spec.js create mode 100644 test/model/RestApiResultIndexPageBase.spec.js create mode 100644 test/model/RestApiResultJobResponse.spec.js create mode 100644 test/model/RestApiResultLightspeedSettings.spec.js create mode 100644 test/model/RestApiResultLoyaltyCampaign.spec.js create mode 100644 test/model/RestApiResultMenuSectionAvailability.spec.js create mode 100644 test/model/RestApiResultOAuthApp.spec.js delete mode 100644 test/model/RestApiResultOAuthClient.spec.js create mode 100644 test/model/RestApiResultOrderPaymentInformation.spec.js create mode 100644 test/model/RestApiResultPaymentTerminalDetails.spec.js create mode 100644 test/model/RestApiResultPaymentTerminalTransactionDetails.spec.js create mode 100644 test/model/RestApiResultPreOrderConfig.spec.js create mode 100644 test/model/RestApiResultProcessingFeeConfig.spec.js create mode 100644 test/model/RestApiResultPushNotificationResponse.spec.js create mode 100644 test/model/RestApiResultRedeemInvitationResult.spec.js create mode 100644 test/model/RestApiResultRetentionCampaign.spec.js create mode 100644 test/model/RestApiResultStoreAddress.spec.js create mode 100644 test/model/RestApiResultStoreEndOfDayReport.spec.js create mode 100644 test/model/RestApiResultStoreGroup.spec.js create mode 100644 test/model/RestApiResultStoreGroupBase.spec.js create mode 100644 test/model/RestApiResultStoreOrderCapacityConfig.spec.js create mode 100644 test/model/RestApiResultStripeConnectedAccount.spec.js create mode 100644 test/model/RestApiResultStripeTerminalPrivateKey.spec.js create mode 100644 test/model/RestApiResultStuartSettings.spec.js create mode 100644 test/model/RestApiResultTeammate.spec.js delete mode 100644 test/model/RestApiResultVoucher.spec.js create mode 100644 test/model/RestApiResultVoucherWithStats.spec.js create mode 100644 test/model/RestApiResultWebsiteImage.spec.js create mode 100644 test/model/RestApiResultWebsiteTestimonial.spec.js create mode 100644 test/model/RetentionCampaign.spec.js create mode 100644 test/model/RetentionCampaignBase.spec.js create mode 100644 test/model/RetentionCampaignCreatedEvent.spec.js create mode 100644 test/model/RetentionCampaignDeletedEvent.spec.js create mode 100644 test/model/RetentionCampaignUpdatedEvent.spec.js create mode 100644 test/model/RevenueAdjustmentsDetails.spec.js create mode 100644 test/model/RevenueDetail.spec.js create mode 100644 test/model/SetPasswordWithPinModel.spec.js create mode 100644 test/model/SignupStep.spec.js create mode 100644 test/model/SmsInfo.spec.js create mode 100644 test/model/SmsReceivedEvent.spec.js create mode 100644 test/model/StatisticsCurrencyDataPoint.spec.js create mode 100644 test/model/StoreAddressBase.spec.js create mode 100644 test/model/StoreAddressUpdatedEvent.spec.js create mode 100644 test/model/StoreArchivedEvent.spec.js create mode 100644 test/model/StoreBase.spec.js create mode 100644 test/model/StoreBusinessHoursOverrideCreatedEvent.spec.js create mode 100644 test/model/StoreBusinessHoursOverrideDeletedEvent.spec.js create mode 100644 test/model/StoreCampaignStartTime.spec.js create mode 100644 test/model/StoreCloneSettings.spec.js create mode 100644 test/model/StoreCreateBase.spec.js create mode 100644 test/model/StoreDataPoint.spec.js delete mode 100644 test/model/StoreDeliveryZoneUpdatedEvent.spec.js create mode 100644 test/model/StoreEndOfDayReport.spec.js create mode 100644 test/model/StoreGroup.spec.js create mode 100644 test/model/StoreGroupBase.spec.js create mode 100644 test/model/StoreGroupCreatedEvent.spec.js create mode 100644 test/model/StoreGroupDeletedEvent.spec.js create mode 100644 test/model/StoreGroupExtended.spec.js create mode 100644 test/model/StoreGroupUpdatedEvent.spec.js create mode 100644 test/model/StoreHeader.spec.js create mode 100644 test/model/StoreKioskSetting.spec.js create mode 100644 test/model/StoreKioskSettingUpdatedEvent.spec.js create mode 100644 test/model/StoreListItem.spec.js create mode 100644 test/model/StoreLogoCreatedEvent.spec.js create mode 100644 test/model/StoreLogoDeletedEvent.spec.js create mode 100644 test/model/StoreLogoUpdatedEvent.spec.js create mode 100644 test/model/StoreMenuAssignedEvent.spec.js create mode 100644 test/model/StoreOrderCapacityConfig.spec.js create mode 100644 test/model/StoreOrderCapacityConfigEditModel.spec.js create mode 100644 test/model/StoreOrderCapacityPeriod.spec.js create mode 100644 test/model/StorePreOrderConfigUpdatedEvent.spec.js create mode 100644 test/model/StorePublishedEvent.spec.js create mode 100644 test/model/StoreStatistics.spec.js create mode 100644 test/model/StoreUnarchivedEvent.spec.js create mode 100644 test/model/StoreUnpublishedEvent.spec.js create mode 100644 test/model/StripeAccountLinkRequest.spec.js create mode 100644 test/model/StripeConnectedAccount.spec.js create mode 100644 test/model/StripeConnectedAccountInfo.spec.js create mode 100644 test/model/StripeTerminalPrivateKey.spec.js create mode 100644 test/model/StuartSettings.spec.js create mode 100644 test/model/StuartSettingsTransportPrices.spec.js create mode 100644 test/model/SupportedCountry.spec.js create mode 100644 test/model/Teammate.spec.js create mode 100644 test/model/TeammateBase.spec.js create mode 100644 test/model/TeammateDeletedEvent.spec.js create mode 100644 test/model/TeammateInviteAcceptedEvent.spec.js create mode 100644 test/model/TeammateInviteSentEvent.spec.js create mode 100644 test/model/TeammateUpdatedEvent.spec.js create mode 100644 test/model/UpdateDriverNotificationToken.spec.js create mode 100644 test/model/UpdateDriverProfileModel.spec.js create mode 100644 test/model/UserAnsweredSignupQuestionsEvent.spec.js create mode 100644 test/model/UserCreatedEvent.spec.js create mode 100644 test/model/UserDeletedEvent.spec.js create mode 100644 test/model/UserLoginEvent.spec.js create mode 100644 test/model/UserPasswordCreatedEvent.spec.js create mode 100644 test/model/UserUpdatedEvent.spec.js create mode 100644 test/model/VoucherBase.spec.js create mode 100644 test/model/VoucherCreatedEvent.spec.js create mode 100644 test/model/VoucherDataPoint.spec.js create mode 100644 test/model/VoucherDeletedEvent.spec.js create mode 100644 test/model/VoucherUpdatedEvent.spec.js create mode 100644 test/model/VoucherWithStats.spec.js create mode 100644 test/model/WebhookEventSample.spec.js create mode 100644 test/model/WebsiteImage.spec.js create mode 100644 test/model/WebsiteTestimonial.spec.js create mode 100644 test/model/WebsiteTestimonialBase.spec.js create mode 100644 test/model/WebsiteUpdatedEvent.spec.js create mode 100644 test/model/WebsiteVanityUrlUpdatedEvent.spec.js diff --git a/README.md b/README.md index f296bbb8..f3678c64 100644 --- a/README.md +++ b/README.md @@ -50,11 +50,11 @@ command above from. #### git # If the library is hosted at a git repository, e.g. -https://github.com/YOUR_USERNAME/@flipdish/api-client-javascript +https://github.com/flipdishbytes/api-client-javascript then install it via: ```shell - npm install YOUR_USERNAME/@flipdish/api-client-javascript --save + npm install flipdishbytes/api-client-javascript --save ``` ### For browser @@ -101,23 +101,21 @@ var defaultClient = Flipdish.ApiClient.instance; var oauth2 = defaultClient.authentications['oauth2']; oauth2.accessToken = "YOUR ACCESS TOKEN" -var api = new Flipdish.AuthorizationTokensApi() +var api = new Flipdish.AccountsApi() -var clientId = "clientId_example"; // {String} Client identifier +var signupStepAction = "signupStepAction_example"; // {String} Signup step action + +var answerId = 56; // {Number} Identifier of the answer -var opts = { - 'page': 56, // {Number} Requested page number - 'limit': 56 // {Number} Requested page limit -}; var callback = function(error, data, response) { if (error) { console.error(error); } else { - console.log('API called successfully. Returned data: ' + data); + console.log('API called successfully.'); } }; -api.getAuthorizationTokens(clientId, opts, callback); +api.answerSignUpQuestion(signupStepAction, answerId, callback); ``` @@ -127,23 +125,135 @@ All URIs are relative to *https://api.flipdish.co* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*Flipdish.AuthorizationTokensApi* | [**getAuthorizationTokens**](docs/AuthorizationTokensApi.md#getAuthorizationTokens) | **GET** /api/v1.0/authorizationtokens/{clientId} | Get authorization tokens -*Flipdish.AuthorizationTokensApi* | [**revokeToken**](docs/AuthorizationTokensApi.md#revokeToken) | **DELETE** /api/v1.0/authorizationtokens/{key} | Revoke token -*Flipdish.EventsApi* | [**getCustomerEvents**](docs/EventsApi.md#getCustomerEvents) | **GET** /api/v1.0/events/customer/{customerId} | Get customer events -*Flipdish.EventsApi* | [**getEvents**](docs/EventsApi.md#getEvents) | **GET** /api/v1.0/events | Get events -*Flipdish.EventsApi* | [**getEventsById**](docs/EventsApi.md#getEventsById) | **GET** /api/v1.0/events/{eventId} | Get event by Id -*Flipdish.EventsApi* | [**getMenuEvents**](docs/EventsApi.md#getMenuEvents) | **GET** /api/v1.0/events/menu/{menuId} | Get menu events -*Flipdish.EventsApi* | [**getOrderEvents**](docs/EventsApi.md#getOrderEvents) | **GET** /api/v1.0/events/order/{orderId} | Get order events -*Flipdish.EventsApi* | [**getOrderEventsByCustomer**](docs/EventsApi.md#getOrderEventsByCustomer) | **GET** /api/v1.0/events/order | Get order events by customer -*Flipdish.EventsApi* | [**getStoreEvents**](docs/EventsApi.md#getStoreEvents) | **GET** /api/v1.0/events/store/{storeId} | Get store events -*Flipdish.EventsApi* | [**getUserEvents**](docs/EventsApi.md#getUserEvents) | **GET** /api/v1.0/events/user/{userId} | Get user events -*Flipdish.EventsApi* | [**getWhiteLabelEvents**](docs/EventsApi.md#getWhiteLabelEvents) | **GET** /api/v1.0/events/whitelabel/{whitelabelId} | Get WhiteLabel events -*Flipdish.HttpRequestResponseLogsApi* | [**getHttpLogsByUserIdAsync**](docs/HttpRequestResponseLogsApi.md#getHttpLogsByUserIdAsync) | **GET** /api/v1.0/interactions/logs | Get API interaction logs +*Flipdish.AccountsApi* | [**answerSignUpQuestion**](docs/AccountsApi.md#answerSignUpQuestion) | **POST** /api/v1.0/accounts/signupstep/{signupStepAction}/answer | Answer a signup question +*Flipdish.AccountsApi* | [**changePassword**](docs/AccountsApi.md#changePassword) | **PUT** /api/v1.0/accounts/password | Change password +*Flipdish.AccountsApi* | [**changePasswordWithPin**](docs/AccountsApi.md#changePasswordWithPin) | **PUT** /api/v1.0/accounts/password/pin | Change password +*Flipdish.AccountsApi* | [**createAccount**](docs/AccountsApi.md#createAccount) | **POST** /api/v1.0/accounts | Create account with email address and store name +*Flipdish.AccountsApi* | [**getAccountDetails**](docs/AccountsApi.md#getAccountDetails) | **GET** /api/v1.0/accounts | Gets the current account detail +*Flipdish.AccountsApi* | [**getLocalisedTimeZones**](docs/AccountsApi.md#getLocalisedTimeZones) | **GET** /api/v1.0/accounts/timezones | [PRIVATE API] Get timezones localised to users language +*Flipdish.AccountsApi* | [**login**](docs/AccountsApi.md#login) | **POST** /api/v1.0/accounts/login | Login with username and password +*Flipdish.AccountsApi* | [**loginWithPin**](docs/AccountsApi.md#loginWithPin) | **POST** /api/v1.0/accounts/login/pin | Login with username and password +*Flipdish.AccountsApi* | [**logout**](docs/AccountsApi.md#logout) | **POST** /api/v1.0/accounts/logout | Log out. It removes Flipdish authorization Cookie. +*Flipdish.AccountsApi* | [**passwordResetWithToken**](docs/AccountsApi.md#passwordResetWithToken) | **POST** /api/v1.0/accounts/password | Reset password with token. +*Flipdish.AccountsApi* | [**requestLoginPin**](docs/AccountsApi.md#requestLoginPin) | **POST** /api/v1.0/accounts/pin | Request login PIN. The server sends the PIN to the email address. +*Flipdish.AccountsApi* | [**requestPasswordReset**](docs/AccountsApi.md#requestPasswordReset) | **POST** /api/v1.0/accounts/passwordreset | Request password reset. Flipdish system will send a token via email. +*Flipdish.AccountsApi* | [**skipSignupStep**](docs/AccountsApi.md#skipSignupStep) | **POST** /api/v1.0/accounts/signupstep/{signupStepAction}/skip | Skip a signup question +*Flipdish.AccountsApi* | [**updateAccount**](docs/AccountsApi.md#updateAccount) | **PUT** /api/v1.0/accounts | Update account with name and language +*Flipdish.ApmApi* | [**getApmStatus**](docs/ApmApi.md#getApmStatus) | **GET** /api/v1.0/{appId}/apm/status | [PRIVATE API] Returns true if APM is enabled on at least one store in an application +*Flipdish.ApmApi* | [**getBasicStatistics**](docs/ApmApi.md#getBasicStatistics) | **GET** /api/v1.0/{appId}/apm/statistics | [PRIVATE API] Get Basic Statistics +*Flipdish.ApmApi* | [**getCalendarWeekStatistics**](docs/ApmApi.md#getCalendarWeekStatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calendar | [PRIVATE API] Get Calendar statistics +*Flipdish.ApmApi* | [**getCallsStatistics**](docs/ApmApi.md#getCallsStatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calls/{aggregateDataBy} | [PRIVATE API] Get Calls Statistics +*Flipdish.ApmApi* | [**getOrderStatistics**](docs/ApmApi.md#getOrderStatistics) | **GET** /api/v1.0/{appId}/apm/statistics/orders/{aggregateDataBy} | [PRIVATE API] Get Order Statistics (Value of Orders) +*Flipdish.ApmApi* | [**getPaginatedCallList**](docs/ApmApi.md#getPaginatedCallList) | **GET** /api/v1.0/{appId}/apm/calls | [PRIVATE API] Get paginated APM call list +*Flipdish.AppsApi* | [**getApp**](docs/AppsApi.md#getApp) | **GET** /api/v1.0/apps/{appId} | Get the application configuration +*Flipdish.AppsApi* | [**getAppHostnameStatus**](docs/AppsApi.md#getAppHostnameStatus) | **GET** /api/v1.0/apps/{appId}/hostnamestatus | Get the application hostname DNS delegation states for A and CNAME records. +*Flipdish.AppsApi* | [**getApps**](docs/AppsApi.md#getApps) | **GET** /api/v1.0/apps | Get Apps +*Flipdish.AppsApi* | [**getCompliance**](docs/AppsApi.md#getCompliance) | **GET** /api/v1.0/apps/{appId}/compliance | Get the application compliance configuration +*Flipdish.AppsApi* | [**getPanaceaVanityUrl**](docs/AppsApi.md#getPanaceaVanityUrl) | **GET** /api/v1.0/apps/{appId}/panacea/url | Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] +*Flipdish.AppsApi* | [**getSupportedCountries**](docs/AppsApi.md#getSupportedCountries) | **GET** /api/v1.0/apps/supportedcountries | Get all supported countries. +*Flipdish.AppsApi* | [**isPanaceaVanityUrlAvailable**](docs/AppsApi.md#isPanaceaVanityUrlAvailable) | **GET** /api/v1.0/apps/{appId}/panacea/url/available | Is panacea vanity url available +*Flipdish.AppsApi* | [**setAppConfig**](docs/AppsApi.md#setAppConfig) | **POST** /api/v1.0/apps/{appId}/config | Set the application configuration +*Flipdish.AppsApi* | [**setAppHostname**](docs/AppsApi.md#setAppHostname) | **POST** /api/v1.0/apps/{appId}/hostname | Set the application hostname. +*Flipdish.AppsApi* | [**setAppLanguages**](docs/AppsApi.md#setAppLanguages) | **POST** /api/v1.0/apps/{appId}/config/languages | Set the application languages +*Flipdish.AppsApi* | [**setCompliance**](docs/AppsApi.md#setCompliance) | **POST** /api/v1.0/apps/{appId}/compliance | Set the application compliance configuration +*Flipdish.AppsApi* | [**setPanaceaVanityUrl**](docs/AppsApi.md#setPanaceaVanityUrl) | **POST** /api/v1.0/apps/{appId}/panacea/url | Set panacea vanity url +*Flipdish.AppsApi* | [**uploadAppLogo**](docs/AppsApi.md#uploadAppLogo) | **POST** /api/v1.0/apps/{appId}/logo | Set the application logo \\ icon +*Flipdish.AuthorizationTokensApi* | [**getAuthorizationTokens**](docs/AuthorizationTokensApi.md#getAuthorizationTokens) | **GET** /api/v1.0/{appId}/authorizationtokens/{oauthAppId} | Get authorization tokens +*Flipdish.AuthorizationTokensApi* | [**revokeToken**](docs/AuthorizationTokensApi.md#revokeToken) | **DELETE** /api/v1.0/{appId}/authorizationtokens/{key} | Revoke token +*Flipdish.BankAccountApi* | [**attachBankAccountToStore**](docs/BankAccountApi.md#attachBankAccountToStore) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/store/{storeId} | [PRIVATE API] Attach Bank Account to Store +*Flipdish.BankAccountApi* | [**createBankAccount**](docs/BankAccountApi.md#createBankAccount) | **POST** /api/v1.0/{appId}/bankaccounts | Create a new Bank Account and attach to this App +*Flipdish.BankAccountApi* | [**deleteBankAccount**](docs/BankAccountApi.md#deleteBankAccount) | **DELETE** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | Delete BankAccount +*Flipdish.BankAccountApi* | [**getBankAccountById**](docs/BankAccountApi.md#getBankAccountById) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | Get BankAccount Detail by Id +*Flipdish.BankAccountApi* | [**getBankAccounts**](docs/BankAccountApi.md#getBankAccounts) | **GET** /api/v1.0/{appId}/bankaccounts | Get List of BankAccounts for WL +*Flipdish.BankAccountApi* | [**getCountriesWithFieldDefinitions**](docs/BankAccountApi.md#getCountriesWithFieldDefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/countries-field-definitions | Get bank account fields definitions +*Flipdish.BankAccountApi* | [**getFieldDefinitions**](docs/BankAccountApi.md#getFieldDefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/field-definitions | Get bank account fields definitions +*Flipdish.BankAccountApi* | [**updateBankAccount**](docs/BankAccountApi.md#updateBankAccount) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | Update BankAccount +*Flipdish.BankAccountApi* | [**updateBankAccountState**](docs/BankAccountApi.md#updateBankAccountState) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/state/{state} | [PRIVATE API] Update State of Bank Account +*Flipdish.CampaignsApi* | [**createLoyaltyCampaign**](docs/CampaignsApi.md#createLoyaltyCampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty | Creates loyalty campaign +*Flipdish.CampaignsApi* | [**createRetentionCampaign**](docs/CampaignsApi.md#createRetentionCampaign) | **POST** /api/v1.0/{appId}/campaigns/retention | Creates retention campaign +*Flipdish.CampaignsApi* | [**getLoyaltyCampaignsForApp**](docs/CampaignsApi.md#getLoyaltyCampaignsForApp) | **GET** /api/v1.0/{appId}/campaigns/loyalty | Gets loyalty campaigns for app +*Flipdish.CampaignsApi* | [**getLoyaltyCampaignsForStore**](docs/CampaignsApi.md#getLoyaltyCampaignsForStore) | **GET** /api/v1.0/{appId}/campaigns/loyalty/{storeId} | Gets loyalty campaigns for store +*Flipdish.CampaignsApi* | [**getRetentionCampaignsForApp**](docs/CampaignsApi.md#getRetentionCampaignsForApp) | **GET** /api/v1.0/{appId}/campaigns/retention | Gets retention campaigns for app +*Flipdish.CampaignsApi* | [**getRetentionCampaignsForStore**](docs/CampaignsApi.md#getRetentionCampaignsForStore) | **GET** /api/v1.0/{appId}/campaigns/retention/{storeId} | Gets retention campaigns for store +*Flipdish.CampaignsApi* | [**getStoreList**](docs/CampaignsApi.md#getStoreList) | **GET** /api/v1.0/{appId}/campaigns/stores | Gets list of stores for app +*Flipdish.CampaignsApi* | [**removeCampaign**](docs/CampaignsApi.md#removeCampaign) | **DELETE** /api/v1.0/{appId}/campaigns/{campaignId} | Deletes a campaign +*Flipdish.CampaignsApi* | [**updateLoyaltyCampaign**](docs/CampaignsApi.md#updateLoyaltyCampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty/{campaignId} | Updates loyalty campaign +*Flipdish.CampaignsApi* | [**updateRetentionCampaign**](docs/CampaignsApi.md#updateRetentionCampaign) | **POST** /api/v1.0/{appId}/campaigns/retention/{campaignId} | Updates retention campaign +*Flipdish.CardReadersApi* | [**authorizeStripeTerminal**](docs/CardReadersApi.md#authorizeStripeTerminal) | **POST** /api/v1.0/cardreaders/authorize/stripe | Get Authorization Key for Stripe Terminal +*Flipdish.CardReadersApi* | [**authorizeStripeTerminal_0**](docs/CardReadersApi.md#authorizeStripeTerminal_0) | **POST** /api/v1.0/{appId}/stripeterminal/authorize | Get Authorization Key for Stripe Terminal +*Flipdish.CardReadersApi* | [**getBluetoothTerminalStatus**](docs/CardReadersApi.md#getBluetoothTerminalStatus) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/status | Get the status of the bluetooth terminal +*Flipdish.CardReadersApi* | [**initiateBluetoothTerminalDeviceUpdateCheck**](docs/CardReadersApi.md#initiateBluetoothTerminalDeviceUpdateCheck) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/checkForUpdate | Trigger check for Bluetooth device update on Kiosk +*Flipdish.CardReadersApi* | [**initiateKioskBluetoothPairingMode**](docs/CardReadersApi.md#initiateKioskBluetoothPairingMode) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/pair | Initiate stripe terminal pairing mode +*Flipdish.CardReadersApi* | [**initiateKioskUpdateInstallForBluetoothTerminal**](docs/CardReadersApi.md#initiateKioskUpdateInstallForBluetoothTerminal) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/installUpdate | +*Flipdish.CardReadersApi* | [**unpairCurrentlyPairedBluetoothDevice**](docs/CardReadersApi.md#unpairCurrentlyPairedBluetoothDevice) | **DELETE** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/unpair | Unpair the currently paired stripe terminal +*Flipdish.ContentSecurityPolicyApi* | [**contentSecurityPolicyReport**](docs/ContentSecurityPolicyApi.md#contentSecurityPolicyReport) | **POST** /api/v1.0/csp/report | +*Flipdish.CustomersApi* | [**getCustomerById**](docs/CustomersApi.md#getCustomerById) | **GET** /api/v1.0/{appId}/customers/{customerId} | Get customer of an app by Id +*Flipdish.CustomersApi* | [**updateCustomerById**](docs/CustomersApi.md#updateCustomerById) | **POST** /api/v1.0/{appId}/customers/{customerId} | Update customer of an app by Id +*Flipdish.DeliveryTrackingApi* | [**assignDriverToOrder**](docs/DeliveryTrackingApi.md#assignDriverToOrder) | **POST** /api/v1.0/{appId}/drivers/{driverId}/orders/{orderId} | [PRIVATE] Assign driver to order +*Flipdish.DeliveryTrackingApi* | [**assignDriverToOrders**](docs/DeliveryTrackingApi.md#assignDriverToOrders) | **POST** /api/v1.0/{appId}/drivers/{driverId}/orders | Assign driver to multiple orders +*Flipdish.DeliveryTrackingApi* | [**getDrivers**](docs/DeliveryTrackingApi.md#getDrivers) | **GET** /api/v1.0/{appId}/drivers | [PRIVATE] Get drivers by App +*Flipdish.DeliveryTrackingApi* | [**inviteDriverToApp**](docs/DeliveryTrackingApi.md#inviteDriverToApp) | **POST** /api/v1.0/{appId}/drivers | [PRIVATE] Invite driver +*Flipdish.DeliveryTrackingApi* | [**removeDriverFromApp**](docs/DeliveryTrackingApi.md#removeDriverFromApp) | **DELETE** /api/v1.0/{appId}/drivers/{driverId} | [PRIVATE] Unassign driver from app +*Flipdish.DeliveryTrackingApi* | [**unassignDriverFromOrder**](docs/DeliveryTrackingApi.md#unassignDriverFromOrder) | **DELETE** /api/v1.0/{appId}/orders/{orderId}/driver | [PRIVATE] Unassign driver from order +*Flipdish.DeliveryZoneApi* | [**addDeliveryZone**](docs/DeliveryZoneApi.md#addDeliveryZone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones | Adds a delivery zone to the store id +*Flipdish.DeliveryZoneApi* | [**getDeliveryZones**](docs/DeliveryZoneApi.md#getDeliveryZones) | **GET** /api/v1.0/stores/{storeId}/deliveryzones | Get all the delivery zones associated with a store +*Flipdish.DeliveryZoneApi* | [**removeDeliveryZone**](docs/DeliveryZoneApi.md#removeDeliveryZone) | **DELETE** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | Removes the existing delivery zone +*Flipdish.DeliveryZoneApi* | [**updateDeliveryZone**](docs/DeliveryZoneApi.md#updateDeliveryZone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | Updates the existing delivery zone +*Flipdish.DriversApi* | [**addDriverNotificationToken**](docs/DriversApi.md#addDriverNotificationToken) | **POST** /api/v1.0/drivers/token | Add driver token +*Flipdish.DriversApi* | [**deleteDriverProfileImage**](docs/DriversApi.md#deleteDriverProfileImage) | **DELETE** /api/v1.0/drivers/profile/image | Delete driver profile image +*Flipdish.DriversApi* | [**driverLogin**](docs/DriversApi.md#driverLogin) | **POST** /api/v1.0/drivers/login | [PRIVATE] Login with phone number and pin +*Flipdish.DriversApi* | [**driverRequestLoginCodeSms**](docs/DriversApi.md#driverRequestLoginCodeSms) | **POST** /api/v1.0/drivers/pin | [PRIVATE] Request an SMS to be sent to the driver with their login code +*Flipdish.DriversApi* | [**getDriverProfile**](docs/DriversApi.md#getDriverProfile) | **GET** /api/v1.0/drivers/profile | Get driver profile +*Flipdish.DriversApi* | [**getStoresForDriver**](docs/DriversApi.md#getStoresForDriver) | **GET** /api/v1.0/drivers/assignedstores | Get stores for driver +*Flipdish.DriversApi* | [**removeDriverNotificationToken**](docs/DriversApi.md#removeDriverNotificationToken) | **DELETE** /api/v1.0/drivers/token | Delete driver token +*Flipdish.DriversApi* | [**setDriverPresenceForStore**](docs/DriversApi.md#setDriverPresenceForStore) | **POST** /api/v1.0/drivers/stores/{storeId}/presence/{presence} | +*Flipdish.DriversApi* | [**setDriverProfileImage**](docs/DriversApi.md#setDriverProfileImage) | **POST** /api/v1.0/drivers/profile/image | Set driver profile image and returns it's url +*Flipdish.DriversApi* | [**updateDeliveryTrackingStatus**](docs/DriversApi.md#updateDeliveryTrackingStatus) | **POST** /api/v1.0/orders/{orderId}/tracking/{deliveryTrackingStatus} | Change delivery tracking status and return the updated status. +*Flipdish.DriversApi* | [**updateDriverProfile**](docs/DriversApi.md#updateDriverProfile) | **POST** /api/v1.0/drivers/profile | Update driver profile +*Flipdish.EventsApi* | [**getCustomerEvents**](docs/EventsApi.md#getCustomerEvents) | **GET** /api/v1.0/events/customer/{customerId} | Get customer events For technical reasons, the number of records returned is limited to 100. +*Flipdish.EventsApi* | [**getEvents**](docs/EventsApi.md#getEvents) | **GET** /api/v1.0/events | Get events For technical reasons, the number of records returned is limited to 100. +*Flipdish.EventsApi* | [**getEventsById**](docs/EventsApi.md#getEventsById) | **GET** /api/v1.0/events/{eventId} | Get event by Id For technical reasons, the number of records returned is limited to 100. +*Flipdish.EventsApi* | [**getMenuEvents**](docs/EventsApi.md#getMenuEvents) | **GET** /api/v1.0/events/menu/{menuId} | Get menu events For technical reasons, the number of records returned is limited to 100. +*Flipdish.EventsApi* | [**getOrderEvents**](docs/EventsApi.md#getOrderEvents) | **GET** /api/v1.0/events/order/{orderId} | Get order events For technical reasons, the number of records returned is limited to 100. +*Flipdish.EventsApi* | [**getOrderEventsByCustomer**](docs/EventsApi.md#getOrderEventsByCustomer) | **GET** /api/v1.0/events/order | Get order events by customer For technical reasons, the number of records returned is limited to 100. +*Flipdish.EventsApi* | [**getStoreEvents**](docs/EventsApi.md#getStoreEvents) | **GET** /api/v1.0/events/store/{storeId} | Get store events For technical reasons, the number of records returned is limited to 100. +*Flipdish.EventsApi* | [**getUserEvents**](docs/EventsApi.md#getUserEvents) | **GET** /api/v1.0/events/user/{userId} | Get user events For technical reasons, the number of records returned is limited to 100. +*Flipdish.EventsApi* | [**getWhiteLabelEvents**](docs/EventsApi.md#getWhiteLabelEvents) | **GET** /api/v1.0/events/whitelabel/{whitelabelId} | Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. +*Flipdish.FilesApi* | [**downloadFile**](docs/FilesApi.md#downloadFile) | **GET** /api/v1.0/{appId}/files/download/{fileId} | Get file from storage +*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} | [PRIVATE API] Complete Home Action +*Flipdish.HomeApi* | [**dismissOldPortalAction**](docs/HomeApi.md#dismissOldPortalAction) | **POST** /api/v1.0/home/dismissoldportalaction | [PRIVATE API] Complete Home Action +*Flipdish.HomeApi* | [**getHomeActions**](docs/HomeApi.md#getHomeActions) | **GET** /api/v1.0/{appId}/home | [PRIVATE API] Get Home Actions +*Flipdish.HomeApi* | [**getHomeStatistics**](docs/HomeApi.md#getHomeStatistics) | **GET** /api/v1.0/{appId}/home/stats | [PRIVATE API] Get Home Statistics +*Flipdish.HttpRequestResponseLogsApi* | [**getLogs**](docs/HttpRequestResponseLogsApi.md#getLogs) | **GET** /api/v1.0/{appId}/interactions/logs | Get API interaction logs +*Flipdish.HydraApi* | [**assignEmv**](docs/HydraApi.md#assignEmv) | **POST** /api/v1.0/{appId}/hydra/emvterminal/assign/{hydraConfigId}/{emvTerminalId} | Assign an EMV terminal to a kiosk +*Flipdish.HydraApi* | [**attachStoreToTerminal**](docs/HydraApi.md#attachStoreToTerminal) | **POST** /api/v1.0/{appId}/hydra/{deviceId}/attach/{storeId} | [Private] +*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} | [Private] +*Flipdish.HydraApi* | [**getAttachedDevices**](docs/HydraApi.md#getAttachedDevices) | **GET** /api/v1.0/{appId}/hydra/{deviceType}/list | [Private] +*Flipdish.HydraApi* | [**getEMVTerminalDetails**](docs/HydraApi.md#getEMVTerminalDetails) | **GET** /api/v1.0/{appId}/hydra/emvterminal | [Private] +*Flipdish.HydraApi* | [**getEmvOrderState**](docs/HydraApi.md#getEmvOrderState) | **GET** /api/v1.0/{appId}/hydra/emvorderstate/{orderId} | [Private] +*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 | [Private] +*Flipdish.HydraApi* | [**hydraCreateEmv**](docs/HydraApi.md#hydraCreateEmv) | **POST** /api/v1.0/{appId}/emvterminals | [Private] +*Flipdish.HydraApi* | [**hydraDeleteEmv**](docs/HydraApi.md#hydraDeleteEmv) | **DELETE** /api/v1.0/{appId}/emvterminals/{id} | [Private] +*Flipdish.HydraApi* | [**hydraGetEmvsForAppId**](docs/HydraApi.md#hydraGetEmvsForAppId) | **GET** /api/v1.0/{appId}/emvterminals | List EMV terminals belonging to the given AppNameId +*Flipdish.HydraApi* | [**loginWithDeviceId**](docs/HydraApi.md#loginWithDeviceId) | **POST** /api/v1.0/hydra/{deviceId}/login | [Private] +*Flipdish.HydraApi* | [**register**](docs/HydraApi.md#register) | **POST** /api/v1.0/{appId}/hydra/registration | [Private] +*Flipdish.HydraApi* | [**unAssign**](docs/HydraApi.md#unAssign) | **DELETE** /api/v1.0/{appId}/hydra/{deviceId}/registration | [Private] +*Flipdish.HydraApi* | [**unassignEmv**](docs/HydraApi.md#unassignEmv) | **POST** /api/v1.0/{appId}/hydra/emvterminal/unassign/{hydraConfigId} | Unassign the currently assigned EMV terminal from a kiosk +*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.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} | [Private API] 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 @@ -153,162 +263,613 @@ Class | Method | HTTP request | Description *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* | [**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} | [PRIVATE API]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} | [PRIVATE API]Move an Item within a menu *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.MenusApi* | [**deleteMenuItemMetadata**](docs/MenusApi.md#deleteMenuItemMetadata) | **GET** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId} | Get a menu item metadata by key -*Flipdish.MenusApi* | [**deleteMenuItemMetadata_0**](docs/MenusApi.md#deleteMenuItemMetadata_0) | **DELETE** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId} | Update a menu items metadata -*Flipdish.MenusApi* | [**deleteMenuSectionImage**](docs/MenusApi.md#deleteMenuSectionImage) | **DELETE** /api/v1.0/menus/{menuId}/image | Delete menu image +*Flipdish.MenusApi* | [**createDraftMenuFromExistingMenu**](docs/MenusApi.md#createDraftMenuFromExistingMenu) | **POST** /api/v1.0/menus/{menuId}/clone/{newName} | [PRIVATE API]Clone a menu, (without attaching stores) +*Flipdish.MenusApi* | [**createNewMenuForApp**](docs/MenusApi.md#createNewMenuForApp) | **POST** /api/v1.0/{appId}/menus | Create a new menu. If request body is empty, the system will create a menu with default items. +*Flipdish.MenusApi* | [**deleteMenu**](docs/MenusApi.md#deleteMenu) | **DELETE** /api/v1.0/menus/{menuId} | [PRIVATE API]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 a menu items metadata -*Flipdish.MenusApi* | [**getMenuItemOptionSetItemMetadata**](docs/MenusApi.md#getMenuItemOptionSetItemMetadata) | **GET** /api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId} | Get a menu item option set item metadata by key -*Flipdish.MenusApi* | [**setMenuItemMetadata**](docs/MenusApi.md#setMenuItemMetadata) | **PUT** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId} | Update a menu items metadata -*Flipdish.MenusApi* | [**setMenuItemOptionSetItemMetadata**](docs/MenusApi.md#setMenuItemOptionSetItemMetadata) | **PUT** /api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId} | Update a menu item option set items metadata +*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* | [**getMenuStoreNames**](docs/MenusApi.md#getMenuStoreNames) | **GET** /api/v1.0/menus/{menuId}/stores | [PRIVATE API]Get menus store names +*Flipdish.MenusApi* | [**getMenuTaxDetails**](docs/MenusApi.md#getMenuTaxDetails) | **GET** /api/v1.0/menus/{menuId}/tax | [PRIVATE API]Get menus tax details +*Flipdish.MenusApi* | [**getMenusByAppId**](docs/MenusApi.md#getMenusByAppId) | **GET** /api/v1.0/{appId}/menus | [PRIVATE API]Get menus by appId +*Flipdish.MenusApi* | [**getMenusCheckpoints**](docs/MenusApi.md#getMenusCheckpoints) | **GET** /api/v1.0/menus/{menuId}/checkpoints | [PRIVATE API]Get a Menus Checkpoints +*Flipdish.MenusApi* | [**menusDeleteTaxRate**](docs/MenusApi.md#menusDeleteTaxRate) | **DELETE** /api/v1.0/menus/{menuId}/tax/{taxId} | [PRIVATE API]Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached +*Flipdish.MenusApi* | [**menusSetDisplayOnMenuTax**](docs/MenusApi.md#menusSetDisplayOnMenuTax) | **POST** /api/v1.0/menus/{menuId}/tax/show/{show} | [PRIVATE API]Set if tax shows for a Menu +*Flipdish.MenusApi* | [**menusSetItemDisplayOrders**](docs/MenusApi.md#menusSetItemDisplayOrders) | **POST** /api/v1.0/menus/{menuId}/sectiondisplayorders | [PRIVATE API]Re-arrange Sections within a Menu +*Flipdish.MenusApi* | [**menusShowHideBulkItems**](docs/MenusApi.md#menusShowHideBulkItems) | **POST** /api/v1.0/menus/{menuId}/bulkshowhide | +*Flipdish.MenusApi* | [**menusUpdateTaxType**](docs/MenusApi.md#menusUpdateTaxType) | **POST** /api/v1.0/menus/{menuId}/tax/type/{type} | [PRIVATE API]Set the type of Tax on a Menu +*Flipdish.MenusApi* | [**menusUpsertTaxRate**](docs/MenusApi.md#menusUpsertTaxRate) | **POST** /api/v1.0/menus/{menuId}/taxrate | [PRIVATE API]Add/Update a Tax Rate +*Flipdish.MenusApi* | [**restoreAMenuCheckpoint**](docs/MenusApi.md#restoreAMenuCheckpoint) | **POST** /api/v1.0/menus/{menuId}/checkpoints/{checkpointId}/restore | [PRIVATE API]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 | [PRIVATE API]Lock/Unlock a Menu for Editing +*Flipdish.MenusApi* | [**setMenuName**](docs/MenusApi.md#setMenuName) | **POST** /api/v1.0/menus/{menuId}/name | [PRIVATE API]Set Menus Name *Flipdish.MenusApi* | [**updateMenu**](docs/MenusApi.md#updateMenu) | **POST** /api/v1.0/menus/{menuId} | Update menu -*Flipdish.MenusApi* | [**uploadMenuSectionImage**](docs/MenusApi.md#uploadMenuSectionImage) | **POST** /api/v1.0/menus/{menuId}/image | Upload menu image -*Flipdish.OAuthClientsApi* | [**addRedirectUri**](docs/OAuthClientsApi.md#addRedirectUri) | **POST** /api/v1.0/oauthclients/{oAuthClientId}/redirecturis | Create OAuth client redirect uri -*Flipdish.OAuthClientsApi* | [**createOAuthClient**](docs/OAuthClientsApi.md#createOAuthClient) | **POST** /api/v1.0/oauthclients | Create OAuth client -*Flipdish.OAuthClientsApi* | [**deleteOAuthClient**](docs/OAuthClientsApi.md#deleteOAuthClient) | **DELETE** /api/v1.0/oauthclients/{oAuthClientId} | Delete OAuth client -*Flipdish.OAuthClientsApi* | [**getOAuthClientByClientId**](docs/OAuthClientsApi.md#getOAuthClientByClientId) | **GET** /api/v1.0/oauthclients/{clientId} | Get OAuth client by identifier -*Flipdish.OAuthClientsApi* | [**getOAuthClientSecret**](docs/OAuthClientsApi.md#getOAuthClientSecret) | **GET** /api/v1.0/oauthclients/{clientId}/secret | Get OAuth client secret key -*Flipdish.OAuthClientsApi* | [**getOAuthClients**](docs/OAuthClientsApi.md#getOAuthClients) | **GET** /api/v1.0/oauthclients | Get all OAuth client -*Flipdish.OAuthClientsApi* | [**getOauthAccessToken**](docs/OAuthClientsApi.md#getOauthAccessToken) | **GET** /api/v1.0/oauthclients/{oAuthClientId}/accesstoken | Get OAuth access token for client -*Flipdish.OAuthClientsApi* | [**getRedirectUris**](docs/OAuthClientsApi.md#getRedirectUris) | **GET** /api/v1.0/oauthclients/{oAuthClientId}/redirecturis | Get OAuth client redirect uris -*Flipdish.OAuthClientsApi* | [**removeRedirectUri**](docs/OAuthClientsApi.md#removeRedirectUri) | **DELETE** /api/v1.0/oauthclients/{oAuthClientId}/redirecturis/{uriId} | Delete OAuth client redirect uri +*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.OAuthClientsApi* | [**addRedirectUri**](docs/OAuthClientsApi.md#addRedirectUri) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | Create OAuth App redirect uri +*Flipdish.OAuthClientsApi* | [**createOAuthApp**](docs/OAuthClientsApi.md#createOAuthApp) | **POST** /api/v1.0/{appId}/oauthclients | Create OAuth App +*Flipdish.OAuthClientsApi* | [**deleteOAuthApp**](docs/OAuthClientsApi.md#deleteOAuthApp) | **DELETE** /api/v1.0/{appId}/oauthclients/{oauthAppId} | Delete OAuth App +*Flipdish.OAuthClientsApi* | [**getOAuthApps**](docs/OAuthClientsApi.md#getOAuthApps) | **GET** /api/v1.0/{appId}/oauthclients | Get all OAuth Apps +*Flipdish.OAuthClientsApi* | [**getOAuthClientByClientId**](docs/OAuthClientsApi.md#getOAuthClientByClientId) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId} | Get OAuth App by identifier +*Flipdish.OAuthClientsApi* | [**getOAuthClientSecret**](docs/OAuthClientsApi.md#getOAuthClientSecret) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/secret | Get OAuth App secret key +*Flipdish.OAuthClientsApi* | [**getOauthAccessToken**](docs/OAuthClientsApi.md#getOauthAccessToken) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/accesstoken | Get OAuth access token for App +*Flipdish.OAuthClientsApi* | [**getRedirectUris**](docs/OAuthClientsApi.md#getRedirectUris) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | Get OAuth App redirect uris +*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} | Delete OAuth App redirect uri +*Flipdish.OAuthClientsApi* | [**updateOAuthApp**](docs/OAuthClientsApi.md#updateOAuthApp) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId} | Update OAuth App *Flipdish.OrdersApi* | [**acceptOrder**](docs/OrdersApi.md#acceptOrder) | **POST** /api/v1.0/orders/{id}/accept | Accept order +*Flipdish.OrdersApi* | [**dispatchOrder**](docs/OrdersApi.md#dispatchOrder) | **POST** /api/v1.0/orders/{id}/dispatch | Dispatch order *Flipdish.OrdersApi* | [**getOrderById**](docs/OrdersApi.md#getOrderById) | **GET** /api/v1.0/orders/{id} | Get order by ID *Flipdish.OrdersApi* | [**getOrders**](docs/OrdersApi.md#getOrders) | **GET** /api/v1.0/orders | Get orders by filter +*Flipdish.OrdersApi* | [**getOrdersSummary**](docs/OrdersApi.md#getOrdersSummary) | **GET** /api/v1.0/{appId}/orders/summaries | [PRIVATE API] Get summary of orders by filter *Flipdish.OrdersApi* | [**refundOrder**](docs/OrdersApi.md#refundOrder) | **POST** /api/v1.0/orders/{id}/refund | Refund order *Flipdish.OrdersApi* | [**rejectOrder**](docs/OrdersApi.md#rejectOrder) | **POST** /api/v1.0/orders/{id}/reject | Reject order +*Flipdish.PaymentsApi* | [**getOrderPaymentInformation**](docs/PaymentsApi.md#getOrderPaymentInformation) | **GET** /api/v1.0/payments/payment/{orderId}/refundable | Returns payment refund information related to the order with the order id +*Flipdish.PayoutsApi* | [**exportPayoutChargebacks**](docs/PayoutsApi.md#exportPayoutChargebacks) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks/export | Export a list of payout's chargebacks as CSV +*Flipdish.PayoutsApi* | [**exportPayoutOrders**](docs/PayoutsApi.md#exportPayoutOrders) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders/export | Export a list of payout's orders as CSV +*Flipdish.PayoutsApi* | [**exportPayoutOtherCharges**](docs/PayoutsApi.md#exportPayoutOtherCharges) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges/export | Export a list of payout's other charges as CSV +*Flipdish.PayoutsApi* | [**exportPayoutRefunds**](docs/PayoutsApi.md#exportPayoutRefunds) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds/export | Export a list of payout's refunds as CSV +*Flipdish.PayoutsApi* | [**exportPayoutStores**](docs/PayoutsApi.md#exportPayoutStores) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/export | Export payout's details as CSV +*Flipdish.PayoutsApi* | [**getPayout**](docs/PayoutsApi.md#getPayout) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId} | Get Payout details broken down by Store +*Flipdish.PayoutsApi* | [**getPayoutChargebacks**](docs/PayoutsApi.md#getPayoutChargebacks) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks | Get list of payout's chargebacks +*Flipdish.PayoutsApi* | [**getPayoutOrders**](docs/PayoutsApi.md#getPayoutOrders) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders | Get list of payout's orders +*Flipdish.PayoutsApi* | [**getPayoutOtherCharges**](docs/PayoutsApi.md#getPayoutOtherCharges) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges | Get list of payout's other charges +*Flipdish.PayoutsApi* | [**getPayoutRefunds**](docs/PayoutsApi.md#getPayoutRefunds) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds | Get list of payout's refunds +*Flipdish.PayoutsApi* | [**getPayoutSummaries**](docs/PayoutsApi.md#getPayoutSummaries) | **GET** /api/v1.0/{appId}/payouts/summaries | Get list of payout summaries +*Flipdish.PayoutsApi* | [**getPayouts**](docs/PayoutsApi.md#getPayouts) | **GET** /api/v1.0/{appId}/payouts | Get list of payouts +*Flipdish.ProcessingFeeConfigsApi* | [**getProcessingFeeConfigsByStoreIds**](docs/ProcessingFeeConfigsApi.md#getProcessingFeeConfigsByStoreIds) | **GET** /api/v1.0/processingfeeconfigs | Get processing fee configs by store identifiers +*Flipdish.PushNotificationsApi* | [**deletePushNotification**](docs/PushNotificationsApi.md#deletePushNotification) | **DELETE** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | [PRIVATE] Push notification to cutomers +*Flipdish.PushNotificationsApi* | [**getPushNotifications**](docs/PushNotificationsApi.md#getPushNotifications) | **GET** /api/v1.0/{appId}/pushnotifications | [PRIVATE] Push notification to cutomers +*Flipdish.PushNotificationsApi* | [**schedulePushNotification**](docs/PushNotificationsApi.md#schedulePushNotification) | **POST** /api/v1.0/{appId}/pushnotifications | [PRIVATE] Push notification to cutomers +*Flipdish.PushNotificationsApi* | [**updatePushNotification**](docs/PushNotificationsApi.md#updatePushNotification) | **POST** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | [PRIVATE] Update the push notification +*Flipdish.StoreGroupsApi* | [**createStoreGroup**](docs/StoreGroupsApi.md#createStoreGroup) | **POST** /api/v1.0/{appNameId}/storegroups | Creates a Store Group It will be attached to an existing App +*Flipdish.StoreGroupsApi* | [**getStoreGroup**](docs/StoreGroupsApi.md#getStoreGroup) | **GET** /api/v1.0/storegroups/{storeGroupId} | Returns a Store Groups +*Flipdish.StoreGroupsApi* | [**getStoreGroups**](docs/StoreGroupsApi.md#getStoreGroups) | **GET** /api/v1.0/{appNameId}/storegroups | Returns a paginated list of Store Groups +*Flipdish.StoreGroupsApi* | [**getStoreGroupsExtended**](docs/StoreGroupsApi.md#getStoreGroupsExtended) | **GET** /api/v1.0/{appNameId}/storegroups/extended | [PRIVATE API] Returns a paginated list of Extended Store Groups +*Flipdish.StoreGroupsApi* | [**removeStoreGroup**](docs/StoreGroupsApi.md#removeStoreGroup) | **DELETE** /api/v1.0/storegroups/{storeGroupId} | Deletes a Store Group Can only remove a store group if there is no stores attached to the group +*Flipdish.StoreGroupsApi* | [**updateStoreGroup**](docs/StoreGroupsApi.md#updateStoreGroup) | **POST** /api/v1.0/storegroups/{storeGroupId} | Updates Store Group +*Flipdish.StoreOrderCapacityApi* | [**getStoreOrderCapacity**](docs/StoreOrderCapacityApi.md#getStoreOrderCapacity) | **GET** /api/v1.0/{appId}/storeordercapacity/{storeId}/{deliveryType} | Get store's order capacity configuration +*Flipdish.StoreOrderCapacityApi* | [**updateStoreOrderCapacityConfig**](docs/StoreOrderCapacityApi.md#updateStoreOrderCapacityConfig) | **POST** /api/v1.0/{appId}/storeordercapacity/{storeId} | Create or update a store's order capacity configuration +*Flipdish.StoresApi* | [**archiveStore**](docs/StoresApi.md#archiveStore) | **POST** /api/v1.0/stores/{storeId}/archive | Archive store +*Flipdish.StoresApi* | [**assignMenu**](docs/StoresApi.md#assignMenu) | **POST** /api/v1.0/stores/{storeId}/menu/{menuId} | Assign Menu to Store +*Flipdish.StoresApi* | [**cloneStore**](docs/StoresApi.md#cloneStore) | **POST** /api/v1.0/stores/{storeId}/clone | Clone store with store clone settings +*Flipdish.StoresApi* | [**createBusinessHoursOverrideByStoreId**](docs/StoresApi.md#createBusinessHoursOverrideByStoreId) | **POST** /api/v1.0/stores/{storeId}/businesshoursoverrides | Create Business Hours Override for a store +*Flipdish.StoresApi* | [**createStore**](docs/StoresApi.md#createStore) | **POST** /api/v1.0/stores | Create store with Store Group identifier +*Flipdish.StoresApi* | [**deleteBusinessHoursOverride**](docs/StoresApi.md#deleteBusinessHoursOverride) | **DELETE** /api/v1.0/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId} | Delete Business Hours Override for a store +*Flipdish.StoresApi* | [**getBankAccountForStore**](docs/StoresApi.md#getBankAccountForStore) | **GET** /api/v1.0/stores/{storeId}/bankaccount | Get Stores Bank Account Id +*Flipdish.StoresApi* | [**getBusinessHours**](docs/StoresApi.md#getBusinessHours) | **GET** /api/v1.0/stores/{storeId}/availability/{deliveryType} | Get Business hours +*Flipdish.StoresApi* | [**getBusinessHoursOverrideByStoreId**](docs/StoresApi.md#getBusinessHoursOverrideByStoreId) | **GET** /api/v1.0/stores/{storeId}/businesshoursoverrides | Get business hours overrides by store identifier +*Flipdish.StoresApi* | [**getEndOfDayReport**](docs/StoresApi.md#getEndOfDayReport) | **GET** /api/v1.0/stores/{storeId}/endofdayreport | Get store end of day report +*Flipdish.StoresApi* | [**getPreOrderConfig**](docs/StoresApi.md#getPreOrderConfig) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | Get the pre order config for a store, by type +*Flipdish.StoresApi* | [**getPreOrderPreview**](docs/StoresApi.md#getPreOrderPreview) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/preview | Get the Preview times of the pre-order configuration +*Flipdish.StoresApi* | [**getProcessingFeeConfigsByStoreId**](docs/StoresApi.md#getProcessingFeeConfigsByStoreId) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs | Get processing fee configs by store identifier +*Flipdish.StoresApi* | [**getProcessingFeeConfigsByStoreIdAndPaymentAccountType**](docs/StoresApi.md#getProcessingFeeConfigsByStoreIdAndPaymentAccountType) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs/{paymentAccountType} | Get processing fee configs by store identifier *Flipdish.StoresApi* | [**getStoreById**](docs/StoresApi.md#getStoreById) | **GET** /api/v1.0/stores/{storeId} | Get store by identifier -*Flipdish.StoresApi* | [**getStores**](docs/StoresApi.md#getStores) | **GET** /api/v1.0/stores | Get all stores +*Flipdish.StoresApi* | [**getStoreHeadersByAppId**](docs/StoresApi.md#getStoreHeadersByAppId) | **GET** /api/v1.0/{appId}/stores/header | Get all stores by app name id +*Flipdish.StoresApi* | [**getStoreNetSales**](docs/StoresApi.md#getStoreNetSales) | **GET** /api/v1.0/{appId}/stores/stats | Get stores statistics by app name id and storeIds +*Flipdish.StoresApi* | [**getStores**](docs/StoresApi.md#getStores) | **GET** /api/v1.0/stores | Get all stores, excluding archived ones +*Flipdish.StoresApi* | [**getStoresByAppId**](docs/StoresApi.md#getStoresByAppId) | **GET** /api/v1.0/{appId}/stores | Get all stores by app name id +*Flipdish.StoresApi* | [**publishStore**](docs/StoresApi.md#publishStore) | **POST** /api/v1.0/stores/{storeId}/publish | Publish store +*Flipdish.StoresApi* | [**setBusinessHours**](docs/StoresApi.md#setBusinessHours) | **POST** /api/v1.0/stores/{storeId}/availability/{deliveryType} | Set Business hours +*Flipdish.StoresApi* | [**setPreOrdeEnabled**](docs/StoresApi.md#setPreOrdeEnabled) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/enabled | UPDATE pre order config for a store, by type +*Flipdish.StoresApi* | [**unpublishStore**](docs/StoresApi.md#unpublishStore) | **POST** /api/v1.0/stores/{storeId}/unpublish | Unpublish store +*Flipdish.StoresApi* | [**updatePreOrderConfig**](docs/StoresApi.md#updatePreOrderConfig) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | UPDATE pre order config for a store, by type +*Flipdish.StoresApi* | [**updateStore**](docs/StoresApi.md#updateStore) | **POST** /api/v1.0/stores/{storeId} | Update store by identifier +*Flipdish.StoresApi* | [**updateStoreAddress**](docs/StoresApi.md#updateStoreAddress) | **POST** /api/v1.0/stores/{storeId}/address | Update store address +*Flipdish.StoresApi* | [**updateStoreAddressCoordinates**](docs/StoresApi.md#updateStoreAddressCoordinates) | **POST** /api/v1.0/stores/{storeId}/address/coordinates | Update store address coordinates +*Flipdish.StripeCustomConnectApi* | [**createBankAccountAndConnectedAccount**](docs/StripeCustomConnectApi.md#createBankAccountAndConnectedAccount) | **POST** /api/v1.0/{appId}/customconnect/bank-account | Create a new Bank Account and Stripe connected account +*Flipdish.StripeCustomConnectApi* | [**createStripeConnectedAccount**](docs/StripeCustomConnectApi.md#createStripeConnectedAccount) | **POST** /api/v1.0/{appId}/customconnect/{bankAccountId}/create-update-account | Create or update a Stripe connected account associated with the bank account of bankAccountId +*Flipdish.StripeCustomConnectApi* | [**createStripeConnectedAccountLink**](docs/StripeCustomConnectApi.md#createStripeConnectedAccountLink) | **POST** /api/v1.0/{appId}/customconnect/{stripeConnectedAccountId}/create-account-link | Gets a single-use Stripe URL for the given account +*Flipdish.StripeCustomConnectApi* | [**getVerificationStatus**](docs/StripeCustomConnectApi.md#getVerificationStatus) | **GET** /api/v1.0/{appId}/customconnect/verification-status | Gets the current verification status of the given connected account +*Flipdish.StripeCustomConnectApi* | [**setBankAccountBusinessType**](docs/StripeCustomConnectApi.md#setBankAccountBusinessType) | **POST** /api/v1.0/{appId}/customconnect/bank-account/{bankAccountId}/businesstype | Update bank account's BusinessType and create a Stripe Connected Account +*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 | Update bank account details +*Flipdish.StuartApi* | [**stuartCancelJob**](docs/StuartApi.md#stuartCancelJob) | **DELETE** /api/v1.0/stuart/jobs/{jobId} | Cancel a stuart job +*Flipdish.StuartApi* | [**stuartGetJob**](docs/StuartApi.md#stuartGetJob) | **GET** /api/v1.0/stuart/jobs/{jobId} | Get start job details +*Flipdish.StuartApi* | [**stuartGetStuartSettings**](docs/StuartApi.md#stuartGetStuartSettings) | **GET** /api/v1.0/stuart/settings/{storeId} | Get stuart settings for a store +*Flipdish.StuartApi* | [**stuartPostStuartSettings**](docs/StuartApi.md#stuartPostStuartSettings) | **POST** /api/v1.0/stuart/settings/{storeId} | Set stuart settings for a store +*Flipdish.TeammatesApi* | [**createTeammate**](docs/TeammatesApi.md#createTeammate) | **POST** /api/v1.0/{appId}/teammates | Create teammate and send an invite. +*Flipdish.TeammatesApi* | [**deleteTeammate**](docs/TeammatesApi.md#deleteTeammate) | **DELETE** /api/v1.0/{appId}/teammates/{id} | Delete teammate +*Flipdish.TeammatesApi* | [**getTeammateByAppIdAndTeammateId**](docs/TeammatesApi.md#getTeammateByAppIdAndTeammateId) | **GET** /api/v1.0/{appId}/teammates/{id} | Get a teammates by email address +*Flipdish.TeammatesApi* | [**getTeammatesByAppId**](docs/TeammatesApi.md#getTeammatesByAppId) | **GET** /api/v1.0/{appId}/teammates | Get all teammates +*Flipdish.TeammatesApi* | [**redeemInvitation**](docs/TeammatesApi.md#redeemInvitation) | **GET** /api/v1.0/{appId}/teammates/redeem/{otc} | Redeem one-time code from invitation +*Flipdish.TeammatesApi* | [**updateTeammate**](docs/TeammatesApi.md#updateTeammate) | **POST** /api/v1.0/{appId}/teammates/{id} | Update teammates (this method does not support Deltas!) +*Flipdish.UsersApi* | [**getPreviousOrderCountForStore**](docs/UsersApi.md#getPreviousOrderCountForStore) | **GET** /api/v1.0/users/{userId}/previousordercount/{storeId} | *Flipdish.UsersApi* | [**getRoles**](docs/UsersApi.md#getRoles) | **GET** /api/v1.0/users/roles | Get role names -*Flipdish.VouchersApi* | [**deleteVoucherMetadata**](docs/VouchersApi.md#deleteVoucherMetadata) | **DELETE** /api/v1.0/vouchers/{voucherId}/menu/{menuId}/store/{storeId}/metadata/{key} | Delete voucher metadata -*Flipdish.VouchersApi* | [**getVoucherById**](docs/VouchersApi.md#getVoucherById) | **GET** /api/v1.0/vouchers/{voucherId} | Get voucher by identifier -*Flipdish.VouchersApi* | [**getVoucherMetadata**](docs/VouchersApi.md#getVoucherMetadata) | **GET** /api/v1.0/vouchers/{voucherId}/menu/{menuId}/store/{storeId}/metadata | Get voucher metadata -*Flipdish.VouchersApi* | [**getVoucherMetadata_0**](docs/VouchersApi.md#getVoucherMetadata_0) | **GET** /api/v1.0/vouchers/{voucherId}/menu/{menuId}/store/{storeId}/metadata/{key} | Get voucher metadata -*Flipdish.VouchersApi* | [**getVouchers**](docs/VouchersApi.md#getVouchers) | **GET** /api/v1.0/vouchers | Get vouchers -*Flipdish.VouchersApi* | [**setVoucherMetadata**](docs/VouchersApi.md#setVoucherMetadata) | **PUT** /api/v1.0/vouchers/{voucherId}/menu/{menuId}/store/{storeId}/metadata/{key} | Add voucher metadata -*Flipdish.WebhooksApi* | [**craeteWebhookSubscription**](docs/WebhooksApi.md#craeteWebhookSubscription) | **POST** /api/v1.0/webhooks/{clientId}/subscriptions | Create a webhook subscription for you Oauth client -*Flipdish.WebhooksApi* | [**createWebhookSubscriptionEventNames**](docs/WebhooksApi.md#createWebhookSubscriptionEventNames) | **POST** /api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | Add event name to your webhook subscription -*Flipdish.WebhooksApi* | [**deleteWebhookSubscription**](docs/WebhooksApi.md#deleteWebhookSubscription) | **DELETE** /api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId} | Delete you webhook subscription -*Flipdish.WebhooksApi* | [**deleteWebhookSubscriptionEventName**](docs/WebhooksApi.md#deleteWebhookSubscriptionEventName) | **DELETE** /api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | Remove event name to your webhook subscription -*Flipdish.WebhooksApi* | [**getWebhookEventNames**](docs/WebhooksApi.md#getWebhookEventNames) | **GET** /api/v1.0/webhooks/events | Get all webhook subscription event names -*Flipdish.WebhooksApi* | [**getWebhookEventNamesBySubscriptionId**](docs/WebhooksApi.md#getWebhookEventNamesBySubscriptionId) | **GET** /api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId}/events | Get your webhook subscriptions selected event names -*Flipdish.WebhooksApi* | [**getWebhookLogs**](docs/WebhooksApi.md#getWebhookLogs) | **GET** /api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId}/logs | Get logs for your webhook subscription -*Flipdish.WebhooksApi* | [**getWebhookSubscriptions**](docs/WebhooksApi.md#getWebhookSubscriptions) | **GET** /api/v1.0/webhooks/{clientId}/subscriptions | Get all webhook subscriptions by your Oauth client id -*Flipdish.WebhooksApi* | [**updateWebhookSubscription**](docs/WebhooksApi.md#updateWebhookSubscription) | **PUT** /api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId} | Update a webhook subscription object +*Flipdish.VouchersApi* | [**createVoucher**](docs/VouchersApi.md#createVoucher) | **POST** /api/v1.0/vouchers/{appId} | [PRIVATE API] Create voucher +*Flipdish.VouchersApi* | [**getVoucherById**](docs/VouchersApi.md#getVoucherById) | **GET** /api/v1.0/vouchers/{voucherId} | [PRIVATE API] Get voucher by identifier +*Flipdish.VouchersApi* | [**getVoucherStatsById**](docs/VouchersApi.md#getVoucherStatsById) | **GET** /api/v1.0/vouchers/stats/{voucherId} | [PRIVATE API] Get voucher stats by identifier +*Flipdish.VouchersApi* | [**getVouchers**](docs/VouchersApi.md#getVouchers) | **GET** /api/v1.0/{appId}/vouchers/summaries | [PRIVATE API] Get vouchers summaries for App Id +*Flipdish.VouchersApi* | [**updateVoucher**](docs/VouchersApi.md#updateVoucher) | **POST** /api/v1.0/vouchers/{voucherId} | [PRIVATE API] Updates voucher +*Flipdish.WebhooksApi* | [**craeteWebhookSubscription**](docs/WebhooksApi.md#craeteWebhookSubscription) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | Create a webhook subscription for you Oauth App +*Flipdish.WebhooksApi* | [**createWebhookSubscriptionEventNames**](docs/WebhooksApi.md#createWebhookSubscriptionEventNames) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | Add event name to your webhook subscription +*Flipdish.WebhooksApi* | [**deleteWebhookSubscription**](docs/WebhooksApi.md#deleteWebhookSubscription) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | Delete you webhook subscription +*Flipdish.WebhooksApi* | [**deleteWebhookSubscriptionEventName**](docs/WebhooksApi.md#deleteWebhookSubscriptionEventName) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | Remove event name to your webhook subscription +*Flipdish.WebhooksApi* | [**getWebhookEventNames**](docs/WebhooksApi.md#getWebhookEventNames) | **GET** /api/v1.0/{appId}/webhooks/events | Get all webhook subscription event names +*Flipdish.WebhooksApi* | [**getWebhookEventNamesBySubscriptionId**](docs/WebhooksApi.md#getWebhookEventNamesBySubscriptionId) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events | Get your webhook subscriptions selected event names +*Flipdish.WebhooksApi* | [**getWebhookEventSample**](docs/WebhooksApi.md#getWebhookEventSample) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}/test | Get a sample event from a webhook subscription +*Flipdish.WebhooksApi* | [**getWebhookLogs**](docs/WebhooksApi.md#getWebhookLogs) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/logs | Get logs for your webhook subscription +*Flipdish.WebhooksApi* | [**getWebhookSubscriptions**](docs/WebhooksApi.md#getWebhookSubscriptions) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | Get all webhook subscriptions by your Oauth App id +*Flipdish.WebhooksApi* | [**updateWebhookSubscription**](docs/WebhooksApi.md#updateWebhookSubscription) | **PUT** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | Update a webhook subscription object +*Flipdish.WebsiteApi* | [**addTestimonial**](docs/WebsiteApi.md#addTestimonial) | **POST** /api/v1.0/{appId}/website/testimonial | Add a testimonial +*Flipdish.WebsiteApi* | [**deleteTestimonial**](docs/WebsiteApi.md#deleteTestimonial) | **DELETE** /api/v1.0/{appId}/website/testimonial/{testimonialId} | Delete a testimonial +*Flipdish.WebsiteApi* | [**deleteWebsiteImage**](docs/WebsiteApi.md#deleteWebsiteImage) | **DELETE** /api/v1.0/{appId}/website/image/{imageId} | Delete Website Image +*Flipdish.WebsiteApi* | [**editTestimonial**](docs/WebsiteApi.md#editTestimonial) | **POST** /api/v1.0/{appId}/website/testimonial/{testimonialId} | Edit a testimonial +*Flipdish.WebsiteApi* | [**getIndexConfiguration**](docs/WebsiteApi.md#getIndexConfiguration) | **GET** /api/v1.0/{appId}/website/index | Get Index Configuration +*Flipdish.WebsiteApi* | [**setIndexConfiguration**](docs/WebsiteApi.md#setIndexConfiguration) | **POST** /api/v1.0/{appId}/website/index | Set Index Configuration +*Flipdish.WebsiteApi* | [**uploadWebsiteImage**](docs/WebsiteApi.md#uploadWebsiteImage) | **POST** /api/v1.0/{appId}/website/image/{imageLocation} | Upload Website Image +*Flipdish.WebsiteApi* | [**websiteCheckNow**](docs/WebsiteApi.md#websiteCheckNow) | **GET** /api/v1.0/{appId}/website/dnscheck | Triggers a Check DNS Process ## Documentation for Models - [Flipdish.Accept](docs/Accept.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.AddItemDetails](docs/AddItemDetails.md) + - [Flipdish.AllMetadataResult](docs/AllMetadataResult.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.AppCompliance](docs/AppCompliance.md) + - [Flipdish.AppConfigUpdateModel](docs/AppConfigUpdateModel.md) + - [Flipdish.AppCreatedEvent](docs/AppCreatedEvent.md) + - [Flipdish.AppUpdatedEvent](docs/AppUpdatedEvent.md) + - [Flipdish.AssignedBankAccount](docs/AssignedBankAccount.md) + - [Flipdish.BalanceDetails](docs/BalanceDetails.md) + - [Flipdish.BankAccount](docs/BankAccount.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.CampaignCreatedEvent](docs/CampaignCreatedEvent.md) + - [Flipdish.BusinessHoursPeriodBase](docs/BusinessHoursPeriodBase.md) + - [Flipdish.CampaignStatistics](docs/CampaignStatistics.md) + - [Flipdish.CertificateCreatedEvent](docs/CertificateCreatedEvent.md) + - [Flipdish.CertificateRenewedEvent](docs/CertificateRenewedEvent.md) + - [Flipdish.ChangePasswordModel](docs/ChangePasswordModel.md) + - [Flipdish.ChargebackDetails](docs/ChargebackDetails.md) - [Flipdish.Coordinates](docs/Coordinates.md) + - [Flipdish.CountryWithAccountFieldsDefinitions](docs/CountryWithAccountFieldsDefinitions.md) + - [Flipdish.CreateAccountModel](docs/CreateAccountModel.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.CreateMenuTaxRate](docs/CreateMenuTaxRate.md) + - [Flipdish.CreateMetadata](docs/CreateMetadata.md) + - [Flipdish.CreateTeammate](docs/CreateTeammate.md) + - [Flipdish.CreateVoucher](docs/CreateVoucher.md) + - [Flipdish.CreditNoteDetails](docs/CreditNoteDetails.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.CustomerCreatedEvent](docs/CustomerCreatedEvent.md) + - [Flipdish.CustomerDeliveryTrackingOrder](docs/CustomerDeliveryTrackingOrder.md) + - [Flipdish.CustomerDeliveryTrackingOrderLine](docs/CustomerDeliveryTrackingOrderLine.md) - [Flipdish.CustomerSummary](docs/CustomerSummary.md) + - [Flipdish.CustomerUpdateModel](docs/CustomerUpdateModel.md) - [Flipdish.CustomerUpdatedEvent](docs/CustomerUpdatedEvent.md) - - [Flipdish.DeliveryFeeArea](docs/DeliveryFeeArea.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.DeviceSettings](docs/DeviceSettings.md) + - [Flipdish.DnsRecordInformation](docs/DnsRecordInformation.md) + - [Flipdish.DnsVerifiedEvent](docs/DnsVerifiedEvent.md) + - [Flipdish.Driver](docs/Driver.md) + - [Flipdish.DriverInvitation](docs/DriverInvitation.md) + - [Flipdish.DriverLoginModel](docs/DriverLoginModel.md) + - [Flipdish.DriverRequestLoginPinModel](docs/DriverRequestLoginPinModel.md) + - [Flipdish.DriverStore](docs/DriverStore.md) + - [Flipdish.EmvNotificationEvent](docs/EmvNotificationEvent.md) + - [Flipdish.EmvTerminal](docs/EmvTerminal.md) + - [Flipdish.EmvTerminalWithAssignments](docs/EmvTerminalWithAssignments.md) - [Flipdish.EventSearchResult](docs/EventSearchResult.md) - [Flipdish.FeeSummary](docs/FeeSummary.md) + - [Flipdish.FlipdishEventBase](docs/FlipdishEventBase.md) + - [Flipdish.FlipdishFeesDetails](docs/FlipdishFeesDetails.md) + - [Flipdish.GroupedCoordinates](docs/GroupedCoordinates.md) + - [Flipdish.HomeAction](docs/HomeAction.md) + - [Flipdish.HomeStatistics](docs/HomeStatistics.md) - [Flipdish.HttpRequestAndResponseLog](docs/HttpRequestAndResponseLog.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.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.KioskBluetoothTerminalInitiateUpdateCheckEvent](docs/KioskBluetoothTerminalInitiateUpdateCheckEvent.md) + - [Flipdish.KioskBluetoothTerminalUpdatedEvent](docs/KioskBluetoothTerminalUpdatedEvent.md) + - [Flipdish.KioskBluetoothUnpairingModeEvent](docs/KioskBluetoothUnpairingModeEvent.md) + - [Flipdish.Language](docs/Language.md) + - [Flipdish.LightspeedSettings](docs/LightspeedSettings.md) + - [Flipdish.LocalisedTimeZone](docs/LocalisedTimeZone.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.MaskedPhoneNumber](docs/MaskedPhoneNumber.md) - [Flipdish.Menu](docs/Menu.md) - [Flipdish.MenuBase](docs/MenuBase.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.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.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.Metadata](docs/Metadata.md) - - [Flipdish.OAuthClient](docs/OAuthClient.md) + - [Flipdish.OAuthApp](docs/OAuthApp.md) - [Flipdish.OAuthTokenModel](docs/OAuthTokenModel.md) - [Flipdish.OauthClientRedirectUri](docs/OauthClientRedirectUri.md) + - [Flipdish.ObjectDisplayOrder](docs/ObjectDisplayOrder.md) - [Flipdish.Order](docs/Order.md) - [Flipdish.OrderAcceptedEvent](docs/OrderAcceptedEvent.md) + - [Flipdish.OrderCapacityConfigUpdatedEvent](docs/OrderCapacityConfigUpdatedEvent.md) - [Flipdish.OrderCreatedEvent](docs/OrderCreatedEvent.md) + - [Flipdish.OrderCustomerTrackingCreatedEvent](docs/OrderCustomerTrackingCreatedEvent.md) + - [Flipdish.OrderDeliveryTrackingStatusUpdatedEvent](docs/OrderDeliveryTrackingStatusUpdatedEvent.md) + - [Flipdish.OrderDispatchedEvent](docs/OrderDispatchedEvent.md) + - [Flipdish.OrderIdAndSequenceNumber](docs/OrderIdAndSequenceNumber.md) - [Flipdish.OrderItem](docs/OrderItem.md) - [Flipdish.OrderItemOption](docs/OrderItemOption.md) + - [Flipdish.OrderPaymentInformation](docs/OrderPaymentInformation.md) - [Flipdish.OrderRatingUpdatedEvent](docs/OrderRatingUpdatedEvent.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.PasswordResetModel](docs/PasswordResetModel.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.PayoutStore](docs/PayoutStore.md) + - [Flipdish.PayoutSummary](docs/PayoutSummary.md) + - [Flipdish.PercentDiscountDetails](docs/PercentDiscountDetails.md) + - [Flipdish.PhoneCall](docs/PhoneCall.md) + - [Flipdish.PhoneCallEndedEvent](docs/PhoneCallEndedEvent.md) + - [Flipdish.PhoneCallStartedEvent](docs/PhoneCallStartedEvent.md) + - [Flipdish.PreOrderConfig](docs/PreOrderConfig.md) + - [Flipdish.PreOrderTime](docs/PreOrderTime.md) + - [Flipdish.PredefinedAnswer](docs/PredefinedAnswer.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.ProcessingFeeConfig](docs/ProcessingFeeConfig.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.RedeemInvitationResult](docs/RedeemInvitationResult.md) - [Flipdish.Refund](docs/Refund.md) - [Flipdish.Reject](docs/Reject.md) + - [Flipdish.RequestLoginPinModel](docs/RequestLoginPinModel.md) + - [Flipdish.RequestLoginPinResposne](docs/RequestLoginPinResposne.md) + - [Flipdish.RequestPasswordResetModel](docs/RequestPasswordResetModel.md) + - [Flipdish.RestApiArrayResultAllMetadataResult](docs/RestApiArrayResultAllMetadataResult.md) + - [Flipdish.RestApiArrayResultApmCurrencyDataPoint](docs/RestApiArrayResultApmCurrencyDataPoint.md) + - [Flipdish.RestApiArrayResultApmDataPoint](docs/RestApiArrayResultApmDataPoint.md) + - [Flipdish.RestApiArrayResultApmHourlyDataPoint](docs/RestApiArrayResultApmHourlyDataPoint.md) + - [Flipdish.RestApiArrayResultBankAccountSummary](docs/RestApiArrayResultBankAccountSummary.md) + - [Flipdish.RestApiArrayResultBusinessHoursPeriod](docs/RestApiArrayResultBusinessHoursPeriod.md) + - [Flipdish.RestApiArrayResultCountryWithAccountFieldsDefinitions](docs/RestApiArrayResultCountryWithAccountFieldsDefinitions.md) + - [Flipdish.RestApiArrayResultDeliveryZone](docs/RestApiArrayResultDeliveryZone.md) + - [Flipdish.RestApiArrayResultDriver](docs/RestApiArrayResultDriver.md) + - [Flipdish.RestApiArrayResultDriverStore](docs/RestApiArrayResultDriverStore.md) + - [Flipdish.RestApiArrayResultEmvTerminalWithAssignments](docs/RestApiArrayResultEmvTerminalWithAssignments.md) + - [Flipdish.RestApiArrayResultHomeAction](docs/RestApiArrayResultHomeAction.md) + - [Flipdish.RestApiArrayResultLocalisedTimeZone](docs/RestApiArrayResultLocalisedTimeZone.md) + - [Flipdish.RestApiArrayResultLoyaltyCampaign](docs/RestApiArrayResultLoyaltyCampaign.md) + - [Flipdish.RestApiArrayResultMenuCheckpoint](docs/RestApiArrayResultMenuCheckpoint.md) + - [Flipdish.RestApiArrayResultMenuElementEditResponse](docs/RestApiArrayResultMenuElementEditResponse.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.RestApiArrayResultMetadata](docs/RestApiArrayResultMetadata.md) - - [Flipdish.RestApiArrayResultOAuthClient](docs/RestApiArrayResultOAuthClient.md) + - [Flipdish.RestApiArrayResultOAuthApp](docs/RestApiArrayResultOAuthApp.md) - [Flipdish.RestApiArrayResultOauthClientRedirectUri](docs/RestApiArrayResultOauthClientRedirectUri.md) + - [Flipdish.RestApiArrayResultPayoutSummary](docs/RestApiArrayResultPayoutSummary.md) + - [Flipdish.RestApiArrayResultPreOrderTime](docs/RestApiArrayResultPreOrderTime.md) + - [Flipdish.RestApiArrayResultProcessingFeeConfig](docs/RestApiArrayResultProcessingFeeConfig.md) - [Flipdish.RestApiArrayResultRestApiDefaultResponse](docs/RestApiArrayResultRestApiDefaultResponse.md) - - [Flipdish.RestApiArrayResultWebhookSubscription](docs/RestApiArrayResultWebhookSubscription.md) + - [Flipdish.RestApiArrayResultRetentionCampaign](docs/RestApiArrayResultRetentionCampaign.md) + - [Flipdish.RestApiArrayResultStoreListItem](docs/RestApiArrayResultStoreListItem.md) + - [Flipdish.RestApiArrayResultStoreStatistics](docs/RestApiArrayResultStoreStatistics.md) + - [Flipdish.RestApiArrayResultSupportedCountry](docs/RestApiArrayResultSupportedCountry.md) + - [Flipdish.RestApiArrayResultTeammate](docs/RestApiArrayResultTeammate.md) + - [Flipdish.RestApiArrayResultVoucherDataPoint](docs/RestApiArrayResultVoucherDataPoint.md) - [Flipdish.RestApiDefaultResponse](docs/RestApiDefaultResponse.md) - [Flipdish.RestApiErrorResult](docs/RestApiErrorResult.md) - [Flipdish.RestApiEventSearchPaginationResult](docs/RestApiEventSearchPaginationResult.md) - [Flipdish.RestApiForbiddenResult](docs/RestApiForbiddenResult.md) - [Flipdish.RestApiIntegerResult](docs/RestApiIntegerResult.md) + - [Flipdish.RestApiPaginationResultApp](docs/RestApiPaginationResultApp.md) + - [Flipdish.RestApiPaginationResultBusinessHoursOverride](docs/RestApiPaginationResultBusinessHoursOverride.md) - [Flipdish.RestApiPaginationResultHttpRequestAndResponseLog](docs/RestApiPaginationResultHttpRequestAndResponseLog.md) + - [Flipdish.RestApiPaginationResultHydraDeviceDetails](docs/RestApiPaginationResultHydraDeviceDetails.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.RestApiPaginationResultPhoneCall](docs/RestApiPaginationResultPhoneCall.md) + - [Flipdish.RestApiPaginationResultPushNotificationResponse](docs/RestApiPaginationResultPushNotificationResponse.md) - [Flipdish.RestApiPaginationResultStore](docs/RestApiPaginationResultStore.md) - - [Flipdish.RestApiPaginationResultVoucher](docs/RestApiPaginationResultVoucher.md) + - [Flipdish.RestApiPaginationResultStoreGroup](docs/RestApiPaginationResultStoreGroup.md) + - [Flipdish.RestApiPaginationResultStoreGroupExtended](docs/RestApiPaginationResultStoreGroupExtended.md) + - [Flipdish.RestApiPaginationResultStoreHeader](docs/RestApiPaginationResultStoreHeader.md) + - [Flipdish.RestApiPaginationResultVoucherSummary](docs/RestApiPaginationResultVoucherSummary.md) - [Flipdish.RestApiPaginationResultWebhookLog](docs/RestApiPaginationResultWebhookLog.md) + - [Flipdish.RestApiPaginationResultWebhookSubscription](docs/RestApiPaginationResultWebhookSubscription.md) + - [Flipdish.RestApiResultAccountDetail](docs/RestApiResultAccountDetail.md) + - [Flipdish.RestApiResultAccountFieldsDefinitions](docs/RestApiResultAccountFieldsDefinitions.md) + - [Flipdish.RestApiResultApmStatistics](docs/RestApiResultApmStatistics.md) + - [Flipdish.RestApiResultApmStatus](docs/RestApiResultApmStatus.md) + - [Flipdish.RestApiResultApp](docs/RestApiResultApp.md) + - [Flipdish.RestApiResultAppCompliance](docs/RestApiResultAppCompliance.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.RestApiResultCoordinates](docs/RestApiResultCoordinates.md) + - [Flipdish.RestApiResultCustomer](docs/RestApiResultCustomer.md) + - [Flipdish.RestApiResultDeliveryZone](docs/RestApiResultDeliveryZone.md) + - [Flipdish.RestApiResultDnsRecordInformation](docs/RestApiResultDnsRecordInformation.md) + - [Flipdish.RestApiResultDriver](docs/RestApiResultDriver.md) + - [Flipdish.RestApiResultHomeStatistics](docs/RestApiResultHomeStatistics.md) + - [Flipdish.RestApiResultHydraConfig](docs/RestApiResultHydraConfig.md) + - [Flipdish.RestApiResultHydraStatus](docs/RestApiResultHydraStatus.md) + - [Flipdish.RestApiResultIndexPage](docs/RestApiResultIndexPage.md) + - [Flipdish.RestApiResultIndexPageBase](docs/RestApiResultIndexPageBase.md) + - [Flipdish.RestApiResultJobResponse](docs/RestApiResultJobResponse.md) + - [Flipdish.RestApiResultLightspeedSettings](docs/RestApiResultLightspeedSettings.md) + - [Flipdish.RestApiResultLoyaltyCampaign](docs/RestApiResultLoyaltyCampaign.md) - [Flipdish.RestApiResultMenu](docs/RestApiResultMenu.md) - [Flipdish.RestApiResultMenuItemOptionSet](docs/RestApiResultMenuItemOptionSet.md) - [Flipdish.RestApiResultMenuItemOptionSetItem](docs/RestApiResultMenuItemOptionSetItem.md) - [Flipdish.RestApiResultMenuSection](docs/RestApiResultMenuSection.md) + - [Flipdish.RestApiResultMenuSectionAvailability](docs/RestApiResultMenuSectionAvailability.md) - [Flipdish.RestApiResultMenuSectionItem](docs/RestApiResultMenuSectionItem.md) - [Flipdish.RestApiResultMetadata](docs/RestApiResultMetadata.md) - - [Flipdish.RestApiResultOAuthClient](docs/RestApiResultOAuthClient.md) + - [Flipdish.RestApiResultOAuthApp](docs/RestApiResultOAuthApp.md) - [Flipdish.RestApiResultOauthClientRedirectUri](docs/RestApiResultOauthClientRedirectUri.md) - [Flipdish.RestApiResultOrder](docs/RestApiResultOrder.md) + - [Flipdish.RestApiResultOrderPaymentInformation](docs/RestApiResultOrderPaymentInformation.md) + - [Flipdish.RestApiResultPaymentTerminalDetails](docs/RestApiResultPaymentTerminalDetails.md) + - [Flipdish.RestApiResultPaymentTerminalTransactionDetails](docs/RestApiResultPaymentTerminalTransactionDetails.md) + - [Flipdish.RestApiResultPreOrderConfig](docs/RestApiResultPreOrderConfig.md) + - [Flipdish.RestApiResultProcessingFeeConfig](docs/RestApiResultProcessingFeeConfig.md) + - [Flipdish.RestApiResultPushNotificationResponse](docs/RestApiResultPushNotificationResponse.md) + - [Flipdish.RestApiResultRedeemInvitationResult](docs/RestApiResultRedeemInvitationResult.md) + - [Flipdish.RestApiResultRetentionCampaign](docs/RestApiResultRetentionCampaign.md) - [Flipdish.RestApiResultStore](docs/RestApiResultStore.md) - - [Flipdish.RestApiResultVoucher](docs/RestApiResultVoucher.md) + - [Flipdish.RestApiResultStoreAddress](docs/RestApiResultStoreAddress.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.RestApiResultStripeTerminalPrivateKey](docs/RestApiResultStripeTerminalPrivateKey.md) + - [Flipdish.RestApiResultStuartSettings](docs/RestApiResultStuartSettings.md) + - [Flipdish.RestApiResultTeammate](docs/RestApiResultTeammate.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.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.SearchCriteria](docs/SearchCriteria.md) + - [Flipdish.SetPasswordWithPinModel](docs/SetPasswordWithPinModel.md) + - [Flipdish.SignupStep](docs/SignupStep.md) + - [Flipdish.SmsInfo](docs/SmsInfo.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.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.StoreCloneSettings](docs/StoreCloneSettings.md) + - [Flipdish.StoreCreateBase](docs/StoreCreateBase.md) - [Flipdish.StoreCreatedEvent](docs/StoreCreatedEvent.md) + - [Flipdish.StoreDataPoint](docs/StoreDataPoint.md) - [Flipdish.StoreDeletedEvent](docs/StoreDeletedEvent.md) - - [Flipdish.StoreDeliveryZoneUpdatedEvent](docs/StoreDeliveryZoneUpdatedEvent.md) + - [Flipdish.StoreEndOfDayReport](docs/StoreEndOfDayReport.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.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.StoreStatistics](docs/StoreStatistics.md) - [Flipdish.StoreSummary](docs/StoreSummary.md) + - [Flipdish.StoreUnarchivedEvent](docs/StoreUnarchivedEvent.md) + - [Flipdish.StoreUnpublishedEvent](docs/StoreUnpublishedEvent.md) - [Flipdish.StoreUpdatedEvent](docs/StoreUpdatedEvent.md) + - [Flipdish.StripeAccountLinkRequest](docs/StripeAccountLinkRequest.md) + - [Flipdish.StripeConnectedAccount](docs/StripeConnectedAccount.md) + - [Flipdish.StripeConnectedAccountInfo](docs/StripeConnectedAccountInfo.md) + - [Flipdish.StripeTerminalPrivateKey](docs/StripeTerminalPrivateKey.md) + - [Flipdish.StuartSettings](docs/StuartSettings.md) + - [Flipdish.StuartSettingsTransportPrices](docs/StuartSettingsTransportPrices.md) + - [Flipdish.SupportedCountry](docs/SupportedCountry.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.UpdateDriverNotificationToken](docs/UpdateDriverNotificationToken.md) + - [Flipdish.UpdateDriverProfileModel](docs/UpdateDriverProfileModel.md) + - [Flipdish.UserAnsweredSignupQuestionsEvent](docs/UserAnsweredSignupQuestionsEvent.md) + - [Flipdish.UserCreatedEvent](docs/UserCreatedEvent.md) + - [Flipdish.UserDeletedEvent](docs/UserDeletedEvent.md) - [Flipdish.UserEventInfo](docs/UserEventInfo.md) + - [Flipdish.UserLoginEvent](docs/UserLoginEvent.md) + - [Flipdish.UserPasswordCreatedEvent](docs/UserPasswordCreatedEvent.md) + - [Flipdish.UserUpdatedEvent](docs/UserUpdatedEvent.md) - [Flipdish.ValidationErrorResult](docs/ValidationErrorResult.md) - [Flipdish.Voucher](docs/Voucher.md) + - [Flipdish.VoucherBase](docs/VoucherBase.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.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) ## Documentation for Authorization @@ -318,7 +879,7 @@ Class | Method | HTTP request | Description - **Type**: OAuth - **Flow**: implicit -- **Authorization URL**: https://app.getflipdish.com/identity/connect/authorize +- **Authorization URL**: https://api.flipdish.co/identity/connect/authorize - **Scopes**: - api: Access to Flipdish API diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 4d31d9db..00000000 --- a/circle.yml +++ /dev/null @@ -1,20 +0,0 @@ -machine: - node: - version: 8.9.4 - npm: - version: 5.6.0 -dependencies: - pre: - - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - override: - - npm install -test: - override: - - echo "test" -deployment: - production: - branch: master - commands: - - npm version 1.0.$CIRCLE_BUILD_NUM --no-git-tag-version - - npm version - - npm publish --access public \ No newline at end of file diff --git a/docs/Accept.md b/docs/Accept.md index 7cb39e57..ab320790 100644 --- a/docs/Accept.md +++ b/docs/Accept.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**estimatedMinutesForDelivery** | **Number** | Estimated minutes for delivery | [optional] +**EstimatedMinutesForDelivery** | **Number** | Estimated minutes for delivery | [optional] diff --git a/docs/AccountDetail.md b/docs/AccountDetail.md new file mode 100644 index 00000000..933165db --- /dev/null +++ b/docs/AccountDetail.md @@ -0,0 +1,17 @@ +# 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] + + diff --git a/docs/AccountDetailBase.md b/docs/AccountDetailBase.md new file mode 100644 index 00000000..b3ca1298 --- /dev/null +++ b/docs/AccountDetailBase.md @@ -0,0 +1,12 @@ +# 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] + + diff --git a/docs/AccountFieldDefinition.md b/docs/AccountFieldDefinition.md new file mode 100644 index 00000000..fc2ecdd9 --- /dev/null +++ b/docs/AccountFieldDefinition.md @@ -0,0 +1,58 @@ +# 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..cbf891f3 --- /dev/null +++ b/docs/AccountFieldKeyValuePair.md @@ -0,0 +1,42 @@ +# 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..83f03d89 --- /dev/null +++ b/docs/AccountFieldsDefinitions.md @@ -0,0 +1,8 @@ +# 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..1347d5aa --- /dev/null +++ b/docs/AccountsApi.md @@ -0,0 +1,693 @@ +# 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 | Answer a signup question +[**changePassword**](AccountsApi.md#changePassword) | **PUT** /api/v1.0/accounts/password | Change password +[**changePasswordWithPin**](AccountsApi.md#changePasswordWithPin) | **PUT** /api/v1.0/accounts/password/pin | Change password +[**createAccount**](AccountsApi.md#createAccount) | **POST** /api/v1.0/accounts | Create account with email address and store name +[**getAccountDetails**](AccountsApi.md#getAccountDetails) | **GET** /api/v1.0/accounts | Gets the current account detail +[**getLocalisedTimeZones**](AccountsApi.md#getLocalisedTimeZones) | **GET** /api/v1.0/accounts/timezones | [PRIVATE API] Get timezones localised to users language +[**login**](AccountsApi.md#login) | **POST** /api/v1.0/accounts/login | Login with username and password +[**loginWithPin**](AccountsApi.md#loginWithPin) | **POST** /api/v1.0/accounts/login/pin | Login with username and password +[**logout**](AccountsApi.md#logout) | **POST** /api/v1.0/accounts/logout | Log out. It removes Flipdish authorization Cookie. +[**passwordResetWithToken**](AccountsApi.md#passwordResetWithToken) | **POST** /api/v1.0/accounts/password | Reset password with token. +[**requestLoginPin**](AccountsApi.md#requestLoginPin) | **POST** /api/v1.0/accounts/pin | Request login PIN. The server sends the PIN to the email address. +[**requestPasswordReset**](AccountsApi.md#requestPasswordReset) | **POST** /api/v1.0/accounts/passwordreset | Request password reset. Flipdish system will send a token via email. +[**skipSignupStep**](AccountsApi.md#skipSignupStep) | **POST** /api/v1.0/accounts/signupstep/{signupStepAction}/skip | Skip a signup question +[**updateAccount**](AccountsApi.md#updateAccount) | **PUT** /api/v1.0/accounts | Update account with name and language + + + +# **answerSignUpQuestion** +> answerSignUpQuestion(signupStepAction, answerId) + +Answer a signup question + +### Example +```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 apiInstance = new Flipdish.AccountsApi(); + +var signupStepAction = "signupStepAction_example"; // String | Signup step action + +var answerId = 56; // Number | Identifier of the answer + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.answerSignUpQuestion(signupStepAction, answerId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **signupStepAction** | **String**| Signup step action | + **answerId** | **Number**| Identifier of the answer | + +### 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) + +Change password + +### Example +```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 apiInstance = new Flipdish.AccountsApi(); + +var changePasswordModel = new Flipdish.ChangePasswordModel(); // ChangePasswordModel | Change password model + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.changePassword(changePasswordModel, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **changePasswordModel** | [**ChangePasswordModel**](ChangePasswordModel.md)| Change password model | + +### 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 + + +# **changePasswordWithPin** +> changePasswordWithPin(changePasswordModel) + +Change password + +### Example +```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 apiInstance = new Flipdish.AccountsApi(); + +var changePasswordModel = new Flipdish.SetPasswordWithPinModel(); // SetPasswordWithPinModel | Change password model + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.changePasswordWithPin(changePasswordModel, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **changePasswordModel** | [**SetPasswordWithPinModel**](SetPasswordWithPinModel.md)| Change password model | + +### 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 + + +# **createAccount** +> createAccount(createAccountModel) + +Create account with email address and store name + +### Example +```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 apiInstance = new Flipdish.AccountsApi(); + +var createAccountModel = new Flipdish.CreateAccountModel(); // CreateAccountModel | Create account model + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.createAccount(createAccountModel, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createAccountModel** | [**CreateAccountModel**](CreateAccountModel.md)| Create account model | + +### 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 + + +# **getAccountDetails** +> RestApiResultAccountDetail getAccountDetails() + +Gets the current account detail + +### Example +```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 apiInstance = new Flipdish.AccountsApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getAccountDetails(callback); +``` + +### 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 + + +# **getLocalisedTimeZones** +> RestApiArrayResultLocalisedTimeZone getLocalisedTimeZones() + +[PRIVATE API] Get timezones localised to users language + +### Example +```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 apiInstance = new Flipdish.AccountsApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getLocalisedTimeZones(callback); +``` + +### 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) + +Login with username and password + +### Example +```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 apiInstance = new Flipdish.AccountsApi(); + +var loginModel = new Flipdish.LoginModel(); // LoginModel | Login model + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.login(loginModel, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **loginModel** | [**LoginModel**](LoginModel.md)| Login model | + +### 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 + + +# **loginWithPin** +> loginWithPin(loginModel) + +Login with username and password + +### Example +```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 apiInstance = new Flipdish.AccountsApi(); + +var loginModel = new Flipdish.LoginWithPinModel(); // LoginWithPinModel | Login model + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.loginWithPin(loginModel, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **loginModel** | [**LoginWithPinModel**](LoginWithPinModel.md)| Login model | + +### 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 + + +# **logout** +> logout() + +Log out. It removes Flipdish authorization Cookie. + +### Example +```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 apiInstance = new Flipdish.AccountsApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.logout(callback); +``` + +### 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 + + +# **passwordResetWithToken** +> passwordResetWithToken(passwordResetModel) + +Reset password with token. + +### Example +```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 apiInstance = new Flipdish.AccountsApi(); + +var passwordResetModel = new Flipdish.PasswordResetModel(); // PasswordResetModel | Password reset model + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.passwordResetWithToken(passwordResetModel, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **passwordResetModel** | [**PasswordResetModel**](PasswordResetModel.md)| Password reset model | + +### 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 + + +# **requestLoginPin** +> RequestLoginPinResposne requestLoginPin(requestLoginPinRequest) + +Request login PIN. The server sends the PIN to the email address. + +### Example +```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 apiInstance = new Flipdish.AccountsApi(); + +var requestLoginPinRequest = new Flipdish.RequestLoginPinModel(); // RequestLoginPinModel | Request login PIN request + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.requestLoginPin(requestLoginPinRequest, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestLoginPinRequest** | [**RequestLoginPinModel**](RequestLoginPinModel.md)| Request login PIN request | + +### Return type + +[**RequestLoginPinResposne**](RequestLoginPinResposne.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 + + +# **requestPasswordReset** +> requestPasswordReset(requestPasswordResetModel) + +Request password reset. Flipdish system will send a token via email. + +### Example +```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 apiInstance = new Flipdish.AccountsApi(); + +var requestPasswordResetModel = new Flipdish.RequestPasswordResetModel(); // RequestPasswordResetModel | Request password reset model + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.requestPasswordReset(requestPasswordResetModel, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestPasswordResetModel** | [**RequestPasswordResetModel**](RequestPasswordResetModel.md)| Request password reset model | + +### 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 + + +# **skipSignupStep** +> skipSignupStep(signupStepAction) + +Skip a signup question + +### Example +```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 apiInstance = new Flipdish.AccountsApi(); + +var signupStepAction = "signupStepAction_example"; // String | Signup step action + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.skipSignupStep(signupStepAction, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **signupStepAction** | **String**| Signup step action | + +### 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) + +Update account with name and language + +### Example +```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 apiInstance = new Flipdish.AccountsApi(); + +var updateAccountModel = new Flipdish.AccountDetailBase(); // AccountDetailBase | Update account model + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.updateAccount(updateAccountModel, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **updateAccountModel** | [**AccountDetailBase**](AccountDetailBase.md)| Update account model | + +### 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/AddItemDetails.md b/docs/AddItemDetails.md new file mode 100644 index 00000000..f5834981 --- /dev/null +++ b/docs/AddItemDetails.md @@ -0,0 +1,9 @@ +# Flipdish.AddItemDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PromotionalItemId** | **Number** | Promotional Item Id | [optional] +**PromotionalItemName** | **String** | Promotional Item Name | [optional] + + diff --git a/docs/AllMetadataResult.md b/docs/AllMetadataResult.md new file mode 100644 index 00000000..489e2abf --- /dev/null +++ b/docs/AllMetadataResult.md @@ -0,0 +1,9 @@ +# 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/AnalyticsClientEvent.md b/docs/AnalyticsClientEvent.md new file mode 100644 index 00000000..f266dcd8 --- /dev/null +++ b/docs/AnalyticsClientEvent.md @@ -0,0 +1,18 @@ +# 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] + + diff --git a/docs/ApmApi.md b/docs/ApmApi.md new file mode 100644 index 00000000..93e3e255 --- /dev/null +++ b/docs/ApmApi.md @@ -0,0 +1,342 @@ +# 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 | [PRIVATE API] Returns true if APM is enabled on at least one store in an application +[**getBasicStatistics**](ApmApi.md#getBasicStatistics) | **GET** /api/v1.0/{appId}/apm/statistics | [PRIVATE API] Get Basic Statistics +[**getCalendarWeekStatistics**](ApmApi.md#getCalendarWeekStatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calendar | [PRIVATE API] Get Calendar statistics +[**getCallsStatistics**](ApmApi.md#getCallsStatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calls/{aggregateDataBy} | [PRIVATE API] Get Calls Statistics +[**getOrderStatistics**](ApmApi.md#getOrderStatistics) | **GET** /api/v1.0/{appId}/apm/statistics/orders/{aggregateDataBy} | [PRIVATE API] Get Order Statistics (Value of Orders) +[**getPaginatedCallList**](ApmApi.md#getPaginatedCallList) | **GET** /api/v1.0/{appId}/apm/calls | [PRIVATE API] Get paginated APM call list + + + +# **getApmStatus** +> RestApiResultApmStatus getApmStatus(appId) + +[PRIVATE API] Returns true if APM is enabled on at least one store in an application + +### Example +```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 apiInstance = new Flipdish.ApmApi(); + +var appId = "appId_example"; // String | App Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getApmStatus(appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Id | + +### 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 + + +# **getBasicStatistics** +> RestApiResultApmStatistics getBasicStatistics(appId, opts) + +[PRIVATE API] Get Basic Statistics + +### Example +```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 apiInstance = new Flipdish.ApmApi(); + +var appId = "appId_example"; // String | App Id + +var opts = { + 'storeId': [3.4] // [Number] | List of stores to search by +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getBasicStatistics(appId, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Id | + **storeId** | [**[Number]**](Number.md)| List of stores to search by | [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 + + +# **getCalendarWeekStatistics** +> RestApiArrayResultApmHourlyDataPoint getCalendarWeekStatistics(appId, opts) + +[PRIVATE API] Get Calendar statistics + +### Example +```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 apiInstance = new Flipdish.ApmApi(); + +var appId = "appId_example"; // String | App Id + +var opts = { + 'storeId': [3.4] // [Number] | List of stores to search by +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getCalendarWeekStatistics(appId, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Id | + **storeId** | [**[Number]**](Number.md)| List of stores to search by | [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 + + +# **getCallsStatistics** +> RestApiArrayResultApmDataPoint getCallsStatistics(appId, aggregateDataBy, opts) + +[PRIVATE API] Get Calls Statistics + +### Example +```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 apiInstance = new Flipdish.ApmApi(); + +var appId = "appId_example"; // String | App Id + +var aggregateDataBy = "aggregateDataBy_example"; // String | Aggregate data by day \\ week + +var opts = { + 'dataPointLimit': 56, // Number | Amount of data points per request + 'storeId': [3.4] // [Number] | List of stores to search by +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getCallsStatistics(appId, aggregateDataBy, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Id | + **aggregateDataBy** | **String**| Aggregate data by day \\ week | + **dataPointLimit** | **Number**| Amount of data points per request | [optional] + **storeId** | [**[Number]**](Number.md)| List of stores to search by | [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 + + +# **getOrderStatistics** +> RestApiArrayResultApmCurrencyDataPoint getOrderStatistics(appId, aggregateDataBy, opts) + +[PRIVATE API] Get Order Statistics (Value of Orders) + +### Example +```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 apiInstance = new Flipdish.ApmApi(); + +var appId = "appId_example"; // String | App Id + +var aggregateDataBy = "aggregateDataBy_example"; // String | Aggregate data by day \\ week + +var opts = { + 'dataPointLimit': 56, // Number | Amount of data points per request + 'storeId': [3.4] // [Number] | List of stores to search by +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getOrderStatistics(appId, aggregateDataBy, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Id | + **aggregateDataBy** | **String**| Aggregate data by day \\ week | + **dataPointLimit** | **Number**| Amount of data points per request | [optional] + **storeId** | [**[Number]**](Number.md)| List of stores to search by | [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 + + +# **getPaginatedCallList** +> RestApiPaginationResultPhoneCall getPaginatedCallList(appId, opts) + +[PRIVATE API] Get paginated APM call list + +### Example +```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 apiInstance = new Flipdish.ApmApi(); + +var appId = "appId_example"; // String | App Id + +var opts = { + 'page': 56, // Number | Requested page index + 'limit': 56, // Number | Requested page limit + 'storeId': [3.4] // [Number] | List of stores to search by +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getPaginatedCallList(appId, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Id | + **page** | **Number**| Requested page index | [optional] + **limit** | **Number**| Requested page limit | [optional] + **storeId** | [**[Number]**](Number.md)| List of stores to search by | [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 + diff --git a/docs/ApmCurrencyDataPoint.md b/docs/ApmCurrencyDataPoint.md new file mode 100644 index 00000000..1146ec02 --- /dev/null +++ b/docs/ApmCurrencyDataPoint.md @@ -0,0 +1,10 @@ +# 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..76b1be77 --- /dev/null +++ b/docs/ApmDataPoint.md @@ -0,0 +1,10 @@ +# 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..96e02c24 --- /dev/null +++ b/docs/ApmHourlyDataPoint.md @@ -0,0 +1,31 @@ +# 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..0c22ec7f --- /dev/null +++ b/docs/ApmStatistics.md @@ -0,0 +1,10 @@ +# 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..ed845ed1 --- /dev/null +++ b/docs/ApmStatus.md @@ -0,0 +1,8 @@ +# 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..d7ecda2b --- /dev/null +++ b/docs/App.md @@ -0,0 +1,291 @@ +# 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] +**HasAndroidApp** | **Boolean** | Has Android app in Google Play Store. This is readonly. | [optional] +**CountryId** | **String** | Country identifier in ISO 3166-1 alpha-2 format. This code is set automatically based on the locations of the Stores in the App. The App Country is used - to determine how to parse mobile phone numbers that are entered in their local numbering format - to determine if country specific payment methods should be offered - in various fraud checks | [optional] +**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) | Center of the map coordinates. This is used to center the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. | [optional] +**MapNorthEast** | [**Coordinates**](Coordinates.md) | North East(Top Right) Corner of the map coordinates. This is used to frame the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. | [optional] +**MapSouthWest** | [**Coordinates**](Coordinates.md) | South West (Bottom Left) Corner of the map coordinates. This is used to frame the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. | [optional] +**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] +**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 aternative to using Panacea websites is to use a custom domain. | [optional] +**CookieConsentPromptEnabled** | **Boolean** | Cookie Consent Prompt Enabled | [optional] + + + +## Enum: AppAccessLevelEnum + + +* `None` (value: `"None"`) + +* `Owner` (value: `"Owner"`) + +* `StoreOwner` (value: `"StoreOwner"`) + +* `ManagedOwner` (value: `"ManagedOwner"`) + +* `StoreManager` (value: `"StoreManager"`) + +* `StoreStaff` (value: `"StoreStaff"`) + +* `StoreReadOnlyAccess` (value: `"StoreReadOnlyAccess"`) + +* `FinanceManger` (value: `"FinanceManger"`) + + + + + +## Enum: [AppResourceSetEnum] + + +* `ViewApp` (value: `"ViewApp"`) + +* `CreateApp` (value: `"CreateApp"`) + +* `UpdateApp` (value: `"UpdateApp"`) + +* `EditAppAssets` (value: `"EditAppAssets"`) + +* `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"`) + +* `ViewApmConfigurations` (value: `"ViewApmConfigurations"`) + +* `EditApmConfigurations` (value: `"EditApmConfigurations"`) + +* `ViewCampaignsConfigurations` (value: `"ViewCampaignsConfigurations"`) + +* `CreateCampaignsConfigurations` (value: `"CreateCampaignsConfigurations"`) + +* `UpdateCampaignsConfigurations` (value: `"UpdateCampaignsConfigurations"`) + +* `DeleteCampaignsConfigurations` (value: `"DeleteCampaignsConfigurations"`) + +* `ViewDevelopersSettings` (value: `"ViewDevelopersSettings"`) + +* `EditDevelopersSettings` (value: `"EditDevelopersSettings"`) + +* `ViewOrders` (value: `"ViewOrders"`) + +* `UpdateOrdersAccept` (value: `"UpdateOrdersAccept"`) + +* `UpdateOrdersReject` (value: `"UpdateOrdersReject"`) + +* `UpdateOrdersRefund` (value: `"UpdateOrdersRefund"`) + +* `UpdateOrdersDispatch` (value: `"UpdateOrdersDispatch"`) + +* `ViewStores` (value: `"ViewStores"`) + +* `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"`) + +* `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"`) + +* `UpdateVouchersExtendDisable` (value: `"UpdateVouchersExtendDisable"`) + +* `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"`) + +* `ViewFeesConfigurations` (value: `"ViewFeesConfigurations"`) + +* `EditFeesConfigurations` (value: `"EditFeesConfigurations"`) + +* `ViewHydraConfig` (value: `"ViewHydraConfig"`) + +* `UpdateHydraConfigManage` (value: `"UpdateHydraConfigManage"`) + +* `InitiateBluetoothPairingMode` (value: `"InitiateBluetoothPairingMode"`) + +* `ViewCustomers` (value: `"ViewCustomers"`) + +* `EditCustomers` (value: `"EditCustomers"`) + +* `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"`) + +* `SendPushNotificationToCustomer` (value: `"SendPushNotificationToCustomer"`) + +* `InviteDriverToApp` (value: `"InviteDriverToApp"`) + +* `GetDriverForApp` (value: `"GetDriverForApp"`) + +* `RemoveDriverFromApp` (value: `"RemoveDriverFromApp"`) + +* `AssignDriverToOrder` (value: `"AssignDriverToOrder"`) + +* `UnassignDriverFromOrder` (value: `"UnassignDriverFromOrder"`) + +* `UpdateOrdersDeliveryTrackingStatus` (value: `"UpdateOrdersDeliveryTrackingStatus"`) + +* `ViewPayouts` (value: `"ViewPayouts"`) + + + + + +## Enum: ApplicationCategoryEnum + + +* `Restaurant` (value: `"Restaurant"`) + +* `Cafe` (value: `"Cafe"`) + +* `Convenience` (value: `"Convenience"`) + + + + diff --git a/docs/AppCompliance.md b/docs/AppCompliance.md new file mode 100644 index 00000000..9fef1d2a --- /dev/null +++ b/docs/AppCompliance.md @@ -0,0 +1,20 @@ +# 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] + + + +## Enum: ComplianceTypeEnum + + +* `_Default` (value: `"Default"`) + +* `GdprCompliance` (value: `"GdprCompliance"`) + + + + diff --git a/docs/AppConfigUpdateModel.md b/docs/AppConfigUpdateModel.md new file mode 100644 index 00000000..b2951d77 --- /dev/null +++ b/docs/AppConfigUpdateModel.md @@ -0,0 +1,26 @@ +# 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] +**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 aternative to using Panacea websites is to use a custom domain. | [optional] +**CookieConsentPromptEnabled** | **Boolean** | Cookie Consent Prompt Enabled | [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..023bff40 --- /dev/null +++ b/docs/AppCreatedEvent.md @@ -0,0 +1,16 @@ +# 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) | User information | [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] + + diff --git a/docs/AppUpdatedEvent.md b/docs/AppUpdatedEvent.md new file mode 100644 index 00000000..6c43e6d5 --- /dev/null +++ b/docs/AppUpdatedEvent.md @@ -0,0 +1,17 @@ +# 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) | User information | [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] + + diff --git a/docs/AppsApi.md b/docs/AppsApi.md new file mode 100644 index 00000000..8a7974d5 --- /dev/null +++ b/docs/AppsApi.md @@ -0,0 +1,690 @@ +# Flipdish.AppsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getApp**](AppsApi.md#getApp) | **GET** /api/v1.0/apps/{appId} | Get the application configuration +[**getAppHostnameStatus**](AppsApi.md#getAppHostnameStatus) | **GET** /api/v1.0/apps/{appId}/hostnamestatus | Get the application hostname DNS delegation states for A and CNAME records. +[**getApps**](AppsApi.md#getApps) | **GET** /api/v1.0/apps | Get Apps +[**getCompliance**](AppsApi.md#getCompliance) | **GET** /api/v1.0/apps/{appId}/compliance | Get the application compliance configuration +[**getPanaceaVanityUrl**](AppsApi.md#getPanaceaVanityUrl) | **GET** /api/v1.0/apps/{appId}/panacea/url | Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] +[**getSupportedCountries**](AppsApi.md#getSupportedCountries) | **GET** /api/v1.0/apps/supportedcountries | Get all supported countries. +[**isPanaceaVanityUrlAvailable**](AppsApi.md#isPanaceaVanityUrlAvailable) | **GET** /api/v1.0/apps/{appId}/panacea/url/available | Is panacea vanity url available +[**setAppConfig**](AppsApi.md#setAppConfig) | **POST** /api/v1.0/apps/{appId}/config | Set the application configuration +[**setAppHostname**](AppsApi.md#setAppHostname) | **POST** /api/v1.0/apps/{appId}/hostname | Set the application hostname. +[**setAppLanguages**](AppsApi.md#setAppLanguages) | **POST** /api/v1.0/apps/{appId}/config/languages | Set the application languages +[**setCompliance**](AppsApi.md#setCompliance) | **POST** /api/v1.0/apps/{appId}/compliance | Set the application compliance configuration +[**setPanaceaVanityUrl**](AppsApi.md#setPanaceaVanityUrl) | **POST** /api/v1.0/apps/{appId}/panacea/url | Set panacea vanity url +[**uploadAppLogo**](AppsApi.md#uploadAppLogo) | **POST** /api/v1.0/apps/{appId}/logo | Set the application logo \\ icon + + + +# **getApp** +> RestApiResultApp getApp(appId) + +Get the application configuration + +### Example +```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 apiInstance = new Flipdish.AppsApi(); + +var appId = "appId_example"; // String | Application identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getApp(appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + +### 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 + + +# **getAppHostnameStatus** +> RestApiResultDnsRecordInformation getAppHostnameStatus(appId) + +Get the application hostname DNS delegation states for A and CNAME records. + +A domain might be ready but still need 10 minutes to work properly because of HAProxy. + +### Example +```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 apiInstance = new Flipdish.AppsApi(); + +var appId = "appId_example"; // String | Application identifier. + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getAppHostnameStatus(appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier. | + +### 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 + + +# **getApps** +> RestApiPaginationResultApp getApps(opts) + +Get Apps + +### Example +```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 apiInstance = new Flipdish.AppsApi(); + +var opts = { + 'nameFilter': "nameFilter_example", // String | + 'page': 56, // Number | + 'limit': 56 // Number | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getApps(opts, callback); +``` + +### 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 + + +# **getCompliance** +> RestApiResultAppCompliance getCompliance(appId) + +Get the application compliance configuration + +### Example +```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 apiInstance = new Flipdish.AppsApi(); + +var appId = "appId_example"; // String | Application identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getCompliance(appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + +### 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 + + +# **getPanaceaVanityUrl** +> RestApiStringResult getPanaceaVanityUrl(appId) + +Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] + +### Example +```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 apiInstance = new Flipdish.AppsApi(); + +var appId = "appId_example"; // String | Application identifier. + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getPanaceaVanityUrl(appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier. | + +### 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 + + +# **getSupportedCountries** +> RestApiArrayResultSupportedCountry getSupportedCountries() + +Get all supported countries. + +### Example +```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 apiInstance = new Flipdish.AppsApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getSupportedCountries(callback); +``` + +### 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 + + +# **isPanaceaVanityUrlAvailable** +> RestApiStringResult isPanaceaVanityUrlAvailable(vanityUrl, appId) + +Is panacea vanity url available + +Minimum length of 3 characters + +### Example +```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 apiInstance = new Flipdish.AppsApi(); + +var vanityUrl = "vanityUrl_example"; // String | Vanity url to check + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.isPanaceaVanityUrlAvailable(vanityUrl, appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vanityUrl** | **String**| Vanity url to check | + **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 + + +# **setAppConfig** +> RestApiResultApp setAppConfig(appId, appConfigUpdate) + +Set the application configuration + +### Example +```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 apiInstance = new Flipdish.AppsApi(); + +var appId = "appId_example"; // String | Application identifier + +var appConfigUpdate = new Flipdish.AppConfigUpdateModel(); // AppConfigUpdateModel | Changes to the configuration + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.setAppConfig(appId, appConfigUpdate, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **appConfigUpdate** | [**AppConfigUpdateModel**](AppConfigUpdateModel.md)| Changes to the configuration | + +### 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 + + +# **setAppHostname** +> RestApiStringResult setAppHostname(appId, hostname, opts) + +Set the application hostname. + +If no subdomain is specified in {hostname} 'www' will be prepended. + +### Example +```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 apiInstance = new Flipdish.AppsApi(); + +var appId = "appId_example"; // String | Application identifier. + +var hostname = "hostname_example"; // String | The new Hostname. + +var opts = { + 'isEmbed': true // Boolean | Will the website be embedded +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.setAppHostname(appId, hostname, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier. | + **hostname** | **String**| The new Hostname. | + **isEmbed** | **Boolean**| Will the website be embedded | [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 + + +# **setAppLanguages** +> RestApiResultApp setAppLanguages(appId, languages) + +Set the application languages + +### Example +```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 apiInstance = new Flipdish.AppsApi(); + +var appId = "appId_example"; // String | Application identifier + +var languages = [new Flipdish.Language()]; // [Language] | New list of languages + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.setAppLanguages(appId, languages, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **languages** | [**[Language]**](Language.md)| New list of languages | + +### 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 + + +# **setCompliance** +> RestApiResultAppCompliance setCompliance(appId, complianceType) + +Set the application compliance configuration + +### Example +```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 apiInstance = new Flipdish.AppsApi(); + +var appId = "appId_example"; // String | Application identifier + +var complianceType = "complianceType_example"; // String | Compliance type + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.setCompliance(appId, complianceType, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **complianceType** | **String**| Compliance type | + +### 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 + + +# **setPanaceaVanityUrl** +> RestApiStringResult setPanaceaVanityUrl(appId, vanityUrl) + +Set panacea vanity url + +Minimum length of 3 characters + +### Example +```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 apiInstance = new Flipdish.AppsApi(); + +var appId = "appId_example"; // String | Application identifier. + +var vanityUrl = "vanityUrl_example"; // String | Vanity url + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.setPanaceaVanityUrl(appId, vanityUrl, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier. | + **vanityUrl** | **String**| Vanity url | + +### 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 + + +# **uploadAppLogo** +> uploadAppLogo(appId, Image) + +Set the application logo \\ icon + +### Example +```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 apiInstance = new Flipdish.AppsApi(); + +var appId = "appId_example"; // String | Application identifier + +var Image = "/path/to/file.txt"; // File | App Logo + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.uploadAppLogo(appId, Image, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **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..4bb14401 --- /dev/null +++ b/docs/AssignedBankAccount.md @@ -0,0 +1,9 @@ +# 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/AuthorizationTokensApi.md b/docs/AuthorizationTokensApi.md index de127165..7cd2c3bb 100644 --- a/docs/AuthorizationTokensApi.md +++ b/docs/AuthorizationTokensApi.md @@ -4,13 +4,13 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**getAuthorizationTokens**](AuthorizationTokensApi.md#getAuthorizationTokens) | **GET** /api/v1.0/authorizationtokens/{clientId} | Get authorization tokens -[**revokeToken**](AuthorizationTokensApi.md#revokeToken) | **DELETE** /api/v1.0/authorizationtokens/{key} | Revoke token +[**getAuthorizationTokens**](AuthorizationTokensApi.md#getAuthorizationTokens) | **GET** /api/v1.0/{appId}/authorizationtokens/{oauthAppId} | Get authorization tokens +[**revokeToken**](AuthorizationTokensApi.md#revokeToken) | **DELETE** /api/v1.0/{appId}/authorizationtokens/{key} | Revoke token # **getAuthorizationTokens** -> RestApiPaginationResultOAuthTokenModel getAuthorizationTokens(clientId, opts) +> RestApiPaginationResultOAuthTokenModel getAuthorizationTokens(oauthAppId, appId, opts) Get authorization tokens @@ -27,7 +27,9 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.AuthorizationTokensApi(); -var clientId = "clientId_example"; // String | Client identifier +var oauthAppId = "oauthAppId_example"; // String | Client identifier + +var appId = "appId_example"; // String | var opts = { 'page': 56, // Number | Requested page number @@ -41,14 +43,15 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getAuthorizationTokens(clientId, opts, callback); +apiInstance.getAuthorizationTokens(oauthAppId, appId, opts, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **clientId** | **String**| Client identifier | + **oauthAppId** | **String**| Client identifier | + **appId** | **String**| | **page** | **Number**| Requested page number | [optional] **limit** | **Number**| Requested page limit | [optional] @@ -67,7 +70,7 @@ Name | Type | Description | Notes # **revokeToken** -> revokeToken(key) +> revokeToken(key, appId) Revoke token @@ -84,6 +87,8 @@ var apiInstance = new Flipdish.AuthorizationTokensApi(); var key = "key_example"; // String | Token identifier key +var appId = "appId_example"; // String | + var callback = function(error, data, response) { if (error) { @@ -92,7 +97,7 @@ var callback = function(error, data, response) { console.log('API called successfully.'); } }; -apiInstance.revokeToken(key, callback); +apiInstance.revokeToken(key, appId, callback); ``` ### Parameters @@ -100,6 +105,7 @@ apiInstance.revokeToken(key, callback); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **key** | **String**| Token identifier key | + **appId** | **String**| | ### Return type diff --git a/docs/BalanceDetails.md b/docs/BalanceDetails.md new file mode 100644 index 00000000..0edd852a --- /dev/null +++ b/docs/BalanceDetails.md @@ -0,0 +1,9 @@ +# 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..66ca4d73 --- /dev/null +++ b/docs/BankAccount.md @@ -0,0 +1,34 @@ +# 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] +**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] + + + +## 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..81862a93 --- /dev/null +++ b/docs/BankAccountApi.md @@ -0,0 +1,488 @@ +# 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} | [PRIVATE API] Attach Bank Account to Store +[**createBankAccount**](BankAccountApi.md#createBankAccount) | **POST** /api/v1.0/{appId}/bankaccounts | Create a new Bank Account and attach to this App +[**deleteBankAccount**](BankAccountApi.md#deleteBankAccount) | **DELETE** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | Delete BankAccount +[**getBankAccountById**](BankAccountApi.md#getBankAccountById) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | Get BankAccount Detail by Id +[**getBankAccounts**](BankAccountApi.md#getBankAccounts) | **GET** /api/v1.0/{appId}/bankaccounts | Get List of BankAccounts for WL +[**getCountriesWithFieldDefinitions**](BankAccountApi.md#getCountriesWithFieldDefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/countries-field-definitions | Get bank account fields definitions +[**getFieldDefinitions**](BankAccountApi.md#getFieldDefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/field-definitions | Get bank account fields definitions +[**updateBankAccount**](BankAccountApi.md#updateBankAccount) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | Update BankAccount +[**updateBankAccountState**](BankAccountApi.md#updateBankAccountState) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/state/{state} | [PRIVATE API] Update State of Bank Account + + + +# **attachBankAccountToStore** +> attachBankAccountToStore(appId, bankAccountId, storeId) + +[PRIVATE API] Attach Bank Account to Store + +### Example +```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 apiInstance = new Flipdish.BankAccountApi(); + +var appId = "appId_example"; // String | App Name + +var bankAccountId = 56; // Number | Id of account to be updated + +var storeId = 56; // Number | Store to be attached to Bank account + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.attachBankAccountToStore(appId, bankAccountId, storeId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name | + **bankAccountId** | **Number**| Id of account to be updated | + **storeId** | **Number**| Store to be attached to Bank account | + +### 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) + +Create a new Bank Account and attach to this App + +### Example +```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 apiInstance = new Flipdish.BankAccountApi(); + +var appId = "appId_example"; // String | App Name + +var account = new Flipdish.BankAccountCreate(); // BankAccountCreate | Account to be created + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.createBankAccount(appId, account, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name | + **account** | [**BankAccountCreate**](BankAccountCreate.md)| Account to be created | + +### 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 + + +# **deleteBankAccount** +> deleteBankAccount(appId, bankAccountId) + +Delete BankAccount + +### Example +```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 apiInstance = new Flipdish.BankAccountApi(); + +var appId = "appId_example"; // String | App Name + +var bankAccountId = 56; // Number | Id of account to be marked as deleted + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.deleteBankAccount(appId, bankAccountId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name | + **bankAccountId** | **Number**| Id of account to be marked as deleted | + +### 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) + +Get BankAccount Detail by Id + +### Example +```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 apiInstance = new Flipdish.BankAccountApi(); + +var bankAccountId = 56; // Number | Id of account + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getBankAccountById(bankAccountId, appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bankAccountId** | **Number**| Id of account | + **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 + + +# **getBankAccounts** +> RestApiArrayResultBankAccountSummary getBankAccounts(appId) + +Get List of BankAccounts for WL + +### Example +```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 apiInstance = new Flipdish.BankAccountApi(); + +var appId = "appId_example"; // String | App Name + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getBankAccounts(appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name | + +### 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 + + +# **getCountriesWithFieldDefinitions** +> RestApiArrayResultCountryWithAccountFieldsDefinitions getCountriesWithFieldDefinitions(appId) + +Get bank account fields definitions + +### Example +```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 apiInstance = new Flipdish.BankAccountApi(); + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getCountriesWithFieldDefinitions(appId, callback); +``` + +### 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 + + +# **getFieldDefinitions** +> RestApiResultAccountFieldsDefinitions getFieldDefinitions(appId) + +Get bank account fields definitions + +### Example +```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 apiInstance = new Flipdish.BankAccountApi(); + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getFieldDefinitions(appId, callback); +``` + +### 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 + + +# **updateBankAccount** +> updateBankAccount(appId, bankAccountId, account) + +Update BankAccount + +### Example +```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 apiInstance = new Flipdish.BankAccountApi(); + +var appId = "appId_example"; // String | App Name + +var bankAccountId = 56; // Number | Id of account to be updated + +var account = new Flipdish.BankAccountCreate(); // BankAccountCreate | Details to update account with + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.updateBankAccount(appId, bankAccountId, account, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name | + **bankAccountId** | **Number**| Id of account to be updated | + **account** | [**BankAccountCreate**](BankAccountCreate.md)| Details to update account with | + +### 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) + +[PRIVATE API] Update State of Bank Account + +### Example +```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 apiInstance = new Flipdish.BankAccountApi(); + +var appId = "appId_example"; // String | App Name + +var bankAccountId = 56; // Number | Id of account to be updated + +var state = "state_example"; // String | New state + +var reason = "reason_example"; // String | Reason for state change, Mandatory for rejections + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.updateBankAccountState(appId, bankAccountId, state, reason, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name | + **bankAccountId** | **Number**| Id of account to be updated | + **state** | **String**| New state | + **reason** | **String**| Reason for state change, Mandatory for rejections | + +### 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/BankAccountCreate.md b/docs/BankAccountCreate.md new file mode 100644 index 00000000..bf1c75d7 --- /dev/null +++ b/docs/BankAccountCreate.md @@ -0,0 +1,270 @@ +# 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..097cb82a --- /dev/null +++ b/docs/BankAccountCreatedEvent.md @@ -0,0 +1,13 @@ +# Flipdish.BankAccountCreatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BankAccount** | [**BankAccount**](BankAccount.md) | The create bank account | [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] + + diff --git a/docs/BankAccountDeletedEvent.md b/docs/BankAccountDeletedEvent.md new file mode 100644 index 00000000..4bef2057 --- /dev/null +++ b/docs/BankAccountDeletedEvent.md @@ -0,0 +1,13 @@ +# Flipdish.BankAccountDeletedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BankAccount** | [**BankAccount**](BankAccount.md) | The create bank account | [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] + + diff --git a/docs/BankAccountDetail.md b/docs/BankAccountDetail.md new file mode 100644 index 00000000..30766bbd --- /dev/null +++ b/docs/BankAccountDetail.md @@ -0,0 +1,289 @@ +# 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) | Information about the Stripe connected account associated with this bank account (if any) | [optional] +**BankAddress** | **String** | Address lf the bank | [optional] +**BankCountryCode** | **String** | CountryCode of the Bank Account | [optional] +**AccountHolderAddress** | **String** | Account Holders Address | [optional] +**AccountHolderCountryCode** | **String** | Account Holders Country Code | [optional] +**VatNumber** | **String** | Account Holders Vat Number | [optional] +**CurrencyCode** | **String** | Currency of Account | [optional] +**StoreIds** | **[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..1d5b7530 --- /dev/null +++ b/docs/BankAccountDetailsUpdateRequest.md @@ -0,0 +1,34 @@ +# 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..7c5ca86c --- /dev/null +++ b/docs/BankAccountSummary.md @@ -0,0 +1,49 @@ +# 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] +**AccountState** | **String** | Status of Account | [optional] +**CurrencyCode** | **String** | Currency of Account | [optional] +**StripeConnectedAccountInfo** | [**StripeConnectedAccountInfo**](StripeConnectedAccountInfo.md) | Information about the Stripe connected account associated with this bank account (if any) | [optional] +**AccountName** | **String** | Name of this account | [optional] +**Iban** | **String** | IBAN of this account | [optional] +**Swift** | **String** | SWIFT of this bank account | [optional] +**NationalClearingCode** | **String** | National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) | [optional] +**PopulatedAccountFields** | [**[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..a8afb08c --- /dev/null +++ b/docs/BankAccountUpdatedEvent.md @@ -0,0 +1,13 @@ +# Flipdish.BankAccountUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BankAccount** | [**BankAccount**](BankAccount.md) | The create bank account | [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] + + diff --git a/docs/BluetoothTerminalStatus.md b/docs/BluetoothTerminalStatus.md new file mode 100644 index 00000000..60893ab9 --- /dev/null +++ b/docs/BluetoothTerminalStatus.md @@ -0,0 +1,41 @@ +# 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] + + + +## Enum: DeviceTypeEnum + + +* `CHIPPER_2X` (value: `"CHIPPER_2X"`) + +* `COTS_DEVICE` (value: `"COTS_DEVICE"`) + +* `VERIFONE_P400` (value: `"VERIFONE_P400"`) + +* `WISEPAD_3` (value: `"WISEPAD_3"`) + + + + + +## Enum: StatusEnum + + +* `Not_Connected` (value: `"Not_Connected"`) + +* `Connecting` (value: `"Connecting"`) + +* `Connected` (value: `"Connected"`) + + + + diff --git a/docs/BusinessHoursOverride.md b/docs/BusinessHoursOverride.md new file mode 100644 index 00000000..a625916f --- /dev/null +++ b/docs/BusinessHoursOverride.md @@ -0,0 +1,36 @@ +# 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..25bafdd2 --- /dev/null +++ b/docs/BusinessHoursOverrideBase.md @@ -0,0 +1,35 @@ +# 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 index 8eb786dc..73141832 100644 --- a/docs/BusinessHoursPeriod.md +++ b/docs/BusinessHoursPeriod.md @@ -3,14 +3,14 @@ ## 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] -**early** | [**Range**](Range.md) | Early | [optional] -**late** | [**Range**](Range.md) | Late | [optional] -**ranges** | [**[Range]**](Range.md) | Ranges | [optional] +**Early** | [**Range**](Range.md) | Early | [optional] +**Late** | [**Range**](Range.md) | Late | [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] diff --git a/docs/BusinessHoursPeriodBase.md b/docs/BusinessHoursPeriodBase.md new file mode 100644 index 00000000..42419771 --- /dev/null +++ b/docs/BusinessHoursPeriodBase.md @@ -0,0 +1,33 @@ +# 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/CampaignCreatedEvent.md b/docs/CampaignCreatedEvent.md deleted file mode 100644 index 50163e5a..00000000 --- a/docs/CampaignCreatedEvent.md +++ /dev/null @@ -1,14 +0,0 @@ -# Flipdish.CampaignCreatedEvent - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**campaignId** | **Number** | | [optional] -**virtualRestaurantName** | **String** | | [optional] -**virtualRestaurantId** | **Number** | | [optional] -**flipdishEventId** | **String** | The identitfier of the event | [optional] -**createTime** | **Date** | The time of creation of the event | [optional] -**position** | **Number** | Position | [optional] - - diff --git a/docs/CampaignStatistics.md b/docs/CampaignStatistics.md new file mode 100644 index 00000000..05550abe --- /dev/null +++ b/docs/CampaignStatistics.md @@ -0,0 +1,12 @@ +# Flipdish.CampaignStatistics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VouchersIssued** | **Number** | Number of issued vouchers | [optional] +**VouchersRedeemed** | **Number** | Number of redeemed vouchers | [optional] +**Conversion** | **Number** | Conversion percentage of campaign (VouchersIssued / VouchersRedeemed) | [optional] +**SalesGenerated** | **Number** | Sales generated by campaign (TotalAmount - FeeChargedToCustomer ie. the discounted sale value) | [optional] +**ReturnOfInvestment** | **Number** | Return of investment percentage of campaign (TotalAmount / DiscountAmount) | [optional] + + diff --git a/docs/CampaignsApi.md b/docs/CampaignsApi.md new file mode 100644 index 00000000..1a629807 --- /dev/null +++ b/docs/CampaignsApi.md @@ -0,0 +1,535 @@ +# 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 | Creates loyalty campaign +[**createRetentionCampaign**](CampaignsApi.md#createRetentionCampaign) | **POST** /api/v1.0/{appId}/campaigns/retention | Creates retention campaign +[**getLoyaltyCampaignsForApp**](CampaignsApi.md#getLoyaltyCampaignsForApp) | **GET** /api/v1.0/{appId}/campaigns/loyalty | Gets loyalty campaigns for app +[**getLoyaltyCampaignsForStore**](CampaignsApi.md#getLoyaltyCampaignsForStore) | **GET** /api/v1.0/{appId}/campaigns/loyalty/{storeId} | Gets loyalty campaigns for store +[**getRetentionCampaignsForApp**](CampaignsApi.md#getRetentionCampaignsForApp) | **GET** /api/v1.0/{appId}/campaigns/retention | Gets retention campaigns for app +[**getRetentionCampaignsForStore**](CampaignsApi.md#getRetentionCampaignsForStore) | **GET** /api/v1.0/{appId}/campaigns/retention/{storeId} | Gets retention campaigns for store +[**getStoreList**](CampaignsApi.md#getStoreList) | **GET** /api/v1.0/{appId}/campaigns/stores | Gets list of stores for app +[**removeCampaign**](CampaignsApi.md#removeCampaign) | **DELETE** /api/v1.0/{appId}/campaigns/{campaignId} | Deletes a campaign +[**updateLoyaltyCampaign**](CampaignsApi.md#updateLoyaltyCampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty/{campaignId} | Updates loyalty campaign +[**updateRetentionCampaign**](CampaignsApi.md#updateRetentionCampaign) | **POST** /api/v1.0/{appId}/campaigns/retention/{campaignId} | Updates retention campaign + + + +# **createLoyaltyCampaign** +> RestApiResultLoyaltyCampaign createLoyaltyCampaign(appId, campaign) + +Creates loyalty campaign + +### Example +```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 apiInstance = new Flipdish.CampaignsApi(); + +var appId = "appId_example"; // String | App Name Id + +var campaign = new Flipdish.LoyaltyCampaignBase(); // LoyaltyCampaignBase | Loyalty campaign details + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.createLoyaltyCampaign(appId, campaign, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **campaign** | [**LoyaltyCampaignBase**](LoyaltyCampaignBase.md)| Loyalty campaign details | + +### 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 + + +# **createRetentionCampaign** +> RestApiResultRetentionCampaign createRetentionCampaign(appId, campaign) + +Creates retention campaign + +### Example +```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 apiInstance = new Flipdish.CampaignsApi(); + +var appId = "appId_example"; // String | App Name Id + +var campaign = new Flipdish.RetentionCampaignBase(); // RetentionCampaignBase | Retention campaign details + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.createRetentionCampaign(appId, campaign, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **campaign** | [**RetentionCampaignBase**](RetentionCampaignBase.md)| Retention campaign details | + +### 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 + + +# **getLoyaltyCampaignsForApp** +> RestApiArrayResultLoyaltyCampaign getLoyaltyCampaignsForApp(appId) + +Gets loyalty campaigns for app + +### Example +```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 apiInstance = new Flipdish.CampaignsApi(); + +var appId = "appId_example"; // String | App Name Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getLoyaltyCampaignsForApp(appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + +### 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 + + +# **getLoyaltyCampaignsForStore** +> RestApiArrayResultLoyaltyCampaign getLoyaltyCampaignsForStore(appId, storeId) + +Gets loyalty campaigns for store + +### Example +```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 apiInstance = new Flipdish.CampaignsApi(); + +var appId = "appId_example"; // String | App Name Id + +var storeId = 56; // Number | Store Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getLoyaltyCampaignsForStore(appId, storeId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **storeId** | **Number**| Store Id | + +### 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 + + +# **getRetentionCampaignsForApp** +> RestApiArrayResultRetentionCampaign getRetentionCampaignsForApp(appId) + +Gets retention campaigns for app + +### Example +```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 apiInstance = new Flipdish.CampaignsApi(); + +var appId = "appId_example"; // String | App Name Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getRetentionCampaignsForApp(appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + +### 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 + + +# **getRetentionCampaignsForStore** +> RestApiArrayResultRetentionCampaign getRetentionCampaignsForStore(appId, storeId) + +Gets retention campaigns for store + +### Example +```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 apiInstance = new Flipdish.CampaignsApi(); + +var appId = "appId_example"; // String | App Name Id + +var storeId = 56; // Number | Store Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getRetentionCampaignsForStore(appId, storeId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **storeId** | **Number**| Store Id | + +### 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 + + +# **getStoreList** +> RestApiArrayResultStoreListItem getStoreList(appId) + +Gets list of stores for app + +### Example +```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 apiInstance = new Flipdish.CampaignsApi(); + +var appId = "appId_example"; // String | App Name Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getStoreList(appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + +### 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 + + +# **removeCampaign** +> removeCampaign(appId, campaignId) + +Deletes a campaign + +### Example +```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 apiInstance = new Flipdish.CampaignsApi(); + +var appId = "appId_example"; // String | App Name Id + +var campaignId = 56; // Number | Campaign Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.removeCampaign(appId, campaignId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **campaignId** | **Number**| Campaign Id | + +### 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 + + +# **updateLoyaltyCampaign** +> RestApiResultLoyaltyCampaign updateLoyaltyCampaign(appId, campaignId, campaign) + +Updates loyalty campaign + +### Example +```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 apiInstance = new Flipdish.CampaignsApi(); + +var appId = "appId_example"; // String | App Name Id + +var campaignId = 56; // Number | Loyalty campaign Id + +var campaign = new Flipdish.LoyaltyCampaignBase(); // LoyaltyCampaignBase | Loyalty campaign details + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.updateLoyaltyCampaign(appId, campaignId, campaign, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **campaignId** | **Number**| Loyalty campaign Id | + **campaign** | [**LoyaltyCampaignBase**](LoyaltyCampaignBase.md)| Loyalty campaign details | + +### 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 + + +# **updateRetentionCampaign** +> RestApiResultRetentionCampaign updateRetentionCampaign(appId, campaignId, campaign) + +Updates retention campaign + +### Example +```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 apiInstance = new Flipdish.CampaignsApi(); + +var appId = "appId_example"; // String | App Name Id + +var campaignId = 56; // Number | Retention campaign Id + +var campaign = new Flipdish.RetentionCampaignBase(); // RetentionCampaignBase | Retention campaign details + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.updateRetentionCampaign(appId, campaignId, campaign, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **campaignId** | **Number**| Retention campaign Id | + **campaign** | [**RetentionCampaignBase**](RetentionCampaignBase.md)| Retention campaign details | + +### 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 + diff --git a/docs/CardReadersApi.md b/docs/CardReadersApi.md new file mode 100644 index 00000000..81167eea --- /dev/null +++ b/docs/CardReadersApi.md @@ -0,0 +1,388 @@ +# Flipdish.CardReadersApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**authorizeStripeTerminal**](CardReadersApi.md#authorizeStripeTerminal) | **POST** /api/v1.0/cardreaders/authorize/stripe | Get Authorization Key for Stripe Terminal +[**authorizeStripeTerminal_0**](CardReadersApi.md#authorizeStripeTerminal_0) | **POST** /api/v1.0/{appId}/stripeterminal/authorize | Get Authorization Key for Stripe Terminal +[**getBluetoothTerminalStatus**](CardReadersApi.md#getBluetoothTerminalStatus) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/status | Get the status of the bluetooth terminal +[**initiateBluetoothTerminalDeviceUpdateCheck**](CardReadersApi.md#initiateBluetoothTerminalDeviceUpdateCheck) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/checkForUpdate | Trigger check for Bluetooth device update on Kiosk +[**initiateKioskBluetoothPairingMode**](CardReadersApi.md#initiateKioskBluetoothPairingMode) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/pair | Initiate stripe terminal pairing mode +[**initiateKioskUpdateInstallForBluetoothTerminal**](CardReadersApi.md#initiateKioskUpdateInstallForBluetoothTerminal) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/installUpdate | +[**unpairCurrentlyPairedBluetoothDevice**](CardReadersApi.md#unpairCurrentlyPairedBluetoothDevice) | **DELETE** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/unpair | Unpair the currently paired stripe terminal + + + +# **authorizeStripeTerminal** +> RestApiResultStripeTerminalPrivateKey authorizeStripeTerminal() + +Get Authorization Key for Stripe Terminal + +Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + +### Example +```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 apiInstance = new Flipdish.CardReadersApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.authorizeStripeTerminal(callback); +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultStripeTerminalPrivateKey**](RestApiResultStripeTerminalPrivateKey.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + + +# **authorizeStripeTerminal_0** +> RestApiResultStripeTerminalPrivateKey authorizeStripeTerminal_0(appId) + +Get Authorization Key for Stripe Terminal + +Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + +### Example +```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 apiInstance = new Flipdish.CardReadersApi(); + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.authorizeStripeTerminal_0(appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiResultStripeTerminalPrivateKey**](RestApiResultStripeTerminalPrivateKey.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + + +# **getBluetoothTerminalStatus** +> RestApiResultBluetoothTerminalStatus getBluetoothTerminalStatus(appId, deviceId) + +Get the status of the bluetooth terminal + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```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 apiInstance = new Flipdish.CardReadersApi(); + +var appId = "appId_example"; // String | + +var deviceId = "deviceId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getBluetoothTerminalStatus(appId, deviceId, callback); +``` + +### 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 + + +# **initiateBluetoothTerminalDeviceUpdateCheck** +> initiateBluetoothTerminalDeviceUpdateCheck(appId, deviceId, terminalType) + +Trigger check for Bluetooth device update on Kiosk + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```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 apiInstance = new Flipdish.CardReadersApi(); + +var appId = "appId_example"; // String | + +var deviceId = "deviceId_example"; // String | + +var terminalType = "terminalType_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.initiateBluetoothTerminalDeviceUpdateCheck(appId, deviceId, terminalType, callback); +``` + +### 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) + +Initiate stripe terminal pairing mode + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```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 apiInstance = new Flipdish.CardReadersApi(); + +var appId = "appId_example"; // String | + +var deviceId = "deviceId_example"; // String | + +var terminalType = "terminalType_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.initiateKioskBluetoothPairingMode(appId, deviceId, terminalType, callback); +``` + +### 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 + + +# **initiateKioskUpdateInstallForBluetoothTerminal** +> initiateKioskUpdateInstallForBluetoothTerminal(appId, deviceId, terminalType) + + + +### Example +```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 apiInstance = new Flipdish.CardReadersApi(); + +var appId = "appId_example"; // String | + +var deviceId = "deviceId_example"; // String | + +var terminalType = "terminalType_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.initiateKioskUpdateInstallForBluetoothTerminal(appId, deviceId, terminalType, callback); +``` + +### 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 + + +# **unpairCurrentlyPairedBluetoothDevice** +> unpairCurrentlyPairedBluetoothDevice(appId, deviceId) + +Unpair the currently paired stripe terminal + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```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 apiInstance = new Flipdish.CardReadersApi(); + +var appId = "appId_example"; // String | + +var deviceId = "deviceId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.unpairCurrentlyPairedBluetoothDevice(appId, deviceId, callback); +``` + +### 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/CertificateCreatedEvent.md b/docs/CertificateCreatedEvent.md new file mode 100644 index 00000000..b110301c --- /dev/null +++ b/docs/CertificateCreatedEvent.md @@ -0,0 +1,13 @@ +# 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] + + diff --git a/docs/CertificateRenewedEvent.md b/docs/CertificateRenewedEvent.md new file mode 100644 index 00000000..a4062423 --- /dev/null +++ b/docs/CertificateRenewedEvent.md @@ -0,0 +1,13 @@ +# 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] + + diff --git a/docs/ChangePasswordModel.md b/docs/ChangePasswordModel.md new file mode 100644 index 00000000..7a434c44 --- /dev/null +++ b/docs/ChangePasswordModel.md @@ -0,0 +1,9 @@ +# Flipdish.ChangePasswordModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OldPassword** | **String** | Old password | +**NewPassword** | **String** | New password | + + diff --git a/docs/ChargebackDetails.md b/docs/ChargebackDetails.md new file mode 100644 index 00000000..259247da --- /dev/null +++ b/docs/ChargebackDetails.md @@ -0,0 +1,11 @@ +# Flipdish.ChargebackDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChargebackAmount** | **Number** | Chargeback amount | [optional] +**ChargebackRefundedFees** | **Number** | Chargeback refunded feeds | [optional] +**ChargebacksCount** | **Number** | Number of chargebacks | [optional] +**TotalChargebackCost** | **Number** | Total amount | [optional] + + diff --git a/docs/ContentSecurityPolicyApi.md b/docs/ContentSecurityPolicyApi.md new file mode 100644 index 00000000..d4b2eedf --- /dev/null +++ b/docs/ContentSecurityPolicyApi.md @@ -0,0 +1,58 @@ +# 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 +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 apiInstance = new Flipdish.ContentSecurityPolicyApi(); + +var request = new Flipdish.CspReportRequest(); // CspReportRequest | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.contentSecurityPolicyReport(request, callback); +``` + +### 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 index fbee150c..6fb8ab30 100644 --- a/docs/Coordinates.md +++ b/docs/Coordinates.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**latitude** | **Number** | Latitude | [optional] -**longitude** | **Number** | Longitude | [optional] +**Latitude** | **Number** | Latitude | [optional] +**Longitude** | **Number** | Longitude | [optional] diff --git a/docs/CountryWithAccountFieldsDefinitions.md b/docs/CountryWithAccountFieldsDefinitions.md new file mode 100644 index 00000000..ee6eb39d --- /dev/null +++ b/docs/CountryWithAccountFieldsDefinitions.md @@ -0,0 +1,11 @@ +# 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..5e7bdf84 --- /dev/null +++ b/docs/CreateAccountModel.md @@ -0,0 +1,12 @@ +# Flipdish.CreateAccountModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **String** | Email addres | +**StoreName** | **String** | Store name | +**LanguageId** | **String** | LanguageId | [optional] +**Rid** | **Number** | Referral ID | [optional] +**Cid** | **String** | Campaign ID | [optional] + + diff --git a/docs/CreateFullMenu.md b/docs/CreateFullMenu.md new file mode 100644 index 00000000..15b854c9 --- /dev/null +++ b/docs/CreateFullMenu.md @@ -0,0 +1,36 @@ +# 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 (startes, 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] + + + +## 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..558a2a98 --- /dev/null +++ b/docs/CreateFullMenuItemOptionSet.md @@ -0,0 +1,29 @@ +# Flipdish.CreateFullMenuItemOptionSet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] + + + +## 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..10a5ee94 --- /dev/null +++ b/docs/CreateFullMenuItemOptionSetItem.md @@ -0,0 +1,30 @@ +# Flipdish.CreateFullMenuItemOptionSetItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | [**[CreateMetadata]**](CreateMetadata.md) | List of metadata | [optional] +**TaxRateName** | **String** | Tax rate name | [optional] +**Name** | **String** | Name | [optional] +**Price** | **Number** | Price | [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/CreateFullMenuSection.md b/docs/CreateFullMenuSection.md new file mode 100644 index 00000000..bb72a281 --- /dev/null +++ b/docs/CreateFullMenuSection.md @@ -0,0 +1,15 @@ +# Flipdish.CreateFullMenuSection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuSectionAvailability** | [**MenuSectionAvailability**](MenuSectionAvailability.md) | Menu section availability | [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] + + diff --git a/docs/CreateFullMenuSectionItem.md b/docs/CreateFullMenuSectionItem.md new file mode 100644 index 00000000..54b9d4c6 --- /dev/null +++ b/docs/CreateFullMenuSectionItem.md @@ -0,0 +1,50 @@ +# 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] +**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] +**ImageUrl** | **String** | Image url | [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/CreateMenuTaxRate.md b/docs/CreateMenuTaxRate.md new file mode 100644 index 00000000..d0ba7031 --- /dev/null +++ b/docs/CreateMenuTaxRate.md @@ -0,0 +1,9 @@ +# 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..20f9ce69 --- /dev/null +++ b/docs/CreateMetadata.md @@ -0,0 +1,10 @@ +# 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/CreateTeammate.md b/docs/CreateTeammate.md new file mode 100644 index 00000000..02468f46 --- /dev/null +++ b/docs/CreateTeammate.md @@ -0,0 +1,34 @@ +# 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] + + + +## Enum: AppAccessLevelEnum + + +* `None` (value: `"None"`) + +* `Owner` (value: `"Owner"`) + +* `StoreOwner` (value: `"StoreOwner"`) + +* `ManagedOwner` (value: `"ManagedOwner"`) + +* `StoreManager` (value: `"StoreManager"`) + +* `StoreStaff` (value: `"StoreStaff"`) + +* `StoreReadOnlyAccess` (value: `"StoreReadOnlyAccess"`) + +* `FinanceManger` (value: `"FinanceManger"`) + + + + diff --git a/docs/CreateVoucher.md b/docs/CreateVoucher.md new file mode 100644 index 00000000..422258f3 --- /dev/null +++ b/docs/CreateVoucher.md @@ -0,0 +1,44 @@ +# Flipdish.CreateVoucher + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherType** | **String** | Voucher Type | [optional] +**Stores** | **[Number]** | Stores that this voucher applies to | [optional] +**AddItemDetails** | [**AddItemDetails**](AddItemDetails.md) | Add item details | [optional] +**CreditNoteDetails** | [**CreditNoteDetails**](CreditNoteDetails.md) | Credit note details | [optional] +**LumpDiscountDetails** | [**LumpDiscountDetails**](LumpDiscountDetails.md) | Lump discount details | [optional] +**PercentDiscountDetails** | [**PercentDiscountDetails**](PercentDiscountDetails.md) | Percent discount details | [optional] +**Code** | **String** | Voucher Code | [optional] +**Description** | **String** | Voucher Description (Visible on printout) | [optional] +**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] +**StartDate** | **Date** | Voucher Starts On (Time in UTC) | [optional] +**ExpiryDate** | **Date** | Voucher Expires On (Time in UTC) | [optional] + + + +## Enum: VoucherTypeEnum + + +* `PercentageDiscount` (value: `"PercentageDiscount"`) + +* `LumpDiscount` (value: `"LumpDiscount"`) + +* `AddItem` (value: `"AddItem"`) + +* `CreditNote` (value: `"CreditNote"`) + + + + diff --git a/docs/RestApiResultVoucher.md b/docs/CreditNoteDetails.md similarity index 51% rename from docs/RestApiResultVoucher.md rename to docs/CreditNoteDetails.md index c7f23cae..faf839a2 100644 --- a/docs/RestApiResultVoucher.md +++ b/docs/CreditNoteDetails.md @@ -1,8 +1,8 @@ -# Flipdish.RestApiResultVoucher +# Flipdish.CreditNoteDetails ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**Voucher**](Voucher.md) | Generic data object. | [optional] +**RemainingCredit** | **Number** | Remaining credit | [optional] diff --git a/docs/CspReport.md b/docs/CspReport.md new file mode 100644 index 00000000..4da3f17b --- /dev/null +++ b/docs/CspReport.md @@ -0,0 +1,14 @@ +# 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..c01d668c --- /dev/null +++ b/docs/CspReportRequest.md @@ -0,0 +1,8 @@ +# 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..9e9d6d50 --- /dev/null +++ b/docs/CurrencyData.md @@ -0,0 +1,242 @@ +# 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..32d033a8 --- /dev/null +++ b/docs/Customer.md @@ -0,0 +1,12 @@ +# Flipdish.Customer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomerId** | **Number** | Id of the customer | [optional] +**RegistrationDate** | **Date** | Customer registration date | [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 index d0962557..d619b38b 100644 --- a/docs/CustomerConsentUpdatedEvent.md +++ b/docs/CustomerConsentUpdatedEvent.md @@ -3,12 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**enabled** | **Boolean** | Enabled | [optional] -**description** | **String** | Description | [optional] -**user** | [**UserEventInfo**](UserEventInfo.md) | Customer User info | [optional] -**flipdishEventId** | **String** | The identitfier of the event | [optional] -**createTime** | **Date** | The time of creation of the event | [optional] -**position** | **Number** | Position | [optional] +**EventName** | **String** | The event name | [optional] +**Enabled** | **Boolean** | Enabled | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Customer User info | [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] diff --git a/docs/CustomerCreatedEvent.md b/docs/CustomerCreatedEvent.md index 2d9558ab..070b1529 100644 --- a/docs/CustomerCreatedEvent.md +++ b/docs/CustomerCreatedEvent.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**whiteLabelId** | **Number** | White label identifier | [optional] -**user** | [**UserEventInfo**](UserEventInfo.md) | Customer User info | [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] +**EventName** | **String** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Customer User info | [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] diff --git a/docs/CustomerDeliveryTrackingOrder.md b/docs/CustomerDeliveryTrackingOrder.md new file mode 100644 index 00000000..a626d3d5 --- /dev/null +++ b/docs/CustomerDeliveryTrackingOrder.md @@ -0,0 +1,259 @@ +# 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..f736ccc5 --- /dev/null +++ b/docs/CustomerDeliveryTrackingOrderLine.md @@ -0,0 +1,9 @@ +# 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/CustomerSummary.md b/docs/CustomerSummary.md index 22d0abe7..237847c8 100644 --- a/docs/CustomerSummary.md +++ b/docs/CustomerSummary.md @@ -3,10 +3,10 @@ ## 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] +**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] diff --git a/docs/CustomerUpdateModel.md b/docs/CustomerUpdateModel.md new file mode 100644 index 00000000..a908aa73 --- /dev/null +++ b/docs/CustomerUpdateModel.md @@ -0,0 +1,10 @@ +# 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 index 6a443c5a..d9e1c8f3 100644 --- a/docs/CustomerUpdatedEvent.md +++ b/docs/CustomerUpdatedEvent.md @@ -3,11 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**user** | [**UserEventInfo**](UserEventInfo.md) | Customer User info | [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] +**EventName** | **String** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Customer User info | [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] diff --git a/docs/CustomersApi.md b/docs/CustomersApi.md new file mode 100644 index 00000000..65ef3514 --- /dev/null +++ b/docs/CustomersApi.md @@ -0,0 +1,117 @@ +# Flipdish.CustomersApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getCustomerById**](CustomersApi.md#getCustomerById) | **GET** /api/v1.0/{appId}/customers/{customerId} | Get customer of an app by Id +[**updateCustomerById**](CustomersApi.md#updateCustomerById) | **POST** /api/v1.0/{appId}/customers/{customerId} | Update customer of an app by Id + + + +# **getCustomerById** +> RestApiResultCustomer getCustomerById(appId, customerId) + +Get customer of an app by Id + +### Example +```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 apiInstance = new Flipdish.CustomersApi(); + +var appId = "appId_example"; // String | App Name Id + +var customerId = 56; // Number | Customer Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getCustomerById(appId, customerId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **customerId** | **Number**| Customer Id | + +### 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 + + +# **updateCustomerById** +> RestApiResultCustomer updateCustomerById(appId, customerId, updateCustomer) + +Update customer of an app by Id + +### Example +```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 apiInstance = new Flipdish.CustomersApi(); + +var appId = "appId_example"; // String | App Name Id + +var customerId = 56; // Number | Customer Id + +var updateCustomer = new Flipdish.CustomerUpdateModel(); // CustomerUpdateModel | Updated customer information + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.updateCustomerById(appId, customerId, updateCustomer, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **customerId** | **Number**| Customer Id | + **updateCustomer** | [**CustomerUpdateModel**](CustomerUpdateModel.md)| Updated customer information | + +### 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 + diff --git a/docs/DeliveryFeeArea.md b/docs/DeliveryFeeArea.md deleted file mode 100644 index 1b51b592..00000000 --- a/docs/DeliveryFeeArea.md +++ /dev/null @@ -1,9 +0,0 @@ -# Flipdish.DeliveryFeeArea - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**deliveryFee** | **Number** | Delivery fee | [optional] -**minimumDeliveryOrder** | **Number** | Minimum delivery order amount | [optional] - - diff --git a/docs/DeliveryLocation.md b/docs/DeliveryLocation.md index c8d9202d..3053a470 100644 --- a/docs/DeliveryLocation.md +++ b/docs/DeliveryLocation.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**coordinates** | [**Coordinates**](Coordinates.md) | Geo cordinate | [optional] -**building** | **String** | Building | [optional] -**street** | **String** | Street | [optional] -**town** | **String** | Town | [optional] -**postCode** | **String** | Post code | [optional] -**deliveryInstructions** | **String** | Delivery instructions | [optional] -**prettyAddressString** | **String** | Formatted, pretty address string | [optional] +**Coordinates** | [**Coordinates**](Coordinates.md) | Geo cordinate | [optional] +**Building** | **String** | Building | [optional] +**Street** | **String** | Street | [optional] +**Town** | **String** | Town | [optional] +**PostCode** | **String** | Post code | [optional] +**DeliveryInstructions** | **String** | Delivery instructions | [optional] +**PrettyAddressString** | **String** | Formatted, pretty address string | [optional] diff --git a/docs/DeliveryTrackingApi.md b/docs/DeliveryTrackingApi.md new file mode 100644 index 00000000..8cf7f067 --- /dev/null +++ b/docs/DeliveryTrackingApi.md @@ -0,0 +1,339 @@ +# Flipdish.DeliveryTrackingApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**assignDriverToOrder**](DeliveryTrackingApi.md#assignDriverToOrder) | **POST** /api/v1.0/{appId}/drivers/{driverId}/orders/{orderId} | [PRIVATE] Assign driver to order +[**assignDriverToOrders**](DeliveryTrackingApi.md#assignDriverToOrders) | **POST** /api/v1.0/{appId}/drivers/{driverId}/orders | Assign driver to multiple orders +[**getDrivers**](DeliveryTrackingApi.md#getDrivers) | **GET** /api/v1.0/{appId}/drivers | [PRIVATE] Get drivers by App +[**inviteDriverToApp**](DeliveryTrackingApi.md#inviteDriverToApp) | **POST** /api/v1.0/{appId}/drivers | [PRIVATE] Invite driver +[**removeDriverFromApp**](DeliveryTrackingApi.md#removeDriverFromApp) | **DELETE** /api/v1.0/{appId}/drivers/{driverId} | [PRIVATE] Unassign driver from app +[**unassignDriverFromOrder**](DeliveryTrackingApi.md#unassignDriverFromOrder) | **DELETE** /api/v1.0/{appId}/orders/{orderId}/driver | [PRIVATE] Unassign driver from order + + + +# **assignDriverToOrder** +> assignDriverToOrder(appId, orderId, driverId) + +[PRIVATE] Assign driver to order + +### Example +```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 apiInstance = new Flipdish.DeliveryTrackingApi(); + +var appId = "appId_example"; // String | Application identifier + +var orderId = 56; // Number | Order Id + +var driverId = 56; // Number | Driver Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.assignDriverToOrder(appId, orderId, driverId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **orderId** | **Number**| Order Id | + **driverId** | **Number**| Driver Id | + +### 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 + + +# **assignDriverToOrders** +> assignDriverToOrders(appId, driverId, orderIdAndSequenceNumbers) + +Assign driver to multiple orders + +### Example +```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 apiInstance = new Flipdish.DeliveryTrackingApi(); + +var appId = "appId_example"; // String | Application identifier + +var driverId = 56; // Number | Driver Id + +var orderIdAndSequenceNumbers = [new Flipdish.OrderIdAndSequenceNumber()]; // [OrderIdAndSequenceNumber] | Array of object containing OrderId and Sequence + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.assignDriverToOrders(appId, driverId, orderIdAndSequenceNumbers, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **driverId** | **Number**| Driver Id | + **orderIdAndSequenceNumbers** | [**[OrderIdAndSequenceNumber]**](OrderIdAndSequenceNumber.md)| Array of object containing OrderId and Sequence | + +### 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 + + +# **getDrivers** +> RestApiArrayResultDriver getDrivers(appId, opts) + +[PRIVATE] Get drivers by App + +### Example +```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 apiInstance = new Flipdish.DeliveryTrackingApi(); + +var appId = "appId_example"; // String | Application identifier + +var opts = { + 'name': "name_example", // String | Driver's username + 'phoneNumber': "phoneNumber_example", // String | Driver's phone number + 'storeId': 56, // Number | Store Id + 'presence': "presence_example" // String | Offline/Online +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getDrivers(appId, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **name** | **String**| Driver's username | [optional] + **phoneNumber** | **String**| Driver's phone number | [optional] + **storeId** | **Number**| Store Id | [optional] + **presence** | **String**| Offline/Online | [optional] + +### Return type + +[**RestApiArrayResultDriver**](RestApiArrayResultDriver.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + + +# **inviteDriverToApp** +> RestApiResultDriver inviteDriverToApp(appId, driverInvitation) + +[PRIVATE] Invite driver + +### Example +```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 apiInstance = new Flipdish.DeliveryTrackingApi(); + +var appId = "appId_example"; // String | Application identifier + +var driverInvitation = new Flipdish.DriverInvitation(); // DriverInvitation | Driver invitation model + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.inviteDriverToApp(appId, driverInvitation, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **driverInvitation** | [**DriverInvitation**](DriverInvitation.md)| Driver invitation model | + +### Return type + +[**RestApiResultDriver**](RestApiResultDriver.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + + +# **removeDriverFromApp** +> removeDriverFromApp(appId, driverId) + +[PRIVATE] Unassign driver from app + +### Example +```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 apiInstance = new Flipdish.DeliveryTrackingApi(); + +var appId = "appId_example"; // String | Application identifier + +var driverId = 56; // Number | Driver Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.removeDriverFromApp(appId, driverId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **driverId** | **Number**| Driver Id | + +### 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 + + +# **unassignDriverFromOrder** +> unassignDriverFromOrder(appId, orderId) + +[PRIVATE] Unassign driver from order + +### Example +```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 apiInstance = new Flipdish.DeliveryTrackingApi(); + +var appId = "appId_example"; // String | Application identifier + +var orderId = 56; // Number | Order Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.unassignDriverFromOrder(appId, orderId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **orderId** | **Number**| Order Id | + +### 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/DeliveryZone.md b/docs/DeliveryZone.md new file mode 100644 index 00000000..6ebb13f8 --- /dev/null +++ b/docs/DeliveryZone.md @@ -0,0 +1,12 @@ +# Flipdish.DeliveryZone + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Delivery Fee Area Id | [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..4668c5c1 --- /dev/null +++ b/docs/DeliveryZoneApi.md @@ -0,0 +1,220 @@ +# 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 | Adds a delivery zone to the store id +[**getDeliveryZones**](DeliveryZoneApi.md#getDeliveryZones) | **GET** /api/v1.0/stores/{storeId}/deliveryzones | Get all the delivery zones associated with a store +[**removeDeliveryZone**](DeliveryZoneApi.md#removeDeliveryZone) | **DELETE** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | Removes the existing delivery zone +[**updateDeliveryZone**](DeliveryZoneApi.md#updateDeliveryZone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | Updates the existing delivery zone + + + +# **addDeliveryZone** +> RestApiResultDeliveryZone addDeliveryZone(storeId, deliveryZoneBase) + +Adds a delivery zone to the store id + +### Example +```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 apiInstance = new Flipdish.DeliveryZoneApi(); + +var storeId = 56; // Number | Store Id to which the delivery zone will be added + +var deliveryZoneBase = new Flipdish.DeliveryZoneBase(); // DeliveryZoneBase | Optional delivery zone, if not supplied will create a default zone + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.addDeliveryZone(storeId, deliveryZoneBase, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store Id to which the delivery zone will be added | + **deliveryZoneBase** | [**DeliveryZoneBase**](DeliveryZoneBase.md)| Optional delivery zone, if not supplied will create a default zone | + +### 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 + + +# **getDeliveryZones** +> RestApiArrayResultDeliveryZone getDeliveryZones(storeId) + +Get all the delivery zones associated with a store + +### Example +```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 apiInstance = new Flipdish.DeliveryZoneApi(); + +var storeId = 56; // Number | Store Id to which the delivery zones are associated + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getDeliveryZones(storeId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store Id to which the delivery zones are associated | + +### 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 + + +# **removeDeliveryZone** +> removeDeliveryZone(storeId, deliveryZoneId) + +Removes the existing delivery zone + +### Example +```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 apiInstance = new Flipdish.DeliveryZoneApi(); + +var storeId = 56; // Number | Store Id to which the delivery zone belongs + +var deliveryZoneId = 56; // Number | Delivery zone id to be removed + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.removeDeliveryZone(storeId, deliveryZoneId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store Id to which the delivery zone belongs | + **deliveryZoneId** | **Number**| Delivery zone id 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 + + +# **updateDeliveryZone** +> RestApiResultDeliveryZone updateDeliveryZone(storeId, deliveryZoneId, deliveryZone) + +Updates the existing delivery zone + +### Example +```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 apiInstance = new Flipdish.DeliveryZoneApi(); + +var storeId = 56; // Number | Store Id to which the delivery zone belongs + +var deliveryZoneId = 56; // Number | Delivery zone id to be updated + +var deliveryZone = new Flipdish.DeliveryZoneBase(); // DeliveryZoneBase | Delta of delivery zone parameters that need to be changed + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.updateDeliveryZone(storeId, deliveryZoneId, deliveryZone, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store Id to which the delivery zone belongs | + **deliveryZoneId** | **Number**| Delivery zone id to be updated | + **deliveryZone** | [**DeliveryZoneBase**](DeliveryZoneBase.md)| Delta of delivery zone parameters that need to be changed | + +### 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 + diff --git a/docs/DeliveryZoneBase.md b/docs/DeliveryZoneBase.md new file mode 100644 index 00000000..7ff7df49 --- /dev/null +++ b/docs/DeliveryZoneBase.md @@ -0,0 +1,11 @@ +# 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..f1bef70f --- /dev/null +++ b/docs/DeliveryZoneCreatedEvent.md @@ -0,0 +1,17 @@ +# 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) | User which created delivery zone for this store | [optional] +**Description** | **String** | Description | [optional] +**DeliveryZone** | [**DeliveryZone**](DeliveryZone.md) | Created Delivery Zone | [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] + + diff --git a/docs/DeliveryZoneDeletedEvent.md b/docs/DeliveryZoneDeletedEvent.md new file mode 100644 index 00000000..dc6012ba --- /dev/null +++ b/docs/DeliveryZoneDeletedEvent.md @@ -0,0 +1,17 @@ +# 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) | User which deleted delivery zone for this store | [optional] +**Description** | **String** | Description | [optional] +**DeliveryZone** | [**DeliveryZone**](DeliveryZone.md) | Deleted Delivery Zone | [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] + + diff --git a/docs/DeliveryZoneUpdatedEvent.md b/docs/DeliveryZoneUpdatedEvent.md new file mode 100644 index 00000000..e8a9fe81 --- /dev/null +++ b/docs/DeliveryZoneUpdatedEvent.md @@ -0,0 +1,17 @@ +# 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) | User which updated delivery zone for this store | [optional] +**Description** | **String** | Description | [optional] +**DeliveryZone** | [**DeliveryZone**](DeliveryZone.md) | Updated Delivery Zone | [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] + + diff --git a/docs/DeviceSettings.md b/docs/DeviceSettings.md new file mode 100644 index 00000000..a138c6e2 --- /dev/null +++ b/docs/DeviceSettings.md @@ -0,0 +1,10 @@ +# 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..cb498ca4 --- /dev/null +++ b/docs/DnsRecordInformation.md @@ -0,0 +1,10 @@ +# 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..b8a3018c --- /dev/null +++ b/docs/DnsVerifiedEvent.md @@ -0,0 +1,13 @@ +# 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] + + diff --git a/docs/Driver.md b/docs/Driver.md new file mode 100644 index 00000000..72836b26 --- /dev/null +++ b/docs/Driver.md @@ -0,0 +1,13 @@ +# Flipdish.Driver + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **Number** | User Id | [optional] +**UserName** | **String** | User Name | [optional] +**UserPhoneNumber** | **String** | User Phone Number | [optional] +**Stores** | [**[DriverStore]**](DriverStore.md) | | [optional] +**ProfileImageUrl** | **String** | Profile image url | [optional] +**DriverKey** | **String** | Driver Key | [optional] + + diff --git a/docs/DriverInvitation.md b/docs/DriverInvitation.md new file mode 100644 index 00000000..84aae336 --- /dev/null +++ b/docs/DriverInvitation.md @@ -0,0 +1,10 @@ +# Flipdish.DriverInvitation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumber** | **String** | Phone number | [optional] +**Name** | **String** | Driver's name | [optional] +**StoreIds** | **[Number]** | Assigned store IDs | [optional] + + diff --git a/docs/DriverLoginModel.md b/docs/DriverLoginModel.md new file mode 100644 index 00000000..785ace3e --- /dev/null +++ b/docs/DriverLoginModel.md @@ -0,0 +1,9 @@ +# 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..e8c80271 --- /dev/null +++ b/docs/DriverRequestLoginPinModel.md @@ -0,0 +1,8 @@ +# Flipdish.DriverRequestLoginPinModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumber** | **String** | Email address | + + diff --git a/docs/DriverStore.md b/docs/DriverStore.md new file mode 100644 index 00000000..a2eb7bf6 --- /dev/null +++ b/docs/DriverStore.md @@ -0,0 +1,21 @@ +# Flipdish.DriverStore + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store identifier | [optional] +**StoreName** | **String** | Store name | [optional] +**Presence** | **String** | Presence | [optional] + + + +## Enum: PresenceEnum + + +* `Offline` (value: `"Offline"`) + +* `Online` (value: `"Online"`) + + + + diff --git a/docs/DriversApi.md b/docs/DriversApi.md new file mode 100644 index 00000000..29caf696 --- /dev/null +++ b/docs/DriversApi.md @@ -0,0 +1,542 @@ +# Flipdish.DriversApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addDriverNotificationToken**](DriversApi.md#addDriverNotificationToken) | **POST** /api/v1.0/drivers/token | Add driver token +[**deleteDriverProfileImage**](DriversApi.md#deleteDriverProfileImage) | **DELETE** /api/v1.0/drivers/profile/image | Delete driver profile image +[**driverLogin**](DriversApi.md#driverLogin) | **POST** /api/v1.0/drivers/login | [PRIVATE] Login with phone number and pin +[**driverRequestLoginCodeSms**](DriversApi.md#driverRequestLoginCodeSms) | **POST** /api/v1.0/drivers/pin | [PRIVATE] Request an SMS to be sent to the driver with their login code +[**getDriverProfile**](DriversApi.md#getDriverProfile) | **GET** /api/v1.0/drivers/profile | Get driver profile +[**getStoresForDriver**](DriversApi.md#getStoresForDriver) | **GET** /api/v1.0/drivers/assignedstores | Get stores for driver +[**removeDriverNotificationToken**](DriversApi.md#removeDriverNotificationToken) | **DELETE** /api/v1.0/drivers/token | Delete driver token +[**setDriverPresenceForStore**](DriversApi.md#setDriverPresenceForStore) | **POST** /api/v1.0/drivers/stores/{storeId}/presence/{presence} | +[**setDriverProfileImage**](DriversApi.md#setDriverProfileImage) | **POST** /api/v1.0/drivers/profile/image | Set driver profile image and returns it's url +[**updateDeliveryTrackingStatus**](DriversApi.md#updateDeliveryTrackingStatus) | **POST** /api/v1.0/orders/{orderId}/tracking/{deliveryTrackingStatus} | Change delivery tracking status and return the updated status. +[**updateDriverProfile**](DriversApi.md#updateDriverProfile) | **POST** /api/v1.0/drivers/profile | Update driver profile + + + +# **addDriverNotificationToken** +> addDriverNotificationToken(updateDriverToken) + +Add driver token + +### Example +```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 apiInstance = new Flipdish.DriversApi(); + +var updateDriverToken = new Flipdish.UpdateDriverNotificationToken(); // UpdateDriverNotificationToken | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.addDriverNotificationToken(updateDriverToken, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **updateDriverToken** | [**UpdateDriverNotificationToken**](UpdateDriverNotificationToken.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 + + +# **deleteDriverProfileImage** +> deleteDriverProfileImage() + +Delete driver profile image + +### Example +```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 apiInstance = new Flipdish.DriversApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.deleteDriverProfileImage(callback); +``` + +### 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 + + +# **driverLogin** +> driverLogin(driverLoginModel) + +[PRIVATE] Login with phone number and pin + +### Example +```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 apiInstance = new Flipdish.DriversApi(); + +var driverLoginModel = new Flipdish.DriverLoginModel(); // DriverLoginModel | Driver request login code model + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.driverLogin(driverLoginModel, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **driverLoginModel** | [**DriverLoginModel**](DriverLoginModel.md)| Driver request login code model | + +### 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 + + +# **driverRequestLoginCodeSms** +> driverRequestLoginCodeSms(driverRequestLoginPinModel) + +[PRIVATE] Request an SMS to be sent to the driver with their login code + +### Example +```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 apiInstance = new Flipdish.DriversApi(); + +var driverRequestLoginPinModel = new Flipdish.DriverRequestLoginPinModel(); // DriverRequestLoginPinModel | Driver request login code model + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.driverRequestLoginCodeSms(driverRequestLoginPinModel, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **driverRequestLoginPinModel** | [**DriverRequestLoginPinModel**](DriverRequestLoginPinModel.md)| Driver request login code model | + +### 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 + + +# **getDriverProfile** +> RestApiResultDriver getDriverProfile() + +Get driver profile + +### Example +```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 apiInstance = new Flipdish.DriversApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getDriverProfile(callback); +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultDriver**](RestApiResultDriver.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + + +# **getStoresForDriver** +> RestApiArrayResultDriverStore getStoresForDriver() + +Get stores for driver + +### Example +```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 apiInstance = new Flipdish.DriversApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getStoresForDriver(callback); +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiArrayResultDriverStore**](RestApiArrayResultDriverStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + + +# **removeDriverNotificationToken** +> removeDriverNotificationToken(removeDriverToken) + +Delete driver token + +### Example +```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 apiInstance = new Flipdish.DriversApi(); + +var removeDriverToken = new Flipdish.UpdateDriverNotificationToken(); // UpdateDriverNotificationToken | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.removeDriverNotificationToken(removeDriverToken, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **removeDriverToken** | [**UpdateDriverNotificationToken**](UpdateDriverNotificationToken.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 + + +# **setDriverPresenceForStore** +> setDriverPresenceForStore(storeId, presence) + + + +### Example +```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 apiInstance = new Flipdish.DriversApi(); + +var storeId = 56; // Number | + +var presence = "presence_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.setDriverPresenceForStore(storeId, presence, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **presence** | **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 + + +# **setDriverProfileImage** +> RestApiStringResult setDriverProfileImage() + +Set driver profile image and returns it's url + +### Example +```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 apiInstance = new Flipdish.DriversApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.setDriverProfileImage(callback); +``` + +### 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 + + +# **updateDeliveryTrackingStatus** +> RestApiStringResult updateDeliveryTrackingStatus(orderId, deliveryTrackingStatus) + +Change delivery tracking status and return the updated status. + +... + +### Example +```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 apiInstance = new Flipdish.DriversApi(); + +var orderId = 56; // Number | Order identifier + +var deliveryTrackingStatus = "deliveryTrackingStatus_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.updateDeliveryTrackingStatus(orderId, deliveryTrackingStatus, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **Number**| Order identifier | + **deliveryTrackingStatus** | **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 + + +# **updateDriverProfile** +> updateDriverProfile(updateDriverProfile) + +Update driver profile + +### Example +```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 apiInstance = new Flipdish.DriversApi(); + +var updateDriverProfile = new Flipdish.UpdateDriverProfileModel(); // UpdateDriverProfileModel | Update the driver profile (i.e Name) + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.updateDriverProfile(updateDriverProfile, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **updateDriverProfile** | [**UpdateDriverProfileModel**](UpdateDriverProfileModel.md)| Update the driver profile (i.e Name) | + +### 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/EmvNotificationEvent.md b/docs/EmvNotificationEvent.md new file mode 100644 index 00000000..d8cc9307 --- /dev/null +++ b/docs/EmvNotificationEvent.md @@ -0,0 +1,22 @@ +# Flipdish.EmvNotificationEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Notification** | **String** | Notification Sent | [optional] +**Order** | [**Order**](Order.md) | Order | [optional] +**TerminalId** | **String** | TerminalId | [optional] +**Description** | **String** | Description | [optional] +**ExpDate** | **String** | Expirey Date | [optional] +**CardType** | **String** | Card Type | [optional] +**PaymentMethod** | **String** | Payment Method | [optional] +**AccountNumber** | **String** | Masked Account Number | [optional] +**AuthCode** | **String** | Auth Code | [optional] +**ProviderMessage** | **String** | Payment Provider Message | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/EmvTerminal.md b/docs/EmvTerminal.md new file mode 100644 index 00000000..f8c91e2b --- /dev/null +++ b/docs/EmvTerminal.md @@ -0,0 +1,13 @@ +# 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..a7a8c355 --- /dev/null +++ b/docs/EmvTerminalWithAssignments.md @@ -0,0 +1,13 @@ +# 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 index 82dada50..9f72c0d0 100644 --- a/docs/EventSearchResult.md +++ b/docs/EventSearchResult.md @@ -3,25 +3,113 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**orderAcceptedEvent** | [**[OrderAcceptedEvent]**](OrderAcceptedEvent.md) | Order accepted events | [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] -**storeCreatedEvent** | [**[StoreCreatedEvent]**](StoreCreatedEvent.md) | Store created events | [optional] -**storeDeletedEvent** | [**[StoreDeletedEvent]**](StoreDeletedEvent.md) | Store deleted events | [optional] -**storeDeliveryZoneUpdatedEvent** | [**[StoreDeliveryZoneUpdatedEvent]**](StoreDeliveryZoneUpdatedEvent.md) | Store delivery zone updated events | [optional] -**storeOpeningHoursUpdatedEvent** | [**[StoreOpeningHoursUpdatedEvent]**](StoreOpeningHoursUpdatedEvent.md) | Store opening hours updated events | [optional] -**storeUpdatedEvent** | [**[StoreUpdatedEvent]**](StoreUpdatedEvent.md) | Store updated events | [optional] -**menuCreatedEvent** | [**[MenuCreatedEvent]**](MenuCreatedEvent.md) | Menu created events | [optional] -**menuUpdatedEvent** | [**[MenuUpdatedEvent]**](MenuUpdatedEvent.md) | Menu updated 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] -**campaignCreatedEvent** | [**[CampaignCreatedEvent]**](CampaignCreatedEvent.md) | Campaign created 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] +**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] +**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] +**MenuUpdatedEvent** | [**[MenuUpdatedEvent]**](MenuUpdatedEvent.md) | Menu updated events | [optional] +**MenuUploadedEvent** | [**[MenuUploadedEvent]**](MenuUploadedEvent.md) | Menu uploaded 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] +**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] +**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] +**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] +**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] +**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] diff --git a/docs/EventsApi.md b/docs/EventsApi.md index 0c95381f..2ee99e5d 100644 --- a/docs/EventsApi.md +++ b/docs/EventsApi.md @@ -4,22 +4,22 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**getCustomerEvents**](EventsApi.md#getCustomerEvents) | **GET** /api/v1.0/events/customer/{customerId} | Get customer events -[**getEvents**](EventsApi.md#getEvents) | **GET** /api/v1.0/events | Get events -[**getEventsById**](EventsApi.md#getEventsById) | **GET** /api/v1.0/events/{eventId} | Get event by Id -[**getMenuEvents**](EventsApi.md#getMenuEvents) | **GET** /api/v1.0/events/menu/{menuId} | Get menu events -[**getOrderEvents**](EventsApi.md#getOrderEvents) | **GET** /api/v1.0/events/order/{orderId} | Get order events -[**getOrderEventsByCustomer**](EventsApi.md#getOrderEventsByCustomer) | **GET** /api/v1.0/events/order | Get order events by customer -[**getStoreEvents**](EventsApi.md#getStoreEvents) | **GET** /api/v1.0/events/store/{storeId} | Get store events -[**getUserEvents**](EventsApi.md#getUserEvents) | **GET** /api/v1.0/events/user/{userId} | Get user events -[**getWhiteLabelEvents**](EventsApi.md#getWhiteLabelEvents) | **GET** /api/v1.0/events/whitelabel/{whitelabelId} | Get WhiteLabel events +[**getCustomerEvents**](EventsApi.md#getCustomerEvents) | **GET** /api/v1.0/events/customer/{customerId} | Get customer events For technical reasons, the number of records returned is limited to 100. +[**getEvents**](EventsApi.md#getEvents) | **GET** /api/v1.0/events | Get events For technical reasons, the number of records returned is limited to 100. +[**getEventsById**](EventsApi.md#getEventsById) | **GET** /api/v1.0/events/{eventId} | Get event by Id For technical reasons, the number of records returned is limited to 100. +[**getMenuEvents**](EventsApi.md#getMenuEvents) | **GET** /api/v1.0/events/menu/{menuId} | Get menu events For technical reasons, the number of records returned is limited to 100. +[**getOrderEvents**](EventsApi.md#getOrderEvents) | **GET** /api/v1.0/events/order/{orderId} | Get order events For technical reasons, the number of records returned is limited to 100. +[**getOrderEventsByCustomer**](EventsApi.md#getOrderEventsByCustomer) | **GET** /api/v1.0/events/order | Get order events by customer For technical reasons, the number of records returned is limited to 100. +[**getStoreEvents**](EventsApi.md#getStoreEvents) | **GET** /api/v1.0/events/store/{storeId} | Get store events For technical reasons, the number of records returned is limited to 100. +[**getUserEvents**](EventsApi.md#getUserEvents) | **GET** /api/v1.0/events/user/{userId} | Get user events For technical reasons, the number of records returned is limited to 100. +[**getWhiteLabelEvents**](EventsApi.md#getWhiteLabelEvents) | **GET** /api/v1.0/events/whitelabel/{whitelabelId} | Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. # **getCustomerEvents** > RestApiEventSearchPaginationResult getCustomerEvents(customerId, opts) -Get customer events +Get customer events For technical reasons, the number of records returned is limited to 100. ### Example ```javascript @@ -39,7 +39,15 @@ var opts = { '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 - 'name': ["name_example"] // [String] | Event names to filter in + 'orderId': 56, // Number | Events that have Order Id + 'storeId': 56, // Number | Events that have Store Id + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId': 56, // Number | Events that have User 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': ["eventType_example"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. }; var callback = function(error, data, response) { @@ -61,7 +69,15 @@ Name | Type | Description | Notes **page** | **Number**| The index of the page to return, starting by 1 | [optional] **start** | **Date**| Start date | [optional] **end** | **Date**| End date | [optional] - **name** | [**[String]**](String.md)| Event names to filter in | [optional] + **orderId** | **Number**| Events that have Order Id | [optional] + **storeId** | **Number**| Events that have Store Id | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId** | **Number**| Events that have User 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 @@ -80,7 +96,7 @@ Name | Type | Description | Notes # **getEvents** > RestApiEventSearchPaginationResult getEvents(opts) -Get events +Get events For technical reasons, the number of records returned is limited to 100. ### Example ```javascript @@ -94,14 +110,21 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.EventsApi(); var opts = { - 'storeId': 56, // Number | Store Id 'whiteLabelId': 56, // Number | White Label Id 'customerId': 56, // Number | Customer Id '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 - 'name': ["name_example"] // [String] | Event names to filter in + 'orderId': 56, // Number | Events that have Order Id + 'storeId': 56, // Number | Events that have Store Id + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId': 56, // Number | Events that have User 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': ["eventType_example"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. }; var callback = function(error, data, response) { @@ -118,14 +141,21 @@ apiInstance.getEvents(opts, callback); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **Number**| Store Id | [optional] **whiteLabelId** | **Number**| White Label Id | [optional] **customerId** | **Number**| Customer Id | [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] - **name** | [**[String]**](String.md)| Event names to filter in | [optional] + **orderId** | **Number**| Events that have Order Id | [optional] + **storeId** | **Number**| Events that have Store Id | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId** | **Number**| Events that have User 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 @@ -144,7 +174,7 @@ Name | Type | Description | Notes # **getEventsById** > EventSearchResult getEventsById(eventId) -Get event by Id +Get event by Id For technical reasons, the number of records returned is limited to 100. ### Example ```javascript @@ -193,7 +223,7 @@ Name | Type | Description | Notes # **getMenuEvents** > RestApiEventSearchPaginationResult getMenuEvents(menuId, opts) -Get menu events +Get menu events For technical reasons, the number of records returned is limited to 100. ### Example ```javascript @@ -213,7 +243,15 @@ var opts = { '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 - 'name': ["name_example"] // [String] | Event names to filter in + 'orderId': 56, // Number | Events that have Order Id + 'storeId': 56, // Number | Events that have Store Id + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId': 56, // Number | Events that have User 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': ["eventType_example"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. }; var callback = function(error, data, response) { @@ -235,7 +273,15 @@ Name | Type | Description | Notes **page** | **Number**| The index of the page to return, starting by 1 | [optional] **start** | **Date**| Start date | [optional] **end** | **Date**| End date | [optional] - **name** | [**[String]**](String.md)| Event names to filter in | [optional] + **orderId** | **Number**| Events that have Order Id | [optional] + **storeId** | **Number**| Events that have Store Id | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId** | **Number**| Events that have User 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 @@ -254,7 +300,7 @@ Name | Type | Description | Notes # **getOrderEvents** > RestApiEventSearchPaginationResult getOrderEvents(orderId, opts) -Get order events +Get order events For technical reasons, the number of records returned is limited to 100. ### Example ```javascript @@ -274,7 +320,15 @@ var opts = { '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 - 'name': ["name_example"] // [String] | Event names to filter in + 'orderId2': 56, // Number | Events that have Order Id + 'storeId': 56, // Number | Events that have Store Id + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId': 56, // Number | Events that have User 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': ["eventType_example"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. }; var callback = function(error, data, response) { @@ -296,7 +350,15 @@ Name | Type | Description | Notes **page** | **Number**| The index of the page to return, starting by 1 | [optional] **start** | **Date**| Start date | [optional] **end** | **Date**| End date | [optional] - **name** | [**[String]**](String.md)| Event names to filter in | [optional] + **orderId2** | **Number**| Events that have Order Id | [optional] + **storeId** | **Number**| Events that have Store Id | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId** | **Number**| Events that have User 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 @@ -315,7 +377,7 @@ Name | Type | Description | Notes # **getOrderEventsByCustomer** > RestApiEventSearchPaginationResult getOrderEventsByCustomer(customerId, opts) -Get order events by customer +Get order events by customer For technical reasons, the number of records returned is limited to 100. ### Example ```javascript @@ -335,7 +397,15 @@ var opts = { '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 - 'name': ["name_example"] // [String] | Event names to filter in + 'orderId': 56, // Number | Events that have Order Id + 'storeId': 56, // Number | Events that have Store Id + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId': 56, // Number | Events that have User 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': ["eventType_example"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. }; var callback = function(error, data, response) { @@ -357,7 +427,15 @@ Name | Type | Description | Notes **page** | **Number**| The index of the page to return, starting by 1 | [optional] **start** | **Date**| Start date | [optional] **end** | **Date**| End date | [optional] - **name** | [**[String]**](String.md)| Event names to filter in | [optional] + **orderId** | **Number**| Events that have Order Id | [optional] + **storeId** | **Number**| Events that have Store Id | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId** | **Number**| Events that have User 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 @@ -376,7 +454,7 @@ Name | Type | Description | Notes # **getStoreEvents** > RestApiEventSearchPaginationResult getStoreEvents(storeId, opts) -Get store events +Get store events For technical reasons, the number of records returned is limited to 100. ### Example ```javascript @@ -396,7 +474,15 @@ var opts = { '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 - 'name': ["name_example"] // [String] | Event names to filter in + 'orderId': 56, // Number | Events that have Order Id + 'storeId2': 56, // Number | Events that have Store Id + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId': 56, // Number | Events that have User 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': ["eventType_example"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. }; var callback = function(error, data, response) { @@ -418,7 +504,15 @@ Name | Type | Description | Notes **page** | **Number**| The index of the page to return, starting by 1 | [optional] **start** | **Date**| Start date | [optional] **end** | **Date**| End date | [optional] - **name** | [**[String]**](String.md)| Event names to filter in | [optional] + **orderId** | **Number**| Events that have Order Id | [optional] + **storeId2** | **Number**| Events that have Store Id | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId** | **Number**| Events that have User 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 @@ -437,7 +531,7 @@ Name | Type | Description | Notes # **getUserEvents** > RestApiEventSearchPaginationResult getUserEvents(userId, opts) -Get user events +Get user events For technical reasons, the number of records returned is limited to 100. ### Example ```javascript @@ -457,7 +551,15 @@ var opts = { '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 - 'name': ["name_example"] // [String] | Event names to filter in + 'orderId': 56, // Number | Events that have Order Id + 'storeId': 56, // Number | Events that have Store Id + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId2': 56, // Number | Events that have User 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': ["eventType_example"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. }; var callback = function(error, data, response) { @@ -479,7 +581,15 @@ Name | Type | Description | Notes **page** | **Number**| The index of the page to return, starting by 1 | [optional] **start** | **Date**| Start date | [optional] **end** | **Date**| End date | [optional] - **name** | [**[String]**](String.md)| Event names to filter in | [optional] + **orderId** | **Number**| Events that have Order Id | [optional] + **storeId** | **Number**| Events that have Store Id | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId2** | **Number**| Events that have User 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 @@ -498,7 +608,7 @@ Name | Type | Description | Notes # **getWhiteLabelEvents** > RestApiEventSearchPaginationResult getWhiteLabelEvents(whitelabelId, opts) -Get WhiteLabel events +Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. ### Example ```javascript @@ -518,7 +628,15 @@ var opts = { '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 - 'name': ["name_example"] // [String] | Event names to filter in + 'orderId': 56, // Number | Events that have Order Id + 'storeId': 56, // Number | Events that have Store Id + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId': 56, // Number | Events that have User 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': ["eventType_example"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. }; var callback = function(error, data, response) { @@ -540,7 +658,15 @@ Name | Type | Description | Notes **page** | **Number**| The index of the page to return, starting by 1 | [optional] **start** | **Date**| Start date | [optional] **end** | **Date**| End date | [optional] - **name** | [**[String]**](String.md)| Event names to filter in | [optional] + **orderId** | **Number**| Events that have Order Id | [optional] + **storeId** | **Number**| Events that have Store Id | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId** | **Number**| Events that have User 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 diff --git a/docs/FeeSummary.md b/docs/FeeSummary.md index 598b2f93..fe6ff7fa 100644 --- a/docs/FeeSummary.md +++ b/docs/FeeSummary.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**feeAmount** | **Number** | Fee amount | [optional] -**percentageRate** | **Number** | Percentage rate | [optional] -**perTransactionFee** | **Number** | Per transaction fee | [optional] +**FeeAmount** | **Number** | Fee amount | [optional] +**PercentageRate** | **Number** | Percentage rate | [optional] +**PerTransactionFee** | **Number** | Per transaction fee | [optional] diff --git a/docs/FilesApi.md b/docs/FilesApi.md new file mode 100644 index 00000000..69fcf2fe --- /dev/null +++ b/docs/FilesApi.md @@ -0,0 +1,61 @@ +# 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} | Get file from storage + + + +# **downloadFile** +> 'String' downloadFile(appId, fileId) + +Get file from storage + +### Example +```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 apiInstance = new Flipdish.FilesApi(); + +var appId = "appId_example"; // String | + +var fileId = "fileId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.downloadFile(appId, fileId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **fileId** | **String**| | + +### 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/FlipdishEventBase.md b/docs/FlipdishEventBase.md new file mode 100644 index 00000000..2fc6338b --- /dev/null +++ b/docs/FlipdishEventBase.md @@ -0,0 +1,12 @@ +# 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] + + diff --git a/docs/FlipdishFeesDetails.md b/docs/FlipdishFeesDetails.md new file mode 100644 index 00000000..e38482ce --- /dev/null +++ b/docs/FlipdishFeesDetails.md @@ -0,0 +1,14 @@ +# Flipdish.FlipdishFeesDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OnlineSalesFees** | **Number** | Fees on online sales | [optional] +**CashSalesFees** | **Number** | Fees on cash 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] +**SalesFeesVat** | **Number** | VAT on sales fees | [optional] +**TotalFees** | **Number** | Total fees | [optional] + + diff --git a/docs/GroupedCoordinates.md b/docs/GroupedCoordinates.md new file mode 100644 index 00000000..8d70e8af --- /dev/null +++ b/docs/GroupedCoordinates.md @@ -0,0 +1,10 @@ +# 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/HeartbeatApi.md b/docs/HeartbeatApi.md new file mode 100644 index 00000000..d9431af0 --- /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 +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 apiInstance = new Flipdish.HeartbeatApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.headHostname(callback); +``` + +### 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 +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 apiInstance = new Flipdish.HeartbeatApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.headPing(callback); +``` + +### 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 + + +# **hostname** +> Object hostname() + + + +### Example +```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 apiInstance = new Flipdish.HeartbeatApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.hostname(callback); +``` + +### 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 +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 apiInstance = new Flipdish.HeartbeatApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.ping(callback); +``` + +### 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 + diff --git a/docs/HomeAction.md b/docs/HomeAction.md new file mode 100644 index 00000000..6056648d --- /dev/null +++ b/docs/HomeAction.md @@ -0,0 +1,26 @@ +# 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..607ae2d7 --- /dev/null +++ b/docs/HomeApi.md @@ -0,0 +1,208 @@ +# 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} | [PRIVATE API] Complete Home Action +[**dismissOldPortalAction**](HomeApi.md#dismissOldPortalAction) | **POST** /api/v1.0/home/dismissoldportalaction | [PRIVATE API] Complete Home Action +[**getHomeActions**](HomeApi.md#getHomeActions) | **GET** /api/v1.0/{appId}/home | [PRIVATE API] Get Home Actions +[**getHomeStatistics**](HomeApi.md#getHomeStatistics) | **GET** /api/v1.0/{appId}/home/stats | [PRIVATE API] Get Home Statistics + + + +# **completeHomeAction** +> Object completeHomeAction(appId, homeActionId, isDismissed) + +[PRIVATE API] Complete Home Action + +### Example +```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 apiInstance = new Flipdish.HomeApi(); + +var appId = "appId_example"; // String | App Name Id + +var homeActionId = 56; // Number | Id of the action + +var isDismissed = true; // Boolean | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.completeHomeAction(appId, homeActionId, isDismissed, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **homeActionId** | **Number**| Id of the action | + **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 + + +# **dismissOldPortalAction** +> Object dismissOldPortalAction() + +[PRIVATE API] Complete Home Action + +### Example +```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 apiInstance = new Flipdish.HomeApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.dismissOldPortalAction(callback); +``` + +### 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 + + +# **getHomeActions** +> RestApiArrayResultHomeAction getHomeActions(appId) + +[PRIVATE API] Get Home Actions + +### Example +```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 apiInstance = new Flipdish.HomeApi(); + +var appId = "appId_example"; // String | App Name Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getHomeActions(appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + +### 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 + + +# **getHomeStatistics** +> RestApiResultHomeStatistics getHomeStatistics(appId) + +[PRIVATE API] Get Home Statistics + +### Example +```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 apiInstance = new Flipdish.HomeApi(); + +var appId = "appId_example"; // String | App Name Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getHomeStatistics(appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + +### 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 + diff --git a/docs/HomeStatistics.md b/docs/HomeStatistics.md new file mode 100644 index 00000000..035f3dd0 --- /dev/null +++ b/docs/HomeStatistics.md @@ -0,0 +1,8 @@ +# Flipdish.HomeStatistics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalMoneySaved** | [**[CurrencyData]**](CurrencyData.md) | Money saved | [optional] + + diff --git a/docs/HttpRequestAndResponseLog.md b/docs/HttpRequestAndResponseLog.md index 35139916..a547c8c5 100644 --- a/docs/HttpRequestAndResponseLog.md +++ b/docs/HttpRequestAndResponseLog.md @@ -3,19 +3,20 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**verb** | **String** | Verb associated with the HTTP call. | [optional] -**requestUri** | **String** | Http request URI. | [optional] -**statusCode** | **Number** | Http response status code. | [optional] -**reasonPhrase** | **String** | Http response status line. | [optional] -**callDurationInMilliseconds** | **Number** | Call duration representing the duration of the HTTP call in milliseconds. | [optional] -**userId** | **String** | Identity of the caller. | [optional] -**ipAddress** | **String** | Ip address of the caller | [optional] -**createdDateTime** | **String** | Timestamp at which the HTTP call took place. | [optional] -**requestHeaders** | **{String: String}** | Http request headers. | [optional] -**requestBody** | **String** | Http request body, if any. | [optional] -**requestLength** | **Number** | Http request content-length | [optional] -**responseHeaders** | **{String: String}** | Http response headers. | [optional] -**responseBody** | **String** | Http response body. | [optional] -**responseLength** | **Number** | Http response content-length | [optional] +**Guid** | **String** | Id of the log | [optional] +**Verb** | **String** | Verb associated with the HTTP call. | [optional] +**RequestUri** | **String** | Http request URI. | [optional] +**StatusCode** | **Number** | Http response status code. | [optional] +**ReasonPhrase** | **String** | Http response status line. | [optional] +**CallDurationInMilliseconds** | **Number** | Call duration representing the duration of the HTTP call in milliseconds. | [optional] +**UserId** | **String** | Identity of the caller. | [optional] +**IpAddress** | **String** | Ip address of the caller | [optional] +**CreatedDateTime** | **String** | Timestamp at which the HTTP call took place. | [optional] +**RequestHeaders** | **{String: String}** | Http request headers. | [optional] +**RequestBody** | **String** | Http request body, if any. | [optional] +**RequestLength** | **Number** | Http request content-length | [optional] +**ResponseHeaders** | **{String: String}** | Http response headers. | [optional] +**ResponseBody** | **String** | Http response body. | [optional] +**ResponseLength** | **Number** | Http response content-length | [optional] diff --git a/docs/HttpRequestResponseLogsApi.md b/docs/HttpRequestResponseLogsApi.md index 8dc91510..98a8c947 100644 --- a/docs/HttpRequestResponseLogsApi.md +++ b/docs/HttpRequestResponseLogsApi.md @@ -4,12 +4,12 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**getHttpLogsByUserIdAsync**](HttpRequestResponseLogsApi.md#getHttpLogsByUserIdAsync) | **GET** /api/v1.0/interactions/logs | Get API interaction logs +[**getLogs**](HttpRequestResponseLogsApi.md#getLogs) | **GET** /api/v1.0/{appId}/interactions/logs | Get API interaction logs - -# **getHttpLogsByUserIdAsync** -> RestApiPaginationResultHttpRequestAndResponseLog getHttpLogsByUserIdAsync(start, end, opts) + +# **getLogs** +> RestApiPaginationResultHttpRequestAndResponseLog getLogs(start, end, appId, opts) Get API interaction logs @@ -28,8 +28,11 @@ var start = new Date("2013-10-20T19:20:30+01:00"); // Date | Start date time var end = new Date("2013-10-20T19:20:30+01:00"); // Date | End date time +var appId = "appId_example"; // String | + var opts = { 'filterByUserId': 56, // Number | User id (optional) + 'guid': "guid_example", // String | Id of the log 'page': 56, // Number | Page number 'limit': 56 // Number | Page size }; @@ -41,7 +44,7 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getHttpLogsByUserIdAsync(start, end, opts, callback); +apiInstance.getLogs(start, end, appId, opts, callback); ``` ### Parameters @@ -50,7 +53,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **start** | **Date**| Start date time | **end** | **Date**| End date time | + **appId** | **String**| | **filterByUserId** | **Number**| User id (optional) | [optional] + **guid** | **String**| Id of the log | [optional] **page** | **Number**| Page number | [optional] **limit** | **Number**| Page size | [optional] diff --git a/docs/HydraApi.md b/docs/HydraApi.md new file mode 100644 index 00000000..95bffafc --- /dev/null +++ b/docs/HydraApi.md @@ -0,0 +1,856 @@ +# 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} | Assign an EMV terminal to a kiosk +[**attachStoreToTerminal**](HydraApi.md#attachStoreToTerminal) | **POST** /api/v1.0/{appId}/hydra/{deviceId}/attach/{storeId} | [Private] +[**cancelEmvPayment**](HydraApi.md#cancelEmvPayment) | **POST** /api/v1.0/{appId}/hydra/cancelemvpayment/{orderId} | +[**detachStoreFromTerminal**](HydraApi.md#detachStoreFromTerminal) | **POST** /api/v1.0/{appId}/hydra/{deviceId}/detach/{storeId} | [Private] +[**getAttachedDevices**](HydraApi.md#getAttachedDevices) | **GET** /api/v1.0/{appId}/hydra/{deviceType}/list | [Private] +[**getEMVTerminalDetails**](HydraApi.md#getEMVTerminalDetails) | **GET** /api/v1.0/{appId}/hydra/emvterminal | [Private] +[**getEmvOrderState**](HydraApi.md#getEmvOrderState) | **GET** /api/v1.0/{appId}/hydra/emvorderstate/{orderId} | [Private] +[**getRegistration**](HydraApi.md#getRegistration) | **GET** /api/v1.0/hydra/registration | +[**getSettings**](HydraApi.md#getSettings) | **GET** /api/v1.0/hydra/settings | [Private] +[**hydraCreateEmv**](HydraApi.md#hydraCreateEmv) | **POST** /api/v1.0/{appId}/emvterminals | [Private] +[**hydraDeleteEmv**](HydraApi.md#hydraDeleteEmv) | **DELETE** /api/v1.0/{appId}/emvterminals/{id} | [Private] +[**hydraGetEmvsForAppId**](HydraApi.md#hydraGetEmvsForAppId) | **GET** /api/v1.0/{appId}/emvterminals | List EMV terminals belonging to the given AppNameId +[**loginWithDeviceId**](HydraApi.md#loginWithDeviceId) | **POST** /api/v1.0/hydra/{deviceId}/login | [Private] +[**register**](HydraApi.md#register) | **POST** /api/v1.0/{appId}/hydra/registration | [Private] +[**unAssign**](HydraApi.md#unAssign) | **DELETE** /api/v1.0/{appId}/hydra/{deviceId}/registration | [Private] +[**unassignEmv**](HydraApi.md#unassignEmv) | **POST** /api/v1.0/{appId}/hydra/emvterminal/unassign/{hydraConfigId} | Unassign the currently assigned EMV terminal from a kiosk + + + +# **assignEmv** +> assignEmv(appId, hydraConfigId, emvTerminalId) + +Assign an EMV terminal to a kiosk + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var appId = "appId_example"; // String | + +var hydraConfigId = 56; // Number | + +var emvTerminalId = 56; // Number | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.assignEmv(appId, hydraConfigId, emvTerminalId, callback); +``` + +### 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 + + +# **attachStoreToTerminal** +> RestApiResultHydraStatus attachStoreToTerminal(appId, deviceId, storeId) + +[Private] + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var appId = "appId_example"; // String | + +var deviceId = "deviceId_example"; // String | + +var storeId = 56; // Number | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.attachStoreToTerminal(appId, deviceId, storeId, callback); +``` + +### 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 + + +# **cancelEmvPayment** +> cancelEmvPayment(orderId, appId) + + + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var orderId = 56; // Number | + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.cancelEmvPayment(orderId, appId, callback); +``` + +### 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) + +[Private] + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var appId = "appId_example"; // String | + +var deviceId = "deviceId_example"; // String | + +var storeId = 56; // Number | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.detachStoreFromTerminal(appId, deviceId, storeId, callback); +``` + +### 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 + + +# **getAttachedDevices** +> RestApiPaginationResultHydraDeviceDetails getAttachedDevices(appId, deviceType, opts) + +[Private] + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var appId = "appId_example"; // String | + +var deviceType = "deviceType_example"; // String | + +var opts = { + 'pageIndex': 56, // Number | + 'pageSize': 56, // Number | + 'storeId': 56, // Number | + 'deviceName': "deviceName_example", // String | + 'deviceSerial': "deviceSerial_example" // String | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getAttachedDevices(appId, deviceType, opts, callback); +``` + +### 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 + + +# **getEMVTerminalDetails** +> RestApiResultPaymentTerminalDetails getEMVTerminalDetails(appId) + +[Private] + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getEMVTerminalDetails(appId, callback); +``` + +### 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 + + +# **getEmvOrderState** +> RestApiResultPaymentTerminalTransactionDetails getEmvOrderState(orderId, appId) + +[Private] + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var orderId = 56; // Number | + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getEmvOrderState(orderId, appId, callback); +``` + +### 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 + + +# **getRegistration** +> RestApiResultHydraStatus getRegistration() + + + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getRegistration(callback); +``` + +### 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 + + +# **getSettings** +> RestApiResultHydraConfig getSettings() + +[Private] + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getSettings(callback); +``` + +### 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 + + +# **hydraCreateEmv** +> Object hydraCreateEmv(appId, emv) + +[Private] + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var appId = "appId_example"; // String | + +var emv = new Flipdish.EmvTerminal(); // EmvTerminal | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.hydraCreateEmv(appId, emv, callback); +``` + +### 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) + +[Private] + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var appId = "appId_example"; // String | + +var id = 56; // Number | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.hydraDeleteEmv(appId, id, callback); +``` + +### 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 + + +# **hydraGetEmvsForAppId** +> RestApiArrayResultEmvTerminalWithAssignments hydraGetEmvsForAppId(appId) + +List EMV terminals belonging to the given AppNameId + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.hydraGetEmvsForAppId(appId, callback); +``` + +### 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) + +[Private] + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var deviceId = "deviceId_example"; // String | + +var opts = { + 'hydraUserType': "hydraUserType_example", // String | + 'serialNumber': "serialNumber_example" // String | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.loginWithDeviceId(deviceId, opts, callback); +``` + +### 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) + +[Private] + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var appId = "appId_example"; // String | + +var hydraRegistration = new Flipdish.HydraRegistrationRequest(); // HydraRegistrationRequest | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.register(appId, hydraRegistration, callback); +``` + +### 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 + + +# **unAssign** +> unAssign(appId, deviceId) + +[Private] + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var appId = "appId_example"; // String | + +var deviceId = "deviceId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.unAssign(appId, deviceId, callback); +``` + +### 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) + +Unassign the currently assigned EMV terminal from a kiosk + +### Example +```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 apiInstance = new Flipdish.HydraApi(); + +var appId = "appId_example"; // String | + +var hydraConfigId = 56; // Number | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.unassignEmv(appId, hydraConfigId, callback); +``` + +### 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 + diff --git a/docs/HydraAssignedEvent.md b/docs/HydraAssignedEvent.md new file mode 100644 index 00000000..eda51c62 --- /dev/null +++ b/docs/HydraAssignedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.HydraAssignedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**HydraStatus** | [**HydraStatus**](HydraStatus.md) | Status of Hydra | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/HydraConfig.md b/docs/HydraConfig.md new file mode 100644 index 00000000..2bd82694 --- /dev/null +++ b/docs/HydraConfig.md @@ -0,0 +1,27 @@ +# Flipdish.HydraConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MinimumVersion** | **String** | Minimum version | +**PaymentOptions** | **[String]** | Payment options | +**DeviceSettings** | [**DeviceSettings**](DeviceSettings.md) | Device settings | +**Version** | **String** | Version of the device | [optional] +**BuildNumber** | **String** | Build number of the device | [optional] +**GitSha** | **String** | SHA of the commit | [optional] +**GitBranch** | **String** | Build branch | [optional] + + + +## 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..b2c0dbe5 --- /dev/null +++ b/docs/HydraConnectionStatusChangedEvent.md @@ -0,0 +1,28 @@ +# 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] + + + +## 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..39394f3e --- /dev/null +++ b/docs/HydraDeviceDetails.md @@ -0,0 +1,44 @@ +# Flipdish.HydraDeviceDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HydraConfigId** | **Number** | Flipdish internal device identifier | [optional] +**DeviceId** | **String** | Device Id or 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..f9ee5ff7 --- /dev/null +++ b/docs/HydraRegistrationRequest.md @@ -0,0 +1,10 @@ +# 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..ca35c7cf --- /dev/null +++ b/docs/HydraRequestResetEvent.md @@ -0,0 +1,13 @@ +# Flipdish.HydraRequestResetEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | User who initiated the change | [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] + + diff --git a/docs/HydraSettingChangedEvent.md b/docs/HydraSettingChangedEvent.md new file mode 100644 index 00000000..39b7e957 --- /dev/null +++ b/docs/HydraSettingChangedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.HydraSettingChangedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**HydraConfig** | [**HydraConfig**](HydraConfig.md) | Hydra configuration | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/HydraStatus.md b/docs/HydraStatus.md new file mode 100644 index 00000000..8dd93f46 --- /dev/null +++ b/docs/HydraStatus.md @@ -0,0 +1,26 @@ +# 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..99d2fb04 --- /dev/null +++ b/docs/HydraStoreAssignedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.HydraStoreAssignedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [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] + + diff --git a/docs/HydraStoreData.md b/docs/HydraStoreData.md new file mode 100644 index 00000000..6d441fe9 --- /dev/null +++ b/docs/HydraStoreData.md @@ -0,0 +1,9 @@ +# 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..4e3089a1 --- /dev/null +++ b/docs/HydraStoreUnassignedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.HydraStoreUnassignedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [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] + + diff --git a/docs/HydraUnAssignedEvent.md b/docs/HydraUnAssignedEvent.md new file mode 100644 index 00000000..21eb6027 --- /dev/null +++ b/docs/HydraUnAssignedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.HydraUnAssignedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**HydraStatus** | [**HydraStatus**](HydraStatus.md) | Status of Hydra | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/IndexPage.md b/docs/IndexPage.md new file mode 100644 index 00000000..e302c7d1 --- /dev/null +++ b/docs/IndexPage.md @@ -0,0 +1,23 @@ +# 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..241bece0 --- /dev/null +++ b/docs/IndexPageBase.md @@ -0,0 +1,21 @@ +# 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/JobAddress.md b/docs/JobAddress.md new file mode 100644 index 00000000..1b41ce98 --- /dev/null +++ b/docs/JobAddress.md @@ -0,0 +1,13 @@ +# 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..e83cd9b7 --- /dev/null +++ b/docs/JobCancellation.md @@ -0,0 +1,10 @@ +# 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..e09c124a --- /dev/null +++ b/docs/JobContact.md @@ -0,0 +1,13 @@ +# 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..1368a995 --- /dev/null +++ b/docs/JobDelivery.md @@ -0,0 +1,20 @@ +# 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) | Pickup | [optional] +**Dropoff** | [**JobDeliveryDetail**](JobDeliveryDetail.md) | Dropoff | [optional] +**Eta** | [**JobEta**](JobEta.md) | Eta | [optional] +**Cancellation** | [**JobCancellation**](JobCancellation.md) | Cancellation | [optional] +**Proof** | [**JobProof**](JobProof.md) | Proof | [optional] + + diff --git a/docs/JobDeliveryDetail.md b/docs/JobDeliveryDetail.md new file mode 100644 index 00000000..2d09ed55 --- /dev/null +++ b/docs/JobDeliveryDetail.md @@ -0,0 +1,13 @@ +# 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) | Address | [optional] +**Contact** | [**JobContact**](JobContact.md) | Contact | [optional] + + diff --git a/docs/JobDriver.md b/docs/JobDriver.md new file mode 100644 index 00000000..d6c68d00 --- /dev/null +++ b/docs/JobDriver.md @@ -0,0 +1,14 @@ +# 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..8a509c37 --- /dev/null +++ b/docs/JobEta.md @@ -0,0 +1,9 @@ +# 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..59615bed --- /dev/null +++ b/docs/JobPricing.md @@ -0,0 +1,13 @@ +# 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..ec63ebcd --- /dev/null +++ b/docs/JobProof.md @@ -0,0 +1,8 @@ +# 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..70af6c23 --- /dev/null +++ b/docs/JobResponse.md @@ -0,0 +1,21 @@ +# 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) | Pricing | [optional] +**Driver** | [**JobDriver**](JobDriver.md) | Driver | [optional] + + diff --git a/docs/KioskBluetoothInstallUpdateInitiateEvent.md b/docs/KioskBluetoothInstallUpdateInitiateEvent.md new file mode 100644 index 00000000..0563259f --- /dev/null +++ b/docs/KioskBluetoothInstallUpdateInitiateEvent.md @@ -0,0 +1,30 @@ +# Flipdish.KioskBluetoothInstallUpdateInitiateEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **String** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **String** | Terminal Type | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + + +## Enum: BluetoothTerminalTypeEnum + + +* `CHIPPER_2X` (value: `"CHIPPER_2X"`) + +* `COTS_DEVICE` (value: `"COTS_DEVICE"`) + +* `VERIFONE_P400` (value: `"VERIFONE_P400"`) + +* `WISEPAD_3` (value: `"WISEPAD_3"`) + + + + diff --git a/docs/KioskBluetoothPairingModeEvent.md b/docs/KioskBluetoothPairingModeEvent.md new file mode 100644 index 00000000..1593e57b --- /dev/null +++ b/docs/KioskBluetoothPairingModeEvent.md @@ -0,0 +1,30 @@ +# Flipdish.KioskBluetoothPairingModeEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **String** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **String** | Terminal Type | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + + +## Enum: BluetoothTerminalTypeEnum + + +* `CHIPPER_2X` (value: `"CHIPPER_2X"`) + +* `COTS_DEVICE` (value: `"COTS_DEVICE"`) + +* `VERIFONE_P400` (value: `"VERIFONE_P400"`) + +* `WISEPAD_3` (value: `"WISEPAD_3"`) + + + + diff --git a/docs/KioskBluetoothTerminalInitiateUpdateCheckEvent.md b/docs/KioskBluetoothTerminalInitiateUpdateCheckEvent.md new file mode 100644 index 00000000..9a695093 --- /dev/null +++ b/docs/KioskBluetoothTerminalInitiateUpdateCheckEvent.md @@ -0,0 +1,14 @@ +# Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **String** | Device Id of the Kiosk | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/KioskBluetoothTerminalUpdatedEvent.md b/docs/KioskBluetoothTerminalUpdatedEvent.md new file mode 100644 index 00000000..c56831f6 --- /dev/null +++ b/docs/KioskBluetoothTerminalUpdatedEvent.md @@ -0,0 +1,32 @@ +# 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) | Status of the connected terminal | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [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] + + + +## Enum: BluetoothTerminalTypeEnum + + +* `CHIPPER_2X` (value: `"CHIPPER_2X"`) + +* `COTS_DEVICE` (value: `"COTS_DEVICE"`) + +* `VERIFONE_P400` (value: `"VERIFONE_P400"`) + +* `WISEPAD_3` (value: `"WISEPAD_3"`) + + + + diff --git a/docs/KioskBluetoothUnpairingModeEvent.md b/docs/KioskBluetoothUnpairingModeEvent.md new file mode 100644 index 00000000..2fb2b861 --- /dev/null +++ b/docs/KioskBluetoothUnpairingModeEvent.md @@ -0,0 +1,30 @@ +# Flipdish.KioskBluetoothUnpairingModeEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **String** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **String** | Terminal Type | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + + +## Enum: BluetoothTerminalTypeEnum + + +* `CHIPPER_2X` (value: `"CHIPPER_2X"`) + +* `COTS_DEVICE` (value: `"COTS_DEVICE"`) + +* `VERIFONE_P400` (value: `"VERIFONE_P400"`) + +* `WISEPAD_3` (value: `"WISEPAD_3"`) + + + + diff --git a/docs/Language.md b/docs/Language.md new file mode 100644 index 00000000..fbbeb6c1 --- /dev/null +++ b/docs/Language.md @@ -0,0 +1,10 @@ +# 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] + + diff --git a/docs/LightspeedApi.md b/docs/LightspeedApi.md new file mode 100644 index 00000000..1ef878fb --- /dev/null +++ b/docs/LightspeedApi.md @@ -0,0 +1,161 @@ +# 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 +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 apiInstance = new Flipdish.LightspeedApi(); + +var storeId = 56; // Number | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.lightspeedGenerateMenu(storeId, callback); +``` + +### 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 +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 apiInstance = new Flipdish.LightspeedApi(); + +var storeId = 56; // Number | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.lightspeedGetStoreSettings(storeId, callback); +``` + +### 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 + + +# **lightspeedSaveStoreSettings** +> RestApiResultLightspeedSettings lightspeedSaveStoreSettings(storeId, lightspeedSettings) + + + +### Example +```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 apiInstance = new Flipdish.LightspeedApi(); + +var storeId = 56; // Number | + +var lightspeedSettings = new Flipdish.LightspeedSettings(); // LightspeedSettings | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.lightspeedSaveStoreSettings(storeId, lightspeedSettings, callback); +``` + +### 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 + diff --git a/docs/LightspeedSettings.md b/docs/LightspeedSettings.md new file mode 100644 index 00000000..9e8c889d --- /dev/null +++ b/docs/LightspeedSettings.md @@ -0,0 +1,38 @@ +# 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] + + + +## 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..fafc0430 --- /dev/null +++ b/docs/LocalisedTimeZone.md @@ -0,0 +1,10 @@ +# 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/LoginModel.md b/docs/LoginModel.md new file mode 100644 index 00000000..7f9233fc --- /dev/null +++ b/docs/LoginModel.md @@ -0,0 +1,9 @@ +# 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..b98cb2ed --- /dev/null +++ b/docs/LoginWithPinModel.md @@ -0,0 +1,9 @@ +# Flipdish.LoginWithPinModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **String** | Email addres | +**Pin** | **Number** | PIN code (received via email) | + + diff --git a/docs/LoyaltyCampaign.md b/docs/LoyaltyCampaign.md new file mode 100644 index 00000000..45926bfe --- /dev/null +++ b/docs/LoyaltyCampaign.md @@ -0,0 +1,18 @@ +# Flipdish.LoyaltyCampaign + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CampaignId** | **Number** | Id of campaign | [optional] +**Statistics** | [**CampaignStatistics**](CampaignStatistics.md) | Statistics of campaign | [optional] +**Stores** | [**[StoreCampaignStartTime]**](StoreCampaignStartTime.md) | Stores this campaign applies to with campaign start time in Utc | [optional] +**OrdersBeforeReceivingVoucher** | **Number** | Number of orders customer needs to make, before receiving voucher | [optional] +**PercentDiscountAmount** | **Number** | Discount amount in percents | [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] + + diff --git a/docs/LoyaltyCampaignBase.md b/docs/LoyaltyCampaignBase.md new file mode 100644 index 00000000..bea7cab2 --- /dev/null +++ b/docs/LoyaltyCampaignBase.md @@ -0,0 +1,15 @@ +# 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] +**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] + + diff --git a/docs/LoyaltyCampaignCreatedEvent.md b/docs/LoyaltyCampaignCreatedEvent.md new file mode 100644 index 00000000..639b4b09 --- /dev/null +++ b/docs/LoyaltyCampaignCreatedEvent.md @@ -0,0 +1,16 @@ +# 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) | Info User | [optional] +**LoyaltyCampaign** | [**LoyaltyCampaign**](LoyaltyCampaign.md) | The loyalty campaign | [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] + + diff --git a/docs/LoyaltyCampaignDeletedEvent.md b/docs/LoyaltyCampaignDeletedEvent.md new file mode 100644 index 00000000..a9068cdc --- /dev/null +++ b/docs/LoyaltyCampaignDeletedEvent.md @@ -0,0 +1,16 @@ +# 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) | Info User | [optional] +**LoyaltyCampaign** | [**LoyaltyCampaign**](LoyaltyCampaign.md) | The loyalty campaign | [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] + + diff --git a/docs/LoyaltyCampaignUpdatedEvent.md b/docs/LoyaltyCampaignUpdatedEvent.md new file mode 100644 index 00000000..9602636d --- /dev/null +++ b/docs/LoyaltyCampaignUpdatedEvent.md @@ -0,0 +1,16 @@ +# 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) | Info User | [optional] +**LoyaltyCampaign** | [**LoyaltyCampaign**](LoyaltyCampaign.md) | The loyalty campaign | [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] + + diff --git a/docs/LumpDiscountDetails.md b/docs/LumpDiscountDetails.md new file mode 100644 index 00000000..afc6b17e --- /dev/null +++ b/docs/LumpDiscountDetails.md @@ -0,0 +1,8 @@ +# Flipdish.LumpDiscountDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DiscountAmount** | **Number** | Discount amount | [optional] + + diff --git a/docs/MaskedPhoneNumber.md b/docs/MaskedPhoneNumber.md new file mode 100644 index 00000000..4dfd746b --- /dev/null +++ b/docs/MaskedPhoneNumber.md @@ -0,0 +1,10 @@ +# 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 index 63fe1fa8..029672e2 100644 --- a/docs/Menu.md +++ b/docs/Menu.md @@ -3,13 +3,17 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**menuId** | **Number** | Menu identifier | [optional] -**modifiedTime** | **Date** | Last modified time | [optional] -**versionNumber** | **Number** | Menu version | [optional] -**imageUrl** | **String** | Image url | [optional] -**menuSections** | [**[MenuSection]**](MenuSection.md) | Menu sections (startes, main etc) | [optional] -**displaySectionLinks** | **Boolean** | Display menu section link on UI | [optional] -**menuSectionBehaviour** | **String** | Menu section behaviour | [optional] +**MenuId** | **Number** | Menu identifier | [optional] +**ModifiedTime** | **Date** | Last modified time | [optional] +**VersionNumber** | **Number** | Menu version | [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] +**DisplaySectionLinks** | **Boolean** | Display menu section link on UI | [optional] +**MenuSectionBehaviour** | **String** | Menu section behaviour | [optional] +**TaxType** | **String** | Tax type | [optional] @@ -23,3 +27,14 @@ Name | Type | Description | Notes + +## Enum: TaxTypeEnum + + +* `IncludedInBasePrice` (value: `"IncludedInBasePrice"`) + +* `ExcludedFromBasePrice` (value: `"ExcludedFromBasePrice"`) + + + + diff --git a/docs/MenuBase.md b/docs/MenuBase.md index 5e9ce2f6..16b87be5 100644 --- a/docs/MenuBase.md +++ b/docs/MenuBase.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**displaySectionLinks** | **Boolean** | Display menu section link on UI | [optional] -**menuSectionBehaviour** | **String** | Menu section behaviour | [optional] +**DisplaySectionLinks** | **Boolean** | Display menu section link on UI | [optional] +**MenuSectionBehaviour** | **String** | Menu section behaviour | [optional] +**TaxType** | **String** | Tax type | [optional] @@ -18,3 +19,14 @@ Name | Type | Description | Notes + +## Enum: TaxTypeEnum + + +* `IncludedInBasePrice` (value: `"IncludedInBasePrice"`) + +* `ExcludedFromBasePrice` (value: `"ExcludedFromBasePrice"`) + + + + diff --git a/docs/MenuCheckpoint.md b/docs/MenuCheckpoint.md new file mode 100644 index 00000000..204f44b2 --- /dev/null +++ b/docs/MenuCheckpoint.md @@ -0,0 +1,11 @@ +# 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..fa4edabb --- /dev/null +++ b/docs/MenuCheckpointCreatedEvent.md @@ -0,0 +1,15 @@ +# Flipdish.MenuCheckpointCreatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**Menu** | [**Menu**](Menu.md) | Menu identifier | [optional] +**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] + + diff --git a/docs/MenuCreatedEvent.md b/docs/MenuCreatedEvent.md index 2eb80c70..4b4fffd0 100644 --- a/docs/MenuCreatedEvent.md +++ b/docs/MenuCreatedEvent.md @@ -3,12 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**description** | **String** | Description | [optional] -**user** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] -**menu** | [**Menu**](Menu.md) | The menu | [optional] -**flipdishEventId** | **String** | The identitfier of the event | [optional] -**createTime** | **Date** | The time of creation of the event | [optional] -**position** | **Number** | Position | [optional] +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**Menu** | [**Menu**](Menu.md) | The menu | [optional] +**FlipdishEventId** | **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] diff --git a/docs/MenuElementEditResponse.md b/docs/MenuElementEditResponse.md new file mode 100644 index 00000000..0281d91d --- /dev/null +++ b/docs/MenuElementEditResponse.md @@ -0,0 +1,32 @@ +# Flipdish.MenuElementEditResponse + +## 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] +**ValidationCode** | **String** | Validation message for menu element issue | [optional] + + + +## Enum: MenuElementTypeEnum + + +* `MenuItem` (value: `"MenuItem"`) + +* `MenuOptionSetItem` (value: `"MenuOptionSetItem"`) + + + + + +## Enum: ValidationCodeEnum + + +* `Success` (value: `"Success"`) + +* `MinimumCountViolation` (value: `"MinimumCountViolation"`) + + + + diff --git a/docs/MenuElementHide.md b/docs/MenuElementHide.md new file mode 100644 index 00000000..4bf569df --- /dev/null +++ b/docs/MenuElementHide.md @@ -0,0 +1,20 @@ +# 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 + + +* `MenuItem` (value: `"MenuItem"`) + +* `MenuOptionSetItem` (value: `"MenuOptionSetItem"`) + + + + diff --git a/docs/MenuItemOptionSet.md b/docs/MenuItemOptionSet.md index 86ae57c0..6074a03f 100644 --- a/docs/MenuItemOptionSet.md +++ b/docs/MenuItemOptionSet.md @@ -3,15 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**menuItemOptionSetId** | **Number** | Menu item option set identifier | [optional] -**imageUrl** | **String** | Image url | [optional] -**menuItemOptionSetItems** | [**[MenuItemOptionSetItem]**](MenuItemOptionSetItem.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] +**MenuItemOptionSetId** | **Number** | Menu item option set identifier | [optional] +**ImageUrl** | **String** | Image url | [optional] +**MenuItemOptionSetItems** | [**[MenuItemOptionSetItem]**](MenuItemOptionSetItem.md) | Option set items | [optional] +**PublicId** | **String** | Permanent reference to the item. | [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] @@ -24,6 +25,8 @@ Name | Type | Description | Notes * `Large` (value: `"Large"`) +* `HiddenImage` (value: `"HiddenImage"`) + diff --git a/docs/MenuItemOptionSetBase.md b/docs/MenuItemOptionSetBase.md index f753f578..1a329638 100644 --- a/docs/MenuItemOptionSetBase.md +++ b/docs/MenuItemOptionSetBase.md @@ -3,12 +3,12 @@ ## 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] +**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] @@ -21,6 +21,8 @@ Name | Type | Description | Notes * `Large` (value: `"Large"`) +* `HiddenImage` (value: `"HiddenImage"`) + diff --git a/docs/MenuItemOptionSetCreatedEvent.md b/docs/MenuItemOptionSetCreatedEvent.md new file mode 100644 index 00000000..42864b92 --- /dev/null +++ b/docs/MenuItemOptionSetCreatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.MenuItemOptionSetCreatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuItemOptionSet** | [**MenuItemOptionSet**](MenuItemOptionSet.md) | Created menu item optionset | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/MenuItemOptionSetDeletedEvent.md b/docs/MenuItemOptionSetDeletedEvent.md new file mode 100644 index 00000000..dd5e691e --- /dev/null +++ b/docs/MenuItemOptionSetDeletedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.MenuItemOptionSetDeletedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuItemOptionSet** | [**MenuItemOptionSet**](MenuItemOptionSet.md) | Deleted menu item optionset | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/MenuItemOptionSetItem.md b/docs/MenuItemOptionSetItem.md index f54ec138..bb5ff147 100644 --- a/docs/MenuItemOptionSetItem.md +++ b/docs/MenuItemOptionSetItem.md @@ -3,13 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**menuItemOptionSetItemId** | **Number** | Menu item option set item identifier | [optional] -**imageUrl** | **String** | Image url | [optional] -**name** | **String** | Name | [optional] -**price** | **Number** | Price | [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] +**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] +**Name** | **String** | Name | [optional] +**Price** | **Number** | Price | [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] @@ -22,6 +24,8 @@ Name | Type | Description | Notes * `Large` (value: `"Large"`) +* `HiddenImage` (value: `"HiddenImage"`) + diff --git a/docs/MenuItemOptionSetItemBase.md b/docs/MenuItemOptionSetItemBase.md index 82dbe963..99c8e3f3 100644 --- a/docs/MenuItemOptionSetItemBase.md +++ b/docs/MenuItemOptionSetItemBase.md @@ -3,11 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | Name | [optional] -**price** | **Number** | Price | [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] +**Name** | **String** | Name | [optional] +**Price** | **Number** | Price | [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] @@ -20,6 +21,8 @@ Name | Type | Description | Notes * `Large` (value: `"Large"`) +* `HiddenImage` (value: `"HiddenImage"`) + diff --git a/docs/MenuItemOptionSetItemCreatedEvent.md b/docs/MenuItemOptionSetItemCreatedEvent.md new file mode 100644 index 00000000..004d3f7e --- /dev/null +++ b/docs/MenuItemOptionSetItemCreatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.MenuItemOptionSetItemCreatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuItemOptionSetItem** | [**MenuItemOptionSetItem**](MenuItemOptionSetItem.md) | Created menu item optionset item | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/MenuItemOptionSetItemDeletedEvent.md b/docs/MenuItemOptionSetItemDeletedEvent.md new file mode 100644 index 00000000..04efd745 --- /dev/null +++ b/docs/MenuItemOptionSetItemDeletedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.MenuItemOptionSetItemDeletedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuItemOptionSetItem** | [**MenuItemOptionSetItem**](MenuItemOptionSetItem.md) | Deleted menu item optionset item | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/MenuItemOptionSetItemUpdatedEvent.md b/docs/MenuItemOptionSetItemUpdatedEvent.md new file mode 100644 index 00000000..af4dc724 --- /dev/null +++ b/docs/MenuItemOptionSetItemUpdatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.MenuItemOptionSetItemUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuItemOptionSetItem** | [**MenuItemOptionSetItem**](MenuItemOptionSetItem.md) | Updated menu item optionset item | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/MenuItemOptionSetUpdatedEvent.md b/docs/MenuItemOptionSetUpdatedEvent.md new file mode 100644 index 00000000..1f5f115b --- /dev/null +++ b/docs/MenuItemOptionSetUpdatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.MenuItemOptionSetUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuItemOptionSet** | [**MenuItemOptionSet**](MenuItemOptionSet.md) | Updated menu item optionset | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/MenuObjectDisplayOrders.md b/docs/MenuObjectDisplayOrders.md new file mode 100644 index 00000000..38acdd4a --- /dev/null +++ b/docs/MenuObjectDisplayOrders.md @@ -0,0 +1,8 @@ +# 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 index ab198a8a..b1c9bce1 100644 --- a/docs/MenuOptionSetItemsApi.md +++ b/docs/MenuOptionSetItemsApi.md @@ -9,6 +9,7 @@ Method | HTTP request | Description [**getMenuItemOptionSetItemById**](MenuOptionSetItemsApi.md#getMenuItemOptionSetItemById) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId} | Get menu item option set item by identifier [**getMenuItemOptionSetItems**](MenuOptionSetItemsApi.md#getMenuItemOptionSetItems) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems | Get menu item option set items [**removeMenuItemOptionSetItem**](MenuOptionSetItemsApi.md#removeMenuItemOptionSetItem) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId} | Delete menu item option set item +[**setOptionSetItemTax**](MenuOptionSetItemsApi.md#setOptionSetItemTax) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/taxrate/{taxRateId} | [Private API] Set Tax Rate on OptionSetItem [**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 @@ -310,6 +311,70 @@ null (empty response body) [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) + +[Private API] Set Tax Rate on OptionSetItem + +### Example +```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 apiInstance = new Flipdish.MenuOptionSetItemsApi(); + +var menuId = 56; // Number | Menu identifier + +var menuSectionId = 56; // Number | + +var menuSectionItemId = 56; // Number | + +var optionSetId = 56; // Number | + +var menuItemOptionSetItemId = 56; // Number | Option set item identifier + +var taxRateId = 56; // Number | Tax Rate to use + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.setOptionSetItemTax(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, taxRateId, callback); +``` + +### 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 @@ -385,7 +450,7 @@ null (empty response body) # **uploadOptionSetItemImage** -> RestApiStringResult uploadOptionSetItemImage(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, image) +> RestApiStringResult uploadOptionSetItemImage(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, Image) Upload menu item option set item image @@ -410,7 +475,7 @@ var optionSetId = 56; // Number | Option set identifier var menuItemOptionSetItemId = 56; // Number | Option set item identifier -var image = "/path/to/file.txt"; // File | Option set item image +var Image = "/path/to/file.txt"; // File | Option set item image var callback = function(error, data, response) { @@ -420,7 +485,7 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.uploadOptionSetItemImage(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, image, callback); +apiInstance.uploadOptionSetItemImage(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, Image, callback); ``` ### Parameters @@ -432,7 +497,7 @@ Name | Type | Description | Notes **menuSectionItemId** | **Number**| Menu section item identifier | **optionSetId** | **Number**| Option set identifier | **menuItemOptionSetItemId** | **Number**| Option set item identifier | - **image** | **File**| Option set item image | + **Image** | **File**| Option set item image | ### Return type diff --git a/docs/MenuOptionSetsApi.md b/docs/MenuOptionSetsApi.md index ea69c9e7..85d030b6 100644 --- a/docs/MenuOptionSetsApi.md +++ b/docs/MenuOptionSetsApi.md @@ -302,7 +302,7 @@ Name | Type | Description | Notes # **updateMenuItemOptionSet** -> updateMenuItemOptionSet(menuId, menuSectionItemId, menuSectionId, optionSetId, menuItemOptionSet) +> updateMenuItemOptionSet(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSet) Update menu item option set @@ -319,10 +319,10 @@ var apiInstance = new Flipdish.MenuOptionSetsApi(); var menuId = 56; // Number | Menu identifier -var menuSectionItemId = 56; // Number | Menu section item identifier - var menuSectionId = 56; // Number | Menu section identifier +var menuSectionItemId = 56; // Number | Menu section item identifier + var optionSetId = 56; // Number | Option set identifier var menuItemOptionSet = new Flipdish.MenuItemOptionSetBase(); // MenuItemOptionSetBase | Menu item option set (delta) @@ -335,7 +335,7 @@ var callback = function(error, data, response) { console.log('API called successfully.'); } }; -apiInstance.updateMenuItemOptionSet(menuId, menuSectionItemId, menuSectionId, optionSetId, menuItemOptionSet, callback); +apiInstance.updateMenuItemOptionSet(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSet, callback); ``` ### Parameters @@ -343,8 +343,8 @@ apiInstance.updateMenuItemOptionSet(menuId, menuSectionItemId, menuSectionId, op Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **menuId** | **Number**| Menu identifier | - **menuSectionItemId** | **Number**| Menu section item 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) | @@ -363,7 +363,7 @@ null (empty response body) # **uploadOptionSetImage** -> RestApiStringResult uploadOptionSetImage(menuId, menuSectionId, menuSectionItemId, optionSetId, image) +> RestApiStringResult uploadOptionSetImage(menuId, menuSectionId, menuSectionItemId, optionSetId, Image) Upload menu item option set image @@ -386,7 +386,7 @@ var menuSectionItemId = 56; // Number | Menu section item identifier var optionSetId = 56; // Number | Option set identifier -var image = "/path/to/file.txt"; // File | Option set image +var Image = "/path/to/file.txt"; // File | Option set image var callback = function(error, data, response) { @@ -396,7 +396,7 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.uploadOptionSetImage(menuId, menuSectionId, menuSectionItemId, optionSetId, image, callback); +apiInstance.uploadOptionSetImage(menuId, menuSectionId, menuSectionItemId, optionSetId, Image, callback); ``` ### Parameters @@ -407,7 +407,7 @@ Name | Type | Description | Notes **menuSectionId** | **Number**| Menu section identifier | **menuSectionItemId** | **Number**| Menu section item identifier | **optionSetId** | **Number**| Option set identifier | - **image** | **File**| Option set image | + **Image** | **File**| Option set image | ### Return type diff --git a/docs/MenuSection.md b/docs/MenuSection.md index 05907088..7112b353 100644 --- a/docs/MenuSection.md +++ b/docs/MenuSection.md @@ -3,14 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**menuSectionId** | **Number** | Menu section identifier | [optional] -**imageUrl** | **String** | Image url | [optional] -**menuItems** | [**[MenuSectionItem]**](MenuSectionItem.md) | Menu items | [optional] -**menuSectionAvailability** | [**MenuSectionAvailability**](MenuSectionAvailability.md) | Menu section availability | [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] +**MenuSectionId** | **Number** | Menu section identifier | [optional] +**MenuItems** | [**[MenuSectionItem]**](MenuSectionItem.md) | Menu items | [optional] +**MenuSectionAvailability** | [**MenuSectionAvailability**](MenuSectionAvailability.md) | Menu section availability | [optional] +**PublicId** | **String** | Permanent reference to the item. | [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 index 92d206b7..11a3b115 100644 --- a/docs/MenuSectionAvailability.md +++ b/docs/MenuSectionAvailability.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**availableTimes** | [**[BusinessHoursPeriod]**](BusinessHoursPeriod.md) | Available times | [optional] -**availabilityMode** | **String** | Availability mode | [optional] +**AvailableTimes** | [**[BusinessHoursPeriod]**](BusinessHoursPeriod.md) | Available times | [optional] +**AvailabilityMode** | **String** | Availability mode | [optional] diff --git a/docs/MenuSectionAvailabilityBase.md b/docs/MenuSectionAvailabilityBase.md new file mode 100644 index 00000000..7c1bf39b --- /dev/null +++ b/docs/MenuSectionAvailabilityBase.md @@ -0,0 +1,23 @@ +# 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 index 204ae4cd..f68f1278 100644 --- a/docs/MenuSectionBase.md +++ b/docs/MenuSectionBase.md @@ -3,10 +3,11 @@ ## 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] +**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/MenuSectionCreatedEvent.md b/docs/MenuSectionCreatedEvent.md new file mode 100644 index 00000000..29ce03b6 --- /dev/null +++ b/docs/MenuSectionCreatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.MenuSectionCreatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuSection** | [**MenuSection**](MenuSection.md) | Created menu section | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/MenuSectionDeletedEvent.md b/docs/MenuSectionDeletedEvent.md new file mode 100644 index 00000000..92588508 --- /dev/null +++ b/docs/MenuSectionDeletedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.MenuSectionDeletedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuSection** | [**MenuSection**](MenuSection.md) | Deleted menu section | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/MenuSectionItem.md b/docs/MenuSectionItem.md index 33115776..ee26ddff 100644 --- a/docs/MenuSectionItem.md +++ b/docs/MenuSectionItem.md @@ -3,18 +3,22 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**menuItemId** | **Number** | Menu item identifier | [optional] -**actualPrice** | **Number** | Actual price - the minimum price possible when all required option set items prices are included. | [optional] -**imageUrl** | **String** | Image url | [optional] -**menuItemOptionSets** | [**[MenuItemOptionSet]**](MenuItemOptionSet.md) | Menu item option sets | [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] -**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] +**MenuItemId** | **Number** | Menu item identifier. This ID may change at any time. Use `PublicId` if you need a perminant reference to the item. | [optional] +**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] +**Metadata** | [**[CreateMetadata]**](CreateMetadata.md) | List of metadata | [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] +**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] +**ImageUrl** | **String** | Image url | [optional] @@ -42,6 +46,8 @@ Name | Type | Description | Notes * `Large` (value: `"Large"`) +* `HiddenImage` (value: `"HiddenImage"`) + diff --git a/docs/MenuSectionItemBase.md b/docs/MenuSectionItemBase.md index 2a4913ae..50b34e60 100644 --- a/docs/MenuSectionItemBase.md +++ b/docs/MenuSectionItemBase.md @@ -3,14 +3,16 @@ ## 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] -**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] +**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] +**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] +**ImageUrl** | **String** | Image url | [optional] @@ -38,6 +40,8 @@ Name | Type | Description | Notes * `Large` (value: `"Large"`) +* `HiddenImage` (value: `"HiddenImage"`) + diff --git a/docs/MenuSectionItemCreatedEvent.md b/docs/MenuSectionItemCreatedEvent.md new file mode 100644 index 00000000..497bd373 --- /dev/null +++ b/docs/MenuSectionItemCreatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.MenuSectionItemCreatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuSectionItem** | [**MenuSectionItem**](MenuSectionItem.md) | Created menu section item | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/MenuSectionItemDeletedEvent.md b/docs/MenuSectionItemDeletedEvent.md new file mode 100644 index 00000000..090ace90 --- /dev/null +++ b/docs/MenuSectionItemDeletedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.MenuSectionItemDeletedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Event description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Deleted by user | [optional] +**MenuSectionItem** | [**MenuSectionItem**](MenuSectionItem.md) | Deleted menu section item | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/MenuSectionItemUpdatedEvent.md b/docs/MenuSectionItemUpdatedEvent.md new file mode 100644 index 00000000..ad1d8fe2 --- /dev/null +++ b/docs/MenuSectionItemUpdatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.MenuSectionItemUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Event description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Updated by user | [optional] +**MenuSectionItem** | [**MenuSectionItem**](MenuSectionItem.md) | Updated menu section item | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/MenuSectionItemsApi.md b/docs/MenuSectionItemsApi.md index 24ac1705..eb6b5174 100644 --- a/docs/MenuSectionItemsApi.md +++ b/docs/MenuSectionItemsApi.md @@ -4,15 +4,73 @@ 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 [**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} | [PRIVATE API]Move an Item within a menu +[**setSectionItemTax**](MenuSectionItemsApi.md#setSectionItemTax) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/taxrate/{taxRateId} | [PRIVATE API]Move an Item within a menu [**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 +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 apiInstance = new Flipdish.MenuSectionItemsApi(); + +var menuId = 56; // Number | Menu identifier + +var menuSectionId = 56; // Number | Menu section identifier + +var menuSectionItemId = 56; // Number | Menu section item identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.cloneMenuSectionItem(menuId, menuSectionId, menuSectionItemId, callback); +``` + +### 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) @@ -280,6 +338,122 @@ Name | Type | Description | Notes [oauth2](../README.md#oauth2) +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + + +# **moveMenuItem** +> moveMenuItem(menuId, menuSectionId, menuSectionItemId, destinationDisplayOrder) + +[PRIVATE API]Move an Item within a menu + +### Example +```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 apiInstance = new Flipdish.MenuSectionItemsApi(); + +var menuId = 56; // Number | Menu identifier + +var menuSectionId = 56; // Number | Section to put item in (will usually be original section) + +var menuSectionItemId = 56; // Number | ID of Item to be moved + +var destinationDisplayOrder = 56; // Number | New Display Order of item + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.moveMenuItem(menuId, menuSectionId, menuSectionItemId, destinationDisplayOrder, callback); +``` + +### 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) + +[PRIVATE API]Move an Item within a menu + +### Example +```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 apiInstance = new Flipdish.MenuSectionItemsApi(); + +var menuId = 56; // Number | Menu identifier + +var menuSectionId = 56; // Number | Section to put item in (will usually be original section) + +var menuSectionItemId = 56; // Number | ID of Item to be moved + +var taxRateId = 56; // Number | tax rate to be set against item + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.setSectionItemTax(menuId, menuSectionId, menuSectionItemId, taxRateId, callback); +``` + +### 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 @@ -349,7 +523,7 @@ null (empty response body) # **uploadMenuSectionItemImage** -> RestApiStringResult uploadMenuSectionItemImage(menuId, menuSectionId, menuSectionItemId, image) +> RestApiStringResult uploadMenuSectionItemImage(menuId, menuSectionId, menuSectionItemId, Image) Upload menu section item image @@ -370,7 +544,7 @@ var menuSectionId = 56; // Number | Menu section identifier var menuSectionItemId = 56; // Number | Menu section item identifier -var image = "/path/to/file.txt"; // File | Menu section item image +var Image = "/path/to/file.txt"; // File | Menu section item image var callback = function(error, data, response) { @@ -380,7 +554,7 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.uploadMenuSectionItemImage(menuId, menuSectionId, menuSectionItemId, image, callback); +apiInstance.uploadMenuSectionItemImage(menuId, menuSectionId, menuSectionItemId, Image, callback); ``` ### Parameters @@ -390,7 +564,7 @@ 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 | + **Image** | **File**| Menu section item image | ### Return type diff --git a/docs/MenuSectionUpdatedEvent.md b/docs/MenuSectionUpdatedEvent.md new file mode 100644 index 00000000..b9e7872a --- /dev/null +++ b/docs/MenuSectionUpdatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.MenuSectionUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Event description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Updated by user | [optional] +**MenuSection** | [**MenuSection**](MenuSection.md) | Updated menu section | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/MenuSectionsApi.md b/docs/MenuSectionsApi.md index 67cc2d8e..f1f8f77c 100644 --- a/docs/MenuSectionsApi.md +++ b/docs/MenuSectionsApi.md @@ -4,15 +4,129 @@ 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 +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 apiInstance = new Flipdish.MenuSectionsApi(); + +var menuId = 56; // Number | Menu identifier + +var menuSectionId = 56; // Number | Menu section identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.cloneMenuSection(menuId, menuSectionId, callback); +``` + +### 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 +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 apiInstance = new Flipdish.MenuSectionsApi(); + +var menuId = 56; // Number | Menu identifier + +var menuSectionId = 56; // Number | Menu section identifier + +var dayOfWeek = "dayOfWeek_example"; // String | Day of the week + +var businessHoursPeriod = new Flipdish.BusinessHoursPeriodBase(); // BusinessHoursPeriodBase | Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.createMenuAvailabilityForDay(menuId, menuSectionId, dayOfWeek, businessHoursPeriod, callback); +``` + +### 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 + # **createMenuSection** > Object createMenuSection(menuId, menuSection) @@ -60,6 +174,61 @@ Name | Type | Description | Notes [oauth2](../README.md#oauth2) +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + + +# **createMenuSectionAvailability** +> Object createMenuSectionAvailability(menuId, menuSectionId, menuSectionAvailability) + +Create menu availability type + +### Example +```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 apiInstance = new Flipdish.MenuSectionsApi(); + +var menuId = 56; // Number | Menu identifier + +var menuSectionId = 56; // Number | Menu section identifier + +var menuSectionAvailability = new Flipdish.MenuSectionAvailabilityBase(); // MenuSectionAvailabilityBase | DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.createMenuSectionAvailability(menuId, menuSectionId, menuSectionAvailability, callback); +``` + +### 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 @@ -270,9 +439,64 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, text/json, application/xml, text/xml + +# **menuSectionsSetItemDisplayOrders** +> menuSectionsSetItemDisplayOrders(menuId, menuSectionId, displayOrders) + +Re-arrange Items within a Section + +### Example +```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 apiInstance = new Flipdish.MenuSectionsApi(); + +var menuId = 56; // Number | Menu identifier + +var menuSectionId = 56; // Number | Menu section identifier + +var displayOrders = new Flipdish.MenuObjectDisplayOrders(); // MenuObjectDisplayOrders | Item Ids and their new display order + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.menuSectionsSetItemDisplayOrders(menuId, menuSectionId, displayOrders, callback); +``` + +### 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, undoAfter) +> updateMenuSection(menuId, menuSectionId, menuSection, opts) Update menu section @@ -293,8 +517,9 @@ var menuSectionId = 56; // Number | Menu section identifier var menuSection = new Flipdish.MenuSectionBase(); // MenuSectionBase | Menu section changes (delta) -var undoAfter = 1.2; // Number | An optional time period, in hours, after which the hide-section operaton will be undone. - +var opts = { + 'undoAfter': 1.2 // Number | An optional time period, in hours, after which the hide-section operation will be undone. +}; var callback = function(error, data, response) { if (error) { @@ -303,7 +528,7 @@ var callback = function(error, data, response) { console.log('API called successfully.'); } }; -apiInstance.updateMenuSection(menuId, menuSectionId, menuSection, undoAfter, callback); +apiInstance.updateMenuSection(menuId, menuSectionId, menuSection, opts, callback); ``` ### Parameters @@ -313,7 +538,7 @@ 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 operaton will be undone. | + **undoAfter** | **Number**| An optional time period, in hours, after which the hide-section operation will be undone. | [optional] ### Return type @@ -330,7 +555,7 @@ null (empty response body) # **uploadMenuSectionImage** -> RestApiStringResult uploadMenuSectionImage(menuId, menuSectionId, image) +> RestApiStringResult uploadMenuSectionImage(menuId, menuSectionId, Image) Upload menu section image @@ -349,7 +574,7 @@ var menuId = 56; // Number | Menu identifier var menuSectionId = 56; // Number | Menu section identifier -var image = "/path/to/file.txt"; // File | Menu section image +var Image = "/path/to/file.txt"; // File | Menu section image var callback = function(error, data, response) { @@ -359,7 +584,7 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.uploadMenuSectionImage(menuId, menuSectionId, image, callback); +apiInstance.uploadMenuSectionImage(menuId, menuSectionId, Image, callback); ``` ### Parameters @@ -368,7 +593,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **menuId** | **Number**| Menu identifier | **menuSectionId** | **Number**| Menu section identifier | - **image** | **File**| Menu section image | + **Image** | **File**| Menu section image | ### Return type diff --git a/docs/MenuStoreNames.md b/docs/MenuStoreNames.md new file mode 100644 index 00000000..06ce9412 --- /dev/null +++ b/docs/MenuStoreNames.md @@ -0,0 +1,8 @@ +# 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..2d74c62d --- /dev/null +++ b/docs/MenuSummary.md @@ -0,0 +1,13 @@ +# Flipdish.MenuSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**ModifiedTime** | **Date** | Last modified time | [optional] +**VersionNumber** | **Number** | Menu version | [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] + + diff --git a/docs/MenuTaxDetails.md b/docs/MenuTaxDetails.md new file mode 100644 index 00000000..6272f7fd --- /dev/null +++ b/docs/MenuTaxDetails.md @@ -0,0 +1,23 @@ +# 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..3759b337 --- /dev/null +++ b/docs/MenuTaxRate.md @@ -0,0 +1,10 @@ +# 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 index afff1b14..c6183b8b 100644 --- a/docs/MenuUpdatedEvent.md +++ b/docs/MenuUpdatedEvent.md @@ -3,12 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**description** | **String** | Description | [optional] -**user** | [**UserEventInfo**](UserEventInfo.md) | User who has updated the menu | [optional] -**menu** | [**Menu**](Menu.md) | The menu | [optional] -**flipdishEventId** | **String** | The identitfier of the event | [optional] -**createTime** | **Date** | The time of creation of the event | [optional] -**position** | **Number** | Position | [optional] +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has updated the menu | [optional] +**Menu** | [**Menu**](Menu.md) | The menu | [optional] +**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] diff --git a/docs/MenuUploadedEvent.md b/docs/MenuUploadedEvent.md new file mode 100644 index 00000000..6146b1e3 --- /dev/null +++ b/docs/MenuUploadedEvent.md @@ -0,0 +1,15 @@ +# Flipdish.MenuUploadedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has uploaded the menu | [optional] +**Menu** | [**Menu**](Menu.md) | The menu | [optional] +**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] + + diff --git a/docs/MenusApi.md b/docs/MenusApi.md index c263fc7c..da239af7 100644 --- a/docs/MenusApi.md +++ b/docs/MenusApi.md @@ -4,23 +4,766 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**deleteMenuItemMetadata**](MenusApi.md#deleteMenuItemMetadata) | **GET** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId} | Get a menu item metadata by key -[**deleteMenuItemMetadata_0**](MenusApi.md#deleteMenuItemMetadata_0) | **DELETE** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId} | Update a menu items metadata -[**deleteMenuSectionImage**](MenusApi.md#deleteMenuSectionImage) | **DELETE** /api/v1.0/menus/{menuId}/image | Delete menu image +[**createDraftMenuFromExistingMenu**](MenusApi.md#createDraftMenuFromExistingMenu) | **POST** /api/v1.0/menus/{menuId}/clone/{newName} | [PRIVATE API]Clone a menu, (without attaching stores) +[**createNewMenuForApp**](MenusApi.md#createNewMenuForApp) | **POST** /api/v1.0/{appId}/menus | Create a new menu. If request body is empty, the system will create a menu with default items. +[**deleteMenu**](MenusApi.md#deleteMenu) | **DELETE** /api/v1.0/menus/{menuId} | [PRIVATE API]Mark a Menu as Deleted +[**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 a menu items metadata -[**getMenuItemOptionSetItemMetadata**](MenusApi.md#getMenuItemOptionSetItemMetadata) | **GET** /api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId} | Get a menu item option set item metadata by key -[**setMenuItemMetadata**](MenusApi.md#setMenuItemMetadata) | **PUT** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId} | Update a menu items metadata -[**setMenuItemOptionSetItemMetadata**](MenusApi.md#setMenuItemOptionSetItemMetadata) | **PUT** /api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId} | Update a menu item option set items metadata +[**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 +[**getMenuStoreNames**](MenusApi.md#getMenuStoreNames) | **GET** /api/v1.0/menus/{menuId}/stores | [PRIVATE API]Get menus store names +[**getMenuTaxDetails**](MenusApi.md#getMenuTaxDetails) | **GET** /api/v1.0/menus/{menuId}/tax | [PRIVATE API]Get menus tax details +[**getMenusByAppId**](MenusApi.md#getMenusByAppId) | **GET** /api/v1.0/{appId}/menus | [PRIVATE API]Get menus by appId +[**getMenusCheckpoints**](MenusApi.md#getMenusCheckpoints) | **GET** /api/v1.0/menus/{menuId}/checkpoints | [PRIVATE API]Get a Menus Checkpoints +[**menusDeleteTaxRate**](MenusApi.md#menusDeleteTaxRate) | **DELETE** /api/v1.0/menus/{menuId}/tax/{taxId} | [PRIVATE API]Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached +[**menusSetDisplayOnMenuTax**](MenusApi.md#menusSetDisplayOnMenuTax) | **POST** /api/v1.0/menus/{menuId}/tax/show/{show} | [PRIVATE API]Set if tax shows for a Menu +[**menusSetItemDisplayOrders**](MenusApi.md#menusSetItemDisplayOrders) | **POST** /api/v1.0/menus/{menuId}/sectiondisplayorders | [PRIVATE API]Re-arrange Sections within a Menu +[**menusShowHideBulkItems**](MenusApi.md#menusShowHideBulkItems) | **POST** /api/v1.0/menus/{menuId}/bulkshowhide | +[**menusUpdateTaxType**](MenusApi.md#menusUpdateTaxType) | **POST** /api/v1.0/menus/{menuId}/tax/type/{type} | [PRIVATE API]Set the type of Tax on a Menu +[**menusUpsertTaxRate**](MenusApi.md#menusUpsertTaxRate) | **POST** /api/v1.0/menus/{menuId}/taxrate | [PRIVATE API]Add/Update a Tax Rate +[**restoreAMenuCheckpoint**](MenusApi.md#restoreAMenuCheckpoint) | **POST** /api/v1.0/menus/{menuId}/checkpoints/{checkpointId}/restore | [PRIVATE API]Restore a Menu to a checkpoint +[**setMenuItemMetadata**](MenusApi.md#setMenuItemMetadata) | **PUT** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId} | Update menu item metadata +[**setMenuItemOptionSetItemMetadata**](MenusApi.md#setMenuItemOptionSetItemMetadata) | **PUT** /api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId} | Update menu item option set item metadata +[**setMenuLock**](MenusApi.md#setMenuLock) | **POST** /api/v1.0/menus/{menuId}/lock | [PRIVATE API]Lock/Unlock a Menu for Editing +[**setMenuName**](MenusApi.md#setMenuName) | **POST** /api/v1.0/menus/{menuId}/name | [PRIVATE API]Set Menus Name [**updateMenu**](MenusApi.md#updateMenu) | **POST** /api/v1.0/menus/{menuId} | Update menu -[**uploadMenuSectionImage**](MenusApi.md#uploadMenuSectionImage) | **POST** /api/v1.0/menus/{menuId}/image | Upload menu image +[**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) + +[PRIVATE API]Clone a menu, (without attaching stores) + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu identifier + +var newName = "newName_example"; // String | Name of the new Menu + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.createDraftMenuFromExistingMenu(menuId, newName, callback); +``` + +### 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 + + +# **createNewMenuForApp** +> 'Number' createNewMenuForApp(appId, menu) + +Create a new menu. If request body is empty, the system will create a menu with default items. + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var appId = "appId_example"; // String | App identifier + +var menu = new Flipdish.CreateFullMenu(); // CreateFullMenu | Menu + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.createNewMenuForApp(appId, menu, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App identifier | + **menu** | [**CreateFullMenu**](CreateFullMenu.md)| Menu | + +### 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) + +[PRIVATE API]Mark a Menu as Deleted + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu Identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.deleteMenu(menuId, callback); +``` + +### 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 +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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.deleteMenuImage(menuId, callback); +``` + +### 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 + # **deleteMenuItemMetadata** > deleteMenuItemMetadata(menuId, storeId, menuItemId, key) -Get a menu item metadata by key +Delete menu item metadata + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu identifier + +var storeId = 56; // Number | Store identifier + +var menuItemId = 56; // Number | Menu item identifier + +var key = "key_example"; // String | Metadata key + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.deleteMenuItemMetadata(menuId, storeId, menuItemId, key, callback); +``` + +### 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 +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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu identifier + +var storeId = 56; // Number | Store identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getAllMenuMetadataByMenuIdAndStoreId(menuId, storeId, callback); +``` + +### 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 + + +# **getMenuById** +> RestApiResultMenu getMenuById(menuId) + +Get menu by identifier + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getMenuById(menuId, callback); +``` + +### 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 + + +# **getMenuItemMetadata** +> RestApiArrayResultMetadata getMenuItemMetadata(menuId, storeId, menuItemId) + +Get menu item metadata + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu identifier + +var storeId = 56; // Number | Store identifier + +var menuItemId = 56; // Number | Menu item identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getMenuItemMetadata(menuId, storeId, menuItemId, callback); +``` + +### 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 + + +# **getMenuItemMetadataByKey** +> getMenuItemMetadataByKey(menuId, storeId, menuItemId, key) + +Get menu item metadata by key + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu identifier + +var storeId = 56; // Number | Store identifier + +var menuItemId = 56; // Number | Menu item identifier + +var key = "key_example"; // String | Metadata key + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.getMenuItemMetadataByKey(menuId, storeId, menuItemId, key, callback); +``` + +### 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 + + +# **getMenuItemOptionSetItemMetadata** +> RestApiResultMetadata getMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId) + +Get menu item option set item metadata by key + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu identifier + +var storeId = 56; // Number | Store identifier + +var optionSetItemId = 56; // Number | Menu item option set item identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId, callback); +``` + +### 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 + + +# **getMenuStoreNames** +> RestApiArrayResultMenuStoreNames getMenuStoreNames(menuId) + +[PRIVATE API]Get menus store names + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getMenuStoreNames(menuId, callback); +``` + +### 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 + + +# **getMenuTaxDetails** +> RestApiArrayResultMenuTaxDetails getMenuTaxDetails(menuId) + +[PRIVATE API]Get menus tax details + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getMenuTaxDetails(menuId, callback); +``` + +### 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 + + +# **getMenusByAppId** +> RestApiArrayResultMenuSummary getMenusByAppId(appId) + +[PRIVATE API]Get menus by appId + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var appId = "appId_example"; // String | Get Menus for this appId + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getMenusByAppId(appId, callback); +``` + +### 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 + + +# **getMenusCheckpoints** +> RestApiArrayResultMenuCheckpoint getMenusCheckpoints(menuId) + +[PRIVATE API]Get a Menus Checkpoints + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getMenusCheckpoints(menuId, callback); +``` + +### 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) + +[PRIVATE API]Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached ### Example ```javascript @@ -35,11 +778,7 @@ var apiInstance = new Flipdish.MenusApi(); var menuId = 56; // Number | Menu identifier -var storeId = 56; // Number | Store identifier - -var menuItemId = 56; // Number | Menu item identifier - -var key = "key_example"; // String | Metadata key +var taxId = 56; // Number | Id of Menu Tax to be removed var callback = function(error, data, response) { @@ -49,7 +788,7 @@ var callback = function(error, data, response) { console.log('API called successfully.'); } }; -apiInstance.deleteMenuItemMetadata(menuId, storeId, menuItemId, key, callback); +apiInstance.menusDeleteTaxRate(menuId, taxId, callback); ``` ### Parameters @@ -57,9 +796,7 @@ apiInstance.deleteMenuItemMetadata(menuId, storeId, menuItemId, key, callback); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **menuId** | **Number**| Menu identifier | - **storeId** | **Number**| Store identifier | - **menuItemId** | **Number**| Menu item identifier | - **key** | **String**| Metadata key | + **taxId** | **Number**| Id of Menu Tax to be removed | ### Return type @@ -74,11 +811,11 @@ null (empty response body) - **Content-Type**: Not defined - **Accept**: application/json, text/json, application/xml, text/xml - -# **deleteMenuItemMetadata_0** -> deleteMenuItemMetadata_0(menuId, storeId, menuItemId, key) + +# **menusSetDisplayOnMenuTax** +> menusSetDisplayOnMenuTax(menuId, show) -Update a menu items metadata +[PRIVATE API]Set if tax shows for a Menu ### Example ```javascript @@ -93,11 +830,7 @@ var apiInstance = new Flipdish.MenusApi(); var menuId = 56; // Number | Menu identifier -var storeId = 56; // Number | Store identifier - -var menuItemId = 56; // Number | Menu item identifier - -var key = "key_example"; // String | Metadata key +var show = true; // Boolean | Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) var callback = function(error, data, response) { @@ -107,7 +840,7 @@ var callback = function(error, data, response) { console.log('API called successfully.'); } }; -apiInstance.deleteMenuItemMetadata_0(menuId, storeId, menuItemId, key, callback); +apiInstance.menusSetDisplayOnMenuTax(menuId, show, callback); ``` ### Parameters @@ -115,9 +848,7 @@ apiInstance.deleteMenuItemMetadata_0(menuId, storeId, menuItemId, key, callback) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **menuId** | **Number**| Menu identifier | - **storeId** | **Number**| Store identifier | - **menuItemId** | **Number**| Menu item identifier | - **key** | **String**| Metadata key | + **show** | **Boolean**| Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) | ### Return type @@ -132,11 +863,11 @@ null (empty response body) - **Content-Type**: Not defined - **Accept**: application/json, text/json, application/xml, text/xml - -# **deleteMenuSectionImage** -> deleteMenuSectionImage(menuId) + +# **menusSetItemDisplayOrders** +> menusSetItemDisplayOrders(menuId, displayOrders) -Delete menu image +[PRIVATE API]Re-arrange Sections within a Menu ### Example ```javascript @@ -151,6 +882,8 @@ var apiInstance = new Flipdish.MenusApi(); var menuId = 56; // Number | Menu identifier +var displayOrders = new Flipdish.MenuObjectDisplayOrders(); // MenuObjectDisplayOrders | Section Ids and their new display order + var callback = function(error, data, response) { if (error) { @@ -159,7 +892,7 @@ var callback = function(error, data, response) { console.log('API called successfully.'); } }; -apiInstance.deleteMenuSectionImage(menuId, callback); +apiInstance.menusSetItemDisplayOrders(menuId, displayOrders, callback); ``` ### Parameters @@ -167,6 +900,7 @@ apiInstance.deleteMenuSectionImage(menuId, callback); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **menuId** | **Number**| Menu identifier | + **displayOrders** | [**MenuObjectDisplayOrders**](MenuObjectDisplayOrders.md)| Section Ids and their new display order | ### Return type @@ -178,14 +912,14 @@ null (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded - **Accept**: application/json, text/json, application/xml, text/xml - -# **getMenuById** -> RestApiResultMenu getMenuById(menuId) + +# **menusShowHideBulkItems** +> RestApiArrayResultMenuElementEditResponse menusShowHideBulkItems(menuId, menuElements, hide, undoAfter) + -Get menu by identifier ### Example ```javascript @@ -198,7 +932,13 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.MenusApi(); -var menuId = 56; // Number | Menu identifier +var menuId = 56; // Number | + +var menuElements = [new Flipdish.MenuElementHide()]; // [MenuElementHide] | + +var hide = true; // Boolean | + +var undoAfter = 1.2; // Number | var callback = function(error, data, response) { @@ -208,7 +948,61 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getMenuById(menuId, callback); +apiInstance.menusShowHideBulkItems(menuId, menuElements, hide, undoAfter, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| | + **menuElements** | [**[MenuElementHide]**](MenuElementHide.md)| | + **hide** | **Boolean**| | + **undoAfter** | **Number**| | + +### 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) + +[PRIVATE API]Set the type of Tax on a Menu + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu identifier + +var type = "type_example"; // String | Type of Tax + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.menusUpdateTaxType(menuId, type, callback); ``` ### Parameters @@ -216,10 +1010,11 @@ apiInstance.getMenuById(menuId, callback); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **menuId** | **Number**| Menu identifier | + **type** | **String**| Type of Tax | ### Return type -[**RestApiResultMenu**](RestApiResultMenu.md) +null (empty response body) ### Authorization @@ -230,11 +1025,11 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, text/json, application/xml, text/xml - -# **getMenuItemMetadata** -> RestApiArrayResultMetadata getMenuItemMetadata(menuId, storeId, menuItemId) + +# **menusUpsertTaxRate** +> MenuTaxRate menusUpsertTaxRate(menuId, taxRate) -Get a menu items metadata +[PRIVATE API]Add/Update a Tax Rate ### Example ```javascript @@ -249,9 +1044,7 @@ var apiInstance = new Flipdish.MenusApi(); var menuId = 56; // Number | Menu identifier -var storeId = 56; // Number | Store identifier - -var menuItemId = 56; // Number | Menu item identifier +var taxRate = new Flipdish.MenuTaxRate(); // MenuTaxRate | Tax Rate to Add/Update var callback = function(error, data, response) { @@ -261,7 +1054,7 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getMenuItemMetadata(menuId, storeId, menuItemId, callback); +apiInstance.menusUpsertTaxRate(menuId, taxRate, callback); ``` ### Parameters @@ -269,12 +1062,11 @@ apiInstance.getMenuItemMetadata(menuId, storeId, menuItemId, callback); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **menuId** | **Number**| Menu identifier | - **storeId** | **Number**| Store identifier | - **menuItemId** | **Number**| Menu item identifier | + **taxRate** | [**MenuTaxRate**](MenuTaxRate.md)| Tax Rate to Add/Update | ### Return type -[**RestApiArrayResultMetadata**](RestApiArrayResultMetadata.md) +[**MenuTaxRate**](MenuTaxRate.md) ### Authorization @@ -282,14 +1074,14 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded - **Accept**: application/json, text/json, application/xml, text/xml - -# **getMenuItemOptionSetItemMetadata** -> RestApiResultMetadata getMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId) + +# **restoreAMenuCheckpoint** +> restoreAMenuCheckpoint(menuId, checkpointId) -Get a menu item option set item metadata by key +[PRIVATE API]Restore a Menu to a checkpoint ### Example ```javascript @@ -304,19 +1096,17 @@ var apiInstance = new Flipdish.MenusApi(); var menuId = 56; // Number | Menu identifier -var storeId = 56; // Number | Store identifier - -var optionSetItemId = 56; // Number | Menu item option set item identifier +var checkpointId = 56; // Number | Checkpoint to restore menu to var callback = function(error, data, response) { if (error) { console.error(error); } else { - console.log('API called successfully. Returned data: ' + data); + console.log('API called successfully.'); } }; -apiInstance.getMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId, callback); +apiInstance.restoreAMenuCheckpoint(menuId, checkpointId, callback); ``` ### Parameters @@ -324,12 +1114,11 @@ apiInstance.getMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId, c Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **menuId** | **Number**| Menu identifier | - **storeId** | **Number**| Store identifier | - **optionSetItemId** | **Number**| Menu item option set item identifier | + **checkpointId** | **Number**| Checkpoint to restore menu to | ### Return type -[**RestApiResultMetadata**](RestApiResultMetadata.md) +null (empty response body) ### Authorization @@ -344,7 +1133,7 @@ Name | Type | Description | Notes # **setMenuItemMetadata** > setMenuItemMetadata(menuId, storeId, menuItemId, metadata) -Update a menu items metadata +Update menu item metadata ### Example ```javascript @@ -402,7 +1191,7 @@ null (empty response body) # **setMenuItemOptionSetItemMetadata** > setMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId, metadata) -Update a menu item option set items metadata +Update menu item option set item metadata ### Example ```javascript @@ -451,6 +1240,110 @@ null (empty response body) [oauth2](../README.md#oauth2) +### HTTP request headers + + - **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) + +[PRIVATE API]Lock/Unlock a Menu for Editing + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu identifier + +var locked = true; // Boolean | True: Locks menu for editing, False: Unlocks for editing + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.setMenuLock(menuId, locked, callback); +``` + +### 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) + +[PRIVATE API]Set Menus Name + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var menuId = 56; // Number | Menu identifier + +var name = "name_example"; // String | Name to set for this Menu + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.setMenuName(menuId, name, callback); +``` + +### 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 @@ -508,9 +1401,9 @@ null (empty response body) - **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, image) + +# **uploadMenuImage** +> RestApiStringResult uploadMenuImage(menuId, Image) Upload menu image @@ -527,7 +1420,7 @@ var apiInstance = new Flipdish.MenusApi(); var menuId = 56; // Number | Menu identifier -var image = "/path/to/file.txt"; // File | Menu image +var Image = "/path/to/file.txt"; // File | Menu image var callback = function(error, data, response) { @@ -537,7 +1430,7 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.uploadMenuSectionImage(menuId, image, callback); +apiInstance.uploadMenuImage(menuId, Image, callback); ``` ### Parameters @@ -545,7 +1438,7 @@ apiInstance.uploadMenuSectionImage(menuId, image, callback); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **menuId** | **Number**| Menu identifier | - **image** | **File**| Menu image | + **Image** | **File**| Menu image | ### Return type @@ -560,3 +1453,55 @@ Name | Type | Description | Notes - **Content-Type**: multipart/form-data - **Accept**: application/json, text/json, application/xml, text/xml + +# **uploadNewMenuForApp** +> 'Number' uploadNewMenuForApp(appId, Menu) + +Create a new menu from xlsx file. + +### Example +```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 apiInstance = new Flipdish.MenusApi(); + +var appId = "appId_example"; // String | App identifier + +var Menu = "/path/to/file.txt"; // File | Uploaded xlsx menu + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.uploadNewMenuForApp(appId, Menu, callback); +``` + +### 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/Metadata.md b/docs/Metadata.md index 7d785066..544ea02a 100644 --- a/docs/Metadata.md +++ b/docs/Metadata.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**key** | **String** | Metadata key (Unique identifier) | [optional] -**value** | **String** | Metadata value | [optional] +**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/OAuthApp.md b/docs/OAuthApp.md new file mode 100644 index 00000000..ad915501 --- /dev/null +++ b/docs/OAuthApp.md @@ -0,0 +1,41 @@ +# 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/OAuthClient.md b/docs/OAuthClient.md deleted file mode 100644 index ab99c396..00000000 --- a/docs/OAuthClient.md +++ /dev/null @@ -1,11 +0,0 @@ -# Flipdish.OAuthClient - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientId** | **String** | Oauth client identifier | [optional] -**clientName** | **String** | Oauth client name | [optional] -**ownerUserId** | **Number** | Oauth client owner user identifier | [optional] -**logoUri** | **String** | Oauth client logo uri | [optional] - - diff --git a/docs/OAuthClientsApi.md b/docs/OAuthClientsApi.md index 5da0bbcd..54a69a71 100644 --- a/docs/OAuthClientsApi.md +++ b/docs/OAuthClientsApi.md @@ -4,22 +4,24 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**addRedirectUri**](OAuthClientsApi.md#addRedirectUri) | **POST** /api/v1.0/oauthclients/{oAuthClientId}/redirecturis | Create OAuth client redirect uri -[**createOAuthClient**](OAuthClientsApi.md#createOAuthClient) | **POST** /api/v1.0/oauthclients | Create OAuth client -[**deleteOAuthClient**](OAuthClientsApi.md#deleteOAuthClient) | **DELETE** /api/v1.0/oauthclients/{oAuthClientId} | Delete OAuth client -[**getOAuthClientByClientId**](OAuthClientsApi.md#getOAuthClientByClientId) | **GET** /api/v1.0/oauthclients/{clientId} | Get OAuth client by identifier -[**getOAuthClientSecret**](OAuthClientsApi.md#getOAuthClientSecret) | **GET** /api/v1.0/oauthclients/{clientId}/secret | Get OAuth client secret key -[**getOAuthClients**](OAuthClientsApi.md#getOAuthClients) | **GET** /api/v1.0/oauthclients | Get all OAuth client -[**getOauthAccessToken**](OAuthClientsApi.md#getOauthAccessToken) | **GET** /api/v1.0/oauthclients/{oAuthClientId}/accesstoken | Get OAuth access token for client -[**getRedirectUris**](OAuthClientsApi.md#getRedirectUris) | **GET** /api/v1.0/oauthclients/{oAuthClientId}/redirecturis | Get OAuth client redirect uris -[**removeRedirectUri**](OAuthClientsApi.md#removeRedirectUri) | **DELETE** /api/v1.0/oauthclients/{oAuthClientId}/redirecturis/{uriId} | Delete OAuth client redirect uri +[**addRedirectUri**](OAuthClientsApi.md#addRedirectUri) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | Create OAuth App redirect uri +[**createOAuthApp**](OAuthClientsApi.md#createOAuthApp) | **POST** /api/v1.0/{appId}/oauthclients | Create OAuth App +[**deleteOAuthApp**](OAuthClientsApi.md#deleteOAuthApp) | **DELETE** /api/v1.0/{appId}/oauthclients/{oauthAppId} | Delete OAuth App +[**getOAuthApps**](OAuthClientsApi.md#getOAuthApps) | **GET** /api/v1.0/{appId}/oauthclients | Get all OAuth Apps +[**getOAuthClientByClientId**](OAuthClientsApi.md#getOAuthClientByClientId) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId} | Get OAuth App by identifier +[**getOAuthClientSecret**](OAuthClientsApi.md#getOAuthClientSecret) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/secret | Get OAuth App secret key +[**getOauthAccessToken**](OAuthClientsApi.md#getOauthAccessToken) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/accesstoken | Get OAuth access token for App +[**getRedirectUris**](OAuthClientsApi.md#getRedirectUris) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | Get OAuth App redirect uris +[**oAuthClientsGetApplications**](OAuthClientsApi.md#oAuthClientsGetApplications) | **GET** /api/v1.0/{appId}/oauthclients/appnames | +[**removeRedirectUri**](OAuthClientsApi.md#removeRedirectUri) | **DELETE** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis/{uriId} | Delete OAuth App redirect uri +[**updateOAuthApp**](OAuthClientsApi.md#updateOAuthApp) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId} | Update OAuth App # **addRedirectUri** -> RestApiResultOauthClientRedirectUri addRedirectUri(oAuthClientId, uri) +> RestApiResultOauthClientRedirectUri addRedirectUri(oauthAppId, uri, appId) -Create OAuth client redirect uri +Create OAuth App redirect uri ### Example ```javascript @@ -32,10 +34,12 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.OAuthClientsApi(); -var oAuthClientId = "oAuthClientId_example"; // String | OAuth client identifier +var oauthAppId = "oauthAppId_example"; // String | OAuth App identifier var uri = "uri_example"; // String | Redirect uri +var appId = "appId_example"; // String | + var callback = function(error, data, response) { if (error) { @@ -44,15 +48,16 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.addRedirectUri(oAuthClientId, uri, callback); +apiInstance.addRedirectUri(oauthAppId, uri, appId, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oAuthClientId** | **String**| OAuth client identifier | + **oauthAppId** | **String**| OAuth App identifier | **uri** | **String**| Redirect uri | + **appId** | **String**| | ### Return type @@ -67,11 +72,11 @@ Name | Type | Description | Notes - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded - **Accept**: application/json, text/json, application/xml, text/xml - -# **createOAuthClient** -> createOAuthClient(oAuthClient) + +# **createOAuthApp** +> createOAuthApp(oAuthApp, appId) -Create OAuth client +Create OAuth App ### Example ```javascript @@ -84,7 +89,9 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.OAuthClientsApi(); -var oAuthClient = new Flipdish.OAuthClient(); // OAuthClient | OAuth client +var oAuthApp = new Flipdish.OAuthApp(); // OAuthApp | OAuth App + +var appId = "appId_example"; // String | var callback = function(error, data, response) { @@ -94,14 +101,15 @@ var callback = function(error, data, response) { console.log('API called successfully.'); } }; -apiInstance.createOAuthClient(oAuthClient, callback); +apiInstance.createOAuthApp(oAuthApp, appId, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oAuthClient** | [**OAuthClient**](OAuthClient.md)| OAuth client | + **oAuthApp** | [**OAuthApp**](OAuthApp.md)| OAuth App | + **appId** | **String**| | ### Return type @@ -116,11 +124,11 @@ null (empty response body) - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded - **Accept**: application/json, text/json, application/xml, text/xml - -# **deleteOAuthClient** -> deleteOAuthClient(oAuthClientId) + +# **deleteOAuthApp** +> deleteOAuthApp(oauthAppId, appId) -Delete OAuth client +Delete OAuth App ### Example ```javascript @@ -133,7 +141,9 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.OAuthClientsApi(); -var oAuthClientId = "oAuthClientId_example"; // String | OAuth client identifier +var oauthAppId = "oauthAppId_example"; // String | OAuth App identifier + +var appId = "appId_example"; // String | var callback = function(error, data, response) { @@ -143,14 +153,15 @@ var callback = function(error, data, response) { console.log('API called successfully.'); } }; -apiInstance.deleteOAuthClient(oAuthClientId, callback); +apiInstance.deleteOAuthApp(oauthAppId, appId, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oAuthClientId** | **String**| OAuth client identifier | + **oauthAppId** | **String**| OAuth App identifier | + **appId** | **String**| | ### Return type @@ -165,11 +176,11 @@ null (empty response body) - **Content-Type**: Not defined - **Accept**: application/json, text/json, application/xml, text/xml - -# **getOAuthClientByClientId** -> RestApiResultOAuthClient getOAuthClientByClientId(clientId) + +# **getOAuthApps** +> RestApiArrayResultOAuthApp getOAuthApps(appId, opts) -Get OAuth client by identifier +Get all OAuth Apps ### Example ```javascript @@ -182,8 +193,11 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.OAuthClientsApi(); -var clientId = "clientId_example"; // String | OAuth client identifier +var appId = "appId_example"; // String | +var opts = { + 'oauthAppName': "oauthAppName_example" // String | +}; var callback = function(error, data, response) { if (error) { @@ -192,18 +206,19 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getOAuthClientByClientId(clientId, callback); +apiInstance.getOAuthApps(appId, opts, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **clientId** | **String**| OAuth client identifier | + **appId** | **String**| | + **oauthAppName** | **String**| | [optional] ### Return type -[**RestApiResultOAuthClient**](RestApiResultOAuthClient.md) +[**RestApiArrayResultOAuthApp**](RestApiArrayResultOAuthApp.md) ### Authorization @@ -214,11 +229,11 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, text/json, application/xml, text/xml - -# **getOAuthClientSecret** -> RestApiStringResult getOAuthClientSecret(clientId) + +# **getOAuthClientByClientId** +> RestApiResultOAuthApp getOAuthClientByClientId(oauthAppId, appId) -Get OAuth client secret key +Get OAuth App by identifier ### Example ```javascript @@ -231,7 +246,9 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.OAuthClientsApi(); -var clientId = "clientId_example"; // String | OAuth client identifier +var oauthAppId = "oauthAppId_example"; // String | OAuth App identifier + +var appId = "appId_example"; // String | var callback = function(error, data, response) { @@ -241,18 +258,19 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getOAuthClientSecret(clientId, callback); +apiInstance.getOAuthClientByClientId(oauthAppId, appId, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **clientId** | **String**| OAuth client identifier | + **oauthAppId** | **String**| OAuth App identifier | + **appId** | **String**| | ### Return type -[**RestApiStringResult**](RestApiStringResult.md) +[**RestApiResultOAuthApp**](RestApiResultOAuthApp.md) ### Authorization @@ -263,11 +281,11 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, text/json, application/xml, text/xml - -# **getOAuthClients** -> RestApiArrayResultOAuthClient getOAuthClients() + +# **getOAuthClientSecret** +> RestApiStringResult getOAuthClientSecret(oauthAppId, appId) -Get all OAuth client +Get OAuth App secret key ### Example ```javascript @@ -280,6 +298,11 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.OAuthClientsApi(); +var oauthAppId = "oauthAppId_example"; // String | OAuth App identifier + +var appId = "appId_example"; // String | + + var callback = function(error, data, response) { if (error) { console.error(error); @@ -287,15 +310,19 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getOAuthClients(callback); +apiInstance.getOAuthClientSecret(oauthAppId, appId, callback); ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| OAuth App identifier | + **appId** | **String**| | ### Return type -[**RestApiArrayResultOAuthClient**](RestApiArrayResultOAuthClient.md) +[**RestApiStringResult**](RestApiStringResult.md) ### Authorization @@ -308,9 +335,9 @@ This endpoint does not need any parameter. # **getOauthAccessToken** -> RestApiStringResult getOauthAccessToken(oAuthClientId) +> RestApiStringResult getOauthAccessToken(oauthAppId, appId) -Get OAuth access token for client +Get OAuth access token for App ### Example ```javascript @@ -323,7 +350,9 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.OAuthClientsApi(); -var oAuthClientId = "oAuthClientId_example"; // String | OAuth client identifier +var oauthAppId = "oauthAppId_example"; // String | OAuth App identifier + +var appId = "appId_example"; // String | var callback = function(error, data, response) { @@ -333,14 +362,15 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getOauthAccessToken(oAuthClientId, callback); +apiInstance.getOauthAccessToken(oauthAppId, appId, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oAuthClientId** | **String**| OAuth client identifier | + **oauthAppId** | **String**| OAuth App identifier | + **appId** | **String**| | ### Return type @@ -357,9 +387,9 @@ Name | Type | Description | Notes # **getRedirectUris** -> RestApiArrayResultOauthClientRedirectUri getRedirectUris(oAuthClientId) +> RestApiArrayResultOauthClientRedirectUri getRedirectUris(oauthAppId, appId) -Get OAuth client redirect uris +Get OAuth App redirect uris ### Example ```javascript @@ -372,7 +402,9 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.OAuthClientsApi(); -var oAuthClientId = "oAuthClientId_example"; // String | OAuth client identifier +var oauthAppId = "oauthAppId_example"; // String | OAuth App identifier + +var appId = "appId_example"; // String | var callback = function(error, data, response) { @@ -382,14 +414,15 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getRedirectUris(oAuthClientId, callback); +apiInstance.getRedirectUris(oauthAppId, appId, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oAuthClientId** | **String**| OAuth client identifier | + **oauthAppId** | **String**| OAuth App identifier | + **appId** | **String**| | ### Return type @@ -399,6 +432,55 @@ Name | Type | Description | Notes [oauth2](../README.md#oauth2) +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + + +# **oAuthClientsGetApplications** +> Object oAuthClientsGetApplications(appId) + + + +### Example +```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 apiInstance = new Flipdish.OAuthClientsApi(); + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.oAuthClientsGetApplications(appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + ### HTTP request headers - **Content-Type**: Not defined @@ -406,9 +488,9 @@ Name | Type | Description | Notes # **removeRedirectUri** -> removeRedirectUri(oAuthClientId, uriId) +> removeRedirectUri(oauthAppId, uriId, appId) -Delete OAuth client redirect uri +Delete OAuth App redirect uri ### Example ```javascript @@ -421,10 +503,12 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.OAuthClientsApi(); -var oAuthClientId = "oAuthClientId_example"; // String | OAuth client identifier +var oauthAppId = "oauthAppId_example"; // String | OAuth App identifier var uriId = 56; // Number | Redirect uri identifier +var appId = "appId_example"; // String | + var callback = function(error, data, response) { if (error) { @@ -433,15 +517,16 @@ var callback = function(error, data, response) { console.log('API called successfully.'); } }; -apiInstance.removeRedirectUri(oAuthClientId, uriId, callback); +apiInstance.removeRedirectUri(oauthAppId, uriId, appId, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oAuthClientId** | **String**| OAuth client identifier | + **oauthAppId** | **String**| OAuth App identifier | **uriId** | **Number**| Redirect uri identifier | + **appId** | **String**| | ### Return type @@ -456,3 +541,58 @@ null (empty response body) - **Content-Type**: Not defined - **Accept**: application/json, text/json, application/xml, text/xml + +# **updateOAuthApp** +> updateOAuthApp(oauthAppId, oAuthApp, appId) + +Update OAuth App + +### Example +```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 apiInstance = new Flipdish.OAuthClientsApi(); + +var oauthAppId = "oauthAppId_example"; // String | OAuth App identifier + +var oAuthApp = new Flipdish.OAuthApp(); // OAuthApp | OAuth App + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.updateOAuthApp(oauthAppId, oAuthApp, appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| OAuth App identifier | + **oAuthApp** | [**OAuthApp**](OAuthApp.md)| OAuth App | + **appId** | **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/OAuthTokenModel.md b/docs/OAuthTokenModel.md index 296728fd..1d9c5f75 100644 --- a/docs/OAuthTokenModel.md +++ b/docs/OAuthTokenModel.md @@ -3,10 +3,10 @@ ## 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] +**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 index ec2c1dac..2fd04fce 100644 --- a/docs/OauthClientRedirectUri.md +++ b/docs/OauthClientRedirectUri.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Number** | Redirect uri identifier | [optional] -**uri** | **String** | Redirect uri | [optional] +**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..7e8f1fd1 --- /dev/null +++ b/docs/ObjectDisplayOrder.md @@ -0,0 +1,9 @@ +# 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/Order.md b/docs/Order.md index 1000122b..954c8701 100644 --- a/docs/Order.md +++ b/docs/Order.md @@ -3,30 +3,46 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**store** | [**StoreSummary**](StoreSummary.md) | Store summary | [optional] -**customer** | [**CustomerSummary**](CustomerSummary.md) | Customer summary | [optional] -**voucher** | [**VoucherSummary**](VoucherSummary.md) | Voucher summary | [optional] -**fees** | [**FeeSummary**](FeeSummary.md) | Fee summary | [optional] -**orderItems** | [**[OrderItem]**](OrderItem.md) | Ordered items | [optional] -**deliveryLocation** | [**DeliveryLocation**](DeliveryLocation.md) | Delivery location for delivery orders | [optional] -**customerLocation** | [**Coordinates**](Coordinates.md) | Customer location | [optional] -**orderId** | **Number** | Order identifier | [optional] -**deliveryType** | **String** | Delivery type | [optional] -**pickupLocationType** | **String** | Pickup location type | [optional] -**tipAmount** | **Number** | Tip amount | [optional] -**deliveryAmount** | **Number** | Delivery amount | [optional] -**orderItemsAmount** | **Number** | Ordered items amount | [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] +**Store** | [**StoreSummary**](StoreSummary.md) | Store summary | [optional] +**Customer** | [**CustomerSummary**](CustomerSummary.md) | Customer summary | [optional] +**Voucher** | [**OrderVoucherSummary**](OrderVoucherSummary.md) | Voucher summary | [optional] +**Fees** | [**FeeSummary**](FeeSummary.md) | Fee summary | [optional] +**OrderItems** | [**[OrderItem]**](OrderItem.md) | Ordered items | [optional] +**DeliveryLocation** | [**DeliveryLocation**](DeliveryLocation.md) | Delivery location for delivery orders | [optional] +**CustomerLocation** | [**Coordinates**](Coordinates.md) | Customer location | [optional] +**MaskedPhoneNumber** | [**MaskedPhoneNumber**](MaskedPhoneNumber.md) | Represents customers masked phone number | [optional] +**DropOffLocationId** | **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] +**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] +**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] @@ -53,6 +69,31 @@ Name | Type | Description | Notes + +## 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"`) + + + + ## Enum: PaymentAccountTypeEnum @@ -61,6 +102,18 @@ Name | Type | Description | Notes * `Cash` (value: `"Cash"`) +* `Ideal` (value: `"Ideal"`) + +* `Bancontact` (value: `"Bancontact"`) + +* `Giropay` (value: `"Giropay"`) + +* `Eps` (value: `"Eps"`) + +* `Emv` (value: `"Emv"`) + +* `PayPal` (value: `"PayPal"`) + @@ -124,3 +177,68 @@ Name | Type | Description | Notes + +## 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 index 00c3f9aa..26fe96aa 100644 --- a/docs/OrderAcceptedEvent.md +++ b/docs/OrderAcceptedEvent.md @@ -3,12 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**description** | **String** | Description | [optional] -**orderAcceptedTime** | **Date** | Order Accepted Time | [optional] -**order** | [**Order**](Order.md) | Order | [optional] -**flipdishEventId** | **String** | The identitfier of the event | [optional] -**createTime** | **Date** | The time of creation of the event | [optional] -**position** | **Number** | Position | [optional] +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**OrderAcceptedTime** | **Date** | Order Accepted Time | [optional] +**Order** | [**Order**](Order.md) | Order | [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] diff --git a/docs/OrderCapacityConfigUpdatedEvent.md b/docs/OrderCapacityConfigUpdatedEvent.md new file mode 100644 index 00000000..0b2f20c2 --- /dev/null +++ b/docs/OrderCapacityConfigUpdatedEvent.md @@ -0,0 +1,16 @@ +# 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) | User which updated order capacity configuration for this store | [optional] +**Description** | **String** | Description | [optional] +**OrderCapacityConfig** | [**StoreOrderCapacityConfigEditModel**](StoreOrderCapacityConfigEditModel.md) | Updated order capacity configuration | [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] + + diff --git a/docs/OrderCreatedEvent.md b/docs/OrderCreatedEvent.md index 40cd0503..3ef3877f 100644 --- a/docs/OrderCreatedEvent.md +++ b/docs/OrderCreatedEvent.md @@ -3,12 +3,13 @@ ## 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) | Order | [optional] -**flipdishEventId** | **String** | The identitfier of the event | [optional] -**createTime** | **Date** | The time of creation of the event | [optional] -**position** | **Number** | Position | [optional] +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**OrderCreatedTime** | **Date** | Order Created Time | [optional] +**Order** | [**Order**](Order.md) | Order | [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] diff --git a/docs/OrderCustomerTrackingCreatedEvent.md b/docs/OrderCustomerTrackingCreatedEvent.md new file mode 100644 index 00000000..9dbf6cb5 --- /dev/null +++ b/docs/OrderCustomerTrackingCreatedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.OrderCustomerTrackingCreatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**Order** | [**CustomerDeliveryTrackingOrder**](CustomerDeliveryTrackingOrder.md) | Order | [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] + + diff --git a/docs/OrderDeliveryTrackingStatusUpdatedEvent.md b/docs/OrderDeliveryTrackingStatusUpdatedEvent.md new file mode 100644 index 00000000..8333fd38 --- /dev/null +++ b/docs/OrderDeliveryTrackingStatusUpdatedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.OrderDeliveryTrackingStatusUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**Order** | [**Order**](Order.md) | Order | [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] + + diff --git a/docs/OrderDispatchedEvent.md b/docs/OrderDispatchedEvent.md new file mode 100644 index 00000000..85556132 --- /dev/null +++ b/docs/OrderDispatchedEvent.md @@ -0,0 +1,15 @@ +# 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) | Order | [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] + + diff --git a/docs/OrderIdAndSequenceNumber.md b/docs/OrderIdAndSequenceNumber.md new file mode 100644 index 00000000..5f1e5ca3 --- /dev/null +++ b/docs/OrderIdAndSequenceNumber.md @@ -0,0 +1,9 @@ +# Flipdish.OrderIdAndSequenceNumber + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **Number** | Order identifier | [optional] +**Sequence** | **Number** | Sequence for delivery | [optional] + + diff --git a/docs/OrderItem.md b/docs/OrderItem.md index 29f38f33..86c1000f 100644 --- a/docs/OrderItem.md +++ b/docs/OrderItem.md @@ -3,16 +3,17 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**orderItemOptions** | [**[OrderItemOption]**](OrderItemOption.md) | Option list | [optional] -**metadata** | **{String: String}** | Metadata | [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] -**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] +**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] +**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] diff --git a/docs/OrderItemOption.md b/docs/OrderItemOption.md index 0f8003bf..b4c48e8f 100644 --- a/docs/OrderItemOption.md +++ b/docs/OrderItemOption.md @@ -3,12 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metadata** | **{String: String}** | Metadata | [optional] -**menuItemOptionId** | **Number** | Menu item option identifier | [optional] -**isMasterOptionSetItem** | **Boolean** | Is master option set item | [optional] -**name** | **String** | Name | [optional] -**price** | **Number** | Price | [optional] -**menuItemOptionDisplayOrder** | **Number** | Menu item option display order | [optional] -**menuItemOptionSetDisplayOrder** | **Number** | Menu item option set display order | [optional] +**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] +**MenuItemOptionDisplayOrder** | **Number** | Menu item option display order | [optional] +**MenuItemOptionSetDisplayOrder** | **Number** | Menu item option set display order | [optional] diff --git a/docs/OrderPaymentInformation.md b/docs/OrderPaymentInformation.md new file mode 100644 index 00000000..2cefc038 --- /dev/null +++ b/docs/OrderPaymentInformation.md @@ -0,0 +1,9 @@ +# 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 index 217c6bf9..46364d80 100644 --- a/docs/OrderRatingUpdatedEvent.md +++ b/docs/OrderRatingUpdatedEvent.md @@ -3,12 +3,13 @@ ## 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) | Order | [optional] -**flipdishEventId** | **String** | The identitfier of the event | [optional] -**createTime** | **Date** | The time of creation of the event | [optional] -**position** | **Number** | Position | [optional] +**EventName** | **String** | The event name | [optional] +**Rating** | **Number** | New User Rating | [optional] +**Description** | **String** | Description | [optional] +**Order** | [**Order**](Order.md) | Order | [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] diff --git a/docs/OrderRefundedEvent.md b/docs/OrderRefundedEvent.md index f7366850..8ecdf02b 100644 --- a/docs/OrderRefundedEvent.md +++ b/docs/OrderRefundedEvent.md @@ -3,12 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**refundedAmount** | **Number** | The amount refunded | [optional] -**description** | **String** | Description | [optional] -**order** | [**Order**](Order.md) | Order | [optional] -**flipdishEventId** | **String** | The identitfier of the event | [optional] -**createTime** | **Date** | The time of creation of the event | [optional] -**position** | **Number** | Position | [optional] +**EventName** | **String** | The event name | [optional] +**RefundedAmount** | **Number** | The amount refunded | [optional] +**Description** | **String** | Description | [optional] +**Order** | [**Order**](Order.md) | Order | [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] diff --git a/docs/OrderRejectedEvent.md b/docs/OrderRejectedEvent.md index 2a8a050e..19c2eb2f 100644 --- a/docs/OrderRejectedEvent.md +++ b/docs/OrderRejectedEvent.md @@ -3,12 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**description** | **String** | Description | [optional] -**orderRejectedTime** | **Date** | Order Rejected Time | [optional] -**order** | [**Order**](Order.md) | Order | [optional] -**flipdishEventId** | **String** | The identitfier of the event | [optional] -**createTime** | **Date** | The time of creation of the event | [optional] -**position** | **Number** | Position | [optional] +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**OrderRejectedTime** | **Date** | Order Rejected Time | [optional] +**Reason** | **String** | Reason for Rejection | [optional] +**Order** | [**Order**](Order.md) | Order | [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] diff --git a/docs/OrderSummary.md b/docs/OrderSummary.md new file mode 100644 index 00000000..2ff11e31 --- /dev/null +++ b/docs/OrderSummary.md @@ -0,0 +1,411 @@ +# 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] +**InFraudZone** | **Boolean** | Was order made within a fraud zone | [optional] +**UnusualHighValueOrder** | **Boolean** | Is order of unusually high value | [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"`) + + + + + +## 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"`) + + + + + +## 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"`) + + + + + +## 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"`) + + + + diff --git a/docs/OrderTipUpdatedEvent.md b/docs/OrderTipUpdatedEvent.md index 51ca5fd6..bd170969 100644 --- a/docs/OrderTipUpdatedEvent.md +++ b/docs/OrderTipUpdatedEvent.md @@ -3,12 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**tipAmount** | **Number** | Tip Amount | [optional] -**description** | **String** | Description | [optional] -**order** | [**Order**](Order.md) | Order | [optional] -**flipdishEventId** | **String** | The identitfier of the event | [optional] -**createTime** | **Date** | The time of creation of the event | [optional] -**position** | **Number** | Position | [optional] +**EventName** | **String** | The event name | [optional] +**TipAmount** | **Number** | Tip Amount | [optional] +**Description** | **String** | Description | [optional] +**Order** | [**Order**](Order.md) | Order | [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] diff --git a/docs/OrderVoucherSummary.md b/docs/OrderVoucherSummary.md new file mode 100644 index 00000000..0f3d9168 --- /dev/null +++ b/docs/OrderVoucherSummary.md @@ -0,0 +1,49 @@ +# Flipdish.OrderVoucherSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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"`) + + + + + +## 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 index 1118aeb4..977f8866 100644 --- a/docs/OrdersApi.md +++ b/docs/OrdersApi.md @@ -5,8 +5,10 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- [**acceptOrder**](OrdersApi.md#acceptOrder) | **POST** /api/v1.0/orders/{id}/accept | Accept order +[**dispatchOrder**](OrdersApi.md#dispatchOrder) | **POST** /api/v1.0/orders/{id}/dispatch | Dispatch order [**getOrderById**](OrdersApi.md#getOrderById) | **GET** /api/v1.0/orders/{id} | Get order by ID [**getOrders**](OrdersApi.md#getOrders) | **GET** /api/v1.0/orders | Get orders by filter +[**getOrdersSummary**](OrdersApi.md#getOrdersSummary) | **GET** /api/v1.0/{appId}/orders/summaries | [PRIVATE API] Get summary of orders by filter [**refundOrder**](OrdersApi.md#refundOrder) | **POST** /api/v1.0/orders/{id}/refund | Refund order [**rejectOrder**](OrdersApi.md#rejectOrder) | **POST** /api/v1.0/orders/{id}/reject | Reject order @@ -17,7 +19,7 @@ Method | HTTP request | Description Accept order -To accept an order, you create an `accept` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. +To accept an order, you create an `accept` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. ### Example ```javascript @@ -32,7 +34,7 @@ var apiInstance = new Flipdish.OrdersApi(); var id = 56; // Number | Order identifier -var acceptObject = new Flipdish.Accept(); // Accept | +var acceptObject = new Flipdish.Accept(); // Accept | Order accept parameters (eg: EstimatedMinutesForDelivery) var callback = function(error, data, response) { @@ -50,7 +52,7 @@ apiInstance.acceptOrder(id, acceptObject, callback); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **Number**| Order identifier | - **acceptObject** | [**Accept**](Accept.md)| | + **acceptObject** | [**Accept**](Accept.md)| Order accept parameters (eg: EstimatedMinutesForDelivery) | ### Return type @@ -65,6 +67,57 @@ null (empty response body) - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded - **Accept**: application/json, text/json, application/xml, text/xml + +# **dispatchOrder** +> dispatchOrder(id) + +Dispatch order + +To dispatch an order send a POST request with `Id` path parameter which identifies the order. + +### Example +```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 apiInstance = new Flipdish.OrdersApi(); + +var id = 56; // Number | Order identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.dispatchOrder(id, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| Order 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 + # **getOrderById** > RestApiResultOrder getOrderById(id) @@ -134,6 +187,8 @@ var apiInstance = new Flipdish.OrdersApi(); var opts = { 'physicalRestaurantId': [3.4], // [Number] | Physical restaurant identifiers 'state': ["state_example"], // [String] | Order states + 'from': new Date("2013-10-20T19:20:30+01:00"), // Date | Order has been placed after this parameter value + 'to': new Date("2013-10-20T19:20:30+01:00"), // Date | Order has been placed before this parameter value 'page': 56, // Number | Requested page number 'limit': 56 // Number | Requested page limit }; @@ -154,6 +209,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **physicalRestaurantId** | [**[Number]**](Number.md)| Physical restaurant identifiers | [optional] **state** | [**[String]**](String.md)| Order states | [optional] + **from** | **Date**| Order has been placed after this parameter value | [optional] + **to** | **Date**| Order has been placed before this parameter value | [optional] **page** | **Number**| Requested page number | [optional] **limit** | **Number**| Requested page limit | [optional] @@ -165,6 +222,69 @@ Name | Type | Description | Notes [oauth2](../README.md#oauth2) +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + + +# **getOrdersSummary** +> RestApiPaginationResultOrderSummary getOrdersSummary(appId, opts) + +[PRIVATE API] Get summary of orders by filter + +### Example +```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 apiInstance = new Flipdish.OrdersApi(); + +var appId = "appId_example"; // String | App Name Id + +var opts = { + 'searchQuery': "searchQuery_example", // String | Query string + 'physicalRestaurantId': [3.4], // [Number] | Physical restaurant identifiers + 'state': ["state_example"], // [String] | Order states + 'page': 56, // Number | Requested page number + 'limit': 56, // Number | Requested page limit + 'orderByRequestedForTime': true // Boolean | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getOrdersSummary(appId, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **searchQuery** | **String**| Query string | [optional] + **physicalRestaurantId** | [**[Number]**](Number.md)| Physical restaurant identifiers | [optional] + **state** | [**[String]**](String.md)| Order states | [optional] + **page** | **Number**| Requested page number | [optional] + **limit** | **Number**| Requested page limit | [optional] + **orderByRequestedForTime** | **Boolean**| | [optional] + +### Return type + +[**RestApiPaginationResultOrderSummary**](RestApiPaginationResultOrderSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + ### HTTP request headers - **Content-Type**: Not defined @@ -176,7 +296,7 @@ Name | Type | Description | Notes Refund order -To refund an order, you create a `refund` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. +To refund an order, you create a `refund` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. ### Example ```javascript @@ -230,7 +350,7 @@ null (empty response body) Reject order -To reject an order, you create a `reject` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. +To reject an order, you create a `reject` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. ### Example ```javascript diff --git a/docs/OtherChargesDetails.md b/docs/OtherChargesDetails.md new file mode 100644 index 00000000..831741bd --- /dev/null +++ b/docs/OtherChargesDetails.md @@ -0,0 +1,9 @@ +# 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/PasswordResetModel.md b/docs/PasswordResetModel.md new file mode 100644 index 00000000..a8af68d6 --- /dev/null +++ b/docs/PasswordResetModel.md @@ -0,0 +1,11 @@ +# Flipdish.PasswordResetModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **String** | Email address | [optional] +**Password** | **String** | Password | +**PasswordConfirmation** | **String** | Password confirmation | +**Token** | **String** | Password reset token | [optional] + + diff --git a/docs/PaymentTerminalDetails.md b/docs/PaymentTerminalDetails.md new file mode 100644 index 00000000..dbf849cf --- /dev/null +++ b/docs/PaymentTerminalDetails.md @@ -0,0 +1,11 @@ +# 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..fb0aa263 --- /dev/null +++ b/docs/PaymentTerminalTransactionDetails.md @@ -0,0 +1,13 @@ +# 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..57a87a19 --- /dev/null +++ b/docs/PaymentsApi.md @@ -0,0 +1,58 @@ +# 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 | Returns payment refund information related to the order with the order id + + + +# **getOrderPaymentInformation** +> RestApiResultOrderPaymentInformation getOrderPaymentInformation(orderId) + +Returns payment refund information related to the order with the order id + +### Example +```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 apiInstance = new Flipdish.PaymentsApi(); + +var orderId = 56; // Number | Order identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getOrderPaymentInformation(orderId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **Number**| Order identifier | + +### 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 + diff --git a/docs/Payout.md b/docs/Payout.md new file mode 100644 index 00000000..9813907e --- /dev/null +++ b/docs/Payout.md @@ -0,0 +1,281 @@ +# 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] + + + +## 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..cdf787be --- /dev/null +++ b/docs/PayoutChargeback.md @@ -0,0 +1,260 @@ +# 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..ecf6bbfd --- /dev/null +++ b/docs/PayoutDetail.md @@ -0,0 +1,282 @@ +# 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** | | [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..ef06e2c1 --- /dev/null +++ b/docs/PayoutOrder.md @@ -0,0 +1,270 @@ +# 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** | | [optional] +**PercentageFeeExcludingVat** | **Number** | Order percentage fee excluding VAT | [optional] +**PercentageFeeExcludingVAT** | **Number** | | [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] + + + +## 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..9dc7b7b2 --- /dev/null +++ b/docs/PayoutOtherCharge.md @@ -0,0 +1,271 @@ +# 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..ac6dceb1 --- /dev/null +++ b/docs/PayoutRefund.md @@ -0,0 +1,262 @@ +# 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/PayoutStore.md b/docs/PayoutStore.md new file mode 100644 index 00000000..165e02a4 --- /dev/null +++ b/docs/PayoutStore.md @@ -0,0 +1,17 @@ +# 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) | Revenue details (DEPRECATED: Use Revenue) | [optional] +**Revenue** | [**RevenueDetail**](RevenueDetail.md) | Revenue details | [optional] +**RevenueAdjustments** | [**RevenueAdjustmentsDetails**](RevenueAdjustmentsDetails.md) | Revenue Adjustments breakdown | [optional] +**FlipdishFees** | [**FlipdishFeesDetails**](FlipdishFeesDetails.md) | Fees breakdown | [optional] +**Chargebacks** | [**ChargebackDetails**](ChargebackDetails.md) | Chargebacks breakdown | [optional] +**OtherCharges** | [**OtherChargesDetails**](OtherChargesDetails.md) | Breakdown of other charges | [optional] +**Balance** | [**BalanceDetails**](BalanceDetails.md) | Period opening and closing balance | [optional] + + diff --git a/docs/PayoutSummary.md b/docs/PayoutSummary.md new file mode 100644 index 00000000..fa0d9639 --- /dev/null +++ b/docs/PayoutSummary.md @@ -0,0 +1,261 @@ +# 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..0262a3c9 --- /dev/null +++ b/docs/PayoutsApi.md @@ -0,0 +1,752 @@ +# Flipdish.PayoutsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**exportPayoutChargebacks**](PayoutsApi.md#exportPayoutChargebacks) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks/export | Export a list of payout's chargebacks as CSV +[**exportPayoutOrders**](PayoutsApi.md#exportPayoutOrders) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders/export | Export a list of payout's orders as CSV +[**exportPayoutOtherCharges**](PayoutsApi.md#exportPayoutOtherCharges) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges/export | Export a list of payout's other charges as CSV +[**exportPayoutRefunds**](PayoutsApi.md#exportPayoutRefunds) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds/export | Export a list of payout's refunds as CSV +[**exportPayoutStores**](PayoutsApi.md#exportPayoutStores) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/export | Export payout's details as CSV +[**getPayout**](PayoutsApi.md#getPayout) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId} | Get Payout details broken down by Store +[**getPayoutChargebacks**](PayoutsApi.md#getPayoutChargebacks) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks | Get list of payout's chargebacks +[**getPayoutOrders**](PayoutsApi.md#getPayoutOrders) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders | Get list of payout's orders +[**getPayoutOtherCharges**](PayoutsApi.md#getPayoutOtherCharges) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges | Get list of payout's other charges +[**getPayoutRefunds**](PayoutsApi.md#getPayoutRefunds) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds | Get list of payout's refunds +[**getPayoutSummaries**](PayoutsApi.md#getPayoutSummaries) | **GET** /api/v1.0/{appId}/payouts/summaries | Get list of payout summaries +[**getPayouts**](PayoutsApi.md#getPayouts) | **GET** /api/v1.0/{appId}/payouts | Get list of payouts + + + +# **exportPayoutChargebacks** +> 'String' exportPayoutChargebacks(appId, bankAccountId, payoutId, opts) + +Export a list of payout's chargebacks as CSV + +### Example +```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 apiInstance = new Flipdish.PayoutsApi(); + +var appId = "appId_example"; // String | + +var bankAccountId = 56; // Number | + +var payoutId = 56; // Number | + +var opts = { + 'storeIds': [3.4] // [Number] | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.exportPayoutChargebacks(appId, bankAccountId, payoutId, opts, callback); +``` + +### 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) + +Export a list of payout's orders as CSV + +### Example +```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 apiInstance = new Flipdish.PayoutsApi(); + +var appId = "appId_example"; // String | + +var bankAccountId = 56; // Number | + +var payoutId = 56; // Number | + +var opts = { + 'storeIds': [3.4] // [Number] | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.exportPayoutOrders(appId, bankAccountId, payoutId, opts, callback); +``` + +### 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) + +Export a list of payout's other charges as CSV + +### Example +```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 apiInstance = new Flipdish.PayoutsApi(); + +var appId = "appId_example"; // String | + +var bankAccountId = 56; // Number | + +var payoutId = 56; // Number | + +var opts = { + 'storeIds': [3.4] // [Number] | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.exportPayoutOtherCharges(appId, bankAccountId, payoutId, opts, callback); +``` + +### 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) + +Export a list of payout's refunds as CSV + +### Example +```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 apiInstance = new Flipdish.PayoutsApi(); + +var appId = "appId_example"; // String | + +var bankAccountId = 56; // Number | + +var payoutId = 56; // Number | + +var opts = { + 'storeIds': [3.4] // [Number] | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.exportPayoutRefunds(appId, bankAccountId, payoutId, opts, callback); +``` + +### 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) + +Export payout's details as CSV + +### Example +```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 apiInstance = new Flipdish.PayoutsApi(); + +var appId = "appId_example"; // String | + +var bankAccountId = 56; // Number | + +var payoutId = 56; // Number | + +var opts = { + 'storeIds': [3.4] // [Number] | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.exportPayoutStores(appId, bankAccountId, payoutId, opts, callback); +``` + +### 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 + + +# **getPayout** +> PayoutDetail getPayout(appId, bankAccountId, payoutId) + +Get Payout details broken down by Store + +### Example +```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 apiInstance = new Flipdish.PayoutsApi(); + +var appId = "appId_example"; // String | + +var bankAccountId = 56; // Number | + +var payoutId = 56; // Number | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getPayout(appId, bankAccountId, payoutId, callback); +``` + +### 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 + + +# **getPayoutChargebacks** +> RestApiPaginationResultPayoutChargeback getPayoutChargebacks(appId, bankAccountId, payoutId, opts) + +Get list of payout's chargebacks + +### Example +```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 apiInstance = new Flipdish.PayoutsApi(); + +var appId = "appId_example"; // String | + +var bankAccountId = 56; // Number | + +var payoutId = 56; // Number | + +var opts = { + 'page': 56, // Number | + 'limit': 56, // Number | + 'storeIds': [3.4] // [Number] | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getPayoutChargebacks(appId, bankAccountId, payoutId, opts, callback); +``` + +### 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 + + +# **getPayoutOrders** +> RestApiPaginationResultPayoutOrder getPayoutOrders(appId, bankAccountId, payoutId, opts) + +Get list of payout's orders + +### Example +```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 apiInstance = new Flipdish.PayoutsApi(); + +var appId = "appId_example"; // String | + +var bankAccountId = 56; // Number | + +var payoutId = 56; // Number | + +var opts = { + 'page': 56, // Number | + 'limit': 56, // Number | + 'storeIds': [3.4] // [Number] | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getPayoutOrders(appId, bankAccountId, payoutId, opts, callback); +``` + +### 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 + + +# **getPayoutOtherCharges** +> RestApiPaginationResultPayoutOtherCharge getPayoutOtherCharges(appId, bankAccountId, payoutId, opts) + +Get list of payout's other charges + +### Example +```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 apiInstance = new Flipdish.PayoutsApi(); + +var appId = "appId_example"; // String | + +var bankAccountId = 56; // Number | + +var payoutId = 56; // Number | + +var opts = { + 'page': 56, // Number | + 'limit': 56, // Number | + 'storeIds': [3.4] // [Number] | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getPayoutOtherCharges(appId, bankAccountId, payoutId, opts, callback); +``` + +### 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 + + +# **getPayoutRefunds** +> RestApiPaginationResultPayoutRefund getPayoutRefunds(appId, bankAccountId, payoutId, opts) + +Get list of payout's refunds + +### Example +```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 apiInstance = new Flipdish.PayoutsApi(); + +var appId = "appId_example"; // String | + +var bankAccountId = 56; // Number | + +var payoutId = 56; // Number | + +var opts = { + 'page': 56, // Number | + 'limit': 56, // Number | + 'storeIds': [3.4] // [Number] | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getPayoutRefunds(appId, bankAccountId, payoutId, opts, callback); +``` + +### 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 + + +# **getPayoutSummaries** +> RestApiArrayResultPayoutSummary getPayoutSummaries(appId, opts) + +Get list of payout summaries + +BETA - this endpoint is under development, do not use it in your production system + +### Example +```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 apiInstance = new Flipdish.PayoutsApi(); + +var appId = "appId_example"; // String | + +var opts = { + 'bankAccountId': 56, // Number | + 'payeeBankAccountDataId': 56, // Number | Deprecated + 'startDate': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'endDate': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'status': "status_example" // String | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getPayoutSummaries(appId, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | [optional] + **payeeBankAccountDataId** | **Number**| Deprecated | [optional] + **startDate** | **Date**| | [optional] + **endDate** | **Date**| | [optional] + **status** | **String**| | [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 + + +# **getPayouts** +> RestApiPaginationResultPayout getPayouts(appId, opts) + +Get list of payouts + +BETA - this endpoint is under development, do not use it in your production system + +### Example +```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 apiInstance = new Flipdish.PayoutsApi(); + +var appId = "appId_example"; // String | + +var opts = { + 'bankAccountId': 56, // Number | + 'payeeBankAccountDataId': 56, // Number | Deprecated + 'startDate': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'endDate': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'status': "status_example", // String | + 'page': 56, // Number | + 'limit': 56 // Number | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getPayouts(appId, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | [optional] + **payeeBankAccountDataId** | **Number**| Deprecated | [optional] + **startDate** | **Date**| | [optional] + **endDate** | **Date**| | [optional] + **status** | **String**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [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 + diff --git a/docs/PercentDiscountDetails.md b/docs/PercentDiscountDetails.md new file mode 100644 index 00000000..17007c89 --- /dev/null +++ b/docs/PercentDiscountDetails.md @@ -0,0 +1,8 @@ +# Flipdish.PercentDiscountDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PercentageDiscount** | **Number** | Percentage discount | [optional] + + diff --git a/docs/PhoneCall.md b/docs/PhoneCall.md new file mode 100644 index 00000000..3cac642a --- /dev/null +++ b/docs/PhoneCall.md @@ -0,0 +1,42 @@ +# 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..fbf1b64b --- /dev/null +++ b/docs/PhoneCallEndedEvent.md @@ -0,0 +1,15 @@ +# 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) | The phone call | [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] + + diff --git a/docs/PhoneCallStartedEvent.md b/docs/PhoneCallStartedEvent.md new file mode 100644 index 00000000..3035c2d2 --- /dev/null +++ b/docs/PhoneCallStartedEvent.md @@ -0,0 +1,15 @@ +# 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) | The phone call | [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] + + diff --git a/docs/PreOrderConfig.md b/docs/PreOrderConfig.md new file mode 100644 index 00000000..d71fc4d5 --- /dev/null +++ b/docs/PreOrderConfig.md @@ -0,0 +1,30 @@ +# 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..2c339ed7 --- /dev/null +++ b/docs/PreOrderTime.md @@ -0,0 +1,9 @@ +# 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..9c9587bb --- /dev/null +++ b/docs/PredefinedAnswer.md @@ -0,0 +1,9 @@ +# Flipdish.PredefinedAnswer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Identifier | [optional] +**Text** | **String** | Text | [optional] + + diff --git a/docs/Printer.md b/docs/Printer.md new file mode 100644 index 00000000..672fe9ec --- /dev/null +++ b/docs/Printer.md @@ -0,0 +1,9 @@ +# 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..532c6708 --- /dev/null +++ b/docs/PrinterAssignedToStoreEvent.md @@ -0,0 +1,17 @@ +# 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) | Info User | [optional] +**Printer** | [**Printer**](Printer.md) | The printer | [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] + + diff --git a/docs/PrinterTurnedOffEvent.md b/docs/PrinterTurnedOffEvent.md new file mode 100644 index 00000000..46a492c6 --- /dev/null +++ b/docs/PrinterTurnedOffEvent.md @@ -0,0 +1,17 @@ +# 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) | Info User | [optional] +**Printer** | [**Printer**](Printer.md) | The printer | [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] + + diff --git a/docs/PrinterTurnedOnEvent.md b/docs/PrinterTurnedOnEvent.md new file mode 100644 index 00000000..12c5e7e1 --- /dev/null +++ b/docs/PrinterTurnedOnEvent.md @@ -0,0 +1,17 @@ +# 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) | Info User | [optional] +**Printer** | [**Printer**](Printer.md) | The printer | [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] + + diff --git a/docs/PrinterUnassignedFromStoreEvent.md b/docs/PrinterUnassignedFromStoreEvent.md new file mode 100644 index 00000000..1945e5c2 --- /dev/null +++ b/docs/PrinterUnassignedFromStoreEvent.md @@ -0,0 +1,17 @@ +# 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) | Info User | [optional] +**Printer** | [**Printer**](Printer.md) | The printer | [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] + + diff --git a/docs/ProcessingFeeConfig.md b/docs/ProcessingFeeConfig.md new file mode 100644 index 00000000..f8534bb2 --- /dev/null +++ b/docs/ProcessingFeeConfig.md @@ -0,0 +1,34 @@ +# 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"`) + + + + diff --git a/docs/ProcessingFeeConfigsApi.md b/docs/ProcessingFeeConfigsApi.md new file mode 100644 index 00000000..7febf558 --- /dev/null +++ b/docs/ProcessingFeeConfigsApi.md @@ -0,0 +1,58 @@ +# Flipdish.ProcessingFeeConfigsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getProcessingFeeConfigsByStoreIds**](ProcessingFeeConfigsApi.md#getProcessingFeeConfigsByStoreIds) | **GET** /api/v1.0/processingfeeconfigs | Get processing fee configs by store identifiers + + + +# **getProcessingFeeConfigsByStoreIds** +> RestApiArrayResultProcessingFeeConfig getProcessingFeeConfigsByStoreIds(storeIds) + +Get processing fee configs by store identifiers + +### Example +```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 apiInstance = new Flipdish.ProcessingFeeConfigsApi(); + +var storeIds = [3.4]; // [Number] | Store identifiers + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getProcessingFeeConfigsByStoreIds(storeIds, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeIds** | [**[Number]**](Number.md)| Store identifiers | + +### 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 + diff --git a/docs/PushNotificationDeletedEvent.md b/docs/PushNotificationDeletedEvent.md new file mode 100644 index 00000000..d4ea2c3c --- /dev/null +++ b/docs/PushNotificationDeletedEvent.md @@ -0,0 +1,14 @@ +# 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] + + diff --git a/docs/PushNotificationRequest.md b/docs/PushNotificationRequest.md new file mode 100644 index 00000000..5f2b0b01 --- /dev/null +++ b/docs/PushNotificationRequest.md @@ -0,0 +1,10 @@ +# 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..1c3f447f --- /dev/null +++ b/docs/PushNotificationResponse.md @@ -0,0 +1,12 @@ +# 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..3c43dc18 --- /dev/null +++ b/docs/PushNotificationScheduledEvent.md @@ -0,0 +1,15 @@ +# 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] + + diff --git a/docs/PushNotificationSentEvent.md b/docs/PushNotificationSentEvent.md new file mode 100644 index 00000000..948273c8 --- /dev/null +++ b/docs/PushNotificationSentEvent.md @@ -0,0 +1,14 @@ +# 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] + + diff --git a/docs/PushNotificationsApi.md b/docs/PushNotificationsApi.md new file mode 100644 index 00000000..54256234 --- /dev/null +++ b/docs/PushNotificationsApi.md @@ -0,0 +1,226 @@ +# 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} | [PRIVATE] Push notification to cutomers +[**getPushNotifications**](PushNotificationsApi.md#getPushNotifications) | **GET** /api/v1.0/{appId}/pushnotifications | [PRIVATE] Push notification to cutomers +[**schedulePushNotification**](PushNotificationsApi.md#schedulePushNotification) | **POST** /api/v1.0/{appId}/pushnotifications | [PRIVATE] Push notification to cutomers +[**updatePushNotification**](PushNotificationsApi.md#updatePushNotification) | **POST** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | [PRIVATE] Update the push notification + + + +# **deletePushNotification** +> deletePushNotification(appId, scheduledPushNotificationId) + +[PRIVATE] Push notification to cutomers + +### Example +```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 apiInstance = new Flipdish.PushNotificationsApi(); + +var appId = "appId_example"; // String | + +var scheduledPushNotificationId = 56; // Number | ID of Scheduled push notifiaction to delete + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.deletePushNotification(appId, scheduledPushNotificationId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **scheduledPushNotificationId** | **Number**| ID of Scheduled push notifiaction to delete | + +### 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) + +[PRIVATE] Push notification to cutomers + +### Example +```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 apiInstance = new Flipdish.PushNotificationsApi(); + +var appId = "appId_example"; // String | + +var opts = { + 'page': 56, // Number | + 'limit': 56 // Number | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getPushNotifications(appId, opts, callback); +``` + +### 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) + +[PRIVATE] Push notification to cutomers + +### Example +```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 apiInstance = new Flipdish.PushNotificationsApi(); + +var appId = "appId_example"; // String | Application Id + +var notification = new Flipdish.PushNotificationRequest(); // PushNotificationRequest | Notification to send + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.schedulePushNotification(appId, notification, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application Id | + **notification** | [**PushNotificationRequest**](PushNotificationRequest.md)| Notification to send | + +### 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) + +[PRIVATE] Update the push notification + +### Example +```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 apiInstance = new Flipdish.PushNotificationsApi(); + +var appId = "appId_example"; // String | Application Id + +var scheduledPushNotificationId = 56; // Number | Notification Id + +var notification = new Flipdish.PushNotificationRequest(); // PushNotificationRequest | Notification to send + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.updatePushNotification(appId, scheduledPushNotificationId, notification, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application Id | + **scheduledPushNotificationId** | **Number**| Notification Id | + **notification** | [**PushNotificationRequest**](PushNotificationRequest.md)| Notification to send | + +### 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 index 6a0b0b6a..949c53c9 100644 --- a/docs/Range.md +++ b/docs/Range.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**startTime** | **String** | Start time | [optional] -**period** | **String** | Period | [optional] -**dayOfWeek** | **String** | Day of week | [optional] +**StartTime** | **String** | Start time | [optional] +**Period** | **String** | Period | [optional] +**DayOfWeek** | **String** | Day of week | [optional] diff --git a/docs/RedeemInvitationResult.md b/docs/RedeemInvitationResult.md new file mode 100644 index 00000000..5c95ba33 --- /dev/null +++ b/docs/RedeemInvitationResult.md @@ -0,0 +1,22 @@ +# 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 index fdaf1646..14d89049 100644 --- a/docs/Refund.md +++ b/docs/Refund.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**refundReason** | **String** | Refund reason | [optional] -**refundAmount** | **Number** | Refund amount | [optional] -**notifyCustomer** | **Boolean** | If ture, the system sends notification to the customer about the refund | [optional] +**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 index 9301fd20..ad37854a 100644 --- a/docs/Reject.md +++ b/docs/Reject.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rejectReason** | **String** | Reject reason | [optional] +**RejectReason** | **String** | Reject reason. | +**DoNotNotifyCustomer** | **Boolean** | Notify customer. The server will not send and SMS to the customer if the value is true. | [optional] diff --git a/docs/RequestLoginPinModel.md b/docs/RequestLoginPinModel.md new file mode 100644 index 00000000..a6a879d5 --- /dev/null +++ b/docs/RequestLoginPinModel.md @@ -0,0 +1,8 @@ +# Flipdish.RequestLoginPinModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **String** | Email address | + + diff --git a/docs/RequestLoginPinResposne.md b/docs/RequestLoginPinResposne.md new file mode 100644 index 00000000..0cd36fd3 --- /dev/null +++ b/docs/RequestLoginPinResposne.md @@ -0,0 +1,8 @@ +# Flipdish.RequestLoginPinResposne + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LoginPinSentViaEmail** | **Boolean** | Login PIN sent via email to user | [optional] + + diff --git a/docs/RequestPasswordResetModel.md b/docs/RequestPasswordResetModel.md new file mode 100644 index 00000000..122ba2e1 --- /dev/null +++ b/docs/RequestPasswordResetModel.md @@ -0,0 +1,8 @@ +# Flipdish.RequestPasswordResetModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **String** | Email address | [optional] + + diff --git a/docs/RestApiArrayResultAllMetadataResult.md b/docs/RestApiArrayResultAllMetadataResult.md new file mode 100644 index 00000000..887cfcbc --- /dev/null +++ b/docs/RestApiArrayResultAllMetadataResult.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultAllMetadataResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[AllMetadataResult]**](AllMetadataResult.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultApmCurrencyDataPoint.md b/docs/RestApiArrayResultApmCurrencyDataPoint.md new file mode 100644 index 00000000..04f6d97d --- /dev/null +++ b/docs/RestApiArrayResultApmCurrencyDataPoint.md @@ -0,0 +1,8 @@ +# 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..14b1e4b1 --- /dev/null +++ b/docs/RestApiArrayResultApmDataPoint.md @@ -0,0 +1,8 @@ +# 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..56fdebbe --- /dev/null +++ b/docs/RestApiArrayResultApmHourlyDataPoint.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultApmHourlyDataPoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[ApmHourlyDataPoint]**](ApmHourlyDataPoint.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultBankAccountSummary.md b/docs/RestApiArrayResultBankAccountSummary.md new file mode 100644 index 00000000..7dce7498 --- /dev/null +++ b/docs/RestApiArrayResultBankAccountSummary.md @@ -0,0 +1,8 @@ +# 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..949bd6a2 --- /dev/null +++ b/docs/RestApiArrayResultBusinessHoursPeriod.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultBusinessHoursPeriod + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[BusinessHoursPeriod]**](BusinessHoursPeriod.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultCountryWithAccountFieldsDefinitions.md b/docs/RestApiArrayResultCountryWithAccountFieldsDefinitions.md new file mode 100644 index 00000000..4e030ba2 --- /dev/null +++ b/docs/RestApiArrayResultCountryWithAccountFieldsDefinitions.md @@ -0,0 +1,8 @@ +# 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..150b52de --- /dev/null +++ b/docs/RestApiArrayResultDeliveryZone.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultDeliveryZone + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[DeliveryZone]**](DeliveryZone.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultDriver.md b/docs/RestApiArrayResultDriver.md new file mode 100644 index 00000000..3cf5af54 --- /dev/null +++ b/docs/RestApiArrayResultDriver.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultDriver + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[Driver]**](Driver.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultDriverStore.md b/docs/RestApiArrayResultDriverStore.md new file mode 100644 index 00000000..1a8d9b0b --- /dev/null +++ b/docs/RestApiArrayResultDriverStore.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultDriverStore + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[DriverStore]**](DriverStore.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultEmvTerminalWithAssignments.md b/docs/RestApiArrayResultEmvTerminalWithAssignments.md new file mode 100644 index 00000000..b2e021b3 --- /dev/null +++ b/docs/RestApiArrayResultEmvTerminalWithAssignments.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultEmvTerminalWithAssignments + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[EmvTerminalWithAssignments]**](EmvTerminalWithAssignments.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultHomeAction.md b/docs/RestApiArrayResultHomeAction.md new file mode 100644 index 00000000..eefd9e9e --- /dev/null +++ b/docs/RestApiArrayResultHomeAction.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultHomeAction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[HomeAction]**](HomeAction.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultLocalisedTimeZone.md b/docs/RestApiArrayResultLocalisedTimeZone.md new file mode 100644 index 00000000..6fe646c8 --- /dev/null +++ b/docs/RestApiArrayResultLocalisedTimeZone.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultLocalisedTimeZone + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[LocalisedTimeZone]**](LocalisedTimeZone.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultLoyaltyCampaign.md b/docs/RestApiArrayResultLoyaltyCampaign.md new file mode 100644 index 00000000..22234e3f --- /dev/null +++ b/docs/RestApiArrayResultLoyaltyCampaign.md @@ -0,0 +1,8 @@ +# 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..0552b629 --- /dev/null +++ b/docs/RestApiArrayResultMenuCheckpoint.md @@ -0,0 +1,8 @@ +# 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..228be611 --- /dev/null +++ b/docs/RestApiArrayResultMenuElementEditResponse.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultMenuElementEditResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[MenuElementEditResponse]**](MenuElementEditResponse.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMenuItemOptionSet.md b/docs/RestApiArrayResultMenuItemOptionSet.md index 592384cf..7255086b 100644 --- a/docs/RestApiArrayResultMenuItemOptionSet.md +++ b/docs/RestApiArrayResultMenuItemOptionSet.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[MenuItemOptionSet]**](MenuItemOptionSet.md) | Generic data object. | [optional] +**Data** | [**[MenuItemOptionSet]**](MenuItemOptionSet.md) | Generic data object. | diff --git a/docs/RestApiArrayResultMenuItemOptionSetItem.md b/docs/RestApiArrayResultMenuItemOptionSetItem.md index a8ed25a4..339132bd 100644 --- a/docs/RestApiArrayResultMenuItemOptionSetItem.md +++ b/docs/RestApiArrayResultMenuItemOptionSetItem.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[MenuItemOptionSetItem]**](MenuItemOptionSetItem.md) | Generic data object. | [optional] +**Data** | [**[MenuItemOptionSetItem]**](MenuItemOptionSetItem.md) | Generic data object. | diff --git a/docs/RestApiArrayResultMenuSection.md b/docs/RestApiArrayResultMenuSection.md index c4b00575..fa937d8c 100644 --- a/docs/RestApiArrayResultMenuSection.md +++ b/docs/RestApiArrayResultMenuSection.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[MenuSection]**](MenuSection.md) | Generic data object. | [optional] +**Data** | [**[MenuSection]**](MenuSection.md) | Generic data object. | diff --git a/docs/RestApiArrayResultMenuSectionItem.md b/docs/RestApiArrayResultMenuSectionItem.md index 3b73a1ef..945b7229 100644 --- a/docs/RestApiArrayResultMenuSectionItem.md +++ b/docs/RestApiArrayResultMenuSectionItem.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[MenuSectionItem]**](MenuSectionItem.md) | Generic data object. | [optional] +**Data** | [**[MenuSectionItem]**](MenuSectionItem.md) | Generic data object. | diff --git a/docs/RestApiArrayResultMenuStoreNames.md b/docs/RestApiArrayResultMenuStoreNames.md new file mode 100644 index 00000000..f737a7ac --- /dev/null +++ b/docs/RestApiArrayResultMenuStoreNames.md @@ -0,0 +1,8 @@ +# 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..baa72697 --- /dev/null +++ b/docs/RestApiArrayResultMenuSummary.md @@ -0,0 +1,8 @@ +# 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..694f91fa --- /dev/null +++ b/docs/RestApiArrayResultMenuTaxDetails.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultMenuTaxDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[MenuTaxDetails]**](MenuTaxDetails.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMetadata.md b/docs/RestApiArrayResultMetadata.md index ea387ee9..780828bc 100644 --- a/docs/RestApiArrayResultMetadata.md +++ b/docs/RestApiArrayResultMetadata.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[Metadata]**](Metadata.md) | Generic data object. | [optional] +**Data** | [**[Metadata]**](Metadata.md) | Generic data object. | diff --git a/docs/RestApiArrayResultOAuthApp.md b/docs/RestApiArrayResultOAuthApp.md new file mode 100644 index 00000000..ff1ae780 --- /dev/null +++ b/docs/RestApiArrayResultOAuthApp.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultOAuthApp + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[OAuthApp]**](OAuthApp.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultOAuthClient.md b/docs/RestApiArrayResultOAuthClient.md deleted file mode 100644 index 28b71681..00000000 --- a/docs/RestApiArrayResultOAuthClient.md +++ /dev/null @@ -1,8 +0,0 @@ -# Flipdish.RestApiArrayResultOAuthClient - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[OAuthClient]**](OAuthClient.md) | Generic data object. | [optional] - - diff --git a/docs/RestApiArrayResultOauthClientRedirectUri.md b/docs/RestApiArrayResultOauthClientRedirectUri.md index b71acf54..e60f9283 100644 --- a/docs/RestApiArrayResultOauthClientRedirectUri.md +++ b/docs/RestApiArrayResultOauthClientRedirectUri.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[OauthClientRedirectUri]**](OauthClientRedirectUri.md) | Generic data object. | [optional] +**Data** | [**[OauthClientRedirectUri]**](OauthClientRedirectUri.md) | Generic data object. | diff --git a/docs/RestApiArrayResultPayoutSummary.md b/docs/RestApiArrayResultPayoutSummary.md new file mode 100644 index 00000000..44db264e --- /dev/null +++ b/docs/RestApiArrayResultPayoutSummary.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultPayoutSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[PayoutSummary]**](PayoutSummary.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultPreOrderTime.md b/docs/RestApiArrayResultPreOrderTime.md new file mode 100644 index 00000000..55f442fe --- /dev/null +++ b/docs/RestApiArrayResultPreOrderTime.md @@ -0,0 +1,8 @@ +# 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..2a45c78b --- /dev/null +++ b/docs/RestApiArrayResultProcessingFeeConfig.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultProcessingFeeConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[ProcessingFeeConfig]**](ProcessingFeeConfig.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultRestApiDefaultResponse.md b/docs/RestApiArrayResultRestApiDefaultResponse.md index bd42970e..7ec29713 100644 --- a/docs/RestApiArrayResultRestApiDefaultResponse.md +++ b/docs/RestApiArrayResultRestApiDefaultResponse.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[RestApiDefaultResponse]**](RestApiDefaultResponse.md) | Generic data object. | [optional] +**Data** | [**[RestApiDefaultResponse]**](RestApiDefaultResponse.md) | Generic data object. | diff --git a/docs/RestApiArrayResultRetentionCampaign.md b/docs/RestApiArrayResultRetentionCampaign.md new file mode 100644 index 00000000..aa595bc6 --- /dev/null +++ b/docs/RestApiArrayResultRetentionCampaign.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultRetentionCampaign + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[RetentionCampaign]**](RetentionCampaign.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultStoreListItem.md b/docs/RestApiArrayResultStoreListItem.md new file mode 100644 index 00000000..c6c9893b --- /dev/null +++ b/docs/RestApiArrayResultStoreListItem.md @@ -0,0 +1,8 @@ +# 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..18d52dfa --- /dev/null +++ b/docs/RestApiArrayResultStoreStatistics.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultStoreStatistics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[StoreStatistics]**](StoreStatistics.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultSupportedCountry.md b/docs/RestApiArrayResultSupportedCountry.md new file mode 100644 index 00000000..c7ec764d --- /dev/null +++ b/docs/RestApiArrayResultSupportedCountry.md @@ -0,0 +1,8 @@ +# 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..fb753015 --- /dev/null +++ b/docs/RestApiArrayResultTeammate.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultTeammate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[Teammate]**](Teammate.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultVoucherDataPoint.md b/docs/RestApiArrayResultVoucherDataPoint.md new file mode 100644 index 00000000..0f565176 --- /dev/null +++ b/docs/RestApiArrayResultVoucherDataPoint.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiArrayResultVoucherDataPoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[VoucherDataPoint]**](VoucherDataPoint.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultWebhookSubscription.md b/docs/RestApiArrayResultWebhookSubscription.md deleted file mode 100644 index 332a28ea..00000000 --- a/docs/RestApiArrayResultWebhookSubscription.md +++ /dev/null @@ -1,8 +0,0 @@ -# Flipdish.RestApiArrayResultWebhookSubscription - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[WebhookSubscription]**](WebhookSubscription.md) | Generic data object. | [optional] - - diff --git a/docs/RestApiDefaultResponse.md b/docs/RestApiDefaultResponse.md index cb2a516b..fb20f79e 100644 --- a/docs/RestApiDefaultResponse.md +++ b/docs/RestApiDefaultResponse.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | **String** | Data string | [optional] +**Data** | **String** | Data string | [optional] diff --git a/docs/RestApiErrorResult.md b/docs/RestApiErrorResult.md index 420716dd..1b6eb470 100644 --- a/docs/RestApiErrorResult.md +++ b/docs/RestApiErrorResult.md @@ -3,7 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**message** | **String** | Error message | [optional] -**errors** | [**[ValidationErrorResult]**](ValidationErrorResult.md) | List of errors grouped by field name | [optional] +**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 index 2347470d..8a642bf5 100644 --- a/docs/RestApiEventSearchPaginationResult.md +++ b/docs/RestApiEventSearchPaginationResult.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**EventSearchResult**](EventSearchResult.md) | Event results | [optional] -**page** | **Number** | Current page index | [optional] -**limit** | **Number** | Current page size | [optional] -**totalRecordCount** | **Number** | Total record count | [optional] +**Data** | [**EventSearchResult**](EventSearchResult.md) | Event results | +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | diff --git a/docs/RestApiForbiddenResult.md b/docs/RestApiForbiddenResult.md index 3eb6e161..05df157a 100644 --- a/docs/RestApiForbiddenResult.md +++ b/docs/RestApiForbiddenResult.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**message** | **String** | Message | [optional] +**Message** | **String** | Message | diff --git a/docs/RestApiIntegerResult.md b/docs/RestApiIntegerResult.md index 3c44422b..5ef3a678 100644 --- a/docs/RestApiIntegerResult.md +++ b/docs/RestApiIntegerResult.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | **Number** | Data integer | [optional] +**Data** | **Number** | Data integer | diff --git a/docs/RestApiPaginationResultApp.md b/docs/RestApiPaginationResultApp.md new file mode 100644 index 00000000..259ea371 --- /dev/null +++ b/docs/RestApiPaginationResultApp.md @@ -0,0 +1,11 @@ +# 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/RestApiPaginationResultBusinessHoursOverride.md b/docs/RestApiPaginationResultBusinessHoursOverride.md new file mode 100644 index 00000000..2a29f683 --- /dev/null +++ b/docs/RestApiPaginationResultBusinessHoursOverride.md @@ -0,0 +1,11 @@ +# 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/RestApiPaginationResultHttpRequestAndResponseLog.md b/docs/RestApiPaginationResultHttpRequestAndResponseLog.md index bac3692c..e5e269b1 100644 --- a/docs/RestApiPaginationResultHttpRequestAndResponseLog.md +++ b/docs/RestApiPaginationResultHttpRequestAndResponseLog.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**page** | **Number** | Current page index | [optional] -**limit** | **Number** | Current page size | [optional] -**totalRecordCount** | **Number** | Total record count | [optional] -**data** | [**[HttpRequestAndResponseLog]**](HttpRequestAndResponseLog.md) | Generic data object. | [optional] +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[HttpRequestAndResponseLog]**](HttpRequestAndResponseLog.md) | Generic data object. | diff --git a/docs/RestApiPaginationResultHydraDeviceDetails.md b/docs/RestApiPaginationResultHydraDeviceDetails.md new file mode 100644 index 00000000..8478ea4b --- /dev/null +++ b/docs/RestApiPaginationResultHydraDeviceDetails.md @@ -0,0 +1,11 @@ +# 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/RestApiPaginationResultOAuthTokenModel.md b/docs/RestApiPaginationResultOAuthTokenModel.md index 39daceb0..f06b6bba 100644 --- a/docs/RestApiPaginationResultOAuthTokenModel.md +++ b/docs/RestApiPaginationResultOAuthTokenModel.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**page** | **Number** | Current page index | [optional] -**limit** | **Number** | Current page size | [optional] -**totalRecordCount** | **Number** | Total record count | [optional] -**data** | [**[OAuthTokenModel]**](OAuthTokenModel.md) | Generic data object. | [optional] +**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 index 1bc26a8f..37ca3e1f 100644 --- a/docs/RestApiPaginationResultOrder.md +++ b/docs/RestApiPaginationResultOrder.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**page** | **Number** | Current page index | [optional] -**limit** | **Number** | Current page size | [optional] -**totalRecordCount** | **Number** | Total record count | [optional] -**data** | [**[Order]**](Order.md) | Generic data object. | [optional] +**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..312647d7 --- /dev/null +++ b/docs/RestApiPaginationResultOrderSummary.md @@ -0,0 +1,11 @@ +# 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..a9020adf --- /dev/null +++ b/docs/RestApiPaginationResultPayout.md @@ -0,0 +1,11 @@ +# 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..c3e3db20 --- /dev/null +++ b/docs/RestApiPaginationResultPayoutChargeback.md @@ -0,0 +1,11 @@ +# 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..ae2ef72d --- /dev/null +++ b/docs/RestApiPaginationResultPayoutOrder.md @@ -0,0 +1,11 @@ +# 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..51e49415 --- /dev/null +++ b/docs/RestApiPaginationResultPayoutOtherCharge.md @@ -0,0 +1,11 @@ +# 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..4af0c711 --- /dev/null +++ b/docs/RestApiPaginationResultPayoutRefund.md @@ -0,0 +1,11 @@ +# 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/RestApiPaginationResultPhoneCall.md b/docs/RestApiPaginationResultPhoneCall.md new file mode 100644 index 00000000..f70102f2 --- /dev/null +++ b/docs/RestApiPaginationResultPhoneCall.md @@ -0,0 +1,11 @@ +# 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/RestApiPaginationResultPushNotificationResponse.md b/docs/RestApiPaginationResultPushNotificationResponse.md new file mode 100644 index 00000000..26f97d4f --- /dev/null +++ b/docs/RestApiPaginationResultPushNotificationResponse.md @@ -0,0 +1,11 @@ +# 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/RestApiPaginationResultStore.md b/docs/RestApiPaginationResultStore.md index ee535c52..1a9a7a12 100644 --- a/docs/RestApiPaginationResultStore.md +++ b/docs/RestApiPaginationResultStore.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**page** | **Number** | Current page index | [optional] -**limit** | **Number** | Current page size | [optional] -**totalRecordCount** | **Number** | Total record count | [optional] -**data** | [**[Store]**](Store.md) | Generic data object. | [optional] +**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..ed6b5fac --- /dev/null +++ b/docs/RestApiPaginationResultStoreGroup.md @@ -0,0 +1,11 @@ +# 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..d7b23691 --- /dev/null +++ b/docs/RestApiPaginationResultStoreGroupExtended.md @@ -0,0 +1,11 @@ +# 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..9c03bf88 --- /dev/null +++ b/docs/RestApiPaginationResultStoreHeader.md @@ -0,0 +1,11 @@ +# 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/RestApiPaginationResultVoucher.md b/docs/RestApiPaginationResultVoucher.md deleted file mode 100644 index 6d4ee262..00000000 --- a/docs/RestApiPaginationResultVoucher.md +++ /dev/null @@ -1,11 +0,0 @@ -# Flipdish.RestApiPaginationResultVoucher - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**page** | **Number** | Current page index | [optional] -**limit** | **Number** | Current page size | [optional] -**totalRecordCount** | **Number** | Total record count | [optional] -**data** | [**[Voucher]**](Voucher.md) | Generic data object. | [optional] - - diff --git a/docs/RestApiPaginationResultVoucherSummary.md b/docs/RestApiPaginationResultVoucherSummary.md new file mode 100644 index 00000000..3ba6a442 --- /dev/null +++ b/docs/RestApiPaginationResultVoucherSummary.md @@ -0,0 +1,11 @@ +# 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 index ea9a7827..a11c2092 100644 --- a/docs/RestApiPaginationResultWebhookLog.md +++ b/docs/RestApiPaginationResultWebhookLog.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**page** | **Number** | Current page index | [optional] -**limit** | **Number** | Current page size | [optional] -**totalRecordCount** | **Number** | Total record count | [optional] -**data** | [**[WebhookLog]**](WebhookLog.md) | Generic data object. | [optional] +**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..36c12187 --- /dev/null +++ b/docs/RestApiPaginationResultWebhookSubscription.md @@ -0,0 +1,11 @@ +# 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/RestApiResultAccountDetail.md b/docs/RestApiResultAccountDetail.md new file mode 100644 index 00000000..cb98c45e --- /dev/null +++ b/docs/RestApiResultAccountDetail.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultAccountDetail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AccountDetail**](AccountDetail.md) | Generic data object. | + + diff --git a/docs/RestApiResultAccountFieldsDefinitions.md b/docs/RestApiResultAccountFieldsDefinitions.md new file mode 100644 index 00000000..ffe0da75 --- /dev/null +++ b/docs/RestApiResultAccountFieldsDefinitions.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultAccountFieldsDefinitions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AccountFieldsDefinitions**](AccountFieldsDefinitions.md) | Generic data object. | + + diff --git a/docs/RestApiResultApmStatistics.md b/docs/RestApiResultApmStatistics.md new file mode 100644 index 00000000..1e1dd274 --- /dev/null +++ b/docs/RestApiResultApmStatistics.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultApmStatistics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ApmStatistics**](ApmStatistics.md) | Generic data object. | + + diff --git a/docs/RestApiResultApmStatus.md b/docs/RestApiResultApmStatus.md new file mode 100644 index 00000000..50bad64e --- /dev/null +++ b/docs/RestApiResultApmStatus.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultApmStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ApmStatus**](ApmStatus.md) | Generic data object. | + + diff --git a/docs/RestApiResultApp.md b/docs/RestApiResultApp.md new file mode 100644 index 00000000..3d8d1843 --- /dev/null +++ b/docs/RestApiResultApp.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultApp + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**App**](App.md) | Generic data object. | + + diff --git a/docs/RestApiResultAppCompliance.md b/docs/RestApiResultAppCompliance.md new file mode 100644 index 00000000..5c3dbb47 --- /dev/null +++ b/docs/RestApiResultAppCompliance.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultAppCompliance + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppCompliance**](AppCompliance.md) | Generic data object. | + + diff --git a/docs/RestApiResultAssignedBankAccount.md b/docs/RestApiResultAssignedBankAccount.md new file mode 100644 index 00000000..442f29de --- /dev/null +++ b/docs/RestApiResultAssignedBankAccount.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultAssignedBankAccount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AssignedBankAccount**](AssignedBankAccount.md) | Generic data object. | + + diff --git a/docs/RestApiResultBankAccountDetail.md b/docs/RestApiResultBankAccountDetail.md new file mode 100644 index 00000000..bab4e2fe --- /dev/null +++ b/docs/RestApiResultBankAccountDetail.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultBankAccountDetail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BankAccountDetail**](BankAccountDetail.md) | Generic data object. | + + diff --git a/docs/RestApiResultBluetoothTerminalStatus.md b/docs/RestApiResultBluetoothTerminalStatus.md new file mode 100644 index 00000000..e73aa310 --- /dev/null +++ b/docs/RestApiResultBluetoothTerminalStatus.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultBluetoothTerminalStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BluetoothTerminalStatus**](BluetoothTerminalStatus.md) | Generic data object. | + + diff --git a/docs/RestApiResultBusinessHoursOverride.md b/docs/RestApiResultBusinessHoursOverride.md new file mode 100644 index 00000000..8b2724b1 --- /dev/null +++ b/docs/RestApiResultBusinessHoursOverride.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultBusinessHoursOverride + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BusinessHoursOverride**](BusinessHoursOverride.md) | Generic data object. | + + diff --git a/docs/RestApiResultBusinessHoursPeriod.md b/docs/RestApiResultBusinessHoursPeriod.md new file mode 100644 index 00000000..c5ec85bd --- /dev/null +++ b/docs/RestApiResultBusinessHoursPeriod.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultBusinessHoursPeriod + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BusinessHoursPeriod**](BusinessHoursPeriod.md) | Generic data object. | + + diff --git a/docs/RestApiResultCoordinates.md b/docs/RestApiResultCoordinates.md new file mode 100644 index 00000000..62e652da --- /dev/null +++ b/docs/RestApiResultCoordinates.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultCoordinates + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Coordinates**](Coordinates.md) | Generic data object. | + + diff --git a/docs/RestApiResultCustomer.md b/docs/RestApiResultCustomer.md new file mode 100644 index 00000000..dfdf14a4 --- /dev/null +++ b/docs/RestApiResultCustomer.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultCustomer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Customer**](Customer.md) | Generic data object. | + + diff --git a/docs/RestApiResultDeliveryZone.md b/docs/RestApiResultDeliveryZone.md new file mode 100644 index 00000000..1307763c --- /dev/null +++ b/docs/RestApiResultDeliveryZone.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultDeliveryZone + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**DeliveryZone**](DeliveryZone.md) | Generic data object. | + + diff --git a/docs/RestApiResultDnsRecordInformation.md b/docs/RestApiResultDnsRecordInformation.md new file mode 100644 index 00000000..f2e64c71 --- /dev/null +++ b/docs/RestApiResultDnsRecordInformation.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultDnsRecordInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**DnsRecordInformation**](DnsRecordInformation.md) | Generic data object. | + + diff --git a/docs/RestApiResultDriver.md b/docs/RestApiResultDriver.md new file mode 100644 index 00000000..d257d193 --- /dev/null +++ b/docs/RestApiResultDriver.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultDriver + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Driver**](Driver.md) | Generic data object. | + + diff --git a/docs/RestApiResultHomeStatistics.md b/docs/RestApiResultHomeStatistics.md new file mode 100644 index 00000000..42c19e1f --- /dev/null +++ b/docs/RestApiResultHomeStatistics.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultHomeStatistics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**HomeStatistics**](HomeStatistics.md) | Generic data object. | + + diff --git a/docs/RestApiResultHydraConfig.md b/docs/RestApiResultHydraConfig.md new file mode 100644 index 00000000..cf861fca --- /dev/null +++ b/docs/RestApiResultHydraConfig.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultHydraConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**HydraConfig**](HydraConfig.md) | Generic data object. | + + diff --git a/docs/RestApiResultHydraStatus.md b/docs/RestApiResultHydraStatus.md new file mode 100644 index 00000000..c60a9844 --- /dev/null +++ b/docs/RestApiResultHydraStatus.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultHydraStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**HydraStatus**](HydraStatus.md) | Generic data object. | + + diff --git a/docs/RestApiResultIndexPage.md b/docs/RestApiResultIndexPage.md new file mode 100644 index 00000000..08c14691 --- /dev/null +++ b/docs/RestApiResultIndexPage.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultIndexPage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**IndexPage**](IndexPage.md) | Generic data object. | + + diff --git a/docs/RestApiResultIndexPageBase.md b/docs/RestApiResultIndexPageBase.md new file mode 100644 index 00000000..ebc557c9 --- /dev/null +++ b/docs/RestApiResultIndexPageBase.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultIndexPageBase + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**IndexPageBase**](IndexPageBase.md) | Generic data object. | + + diff --git a/docs/RestApiResultJobResponse.md b/docs/RestApiResultJobResponse.md new file mode 100644 index 00000000..d22a1103 --- /dev/null +++ b/docs/RestApiResultJobResponse.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultJobResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**JobResponse**](JobResponse.md) | Generic data object. | + + diff --git a/docs/RestApiResultLightspeedSettings.md b/docs/RestApiResultLightspeedSettings.md new file mode 100644 index 00000000..a172701f --- /dev/null +++ b/docs/RestApiResultLightspeedSettings.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultLightspeedSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LightspeedSettings**](LightspeedSettings.md) | Generic data object. | + + diff --git a/docs/RestApiResultLoyaltyCampaign.md b/docs/RestApiResultLoyaltyCampaign.md new file mode 100644 index 00000000..7922918c --- /dev/null +++ b/docs/RestApiResultLoyaltyCampaign.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultLoyaltyCampaign + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LoyaltyCampaign**](LoyaltyCampaign.md) | Generic data object. | + + diff --git a/docs/RestApiResultMenu.md b/docs/RestApiResultMenu.md index 3d7cd730..e2d11e22 100644 --- a/docs/RestApiResultMenu.md +++ b/docs/RestApiResultMenu.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**Menu**](Menu.md) | Generic data object. | [optional] +**Data** | [**Menu**](Menu.md) | Generic data object. | diff --git a/docs/RestApiResultMenuItemOptionSet.md b/docs/RestApiResultMenuItemOptionSet.md index 5e58df47..d7c3cfda 100644 --- a/docs/RestApiResultMenuItemOptionSet.md +++ b/docs/RestApiResultMenuItemOptionSet.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**MenuItemOptionSet**](MenuItemOptionSet.md) | Generic data object. | [optional] +**Data** | [**MenuItemOptionSet**](MenuItemOptionSet.md) | Generic data object. | diff --git a/docs/RestApiResultMenuItemOptionSetItem.md b/docs/RestApiResultMenuItemOptionSetItem.md index 6c5f9d8d..2b47a88f 100644 --- a/docs/RestApiResultMenuItemOptionSetItem.md +++ b/docs/RestApiResultMenuItemOptionSetItem.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**MenuItemOptionSetItem**](MenuItemOptionSetItem.md) | Generic data object. | [optional] +**Data** | [**MenuItemOptionSetItem**](MenuItemOptionSetItem.md) | Generic data object. | diff --git a/docs/RestApiResultMenuSection.md b/docs/RestApiResultMenuSection.md index 09ff16c6..dc9211ca 100644 --- a/docs/RestApiResultMenuSection.md +++ b/docs/RestApiResultMenuSection.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**MenuSection**](MenuSection.md) | Generic data object. | [optional] +**Data** | [**MenuSection**](MenuSection.md) | Generic data object. | diff --git a/docs/RestApiResultMenuSectionAvailability.md b/docs/RestApiResultMenuSectionAvailability.md new file mode 100644 index 00000000..7622addc --- /dev/null +++ b/docs/RestApiResultMenuSectionAvailability.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultMenuSectionAvailability + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuSectionAvailability**](MenuSectionAvailability.md) | Generic data object. | + + diff --git a/docs/RestApiResultMenuSectionItem.md b/docs/RestApiResultMenuSectionItem.md index 9758a2bb..52316a1b 100644 --- a/docs/RestApiResultMenuSectionItem.md +++ b/docs/RestApiResultMenuSectionItem.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**MenuSectionItem**](MenuSectionItem.md) | Generic data object. | [optional] +**Data** | [**MenuSectionItem**](MenuSectionItem.md) | Generic data object. | diff --git a/docs/RestApiResultMetadata.md b/docs/RestApiResultMetadata.md index 83fb6e0f..0d373c35 100644 --- a/docs/RestApiResultMetadata.md +++ b/docs/RestApiResultMetadata.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**Metadata**](Metadata.md) | Generic data object. | [optional] +**Data** | [**Metadata**](Metadata.md) | Generic data object. | diff --git a/docs/RestApiResultOAuthApp.md b/docs/RestApiResultOAuthApp.md new file mode 100644 index 00000000..fdd94b75 --- /dev/null +++ b/docs/RestApiResultOAuthApp.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultOAuthApp + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OAuthApp**](OAuthApp.md) | Generic data object. | + + diff --git a/docs/RestApiResultOAuthClient.md b/docs/RestApiResultOAuthClient.md deleted file mode 100644 index df277f53..00000000 --- a/docs/RestApiResultOAuthClient.md +++ /dev/null @@ -1,8 +0,0 @@ -# Flipdish.RestApiResultOAuthClient - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**OAuthClient**](OAuthClient.md) | Generic data object. | [optional] - - diff --git a/docs/RestApiResultOauthClientRedirectUri.md b/docs/RestApiResultOauthClientRedirectUri.md index e3ed8051..db31104d 100644 --- a/docs/RestApiResultOauthClientRedirectUri.md +++ b/docs/RestApiResultOauthClientRedirectUri.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**OauthClientRedirectUri**](OauthClientRedirectUri.md) | Generic data object. | [optional] +**Data** | [**OauthClientRedirectUri**](OauthClientRedirectUri.md) | Generic data object. | diff --git a/docs/RestApiResultOrder.md b/docs/RestApiResultOrder.md index 364ff711..58855b07 100644 --- a/docs/RestApiResultOrder.md +++ b/docs/RestApiResultOrder.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**Order**](Order.md) | Generic data object. | [optional] +**Data** | [**Order**](Order.md) | Generic data object. | diff --git a/docs/RestApiResultOrderPaymentInformation.md b/docs/RestApiResultOrderPaymentInformation.md new file mode 100644 index 00000000..270ed512 --- /dev/null +++ b/docs/RestApiResultOrderPaymentInformation.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultOrderPaymentInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderPaymentInformation**](OrderPaymentInformation.md) | Generic data object. | + + diff --git a/docs/RestApiResultPaymentTerminalDetails.md b/docs/RestApiResultPaymentTerminalDetails.md new file mode 100644 index 00000000..7c4f8b1c --- /dev/null +++ b/docs/RestApiResultPaymentTerminalDetails.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultPaymentTerminalDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PaymentTerminalDetails**](PaymentTerminalDetails.md) | Generic data object. | + + diff --git a/docs/RestApiResultPaymentTerminalTransactionDetails.md b/docs/RestApiResultPaymentTerminalTransactionDetails.md new file mode 100644 index 00000000..db8cdc59 --- /dev/null +++ b/docs/RestApiResultPaymentTerminalTransactionDetails.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultPaymentTerminalTransactionDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PaymentTerminalTransactionDetails**](PaymentTerminalTransactionDetails.md) | Generic data object. | + + diff --git a/docs/RestApiResultPreOrderConfig.md b/docs/RestApiResultPreOrderConfig.md new file mode 100644 index 00000000..bf2ff5e2 --- /dev/null +++ b/docs/RestApiResultPreOrderConfig.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultPreOrderConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PreOrderConfig**](PreOrderConfig.md) | Generic data object. | + + diff --git a/docs/RestApiResultProcessingFeeConfig.md b/docs/RestApiResultProcessingFeeConfig.md new file mode 100644 index 00000000..1bae40c7 --- /dev/null +++ b/docs/RestApiResultProcessingFeeConfig.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultProcessingFeeConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ProcessingFeeConfig**](ProcessingFeeConfig.md) | Generic data object. | + + diff --git a/docs/RestApiResultPushNotificationResponse.md b/docs/RestApiResultPushNotificationResponse.md new file mode 100644 index 00000000..911ceaf0 --- /dev/null +++ b/docs/RestApiResultPushNotificationResponse.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultPushNotificationResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PushNotificationResponse**](PushNotificationResponse.md) | Generic data object. | + + diff --git a/docs/RestApiResultRedeemInvitationResult.md b/docs/RestApiResultRedeemInvitationResult.md new file mode 100644 index 00000000..a38a8bb6 --- /dev/null +++ b/docs/RestApiResultRedeemInvitationResult.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultRedeemInvitationResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RedeemInvitationResult**](RedeemInvitationResult.md) | Generic data object. | + + diff --git a/docs/RestApiResultRetentionCampaign.md b/docs/RestApiResultRetentionCampaign.md new file mode 100644 index 00000000..c1c3d901 --- /dev/null +++ b/docs/RestApiResultRetentionCampaign.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultRetentionCampaign + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RetentionCampaign**](RetentionCampaign.md) | Generic data object. | + + diff --git a/docs/RestApiResultStore.md b/docs/RestApiResultStore.md index 1cd99f45..fc2fd730 100644 --- a/docs/RestApiResultStore.md +++ b/docs/RestApiResultStore.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**Store**](Store.md) | Generic data object. | [optional] +**Data** | [**Store**](Store.md) | Generic data object. | diff --git a/docs/RestApiResultStoreAddress.md b/docs/RestApiResultStoreAddress.md new file mode 100644 index 00000000..534ea482 --- /dev/null +++ b/docs/RestApiResultStoreAddress.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultStoreAddress + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreAddress**](StoreAddress.md) | Generic data object. | + + diff --git a/docs/RestApiResultStoreEndOfDayReport.md b/docs/RestApiResultStoreEndOfDayReport.md new file mode 100644 index 00000000..18254dcf --- /dev/null +++ b/docs/RestApiResultStoreEndOfDayReport.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultStoreEndOfDayReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreEndOfDayReport**](StoreEndOfDayReport.md) | Generic data object. | + + diff --git a/docs/RestApiResultStoreGroup.md b/docs/RestApiResultStoreGroup.md new file mode 100644 index 00000000..c0e2c4e0 --- /dev/null +++ b/docs/RestApiResultStoreGroup.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultStoreGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreGroup**](StoreGroup.md) | Generic data object. | + + diff --git a/docs/RestApiResultStoreGroupBase.md b/docs/RestApiResultStoreGroupBase.md new file mode 100644 index 00000000..86855296 --- /dev/null +++ b/docs/RestApiResultStoreGroupBase.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultStoreGroupBase + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreGroupBase**](StoreGroupBase.md) | Generic data object. | + + diff --git a/docs/RestApiResultStoreOrderCapacityConfig.md b/docs/RestApiResultStoreOrderCapacityConfig.md new file mode 100644 index 00000000..a2c4b205 --- /dev/null +++ b/docs/RestApiResultStoreOrderCapacityConfig.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultStoreOrderCapacityConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreOrderCapacityConfig**](StoreOrderCapacityConfig.md) | Generic data object. | + + diff --git a/docs/RestApiResultStripeConnectedAccount.md b/docs/RestApiResultStripeConnectedAccount.md new file mode 100644 index 00000000..17d49f06 --- /dev/null +++ b/docs/RestApiResultStripeConnectedAccount.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultStripeConnectedAccount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StripeConnectedAccount**](StripeConnectedAccount.md) | Generic data object. | + + diff --git a/docs/RestApiResultStripeTerminalPrivateKey.md b/docs/RestApiResultStripeTerminalPrivateKey.md new file mode 100644 index 00000000..e4cda0b7 --- /dev/null +++ b/docs/RestApiResultStripeTerminalPrivateKey.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultStripeTerminalPrivateKey + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StripeTerminalPrivateKey**](StripeTerminalPrivateKey.md) | Generic data object. | + + diff --git a/docs/RestApiResultStuartSettings.md b/docs/RestApiResultStuartSettings.md new file mode 100644 index 00000000..3401d52e --- /dev/null +++ b/docs/RestApiResultStuartSettings.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultStuartSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StuartSettings**](StuartSettings.md) | Generic data object. | + + diff --git a/docs/RestApiResultTeammate.md b/docs/RestApiResultTeammate.md new file mode 100644 index 00000000..c31ddd5d --- /dev/null +++ b/docs/RestApiResultTeammate.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultTeammate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Teammate**](Teammate.md) | Generic data object. | + + diff --git a/docs/RestApiResultVoucherWithStats.md b/docs/RestApiResultVoucherWithStats.md new file mode 100644 index 00000000..4d7ba50c --- /dev/null +++ b/docs/RestApiResultVoucherWithStats.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultVoucherWithStats + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**VoucherWithStats**](VoucherWithStats.md) | Generic data object. | + + diff --git a/docs/RestApiResultWebsiteImage.md b/docs/RestApiResultWebsiteImage.md new file mode 100644 index 00000000..eedc6362 --- /dev/null +++ b/docs/RestApiResultWebsiteImage.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultWebsiteImage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**WebsiteImage**](WebsiteImage.md) | Generic data object. | + + diff --git a/docs/RestApiResultWebsiteTestimonial.md b/docs/RestApiResultWebsiteTestimonial.md new file mode 100644 index 00000000..efd52f55 --- /dev/null +++ b/docs/RestApiResultWebsiteTestimonial.md @@ -0,0 +1,8 @@ +# Flipdish.RestApiResultWebsiteTestimonial + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**WebsiteTestimonial**](WebsiteTestimonial.md) | Generic data object. | + + diff --git a/docs/RestApiStringArrayResult.md b/docs/RestApiStringArrayResult.md index ed13d358..f3a45b38 100644 --- a/docs/RestApiStringArrayResult.md +++ b/docs/RestApiStringArrayResult.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | **[String]** | Data string array | [optional] +**Data** | **[String]** | Data string array | diff --git a/docs/RestApiStringResult.md b/docs/RestApiStringResult.md index 5c13ab6d..d41430ff 100644 --- a/docs/RestApiStringResult.md +++ b/docs/RestApiStringResult.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | **String** | Data string | [optional] +**Data** | **String** | Data string | diff --git a/docs/RestApiUnauthorizedResult.md b/docs/RestApiUnauthorizedResult.md index 6cae63fd..ffc2b71c 100644 --- a/docs/RestApiUnauthorizedResult.md +++ b/docs/RestApiUnauthorizedResult.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**message** | **String** | Message | [optional] +**Message** | **String** | Message | diff --git a/docs/RetentionCampaign.md b/docs/RetentionCampaign.md new file mode 100644 index 00000000..03bc2361 --- /dev/null +++ b/docs/RetentionCampaign.md @@ -0,0 +1,19 @@ +# Flipdish.RetentionCampaign + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CampaignId** | **Number** | Id of campaign | [optional] +**Statistics** | [**CampaignStatistics**](CampaignStatistics.md) | Statistics of campaign | [optional] +**Stores** | [**[StoreCampaignStartTime]**](StoreCampaignStartTime.md) | Stores this campaign applies to with campaign start time in Utc | [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] +**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] + + diff --git a/docs/RetentionCampaignBase.md b/docs/RetentionCampaignBase.md new file mode 100644 index 00000000..fbcea6ec --- /dev/null +++ b/docs/RetentionCampaignBase.md @@ -0,0 +1,16 @@ +# 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] +**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] + + diff --git a/docs/RetentionCampaignCreatedEvent.md b/docs/RetentionCampaignCreatedEvent.md new file mode 100644 index 00000000..2cd9cf47 --- /dev/null +++ b/docs/RetentionCampaignCreatedEvent.md @@ -0,0 +1,16 @@ +# 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) | Info User | [optional] +**RetentionCampaign** | [**RetentionCampaign**](RetentionCampaign.md) | The retention campaign | [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] + + diff --git a/docs/RetentionCampaignDeletedEvent.md b/docs/RetentionCampaignDeletedEvent.md new file mode 100644 index 00000000..f7eb4ce9 --- /dev/null +++ b/docs/RetentionCampaignDeletedEvent.md @@ -0,0 +1,16 @@ +# 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) | Info User | [optional] +**RetentionCampaign** | [**RetentionCampaign**](RetentionCampaign.md) | The retention campaign | [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] + + diff --git a/docs/RetentionCampaignUpdatedEvent.md b/docs/RetentionCampaignUpdatedEvent.md new file mode 100644 index 00000000..c986cc49 --- /dev/null +++ b/docs/RetentionCampaignUpdatedEvent.md @@ -0,0 +1,16 @@ +# 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) | Info User | [optional] +**RetentionCampaign** | [**RetentionCampaign**](RetentionCampaign.md) | The retention campaign | [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] + + diff --git a/docs/RevenueAdjustmentsDetails.md b/docs/RevenueAdjustmentsDetails.md new file mode 100644 index 00000000..3cb46388 --- /dev/null +++ b/docs/RevenueAdjustmentsDetails.md @@ -0,0 +1,12 @@ +# Flipdish.RevenueAdjustmentsDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OnlineSalesRefundedAmount** | **Number** | Online sales refunds | [optional] +**CashSalesRefundedAmount** | **Number** | Cash sales refunds | [optional] +**CustomerCashFees** | **Number** | Customer cash fees | [optional] +**RefundsCount** | **Number** | Number of refunds | [optional] +**TotalOnlineRevenueAdjustments** | **Number** | Total revenue adjustments | [optional] + + diff --git a/docs/RevenueDetail.md b/docs/RevenueDetail.md new file mode 100644 index 00000000..0bde7df1 --- /dev/null +++ b/docs/RevenueDetail.md @@ -0,0 +1,19 @@ +# 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] + + diff --git a/docs/SearchCriteria.md b/docs/SearchCriteria.md index c8410cca..e949612a 100644 --- a/docs/SearchCriteria.md +++ b/docs/SearchCriteria.md @@ -3,10 +3,18 @@ ## 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] -**name** | **[String]** | Event names to filter in | [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] +**StoreGroupId** | **Number** | Events that have Store Group Id | [optional] +**UserId** | **Number** | Events that have User 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/SetPasswordWithPinModel.md b/docs/SetPasswordWithPinModel.md new file mode 100644 index 00000000..a1808ca5 --- /dev/null +++ b/docs/SetPasswordWithPinModel.md @@ -0,0 +1,9 @@ +# Flipdish.SetPasswordWithPinModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pin** | **Number** | PIN code (received via email) | +**NewPassword** | **String** | New Password | + + diff --git a/docs/SignupStep.md b/docs/SignupStep.md new file mode 100644 index 00000000..e5e95fc6 --- /dev/null +++ b/docs/SignupStep.md @@ -0,0 +1,23 @@ +# 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"`) + + + + diff --git a/docs/SmsInfo.md b/docs/SmsInfo.md new file mode 100644 index 00000000..8d6c96c6 --- /dev/null +++ b/docs/SmsInfo.md @@ -0,0 +1,10 @@ +# 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/SmsReceivedEvent.md b/docs/SmsReceivedEvent.md new file mode 100644 index 00000000..a4127add --- /dev/null +++ b/docs/SmsReceivedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.SmsReceivedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**SmsInfo** | [**SmsInfo**](SmsInfo.md) | The sms info | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/StatisticsCurrencyDataPoint.md b/docs/StatisticsCurrencyDataPoint.md new file mode 100644 index 00000000..c5d04159 --- /dev/null +++ b/docs/StatisticsCurrencyDataPoint.md @@ -0,0 +1,244 @@ +# 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 index b714922f..bd872589 100644 --- a/docs/Store.md +++ b/docs/Store.md @@ -3,50 +3,300 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**storeId** | **Number** | Store identifier | [optional] -**name** | **String** | Name | [optional] -**apmPhoneNumber** | **String** | Automated Phone Marketing number | [optional] -**phoneNumber** | **String** | Phone number | [optional] -**emailAddress** | **String** | Email address (visible to customers) | [optional] -**address** | [**StoreAddress**](StoreAddress.md) | Store address | [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] -**deliveryFeeAreas** | [**[DeliveryFeeArea]**](DeliveryFeeArea.md) | Delivery fee areas | [optional] -**requireCustomerNameForPickup** | **Boolean** | True if customer name required for pickup orders | [optional] -**requireCustomerNameForDelivery** | **Boolean** | True if customer name required for delivery orders | [optional] -**pickupHours** | [**[BusinessHoursPeriod]**](BusinessHoursPeriod.md) | Pickup hours | [optional] -**deliveryHours** | [**[BusinessHoursPeriod]**](BusinessHoursPeriod.md) | Delivery hours | [optional] -**microsoftTimeZone** | **String** | Microsoft Time Zone Index Values (https://msdn.microsoft.com/en-us/library/ms912391) | [optional] -**ianaTimeZone** | **String** | IANA Time Zone (https://www.iana.org/time-zones) | [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] +**StoreId** | **Number** | Store identifier | [optional] +**StoreGroupId** | **Number** | Store group id to which this store belongs | [optional] +**Address** | [**StoreAddress**](StoreAddress.md) | Store address | [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] +**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] ## Enum: PrintoutLayoutTypeEnum -* `Default` (value: `"Default"`) +* `_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"`) + diff --git a/docs/StoreAddress.md b/docs/StoreAddress.md index ab9b6713..1925d8b5 100644 --- a/docs/StoreAddress.md +++ b/docs/StoreAddress.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**addressId** | **Number** | Address identifier | [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] -**coordinates** | [**Coordinates**](Coordinates.md) | Coordinate | [optional] +**AddressId** | **Number** | Address identifier | [optional] +**Coordinates** | [**Coordinates**](Coordinates.md) | Coordinate | [optional] +**Line1** | **String** | Address line 1 | [optional] +**Postcode** | **String** | Postcode | [optional] +**City** | **String** | City | [optional] +**CountryCode** | **String** | Country code (ISO-alpha2) | [optional] +**DisplayForCustomer** | **String** | Display for customer | [optional] diff --git a/docs/StoreAddressBase.md b/docs/StoreAddressBase.md new file mode 100644 index 00000000..f2eea054 --- /dev/null +++ b/docs/StoreAddressBase.md @@ -0,0 +1,12 @@ +# 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] + + diff --git a/docs/StoreAddressUpdatedEvent.md b/docs/StoreAddressUpdatedEvent.md new file mode 100644 index 00000000..431b5dba --- /dev/null +++ b/docs/StoreAddressUpdatedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.StoreAddressUpdatedEvent + +## 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) | User which updated this store address | [optional] +**Description** | **String** | Description | [optional] +**StoreAddress** | [**StoreAddress**](StoreAddress.md) | Updated store address | [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] + + diff --git a/docs/StoreArchivedEvent.md b/docs/StoreArchivedEvent.md new file mode 100644 index 00000000..d7d9fe9f --- /dev/null +++ b/docs/StoreArchivedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.StoreArchivedEvent + +## 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) | User which archived this store | [optional] +**Description** | **String** | Description | [optional] +**Store** | [**Store**](Store.md) | Archived Store | [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] + + diff --git a/docs/StoreBase.md b/docs/StoreBase.md new file mode 100644 index 00000000..0eb181a4 --- /dev/null +++ b/docs/StoreBase.md @@ -0,0 +1,36 @@ +# 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] + + diff --git a/docs/StoreBusinessHoursOverrideCreatedEvent.md b/docs/StoreBusinessHoursOverrideCreatedEvent.md new file mode 100644 index 00000000..7d9e002a --- /dev/null +++ b/docs/StoreBusinessHoursOverrideCreatedEvent.md @@ -0,0 +1,17 @@ +# 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) | User which deleted delivery zone for this store | [optional] +**Description** | **String** | Description | [optional] +**BusinessHoursOverride** | [**BusinessHoursOverride**](BusinessHoursOverride.md) | Business Hours Override | [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] + + diff --git a/docs/StoreBusinessHoursOverrideDeletedEvent.md b/docs/StoreBusinessHoursOverrideDeletedEvent.md new file mode 100644 index 00000000..9ae89d0a --- /dev/null +++ b/docs/StoreBusinessHoursOverrideDeletedEvent.md @@ -0,0 +1,17 @@ +# 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) | User which deleted delivery zone for this store | [optional] +**Description** | **String** | Description | [optional] +**BusinessHoursOverride** | [**BusinessHoursOverride**](BusinessHoursOverride.md) | Business Hours Override | [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] + + diff --git a/docs/StoreCampaignStartTime.md b/docs/StoreCampaignStartTime.md new file mode 100644 index 00000000..d9e93329 --- /dev/null +++ b/docs/StoreCampaignStartTime.md @@ -0,0 +1,9 @@ +# Flipdish.StoreCampaignStartTime + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store Id | [optional] +**TsStart** | **Date** | Campaign start time in Utc | [optional] + + diff --git a/docs/StoreCloneSettings.md b/docs/StoreCloneSettings.md new file mode 100644 index 00000000..76df0fa9 --- /dev/null +++ b/docs/StoreCloneSettings.md @@ -0,0 +1,8 @@ +# 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/StoreCreateBase.md b/docs/StoreCreateBase.md new file mode 100644 index 00000000..49c2b774 --- /dev/null +++ b/docs/StoreCreateBase.md @@ -0,0 +1,10 @@ +# 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] + + diff --git a/docs/StoreCreatedEvent.md b/docs/StoreCreatedEvent.md index b589cd97..243283c3 100644 --- a/docs/StoreCreatedEvent.md +++ b/docs/StoreCreatedEvent.md @@ -3,12 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**storeId** | **Number** | Store Id | [optional] -**user** | [**UserEventInfo**](UserEventInfo.md) | Info User | [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] +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which created this store | [optional] +**Description** | **String** | Description | [optional] +**Store** | [**Store**](Store.md) | Created Store | [optional] +**FlipdishEventId** | **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] diff --git a/docs/StoreDataPoint.md b/docs/StoreDataPoint.md new file mode 100644 index 00000000..51866921 --- /dev/null +++ b/docs/StoreDataPoint.md @@ -0,0 +1,9 @@ +# 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 index 6ca77914..c438abe0 100644 --- a/docs/StoreDeletedEvent.md +++ b/docs/StoreDeletedEvent.md @@ -3,12 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**storeId** | **Number** | Store Id | [optional] -**user** | [**UserEventInfo**](UserEventInfo.md) | Info User | [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] +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which deleted this store | [optional] +**Description** | **String** | Description | [optional] +**Store** | [**Store**](Store.md) | Deleted Store | [optional] +**FlipdishEventId** | **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] diff --git a/docs/StoreDeliveryZoneUpdatedEvent.md b/docs/StoreDeliveryZoneUpdatedEvent.md deleted file mode 100644 index 7c7578ea..00000000 --- a/docs/StoreDeliveryZoneUpdatedEvent.md +++ /dev/null @@ -1,14 +0,0 @@ -# Flipdish.StoreDeliveryZoneUpdatedEvent - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**storeId** | **Number** | Store Id | [optional] -**user** | [**UserEventInfo**](UserEventInfo.md) | Info User | [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] - - diff --git a/docs/StoreEndOfDayReport.md b/docs/StoreEndOfDayReport.md new file mode 100644 index 00000000..a994a877 --- /dev/null +++ b/docs/StoreEndOfDayReport.md @@ -0,0 +1,266 @@ +# 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/StoreGroup.md b/docs/StoreGroup.md new file mode 100644 index 00000000..e58e70a6 --- /dev/null +++ b/docs/StoreGroup.md @@ -0,0 +1,245 @@ +# 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] +**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..060a7a88 --- /dev/null +++ b/docs/StoreGroupBase.md @@ -0,0 +1,242 @@ +# 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..c942e6fa --- /dev/null +++ b/docs/StoreGroupCreatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.StoreGroupCreatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreGroupId** | **Number** | Store Group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which created this store group | [optional] +**Description** | **String** | Description | [optional] +**StoreGroup** | [**StoreGroup**](StoreGroup.md) | Created store group | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/StoreGroupDeletedEvent.md b/docs/StoreGroupDeletedEvent.md new file mode 100644 index 00000000..891ac1ac --- /dev/null +++ b/docs/StoreGroupDeletedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.StoreGroupDeletedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreGroupId** | **Number** | Store Group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which deleted this store group | [optional] +**Description** | **String** | Description | [optional] +**StoreGroup** | [**StoreGroup**](StoreGroup.md) | Deleted store group | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/StoreGroupExtended.md b/docs/StoreGroupExtended.md new file mode 100644 index 00000000..2a344242 --- /dev/null +++ b/docs/StoreGroupExtended.md @@ -0,0 +1,248 @@ +# 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] +**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..32b4f9fe --- /dev/null +++ b/docs/StoreGroupUpdatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.StoreGroupUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreGroupId** | **Number** | Store Group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which updated this store group | [optional] +**Description** | **String** | Description | [optional] +**StoreGroup** | [**StoreGroup**](StoreGroup.md) | Updated store group | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/StoreGroupsApi.md b/docs/StoreGroupsApi.md new file mode 100644 index 00000000..de18993a --- /dev/null +++ b/docs/StoreGroupsApi.md @@ -0,0 +1,332 @@ +# Flipdish.StoreGroupsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createStoreGroup**](StoreGroupsApi.md#createStoreGroup) | **POST** /api/v1.0/{appNameId}/storegroups | Creates a Store Group It will be attached to an existing App +[**getStoreGroup**](StoreGroupsApi.md#getStoreGroup) | **GET** /api/v1.0/storegroups/{storeGroupId} | Returns a Store Groups +[**getStoreGroups**](StoreGroupsApi.md#getStoreGroups) | **GET** /api/v1.0/{appNameId}/storegroups | Returns a paginated list of Store Groups +[**getStoreGroupsExtended**](StoreGroupsApi.md#getStoreGroupsExtended) | **GET** /api/v1.0/{appNameId}/storegroups/extended | [PRIVATE API] Returns a paginated list of Extended Store Groups +[**removeStoreGroup**](StoreGroupsApi.md#removeStoreGroup) | **DELETE** /api/v1.0/storegroups/{storeGroupId} | Deletes a Store Group Can only remove a store group if there is no stores attached to the group +[**updateStoreGroup**](StoreGroupsApi.md#updateStoreGroup) | **POST** /api/v1.0/storegroups/{storeGroupId} | Updates Store Group + + + +# **createStoreGroup** +> RestApiResultStoreGroup createStoreGroup(appNameId, storeGroup) + +Creates a Store Group It will be attached to an existing App + +### Example +```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 apiInstance = new Flipdish.StoreGroupsApi(); + +var appNameId = "appNameId_example"; // String | App Name Id + +var storeGroup = new Flipdish.StoreGroupBase(); // StoreGroupBase | Store group definition + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.createStoreGroup(appNameId, storeGroup, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appNameId** | **String**| App Name Id | + **storeGroup** | [**StoreGroupBase**](StoreGroupBase.md)| Store group definition | + +### 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 + + +# **getStoreGroup** +> RestApiResultStoreGroup getStoreGroup(storeGroupId) + +Returns a Store Groups + +### Example +```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 apiInstance = new Flipdish.StoreGroupsApi(); + +var storeGroupId = 56; // Number | Store Group Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getStoreGroup(storeGroupId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **Number**| Store Group Id | + +### 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 + + +# **getStoreGroups** +> RestApiPaginationResultStoreGroup getStoreGroups(appNameId, opts) + +Returns a paginated list of Store Groups + +### Example +```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 apiInstance = new Flipdish.StoreGroupsApi(); + +var appNameId = "appNameId_example"; // String | App Name Id + +var opts = { + 'searchQuery': "searchQuery_example", // String | Search query + 'page': 56, // Number | Requested page index + 'limit': 56 // Number | Requested page limit +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getStoreGroups(appNameId, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appNameId** | **String**| App Name Id | + **searchQuery** | **String**| Search query | [optional] + **page** | **Number**| Requested page index | [optional] + **limit** | **Number**| Requested page limit | [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 + + +# **getStoreGroupsExtended** +> RestApiPaginationResultStoreGroupExtended getStoreGroupsExtended(appNameId, opts) + +[PRIVATE API] Returns a paginated list of Extended Store Groups + +### Example +```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 apiInstance = new Flipdish.StoreGroupsApi(); + +var appNameId = "appNameId_example"; // String | App Name Id + +var opts = { + 'searchQuery': "searchQuery_example", // String | Search query + 'page': 56, // Number | Requested page index + 'limit': 56, // Number | Requested page limit + 'groupingRadius': 56 // Number | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getStoreGroupsExtended(appNameId, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appNameId** | **String**| App Name Id | + **searchQuery** | **String**| Search query | [optional] + **page** | **Number**| Requested page index | [optional] + **limit** | **Number**| Requested page limit | [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 + + +# **removeStoreGroup** +> removeStoreGroup(storeGroupId) + +Deletes a Store Group Can only remove a store group if there is no stores attached to the group + +### Example +```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 apiInstance = new Flipdish.StoreGroupsApi(); + +var storeGroupId = 56; // Number | Store Group Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.removeStoreGroup(storeGroupId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **Number**| Store Group Id | + +### 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 + + +# **updateStoreGroup** +> RestApiResultStoreGroupBase updateStoreGroup(storeGroupId, storeGroup) + +Updates Store Group + +### Example +```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 apiInstance = new Flipdish.StoreGroupsApi(); + +var storeGroupId = 56; // Number | Store Group Id + +var storeGroup = new Flipdish.StoreGroupBase(); // StoreGroupBase | Store Group Delta + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.updateStoreGroup(storeGroupId, storeGroup, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **Number**| Store Group Id | + **storeGroup** | [**StoreGroupBase**](StoreGroupBase.md)| Store Group Delta | + +### 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 + diff --git a/docs/StoreHeader.md b/docs/StoreHeader.md new file mode 100644 index 00000000..57c1323b --- /dev/null +++ b/docs/StoreHeader.md @@ -0,0 +1,9 @@ +# Flipdish.StoreHeader + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store identifier | [optional] +**Name** | **String** | Name | [optional] + + diff --git a/docs/StoreKioskSetting.md b/docs/StoreKioskSetting.md new file mode 100644 index 00000000..6100a5c9 --- /dev/null +++ b/docs/StoreKioskSetting.md @@ -0,0 +1,14 @@ +# 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] +**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..9289bd6e --- /dev/null +++ b/docs/StoreKioskSettingUpdatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.StoreKioskSettingUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which deleted delivery zone for this store | [optional] +**Description** | **String** | Description | [optional] +**StoreKioskSetting** | [**StoreKioskSetting**](StoreKioskSetting.md) | Store kiosk settings | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/StoreListItem.md b/docs/StoreListItem.md new file mode 100644 index 00000000..8a177b5b --- /dev/null +++ b/docs/StoreListItem.md @@ -0,0 +1,13 @@ +# 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] + + diff --git a/docs/StoreLogoCreatedEvent.md b/docs/StoreLogoCreatedEvent.md new file mode 100644 index 00000000..b373bd63 --- /dev/null +++ b/docs/StoreLogoCreatedEvent.md @@ -0,0 +1,15 @@ +# Flipdish.StoreLogoCreatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | ID of store that the logo has been added to | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who added the logo | [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] + + diff --git a/docs/StoreLogoDeletedEvent.md b/docs/StoreLogoDeletedEvent.md new file mode 100644 index 00000000..0e9624fa --- /dev/null +++ b/docs/StoreLogoDeletedEvent.md @@ -0,0 +1,15 @@ +# Flipdish.StoreLogoDeletedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | ID of store that the logo has been added to | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who removed the logo | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/StoreLogoUpdatedEvent.md b/docs/StoreLogoUpdatedEvent.md new file mode 100644 index 00000000..7f6f0bea --- /dev/null +++ b/docs/StoreLogoUpdatedEvent.md @@ -0,0 +1,15 @@ +# Flipdish.StoreLogoUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | ID of store that the logo has been added to | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who updated the logo | [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] + + diff --git a/docs/StoreMenuAssignedEvent.md b/docs/StoreMenuAssignedEvent.md new file mode 100644 index 00000000..527e46f2 --- /dev/null +++ b/docs/StoreMenuAssignedEvent.md @@ -0,0 +1,16 @@ +# 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) | User who assigned the menu to the store | [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] + + diff --git a/docs/StoreNote.md b/docs/StoreNote.md index f102ad8b..07a1ad1b 100644 --- a/docs/StoreNote.md +++ b/docs/StoreNote.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**userId** | **Number** | User identifier | [optional] -**createTime** | **Date** | Create time | [optional] -**note** | **String** | Note | [optional] +**UserId** | **Number** | User identifier | [optional] +**CreateTime** | **Date** | Create time | [optional] +**Note** | **String** | Note | [optional] diff --git a/docs/StoreOpeningHoursUpdatedEvent.md b/docs/StoreOpeningHoursUpdatedEvent.md index 4b419ae5..4a73ee11 100644 --- a/docs/StoreOpeningHoursUpdatedEvent.md +++ b/docs/StoreOpeningHoursUpdatedEvent.md @@ -3,12 +3,28 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**storeId** | **Number** | Store Id | [optional] -**user** | [**UserEventInfo**](UserEventInfo.md) | Info User | [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] +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which updated opening hours for this store | [optional] +**DeliveryType** | **String** | Type of opening hours Delivery / Pickup | [optional] +**BusinessHoursPeriodOld** | [**BusinessHoursPeriod**](BusinessHoursPeriod.md) | The period that was updated | [optional] +**BusinessHoursPeriod** | [**BusinessHoursPeriod**](BusinessHoursPeriod.md) | The new values of the period | [optional] +**Description** | **String** | Description | [optional] +**FlipdishEventId** | **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] + + + +## Enum: DeliveryTypeEnum + + +* `Delivery` (value: `"Delivery"`) + +* `Pickup` (value: `"Pickup"`) + + diff --git a/docs/StoreOrderCapacityApi.md b/docs/StoreOrderCapacityApi.md new file mode 100644 index 00000000..f6c8a5ea --- /dev/null +++ b/docs/StoreOrderCapacityApi.md @@ -0,0 +1,123 @@ +# 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} | Get store's order capacity configuration +[**updateStoreOrderCapacityConfig**](StoreOrderCapacityApi.md#updateStoreOrderCapacityConfig) | **POST** /api/v1.0/{appId}/storeordercapacity/{storeId} | Create or update a store's order capacity configuration + + + +# **getStoreOrderCapacity** +> RestApiResultStoreOrderCapacityConfig getStoreOrderCapacity(appId, storeId, deliveryType) + +Get store's order capacity configuration + +### Example +```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 apiInstance = new Flipdish.StoreOrderCapacityApi(); + +var appId = "appId_example"; // String | App Name Id + +var storeId = 56; // Number | Store Id + +var deliveryType = "deliveryType_example"; // String | Delivery / Pickup + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getStoreOrderCapacity(appId, storeId, deliveryType, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **storeId** | **Number**| Store Id | + **deliveryType** | **String**| Delivery / Pickup | + +### 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 + + +# **updateStoreOrderCapacityConfig** +> updateStoreOrderCapacityConfig(storeId, deliveryType, newOrderCapacityConfig, appId) + +Create or update a store's order capacity configuration + +### Example +```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 apiInstance = new Flipdish.StoreOrderCapacityApi(); + +var storeId = 56; // Number | Store identifier + +var deliveryType = "deliveryType_example"; // String | Delivery / Pickup + +var newOrderCapacityConfig = new Flipdish.StoreOrderCapacityConfigEditModel(); // StoreOrderCapacityConfigEditModel | new order capacity configuration + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.updateStoreOrderCapacityConfig(storeId, deliveryType, newOrderCapacityConfig, appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + **deliveryType** | **String**| Delivery / Pickup | + **newOrderCapacityConfig** | [**StoreOrderCapacityConfigEditModel**](StoreOrderCapacityConfigEditModel.md)| new order capacity configuration | + **appId** | **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/StoreOrderCapacityConfig.md b/docs/StoreOrderCapacityConfig.md new file mode 100644 index 00000000..ea5c60cc --- /dev/null +++ b/docs/StoreOrderCapacityConfig.md @@ -0,0 +1,22 @@ +# 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..9e638fbd --- /dev/null +++ b/docs/StoreOrderCapacityConfigEditModel.md @@ -0,0 +1,8 @@ +# 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..a45d465c --- /dev/null +++ b/docs/StoreOrderCapacityPeriod.md @@ -0,0 +1,34 @@ +# 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..d8d7513f --- /dev/null +++ b/docs/StorePreOrderConfigUpdatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.StorePreOrderConfigUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which deleted delivery zone for this store | [optional] +**Description** | **String** | Description | [optional] +**PreOrderConfig** | [**PreOrderConfig**](PreOrderConfig.md) | Pre Order Configuration | [optional] +**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] + + diff --git a/docs/StorePublishedEvent.md b/docs/StorePublishedEvent.md new file mode 100644 index 00000000..11ae8a62 --- /dev/null +++ b/docs/StorePublishedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.StorePublishedEvent + +## 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) | User which published this store | [optional] +**Description** | **String** | Description | [optional] +**Store** | [**Store**](Store.md) | Published Store | [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] + + diff --git a/docs/StoreStatistics.md b/docs/StoreStatistics.md new file mode 100644 index 00000000..df51f03b --- /dev/null +++ b/docs/StoreStatistics.md @@ -0,0 +1,9 @@ +# 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 index 63b0f90e..8cf43268 100644 --- a/docs/StoreSummary.md +++ b/docs/StoreSummary.md @@ -3,11 +3,14 @@ ## 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] +**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) | Latitude and longitude of the store | [optional] +**StoreTimezone** | **String** | Timezone of store | [optional] +**StoreGroupId** | **Number** | Store group id of store | [optional] @@ -238,6 +241,8 @@ Name | Type | Description | Notes * `TWD` (value: `"TWD"`) +* `BMD` (value: `"BMD"`) + diff --git a/docs/StoreUnarchivedEvent.md b/docs/StoreUnarchivedEvent.md new file mode 100644 index 00000000..906f11e7 --- /dev/null +++ b/docs/StoreUnarchivedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.StoreUnarchivedEvent + +## 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) | User which unarchived this store | [optional] +**Description** | **String** | Description | [optional] +**Store** | [**Store**](Store.md) | Unarchived Store | [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] + + diff --git a/docs/StoreUnpublishedEvent.md b/docs/StoreUnpublishedEvent.md new file mode 100644 index 00000000..71093747 --- /dev/null +++ b/docs/StoreUnpublishedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.StoreUnpublishedEvent + +## 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) | User which unpublished this store | [optional] +**Description** | **String** | Description | [optional] +**Store** | [**Store**](Store.md) | Unpublished Store | [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] + + diff --git a/docs/StoreUpdatedEvent.md b/docs/StoreUpdatedEvent.md index 4f593e0e..4d920510 100644 --- a/docs/StoreUpdatedEvent.md +++ b/docs/StoreUpdatedEvent.md @@ -3,12 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**storeId** | **Number** | Store Id | [optional] -**user** | [**UserEventInfo**](UserEventInfo.md) | Info User | [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] +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which updated this store | [optional] +**Description** | **String** | Description | [optional] +**Store** | [**Store**](Store.md) | Updated Store | [optional] +**FlipdishEventId** | **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] diff --git a/docs/StoresApi.md b/docs/StoresApi.md index f8450763..de877095 100644 --- a/docs/StoresApi.md +++ b/docs/StoresApi.md @@ -4,15 +4,1115 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- +[**archiveStore**](StoresApi.md#archiveStore) | **POST** /api/v1.0/stores/{storeId}/archive | Archive store +[**assignMenu**](StoresApi.md#assignMenu) | **POST** /api/v1.0/stores/{storeId}/menu/{menuId} | Assign Menu to Store +[**cloneStore**](StoresApi.md#cloneStore) | **POST** /api/v1.0/stores/{storeId}/clone | Clone store with store clone settings +[**createBusinessHoursOverrideByStoreId**](StoresApi.md#createBusinessHoursOverrideByStoreId) | **POST** /api/v1.0/stores/{storeId}/businesshoursoverrides | Create Business Hours Override for a store +[**createStore**](StoresApi.md#createStore) | **POST** /api/v1.0/stores | Create store with Store Group identifier +[**deleteBusinessHoursOverride**](StoresApi.md#deleteBusinessHoursOverride) | **DELETE** /api/v1.0/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId} | Delete Business Hours Override for a store +[**getBankAccountForStore**](StoresApi.md#getBankAccountForStore) | **GET** /api/v1.0/stores/{storeId}/bankaccount | Get Stores Bank Account Id +[**getBusinessHours**](StoresApi.md#getBusinessHours) | **GET** /api/v1.0/stores/{storeId}/availability/{deliveryType} | Get Business hours +[**getBusinessHoursOverrideByStoreId**](StoresApi.md#getBusinessHoursOverrideByStoreId) | **GET** /api/v1.0/stores/{storeId}/businesshoursoverrides | Get business hours overrides by store identifier +[**getEndOfDayReport**](StoresApi.md#getEndOfDayReport) | **GET** /api/v1.0/stores/{storeId}/endofdayreport | Get store end of day report +[**getPreOrderConfig**](StoresApi.md#getPreOrderConfig) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | Get the pre order config for a store, by type +[**getPreOrderPreview**](StoresApi.md#getPreOrderPreview) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/preview | Get the Preview times of the pre-order configuration +[**getProcessingFeeConfigsByStoreId**](StoresApi.md#getProcessingFeeConfigsByStoreId) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs | Get processing fee configs by store identifier +[**getProcessingFeeConfigsByStoreIdAndPaymentAccountType**](StoresApi.md#getProcessingFeeConfigsByStoreIdAndPaymentAccountType) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs/{paymentAccountType} | Get processing fee configs by store identifier [**getStoreById**](StoresApi.md#getStoreById) | **GET** /api/v1.0/stores/{storeId} | Get store by identifier -[**getStores**](StoresApi.md#getStores) | **GET** /api/v1.0/stores | Get all stores +[**getStoreHeadersByAppId**](StoresApi.md#getStoreHeadersByAppId) | **GET** /api/v1.0/{appId}/stores/header | Get all stores by app name id +[**getStoreNetSales**](StoresApi.md#getStoreNetSales) | **GET** /api/v1.0/{appId}/stores/stats | Get stores statistics by app name id and storeIds +[**getStores**](StoresApi.md#getStores) | **GET** /api/v1.0/stores | Get all stores, excluding archived ones +[**getStoresByAppId**](StoresApi.md#getStoresByAppId) | **GET** /api/v1.0/{appId}/stores | Get all stores by app name id +[**publishStore**](StoresApi.md#publishStore) | **POST** /api/v1.0/stores/{storeId}/publish | Publish store +[**setBusinessHours**](StoresApi.md#setBusinessHours) | **POST** /api/v1.0/stores/{storeId}/availability/{deliveryType} | Set Business hours +[**setPreOrdeEnabled**](StoresApi.md#setPreOrdeEnabled) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/enabled | UPDATE pre order config for a store, by type +[**unpublishStore**](StoresApi.md#unpublishStore) | **POST** /api/v1.0/stores/{storeId}/unpublish | Unpublish store +[**updatePreOrderConfig**](StoresApi.md#updatePreOrderConfig) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | UPDATE pre order config for a store, by type +[**updateStore**](StoresApi.md#updateStore) | **POST** /api/v1.0/stores/{storeId} | Update store by identifier +[**updateStoreAddress**](StoresApi.md#updateStoreAddress) | **POST** /api/v1.0/stores/{storeId}/address | Update store address +[**updateStoreAddressCoordinates**](StoresApi.md#updateStoreAddressCoordinates) | **POST** /api/v1.0/stores/{storeId}/address/coordinates | Update store address coordinates + +# **archiveStore** +> archiveStore(storeId) + +Archive store + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.archiveStore(storeId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store 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 + + +# **assignMenu** +> RestApiArrayResultRestApiDefaultResponse assignMenu(storeId, menuId) + +Assign Menu to Store + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + +var menuId = 56; // Number | Id of Menu to assign to store + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.assignMenu(storeId, menuId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + **menuId** | **Number**| Id of Menu to assign to store | + +### 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) + +Clone store with store clone settings + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + +var settings = new Flipdish.StoreCloneSettings(); // StoreCloneSettings | Settings for cloning the store + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.cloneStore(storeId, settings, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + **settings** | [**StoreCloneSettings**](StoreCloneSettings.md)| Settings for cloning the store | + +### 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 + + +# **createBusinessHoursOverrideByStoreId** +> RestApiResultBusinessHoursOverride createBusinessHoursOverrideByStoreId(storeId, businessHoursOverride) + +Create Business Hours Override for a store + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + +var businessHoursOverride = new Flipdish.BusinessHoursOverrideBase(); // BusinessHoursOverrideBase | Business Hours Override + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.createBusinessHoursOverrideByStoreId(storeId, businessHoursOverride, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + **businessHoursOverride** | [**BusinessHoursOverrideBase**](BusinessHoursOverrideBase.md)| Business Hours Override | + +### 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 + + +# **createStore** +> RestApiResultStore createStore(storeGroupId, store) + +Create store with Store Group identifier + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeGroupId = 56; // Number | Store Group identifier + +var store = new Flipdish.StoreCreateBase(); // StoreCreateBase | Store + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.createStore(storeGroupId, store, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **Number**| Store Group identifier | + **store** | [**StoreCreateBase**](StoreCreateBase.md)| Store | + +### 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 + + +# **deleteBusinessHoursOverride** +> RestApiArrayResultRestApiDefaultResponse deleteBusinessHoursOverride(storeId, businessHoursOverrideId) + +Delete Business Hours Override for a store + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | + +var businessHoursOverrideId = 56; // Number | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.deleteBusinessHoursOverride(storeId, businessHoursOverrideId, callback); +``` + +### 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) + +Get Stores Bank Account Id + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getBankAccountForStore(storeId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + +### 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 + + +# **getBusinessHours** +> RestApiArrayResultBusinessHoursPeriod getBusinessHours(storeId, deliveryType) + +Get Business hours + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + +var deliveryType = "deliveryType_example"; // String | Delivery type + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getBusinessHours(storeId, deliveryType, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + **deliveryType** | **String**| Delivery type | + +### 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 + + +# **getBusinessHoursOverrideByStoreId** +> RestApiPaginationResultBusinessHoursOverride getBusinessHoursOverrideByStoreId(storeId, opts) + +Get business hours overrides by store identifier + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + +var opts = { + 'after': new Date("2013-10-20T19:20:30+01:00"), // Date | Return results that ended after this datetime. Default value is the current datetime. + 'page': 56, // Number | Requested page index + 'limit': 56 // Number | Requested page limit +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getBusinessHoursOverrideByStoreId(storeId, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + **after** | **Date**| Return results that ended after this datetime. Default value is the current datetime. | [optional] + **page** | **Number**| Requested page index | [optional] + **limit** | **Number**| Requested page limit | [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 + + +# **getEndOfDayReport** +> RestApiResultStoreEndOfDayReport getEndOfDayReport(storeId, opts) + +Get store end of day report + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + +var opts = { + '_date': new Date("2013-10-20T19:20:30+01:00") // Date | Store identifier +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getEndOfDayReport(storeId, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + **_date** | **Date**| Store identifier | [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 + + +# **getPreOrderConfig** +> RestApiResultPreOrderConfig getPreOrderConfig(storeId, deliveryType) + +Get the pre order config for a store, by type + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + +var deliveryType = "deliveryType_example"; // String | \"delivery\" or \"pickup\" + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getPreOrderConfig(storeId, deliveryType, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + **deliveryType** | **String**| \"delivery\" or \"pickup\" | + +### 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 + + +# **getPreOrderPreview** +> RestApiArrayResultPreOrderTime getPreOrderPreview(storeId, deliveryType, opts) + +Get the Preview times of the pre-order configuration + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + +var deliveryType = "deliveryType_example"; // String | \"delivery\" or \"pickup\" + +var 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. +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getPreOrderPreview(storeId, deliveryType, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + **deliveryType** | **String**| \"delivery\" or \"pickup\" | + **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**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + + +# **getProcessingFeeConfigsByStoreId** +> RestApiArrayResultProcessingFeeConfig getProcessingFeeConfigsByStoreId(storeId, opts) + +Get processing fee configs by store identifier + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + +var opts = { + 'appNameId': "appNameId_example" // String | App Name Id(Not used, still here for compatability reasons) +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getProcessingFeeConfigsByStoreId(storeId, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + **appNameId** | **String**| App Name Id(Not used, still here for compatability reasons) | [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 + + +# **getProcessingFeeConfigsByStoreIdAndPaymentAccountType** +> RestApiResultProcessingFeeConfig getProcessingFeeConfigsByStoreIdAndPaymentAccountType(storeId, paymentAccountType, opts) + +Get processing fee configs by store identifier + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + +var paymentAccountType = "paymentAccountType_example"; // String | + +var opts = { + 'appNameId': "appNameId_example" // String | App Name Id(Not used, still here for compatability reasons) +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getProcessingFeeConfigsByStoreIdAndPaymentAccountType(storeId, paymentAccountType, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + **paymentAccountType** | **String**| | + **appNameId** | **String**| App Name Id(Not used, still here for compatability reasons) | [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 + # **getStoreById** > RestApiResultStore getStoreById(storeId) -Get store by identifier +Get store by identifier + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getStoreById(storeId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + +### 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 + + +# **getStoreHeadersByAppId** +> RestApiPaginationResultStoreHeader getStoreHeadersByAppId(appId, opts) + +Get all stores by app name id + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var appId = "appId_example"; // String | App Name Id + +var opts = { + 'storeNameQuery': "storeNameQuery_example", // String | + 'page': 56, // Number | + 'limit': 56 // Number | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getStoreHeadersByAppId(appId, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **storeNameQuery** | **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 + + +# **getStoreNetSales** +> RestApiArrayResultStoreStatistics getStoreNetSales(appId, storeId) + +Get stores statistics by app name id and storeIds + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var appId = "appId_example"; // String | App Name Id + +var storeId = [3.4]; // [Number] | Store Ids + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getStoreNetSales(appId, storeId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **storeId** | [**[Number]**](Number.md)| Store Ids | + +### 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 + + +# **getStores** +> RestApiPaginationResultStore getStores(opts) + +Get all stores, excluding archived ones + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var opts = { + 'searchQuery': "searchQuery_example", // String | Search query + 'page': 56, // Number | Requested page index + 'limit': 56, // Number | Requested page limit + 'storeGroupId': 56 // Number | Store Group Id +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getStores(opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **searchQuery** | **String**| Search query | [optional] + **page** | **Number**| Requested page index | [optional] + **limit** | **Number**| Requested page limit | [optional] + **storeGroupId** | **Number**| Store Group Id | [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 + + +# **getStoresByAppId** +> RestApiPaginationResultStore getStoresByAppId(appId, opts) + +Get all stores by app name id + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var appId = "appId_example"; // String | App Name Id + +var opts = { + 'searchQuery': "searchQuery_example", // String | Search query + 'page': 56, // Number | Requested page index + 'limit': 56 // Number | Requested page limit +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getStoresByAppId(appId, opts, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **searchQuery** | **String**| Search query | [optional] + **page** | **Number**| Requested page index | [optional] + **limit** | **Number**| Requested page limit | [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 + + +# **publishStore** +> publishStore(storeId) + +Publish store + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.publishStore(storeId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store 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 + + +# **setBusinessHours** +> RestApiResultBusinessHoursPeriod setBusinessHours(storeId, deliveryType, businessHoursPeriod) + +Set Business hours ### Example ```javascript @@ -27,6 +1127,10 @@ var apiInstance = new Flipdish.StoresApi(); var storeId = 56; // Number | Store identifier +var deliveryType = "deliveryType_example"; // String | Delivery type + +var businessHoursPeriod = new Flipdish.BusinessHoursPeriodBase(); // BusinessHoursPeriodBase | Business Hours Period + var callback = function(error, data, response) { if (error) { @@ -35,7 +1139,7 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getStoreById(storeId, callback); +apiInstance.setBusinessHours(storeId, deliveryType, businessHoursPeriod, callback); ``` ### Parameters @@ -43,10 +1147,67 @@ apiInstance.getStoreById(storeId, callback); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **storeId** | **Number**| Store identifier | + **deliveryType** | **String**| Delivery type | + **businessHoursPeriod** | [**BusinessHoursPeriodBase**](BusinessHoursPeriodBase.md)| Business Hours Period | ### Return type -[**RestApiResultStore**](RestApiResultStore.md) +[**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 + + +# **setPreOrdeEnabled** +> RestApiArrayResultRestApiDefaultResponse setPreOrdeEnabled(storeId, deliveryType, enabled) + +UPDATE pre order config for a store, by type + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + +var deliveryType = "deliveryType_example"; // String | \"delivery\" or \"pickup\" + +var enabled = true; // Boolean | Update pre order config values + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.setPreOrdeEnabled(storeId, deliveryType, enabled, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + **deliveryType** | **String**| \"delivery\" or \"pickup\" | + **enabled** | **Boolean**| Update pre order config values | + +### Return type + +[**RestApiArrayResultRestApiDefaultResponse**](RestApiArrayResultRestApiDefaultResponse.md) ### Authorization @@ -57,11 +1218,219 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, text/json, application/xml, text/xml - -# **getStores** -> RestApiPaginationResultStore getStores(opts) + +# **unpublishStore** +> unpublishStore(storeId) + +Unpublish store + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.unpublishStore(storeId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store 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 + + +# **updatePreOrderConfig** +> RestApiArrayResultRestApiDefaultResponse updatePreOrderConfig(storeId, deliveryType, preOrderConfig) + +UPDATE pre order config for a store, by type + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier -Get all stores +var deliveryType = "deliveryType_example"; // String | \"delivery\" or \"pickup\" + +var preOrderConfig = new Flipdish.PreOrderConfig(); // PreOrderConfig | Update pre order config values + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.updatePreOrderConfig(storeId, deliveryType, preOrderConfig, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + **deliveryType** | **String**| \"delivery\" or \"pickup\" | + **preOrderConfig** | [**PreOrderConfig**](PreOrderConfig.md)| Update pre order config values | + +### 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) + +Update store by identifier + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store Group identifier + +var store = new Flipdish.StoreBase(); // StoreBase | Store + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.updateStore(storeId, store, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store Group identifier | + **store** | [**StoreBase**](StoreBase.md)| Store | + +### 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 + + +# **updateStoreAddress** +> RestApiResultStoreAddress updateStoreAddress(storeId, storeAddress) + +Update store address + +### Example +```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 apiInstance = new Flipdish.StoresApi(); + +var storeId = 56; // Number | Store identifier + +var storeAddress = new Flipdish.StoreAddressBase(); // StoreAddressBase | Store address + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.updateStoreAddress(storeId, storeAddress, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store identifier | + **storeAddress** | [**StoreAddressBase**](StoreAddressBase.md)| Store address | + +### 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 + + +# **updateStoreAddressCoordinates** +> RestApiResultCoordinates updateStoreAddressCoordinates(storeId, coordinates, opts) + +Update store address coordinates ### Example ```javascript @@ -74,10 +1443,12 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.StoresApi(); +var storeId = 56; // Number | Store identifier + +var coordinates = new Flipdish.Coordinates(); // Coordinates | Store address coordinates + var opts = { - 'searchQuery': "searchQuery_example", // String | Search query - 'page': 56, // Number | Requested page index - 'limit': 56 // Number | Requested page limit + 'appNameId': "appNameId_example" // String | App Name Id(Not used, still here for compatability reasons) }; var callback = function(error, data, response) { @@ -87,20 +1458,20 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getStores(opts, callback); +apiInstance.updateStoreAddressCoordinates(storeId, coordinates, opts, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **searchQuery** | **String**| Search query | [optional] - **page** | **Number**| Requested page index | [optional] - **limit** | **Number**| Requested page limit | [optional] + **storeId** | **Number**| Store identifier | + **coordinates** | [**Coordinates**](Coordinates.md)| Store address coordinates | + **appNameId** | **String**| App Name Id(Not used, still here for compatability reasons) | [optional] ### Return type -[**RestApiPaginationResultStore**](RestApiPaginationResultStore.md) +[**RestApiResultCoordinates**](RestApiResultCoordinates.md) ### Authorization @@ -108,6 +1479,6 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded - **Accept**: application/json, text/json, application/xml, text/xml diff --git a/docs/StripeAccountLinkRequest.md b/docs/StripeAccountLinkRequest.md new file mode 100644 index 00000000..6bfa89fd --- /dev/null +++ b/docs/StripeAccountLinkRequest.md @@ -0,0 +1,33 @@ +# 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..5d2949bf --- /dev/null +++ b/docs/StripeConnectedAccount.md @@ -0,0 +1,64 @@ +# 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] + + + +## 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"`) + + + + diff --git a/docs/StripeConnectedAccountInfo.md b/docs/StripeConnectedAccountInfo.md new file mode 100644 index 00000000..e3aeb4a1 --- /dev/null +++ b/docs/StripeConnectedAccountInfo.md @@ -0,0 +1,46 @@ +# 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] + + + +## Enum: AccountStatusEnum + + +* `Disabled` (value: `"Disabled"`) + +* `Enabled` (value: `"Enabled"`) + +* `AdditionalInformationRequired` (value: `"AdditionalInformationRequired"`) + +* `PendingVerification` (value: `"PendingVerification"`) + +* `Unverified` (value: `"Unverified"`) + +* `Rejected` (value: `"Rejected"`) + +* `UpdateExternalAccount` (value: `"UpdateExternalAccount"`) + + + + + +## Enum: CardPaymentStatusEnum + + +* `Inactive` (value: `"Inactive"`) + +* `Pending` (value: `"Pending"`) + +* `Active` (value: `"Active"`) + +* `Unrequested` (value: `"Unrequested"`) + + + + diff --git a/docs/StripeCustomConnectApi.md b/docs/StripeCustomConnectApi.md new file mode 100644 index 00000000..b45257bb --- /dev/null +++ b/docs/StripeCustomConnectApi.md @@ -0,0 +1,388 @@ +# 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 | Create a new Bank Account and Stripe connected account +[**createStripeConnectedAccount**](StripeCustomConnectApi.md#createStripeConnectedAccount) | **POST** /api/v1.0/{appId}/customconnect/{bankAccountId}/create-update-account | Create or update a Stripe connected account associated with the bank account of bankAccountId +[**createStripeConnectedAccountLink**](StripeCustomConnectApi.md#createStripeConnectedAccountLink) | **POST** /api/v1.0/{appId}/customconnect/{stripeConnectedAccountId}/create-account-link | Gets a single-use Stripe URL for the given account +[**getVerificationStatus**](StripeCustomConnectApi.md#getVerificationStatus) | **GET** /api/v1.0/{appId}/customconnect/verification-status | Gets the current verification status of the given connected account +[**setBankAccountBusinessType**](StripeCustomConnectApi.md#setBankAccountBusinessType) | **POST** /api/v1.0/{appId}/customconnect/bank-account/{bankAccountId}/businesstype | Update bank account's BusinessType and create a Stripe Connected Account +[**stripeCustomConnectRefresh**](StripeCustomConnectApi.md#stripeCustomConnectRefresh) | **GET** /api/v1.0/{appId}/customconnect/refresh-link | +[**updateBankAccountDetails**](StripeCustomConnectApi.md#updateBankAccountDetails) | **POST** /api/v1.0/{appId}/customconnect/{bankAccountId}/update-bank-account-details | Update bank account details + + + +# **createBankAccountAndConnectedAccount** +> RestApiResultBankAccountDetail createBankAccountAndConnectedAccount(appId, account) + +Create a new Bank Account and Stripe connected account + +### Example +```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 apiInstance = new Flipdish.StripeCustomConnectApi(); + +var appId = "appId_example"; // String | App Name + +var account = new Flipdish.BankAccountCreate(); // BankAccountCreate | Account to be created + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.createBankAccountAndConnectedAccount(appId, account, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name | + **account** | [**BankAccountCreate**](BankAccountCreate.md)| Account to be created | + +### 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 + + +# **createStripeConnectedAccount** +> RestApiResultStripeConnectedAccount createStripeConnectedAccount(appId, bankAccountId) + +Create or update a Stripe connected account associated with the bank account of bankAccountId + +### Example +```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 apiInstance = new Flipdish.StripeCustomConnectApi(); + +var appId = "appId_example"; // String | App Name Id + +var bankAccountId = 56; // Number | Bank Account Id + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.createStripeConnectedAccount(appId, bankAccountId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **bankAccountId** | **Number**| Bank Account Id | + +### 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 + + +# **createStripeConnectedAccountLink** +> RestApiResultStripeConnectedAccount createStripeConnectedAccountLink(appId, stripeConnectedAccountId, stripeAccountLinkRequest) + +Gets a single-use Stripe URL for the given account + +### Example +```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 apiInstance = new Flipdish.StripeCustomConnectApi(); + +var appId = "appId_example"; // String | App Name + +var stripeConnectedAccountId = "stripeConnectedAccountId_example"; // String | Stripe Connected Account Id + +var stripeAccountLinkRequest = new Flipdish.StripeAccountLinkRequest(); // StripeAccountLinkRequest | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.createStripeConnectedAccountLink(appId, stripeConnectedAccountId, stripeAccountLinkRequest, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name | + **stripeConnectedAccountId** | **String**| Stripe Connected Account Id | + **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 + + +# **getVerificationStatus** +> RestApiResultStripeConnectedAccount getVerificationStatus(appId, stripeConnectedAccountId) + +Gets the current verification status of the given connected account + +### Example +```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 apiInstance = new Flipdish.StripeCustomConnectApi(); + +var appId = "appId_example"; // String | + +var stripeConnectedAccountId = "stripeConnectedAccountId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getVerificationStatus(appId, stripeConnectedAccountId, callback); +``` + +### 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 + + +# **setBankAccountBusinessType** +> RestApiResultBankAccountDetail setBankAccountBusinessType(appId, bankAccountId, businessType) + +Update bank account's BusinessType and create a Stripe Connected Account + +### Example +```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 apiInstance = new Flipdish.StripeCustomConnectApi(); + +var appId = "appId_example"; // String | App Name + +var bankAccountId = 56; // Number | Bank Account Id + +var businessType = "businessType_example"; // String | Bank Account business type + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.setBankAccountBusinessType(appId, bankAccountId, businessType, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name | + **bankAccountId** | **Number**| Bank Account Id | + **businessType** | **String**| Bank Account business type | + +### 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 + + +# **stripeCustomConnectRefresh** +> Object stripeCustomConnectRefresh(linkRequestId, appId) + + + +### Example +```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 apiInstance = new Flipdish.StripeCustomConnectApi(); + +var linkRequestId = 56; // Number | + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.stripeCustomConnectRefresh(linkRequestId, appId, callback); +``` + +### 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) + +Update bank account details + +### Example +```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 apiInstance = new Flipdish.StripeCustomConnectApi(); + +var appId = "appId_example"; // String | App Name Id + +var bankAccountId = 56; // Number | Bank Account Id + +var updateRequest = new Flipdish.BankAccountDetailsUpdateRequest(); // BankAccountDetailsUpdateRequest | fields to be updated + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.updateBankAccountDetails(appId, bankAccountId, updateRequest, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App Name Id | + **bankAccountId** | **Number**| Bank Account Id | + **updateRequest** | [**BankAccountDetailsUpdateRequest**](BankAccountDetailsUpdateRequest.md)| fields to be updated | + +### 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 + diff --git a/docs/StripeTerminalPrivateKey.md b/docs/StripeTerminalPrivateKey.md new file mode 100644 index 00000000..3d846900 --- /dev/null +++ b/docs/StripeTerminalPrivateKey.md @@ -0,0 +1,9 @@ +# Flipdish.StripeTerminalPrivateKey + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Location** | **String** | Registered location of the terminal | [optional] +**Secret** | **String** | Secret used to pass to stripe to attach terminal | [optional] + + diff --git a/docs/StuartApi.md b/docs/StuartApi.md new file mode 100644 index 00000000..19d7ca04 --- /dev/null +++ b/docs/StuartApi.md @@ -0,0 +1,217 @@ +# 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} | Cancel a stuart job +[**stuartGetJob**](StuartApi.md#stuartGetJob) | **GET** /api/v1.0/stuart/jobs/{jobId} | Get start job details +[**stuartGetStuartSettings**](StuartApi.md#stuartGetStuartSettings) | **GET** /api/v1.0/stuart/settings/{storeId} | Get stuart settings for a store +[**stuartPostStuartSettings**](StuartApi.md#stuartPostStuartSettings) | **POST** /api/v1.0/stuart/settings/{storeId} | Set stuart settings for a store + + + +# **stuartCancelJob** +> Object stuartCancelJob(jobId, storeId) + +Cancel a stuart job + +### Example +```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 apiInstance = new Flipdish.StuartApi(); + +var jobId = 56; // Number | Stuart job identifier + +var storeId = 56; // Number | Store identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.stuartCancelJob(jobId, storeId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jobId** | **Number**| Stuart job identifier | + **storeId** | **Number**| Store 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 + + +# **stuartGetJob** +> RestApiResultJobResponse stuartGetJob(jobId, storeId) + +Get start job details + +### Example +```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 apiInstance = new Flipdish.StuartApi(); + +var jobId = 56; // Number | Stuart job identifier + +var storeId = 56; // Number | Store identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.stuartGetJob(jobId, storeId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jobId** | **Number**| Stuart job identifier | + **storeId** | **Number**| Store identifier | + +### 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 + + +# **stuartGetStuartSettings** +> RestApiResultStuartSettings stuartGetStuartSettings(storeId) + +Get stuart settings for a store + +### Example +```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 apiInstance = new Flipdish.StuartApi(); + +var storeId = 56; // Number | Store Identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.stuartGetStuartSettings(storeId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store Identifier | + +### 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 + + +# **stuartPostStuartSettings** +> Object stuartPostStuartSettings(storeId, stuartSettings) + +Set stuart settings for a store + +### Example +```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 apiInstance = new Flipdish.StuartApi(); + +var storeId = 56; // Number | Store Identifier + +var stuartSettings = new Flipdish.StuartSettings(); // StuartSettings | Stuart settings model + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.stuartPostStuartSettings(storeId, stuartSettings, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| Store Identifier | + **stuartSettings** | [**StuartSettings**](StuartSettings.md)| Stuart settings model | + +### 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/StuartSettings.md b/docs/StuartSettings.md new file mode 100644 index 00000000..c41c64a0 --- /dev/null +++ b/docs/StuartSettings.md @@ -0,0 +1,54 @@ +# 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] +**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..4bece664 --- /dev/null +++ b/docs/StuartSettingsTransportPrices.md @@ -0,0 +1,14 @@ +# 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/SupportedCountry.md b/docs/SupportedCountry.md new file mode 100644 index 00000000..dd939b61 --- /dev/null +++ b/docs/SupportedCountry.md @@ -0,0 +1,56 @@ +# 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/Teammate.md b/docs/Teammate.md new file mode 100644 index 00000000..b88d69a2 --- /dev/null +++ b/docs/Teammate.md @@ -0,0 +1,52 @@ +# Flipdish.Teammate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TeammateId** | **String** | Unique indentifier | [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] + + + +## Enum: InvitationStatusEnum + + +* `Pending` (value: `"Pending"`) + +* `Accepted` (value: `"Accepted"`) + +* `Expired` (value: `"Expired"`) + + + + + +## Enum: AppAccessLevelEnum + + +* `None` (value: `"None"`) + +* `Owner` (value: `"Owner"`) + +* `StoreOwner` (value: `"StoreOwner"`) + +* `ManagedOwner` (value: `"ManagedOwner"`) + +* `StoreManager` (value: `"StoreManager"`) + +* `StoreStaff` (value: `"StoreStaff"`) + +* `StoreReadOnlyAccess` (value: `"StoreReadOnlyAccess"`) + +* `FinanceManger` (value: `"FinanceManger"`) + + + + diff --git a/docs/TeammateBase.md b/docs/TeammateBase.md new file mode 100644 index 00000000..0e7803dd --- /dev/null +++ b/docs/TeammateBase.md @@ -0,0 +1,33 @@ +# 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] + + + +## Enum: AppAccessLevelEnum + + +* `None` (value: `"None"`) + +* `Owner` (value: `"Owner"`) + +* `StoreOwner` (value: `"StoreOwner"`) + +* `ManagedOwner` (value: `"ManagedOwner"`) + +* `StoreManager` (value: `"StoreManager"`) + +* `StoreStaff` (value: `"StoreStaff"`) + +* `StoreReadOnlyAccess` (value: `"StoreReadOnlyAccess"`) + +* `FinanceManger` (value: `"FinanceManger"`) + + + + diff --git a/docs/TeammateDeletedEvent.md b/docs/TeammateDeletedEvent.md new file mode 100644 index 00000000..6038a3dc --- /dev/null +++ b/docs/TeammateDeletedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.TeammateDeletedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Teammate** | [**Teammate**](Teammate.md) | The deleted teammate | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who deleted the teammate | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/TeammateInviteAcceptedEvent.md b/docs/TeammateInviteAcceptedEvent.md new file mode 100644 index 00000000..fc0724ea --- /dev/null +++ b/docs/TeammateInviteAcceptedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.TeammateInviteAcceptedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Teammate** | [**Teammate**](Teammate.md) | The deleted teammate | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who accepted the invitation | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/TeammateInviteSentEvent.md b/docs/TeammateInviteSentEvent.md new file mode 100644 index 00000000..2d47b570 --- /dev/null +++ b/docs/TeammateInviteSentEvent.md @@ -0,0 +1,14 @@ +# Flipdish.TeammateInviteSentEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Teammate** | [**Teammate**](Teammate.md) | The deleted teammate | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who sent the invitation | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/TeammateUpdatedEvent.md b/docs/TeammateUpdatedEvent.md new file mode 100644 index 00000000..9897620e --- /dev/null +++ b/docs/TeammateUpdatedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.TeammateUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Teammate** | [**Teammate**](Teammate.md) | The deleted teammate | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who updated the teammate | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/TeammatesApi.md b/docs/TeammatesApi.md new file mode 100644 index 00000000..3ff4a06f --- /dev/null +++ b/docs/TeammatesApi.md @@ -0,0 +1,326 @@ +# 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 | Create teammate and send an invite. +[**deleteTeammate**](TeammatesApi.md#deleteTeammate) | **DELETE** /api/v1.0/{appId}/teammates/{id} | Delete teammate +[**getTeammateByAppIdAndTeammateId**](TeammatesApi.md#getTeammateByAppIdAndTeammateId) | **GET** /api/v1.0/{appId}/teammates/{id} | Get a teammates by email address +[**getTeammatesByAppId**](TeammatesApi.md#getTeammatesByAppId) | **GET** /api/v1.0/{appId}/teammates | Get all teammates +[**redeemInvitation**](TeammatesApi.md#redeemInvitation) | **GET** /api/v1.0/{appId}/teammates/redeem/{otc} | Redeem one-time code from invitation +[**updateTeammate**](TeammatesApi.md#updateTeammate) | **POST** /api/v1.0/{appId}/teammates/{id} | Update teammates (this method does not support Deltas!) + + + +# **createTeammate** +> RestApiResultTeammate createTeammate(appId, teammate) + +Create teammate and send an invite. + +### Example +```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 apiInstance = new Flipdish.TeammatesApi(); + +var appId = "appId_example"; // String | Application identifier + +var teammate = new Flipdish.CreateTeammate(); // CreateTeammate | teammate model + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.createTeammate(appId, teammate, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **teammate** | [**CreateTeammate**](CreateTeammate.md)| teammate model | + +### 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 + + +# **deleteTeammate** +> deleteTeammate(appId, id) + +Delete teammate + +### Example +```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 apiInstance = new Flipdish.TeammatesApi(); + +var appId = "appId_example"; // String | + +var id = "id_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.deleteTeammate(appId, id, callback); +``` + +### 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) + +Get a teammates by email address + +### Example +```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 apiInstance = new Flipdish.TeammatesApi(); + +var appId = "appId_example"; // String | + +var id = "id_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getTeammateByAppIdAndTeammateId(appId, id, callback); +``` + +### 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 + + +# **getTeammatesByAppId** +> RestApiArrayResultTeammate getTeammatesByAppId(appId) + +Get all teammates + +### Example +```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 apiInstance = new Flipdish.TeammatesApi(); + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getTeammatesByAppId(appId, callback); +``` + +### 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 + + +# **redeemInvitation** +> RestApiResultRedeemInvitationResult redeemInvitation(otc, appId) + +Redeem one-time code from invitation + +### Example +```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 apiInstance = new Flipdish.TeammatesApi(); + +var otc = "otc_example"; // String | + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.redeemInvitation(otc, appId, callback); +``` + +### 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 + + +# **updateTeammate** +> RestApiResultTeammate updateTeammate(appId, id, teammate) + +Update teammates (this method does not support Deltas!) + +### Example +```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 apiInstance = new Flipdish.TeammatesApi(); + +var appId = "appId_example"; // String | Application identifier + +var id = "id_example"; // String | teammate identifier + +var teammate = new Flipdish.TeammateBase(); // TeammateBase | teammate model + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.updateTeammate(appId, id, teammate, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **id** | **String**| teammate identifier | + **teammate** | [**TeammateBase**](TeammateBase.md)| teammate model | + +### 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 + diff --git a/docs/UpdateDriverNotificationToken.md b/docs/UpdateDriverNotificationToken.md new file mode 100644 index 00000000..d918a80e --- /dev/null +++ b/docs/UpdateDriverNotificationToken.md @@ -0,0 +1,8 @@ +# 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..e39a9df1 --- /dev/null +++ b/docs/UpdateDriverProfileModel.md @@ -0,0 +1,8 @@ +# Flipdish.UpdateDriverProfileModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | The new name of the Driver. | [optional] + + diff --git a/docs/UserAnsweredSignupQuestionsEvent.md b/docs/UserAnsweredSignupQuestionsEvent.md new file mode 100644 index 00000000..1f254d8b --- /dev/null +++ b/docs/UserAnsweredSignupQuestionsEvent.md @@ -0,0 +1,14 @@ +# Flipdish.UserAnsweredSignupQuestionsEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | The user | [optional] +**SignupAnswers** | **String** | The users answers | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/UserCreatedEvent.md b/docs/UserCreatedEvent.md new file mode 100644 index 00000000..97845fcc --- /dev/null +++ b/docs/UserCreatedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.UserCreatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | The user | [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] + + diff --git a/docs/UserDeletedEvent.md b/docs/UserDeletedEvent.md new file mode 100644 index 00000000..6f0b3c57 --- /dev/null +++ b/docs/UserDeletedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.UserDeletedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | The user | [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] + + diff --git a/docs/UserEventInfo.md b/docs/UserEventInfo.md index 86efd713..1d983669 100644 --- a/docs/UserEventInfo.md +++ b/docs/UserEventInfo.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**userId** | **Number** | User Id | [optional] -**userName** | **String** | UserName | [optional] -**userPhoneNumber** | **String** | User Phone Number | [optional] -**userEmail** | **String** | User Email | [optional] +**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/UserLoginEvent.md b/docs/UserLoginEvent.md new file mode 100644 index 00000000..76bf35c3 --- /dev/null +++ b/docs/UserLoginEvent.md @@ -0,0 +1,14 @@ +# Flipdish.UserLoginEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | The user | [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] + + diff --git a/docs/UserPasswordCreatedEvent.md b/docs/UserPasswordCreatedEvent.md new file mode 100644 index 00000000..74f39229 --- /dev/null +++ b/docs/UserPasswordCreatedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.UserPasswordCreatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | The user | [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] + + diff --git a/docs/UserUpdatedEvent.md b/docs/UserUpdatedEvent.md new file mode 100644 index 00000000..f1612d8d --- /dev/null +++ b/docs/UserUpdatedEvent.md @@ -0,0 +1,14 @@ +# Flipdish.UserUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | The user | [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] + + diff --git a/docs/UsersApi.md b/docs/UsersApi.md index 35e97ab4..e675edb7 100644 --- a/docs/UsersApi.md +++ b/docs/UsersApi.md @@ -4,9 +4,62 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- +[**getPreviousOrderCountForStore**](UsersApi.md#getPreviousOrderCountForStore) | **GET** /api/v1.0/users/{userId}/previousordercount/{storeId} | [**getRoles**](UsersApi.md#getRoles) | **GET** /api/v1.0/users/roles | Get role names + +# **getPreviousOrderCountForStore** +> RestApiStringResult getPreviousOrderCountForStore(userId, storeId) + + + +### Example +```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 apiInstance = new Flipdish.UsersApi(); + +var userId = 56; // Number | + +var storeId = 56; // Number | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getPreviousOrderCountForStore(userId, storeId, callback); +``` + +### 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 + # **getRoles** > RestApiStringArrayResult getRoles() diff --git a/docs/ValidationErrorResult.md b/docs/ValidationErrorResult.md index 5a5e0ac3..5f4ee324 100644 --- a/docs/ValidationErrorResult.md +++ b/docs/ValidationErrorResult.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fieldName** | **String** | Field name | [optional] -**errors** | **[String]** | List of errors relates to field | [optional] +**FieldName** | **String** | Field name | [optional] +**Errors** | **[String]** | List of errors relates to field | [optional] diff --git a/docs/Voucher.md b/docs/Voucher.md index 926f8405..f49af7b2 100644 --- a/docs/Voucher.md +++ b/docs/Voucher.md @@ -3,29 +3,50 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**voucherId** | **Number** | Voucher identifier | [optional] -**voucherType** | **String** | Voucher type | [optional] -**isEnabled** | **Boolean** | Is voucher enabled | [optional] -**isUsedUp** | **Boolean** | Is voucher used up | [optional] -**voucherSubType** | **String** | Voucher subtype | [optional] -**publicDescription** | **String** | Public description | [optional] -**privateDescription** | **String** | Private description | [optional] -**validFrom** | **Date** | Valid from | [optional] -**expiry** | **Date** | Expiry | [optional] -**voucherPayer** | **String** | Define who foots the bill for the voucher | [optional] -**isVisibleToStore** | **Boolean** | Define whether we show the fact that a voucher was applied to the restaurant | [optional] -**isReusable** | **Boolean** | Is reusable | [optional] -**isValidForDeliveryOrders** | **Boolean** | Is valid for delivery orders | [optional] -**isValidForPickupOrders** | **Boolean** | Is valid for pickup orders | [optional] -**isValidForCardOrders** | **Boolean** | Is valid for card orders | [optional] -**isValidForCashOrders** | **Boolean** | Is valid for cash orders | [optional] -**isValidForFirstOrderOnly** | **Boolean** | Is valid for first order only | [optional] -**minimumOrderAmount** | **Number** | Minimum order amount. | [optional] -**isValidOncePerCustomer** | **Boolean** | Is valid once per customer | [optional] -**autoApply** | **Boolean** | Auto apply | [optional] -**autoApplyOrder** | **Number** | Auto apply order. Lower numbers get applied first. | [optional] -**includeDeliveryFee** | **Boolean** | Include delivery fee | [optional] -**code** | **String** | Voucher code | [optional] +**VoucherId** | **Number** | Voucher Id | [optional] +**Status** | **String** | Voucher Status | [optional] +**VoucherType** | **String** | Voucher Type | [optional] +**VoucherSubType** | **String** | Voucher Sub Type | [optional] +**Currency** | **String** | Currency of the voucher | [optional] +**Stores** | **[Number]** | Stores that this voucher applies to | [optional] +**StoreNames** | **[String]** | Stores that this voucher applies to | [optional] +**AddItemDetails** | [**AddItemDetails**](AddItemDetails.md) | Add item details | [optional] +**CreditNoteDetails** | [**CreditNoteDetails**](CreditNoteDetails.md) | Credit note details | [optional] +**LumpDiscountDetails** | [**LumpDiscountDetails**](LumpDiscountDetails.md) | Lump discount details | [optional] +**PercentDiscountDetails** | [**PercentDiscountDetails**](PercentDiscountDetails.md) | Percent discount details | [optional] +**Code** | **String** | Voucher Code | [optional] +**Description** | **String** | Voucher Description (Visible on printout) | [optional] +**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] +**StartDate** | **Date** | Voucher Starts On (Time in UTC) | [optional] +**ExpiryDate** | **Date** | Voucher Expires On (Time in UTC) | [optional] + + + +## Enum: StatusEnum + + +* `Valid` (value: `"Valid"`) + +* `NotYetValid` (value: `"NotYetValid"`) + +* `Expired` (value: `"Expired"`) + +* `Used` (value: `"Used"`) + +* `Disabled` (value: `"Disabled"`) + + @@ -64,13 +85,235 @@ Name | Type | Description | Notes - -## Enum: VoucherPayerEnum + +## 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"`) -* `Flipdish` (value: `"Flipdish"`) +* `TWD` (value: `"TWD"`) -* `Store` (value: `"Store"`) +* `BMD` (value: `"BMD"`) diff --git a/docs/VoucherBase.md b/docs/VoucherBase.md new file mode 100644 index 00000000..401d2dda --- /dev/null +++ b/docs/VoucherBase.md @@ -0,0 +1,23 @@ +# Flipdish.VoucherBase + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **String** | Voucher Code | [optional] +**Description** | **String** | Voucher Description (Visible on printout) | [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] +**StartDate** | **Date** | Voucher Starts On (Time in UTC) | [optional] +**ExpiryDate** | **Date** | Voucher Expires On (Time in UTC) | [optional] + + diff --git a/docs/VoucherCreatedEvent.md b/docs/VoucherCreatedEvent.md new file mode 100644 index 00000000..b273659d --- /dev/null +++ b/docs/VoucherCreatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.VoucherCreatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **Number** | Voucher Id | [optional] +**EventName** | **String** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which created this voucher | [optional] +**Description** | **String** | Description | [optional] +**Voucher** | [**Voucher**](Voucher.md) | Created voucher | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/VoucherDataPoint.md b/docs/VoucherDataPoint.md new file mode 100644 index 00000000..4574cdd5 --- /dev/null +++ b/docs/VoucherDataPoint.md @@ -0,0 +1,10 @@ +# 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..eca06aca --- /dev/null +++ b/docs/VoucherDeletedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.VoucherDeletedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **Number** | Voucher Id | [optional] +**EventName** | **String** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which deleted this voucher | [optional] +**Description** | **String** | Description | [optional] +**Voucher** | [**Voucher**](Voucher.md) | Deleted voucher | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/VoucherSummary.md b/docs/VoucherSummary.md index 7387c69b..3b052ce8 100644 --- a/docs/VoucherSummary.md +++ b/docs/VoucherSummary.md @@ -3,16 +3,34 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**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] +**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: TypeEnum + +## Enum: StatusEnum + + +* `Valid` (value: `"Valid"`) + +* `NotYetValid` (value: `"NotYetValid"`) + +* `Expired` (value: `"Expired"`) + +* `Used` (value: `"Used"`) + +* `Disabled` (value: `"Disabled"`) + + + + + +## Enum: VoucherTypeEnum * `PercentageDiscount` (value: `"PercentageDiscount"`) @@ -26,8 +44,8 @@ Name | Type | Description | Notes - -## Enum: SubTypeEnum + +## Enum: VoucherSubTypeEnum * `None` (value: `"None"`) diff --git a/docs/VoucherUpdatedEvent.md b/docs/VoucherUpdatedEvent.md new file mode 100644 index 00000000..b47dd2d3 --- /dev/null +++ b/docs/VoucherUpdatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.VoucherUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **Number** | Voucher Id | [optional] +**EventName** | **String** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which updated this voucher | [optional] +**Description** | **String** | Description | [optional] +**Voucher** | [**Voucher**](Voucher.md) | Updated voucher | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/VoucherWithStats.md b/docs/VoucherWithStats.md new file mode 100644 index 00000000..aad07347 --- /dev/null +++ b/docs/VoucherWithStats.md @@ -0,0 +1,325 @@ +# 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] +**VoucherSubType** | **String** | Voucher Sub Type | [optional] +**Currency** | **String** | Currency of the voucher | [optional] +**Stores** | **[Number]** | Stores that this voucher applies to | [optional] +**StoreNames** | **[String]** | Stores that this voucher applies to | [optional] +**AddItemDetails** | [**AddItemDetails**](AddItemDetails.md) | Add item details | [optional] +**CreditNoteDetails** | [**CreditNoteDetails**](CreditNoteDetails.md) | Credit note details | [optional] +**LumpDiscountDetails** | [**LumpDiscountDetails**](LumpDiscountDetails.md) | Lump discount details | [optional] +**PercentDiscountDetails** | [**PercentDiscountDetails**](PercentDiscountDetails.md) | Percent discount details | [optional] +**Code** | **String** | Voucher Code | [optional] +**Description** | **String** | Voucher Description (Visible on printout) | [optional] +**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] +**StartDate** | **Date** | Voucher Starts On (Time in UTC) | [optional] +**ExpiryDate** | **Date** | Voucher Expires On (Time in UTC) | [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"`) + + + + + +## Enum: VoucherSubTypeEnum + + +* `None` (value: `"None"`) + +* `SignUp` (value: `"SignUp"`) + +* `Loyalty` (value: `"Loyalty"`) + +* `Loyalty25` (value: `"Loyalty25"`) + +* `Retention` (value: `"Retention"`) + +* `SecondaryRetention` (value: `"SecondaryRetention"`) + +* `Custom` (value: `"Custom"`) + + + + + +## 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/VouchersApi.md b/docs/VouchersApi.md index d9204525..fe48ecec 100644 --- a/docs/VouchersApi.md +++ b/docs/VouchersApi.md @@ -4,19 +4,18 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**deleteVoucherMetadata**](VouchersApi.md#deleteVoucherMetadata) | **DELETE** /api/v1.0/vouchers/{voucherId}/menu/{menuId}/store/{storeId}/metadata/{key} | Delete voucher metadata -[**getVoucherById**](VouchersApi.md#getVoucherById) | **GET** /api/v1.0/vouchers/{voucherId} | Get voucher by identifier -[**getVoucherMetadata**](VouchersApi.md#getVoucherMetadata) | **GET** /api/v1.0/vouchers/{voucherId}/menu/{menuId}/store/{storeId}/metadata | Get voucher metadata -[**getVoucherMetadata_0**](VouchersApi.md#getVoucherMetadata_0) | **GET** /api/v1.0/vouchers/{voucherId}/menu/{menuId}/store/{storeId}/metadata/{key} | Get voucher metadata -[**getVouchers**](VouchersApi.md#getVouchers) | **GET** /api/v1.0/vouchers | Get vouchers -[**setVoucherMetadata**](VouchersApi.md#setVoucherMetadata) | **PUT** /api/v1.0/vouchers/{voucherId}/menu/{menuId}/store/{storeId}/metadata/{key} | Add voucher metadata +[**createVoucher**](VouchersApi.md#createVoucher) | **POST** /api/v1.0/vouchers/{appId} | [PRIVATE API] Create voucher +[**getVoucherById**](VouchersApi.md#getVoucherById) | **GET** /api/v1.0/vouchers/{voucherId} | [PRIVATE API] Get voucher by identifier +[**getVoucherStatsById**](VouchersApi.md#getVoucherStatsById) | **GET** /api/v1.0/vouchers/stats/{voucherId} | [PRIVATE API] Get voucher stats by identifier +[**getVouchers**](VouchersApi.md#getVouchers) | **GET** /api/v1.0/{appId}/vouchers/summaries | [PRIVATE API] Get vouchers summaries for App Id +[**updateVoucher**](VouchersApi.md#updateVoucher) | **POST** /api/v1.0/vouchers/{voucherId} | [PRIVATE API] Updates voucher - -# **deleteVoucherMetadata** -> RestApiArrayResultRestApiDefaultResponse deleteVoucherMetadata(voucherId, menuId, storeId, key) + +# **createVoucher** +> RestApiResultVoucherWithStats createVoucher(appId, voucher) -Delete voucher metadata +[PRIVATE API] Create voucher ### Example ```javascript @@ -29,13 +28,9 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.VouchersApi(); -var voucherId = 56; // Number | +var appId = "appId_example"; // String | App Name Id -var menuId = 56; // Number | - -var storeId = 56; // Number | - -var key = "key_example"; // String | +var voucher = new Flipdish.CreateVoucher(); // CreateVoucher | Voucher Details var callback = function(error, data, response) { @@ -45,21 +40,19 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.deleteVoucherMetadata(voucherId, menuId, storeId, key, callback); +apiInstance.createVoucher(appId, voucher, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **voucherId** | **Number**| | - **menuId** | **Number**| | - **storeId** | **Number**| | - **key** | **String**| | + **appId** | **String**| App Name Id | + **voucher** | [**CreateVoucher**](CreateVoucher.md)| Voucher Details | ### Return type -[**RestApiArrayResultRestApiDefaultResponse**](RestApiArrayResultRestApiDefaultResponse.md) +[**RestApiResultVoucherWithStats**](RestApiResultVoucherWithStats.md) ### Authorization @@ -67,14 +60,14 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded - **Accept**: application/json, text/json, application/xml, text/xml # **getVoucherById** -> RestApiResultVoucher getVoucherById(voucherId) +> RestApiResultVoucherWithStats getVoucherById(voucherId) -Get voucher by identifier +[PRIVATE API] Get voucher by identifier ### Example ```javascript @@ -87,7 +80,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.VouchersApi(); -var voucherId = 56; // Number | +var voucherId = 56; // Number | Id of the voucher var callback = function(error, data, response) { @@ -104,11 +97,11 @@ apiInstance.getVoucherById(voucherId, callback); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **voucherId** | **Number**| | + **voucherId** | **Number**| Id of the voucher | ### Return type -[**RestApiResultVoucher**](RestApiResultVoucher.md) +[**RestApiResultVoucherWithStats**](RestApiResultVoucherWithStats.md) ### Authorization @@ -119,11 +112,11 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, text/json, application/xml, text/xml - -# **getVoucherMetadata** -> RestApiArrayResultMetadata getVoucherMetadata(voucherId, menuId, storeId) + +# **getVoucherStatsById** +> RestApiArrayResultVoucherDataPoint getVoucherStatsById(voucherId, aggregateDataBy, opts) -Get voucher metadata +[PRIVATE API] Get voucher stats by identifier ### Example ```javascript @@ -136,69 +129,13 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.VouchersApi(); -var voucherId = 56; // Number | +var voucherId = 56; // Number | Id of the voucher -var menuId = 56; // Number | +var aggregateDataBy = "aggregateDataBy_example"; // String | Aggregate data by day \\ week \\ month -var storeId = 56; // Number | - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } +var opts = { + 'dataPointLimit': 56 // Number | Amount of data points per request }; -apiInstance.getVoucherMetadata(voucherId, menuId, storeId, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **voucherId** | **Number**| | - **menuId** | **Number**| | - **storeId** | **Number**| | - -### 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 - - -# **getVoucherMetadata_0** -> RestApiResultMetadata getVoucherMetadata_0(voucherId, menuId, storeId, key) - -Get voucher metadata - -### Example -```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 apiInstance = new Flipdish.VouchersApi(); - -var voucherId = 56; // Number | - -var menuId = 56; // Number | - -var storeId = 56; // Number | - -var key = "key_example"; // String | - var callback = function(error, data, response) { if (error) { @@ -207,21 +144,20 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getVoucherMetadata_0(voucherId, menuId, storeId, key, callback); +apiInstance.getVoucherStatsById(voucherId, aggregateDataBy, opts, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **voucherId** | **Number**| | - **menuId** | **Number**| | - **storeId** | **Number**| | - **key** | **String**| | + **voucherId** | **Number**| Id of the voucher | + **aggregateDataBy** | **String**| Aggregate data by day \\ week \\ month | + **dataPointLimit** | **Number**| Amount of data points per request | [optional] ### Return type -[**RestApiResultMetadata**](RestApiResultMetadata.md) +[**RestApiArrayResultVoucherDataPoint**](RestApiArrayResultVoucherDataPoint.md) ### Authorization @@ -234,9 +170,9 @@ Name | Type | Description | Notes # **getVouchers** -> RestApiPaginationResultVoucher getVouchers(opts) +> RestApiPaginationResultVoucherSummary getVouchers(appId, opts) -Get vouchers +[PRIVATE API] Get vouchers summaries for App Id ### Example ```javascript @@ -249,22 +185,16 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.VouchersApi(); +var appId = "appId_example"; // String | Application Id + var opts = { - 'filter': "filter_example", // String | - 'pageNumber': 56, // Number | - 'pageSize': 56, // Number | - 'sortOrder': "sortOrder_example", // String | - 'orderBy': "orderBy_example", // String | - 'subType': "subType_example", // String | - 'status': "status_example", // String | - 'code': "code_example", // String | - 'validFromBegin': new Date("2013-10-20T19:20:30+01:00"), // Date | - 'validFromEnd': new Date("2013-10-20T19:20:30+01:00"), // Date | - 'expiryBegin': new Date("2013-10-20T19:20:30+01:00"), // Date | - 'expiryEnd': new Date("2013-10-20T19:20:30+01:00"), // Date | - 'amount': 1.2, // Number | - 'voucherType': "voucherType_example", // String | - 'description': "description_example" // String | + 'pageIndex': 56, // Number | Page Number + 'pageSize': 56, // Number | Page Size + 'searchCodes': ["searchCodes_example"], // [String] | Search by Voucher Code\\s + 'statusSearch': ["statusSearch_example"], // [String] | Search by Status + 'typeSearch': ["typeSearch_example"], // [String] | Search by Type + 'subTypeSearch': ["subTypeSearch_example"], // [String] | Search by Sub Type + 'storeIds': [3.4] // [Number] | Search by Store Ids }; var callback = function(error, data, response) { @@ -274,32 +204,25 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getVouchers(opts, callback); +apiInstance.getVouchers(appId, opts, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **filter** | **String**| | [optional] - **pageNumber** | **Number**| | [optional] - **pageSize** | **Number**| | [optional] - **sortOrder** | **String**| | [optional] - **orderBy** | **String**| | [optional] - **subType** | **String**| | [optional] - **status** | **String**| | [optional] - **code** | **String**| | [optional] - **validFromBegin** | **Date**| | [optional] - **validFromEnd** | **Date**| | [optional] - **expiryBegin** | **Date**| | [optional] - **expiryEnd** | **Date**| | [optional] - **amount** | **Number**| | [optional] - **voucherType** | **String**| | [optional] - **description** | **String**| | [optional] + **appId** | **String**| Application Id | + **pageIndex** | **Number**| Page Number | [optional] + **pageSize** | **Number**| Page Size | [optional] + **searchCodes** | [**[String]**](String.md)| Search by Voucher Code\\s | [optional] + **statusSearch** | [**[String]**](String.md)| Search by Status | [optional] + **typeSearch** | [**[String]**](String.md)| Search by Type | [optional] + **subTypeSearch** | [**[String]**](String.md)| Search by Sub Type | [optional] + **storeIds** | [**[Number]**](Number.md)| Search by Store Ids | [optional] ### Return type -[**RestApiPaginationResultVoucher**](RestApiPaginationResultVoucher.md) +[**RestApiPaginationResultVoucherSummary**](RestApiPaginationResultVoucherSummary.md) ### Authorization @@ -310,11 +233,11 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, text/json, application/xml, text/xml - -# **setVoucherMetadata** -> setVoucherMetadata(voucherId, menuId, storeId, key, value) + +# **updateVoucher** +> RestApiResultVoucherWithStats updateVoucher(voucherId, voucher, opts) -Add voucher metadata +[PRIVATE API] Updates voucher ### Example ```javascript @@ -327,40 +250,41 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.VouchersApi(); -var voucherId = 56; // Number | - -var menuId = 56; // Number | - -var storeId = 56; // Number | - -var key = "key_example"; // String | +var voucherId = 56; // Number | Id of the voucher -var value = "value_example"; // String | +var voucher = new Flipdish.VoucherBase(); // VoucherBase | Updated details for the voucher +var opts = { + 'storeId': [3.4], // [Number] | + 'percentValue': 56, // Number | Percent voucher value (can have 1 of 3) + 'lumpValue': 1.2, // Number | Lump voucher value (can have 1 of 3) + 'freeItemId': 56 // Number | Free Item Id (can have 1 of 3) +}; var callback = function(error, data, response) { if (error) { console.error(error); } else { - console.log('API called successfully.'); + console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.setVoucherMetadata(voucherId, menuId, storeId, key, value, callback); +apiInstance.updateVoucher(voucherId, voucher, opts, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **voucherId** | **Number**| | - **menuId** | **Number**| | - **storeId** | **Number**| | - **key** | **String**| | - **value** | **String**| | + **voucherId** | **Number**| Id of the voucher | + **voucher** | [**VoucherBase**](VoucherBase.md)| Updated details for the voucher | + **storeId** | [**[Number]**](Number.md)| | [optional] + **percentValue** | **Number**| Percent voucher value (can have 1 of 3) | [optional] + **lumpValue** | **Number**| Lump voucher value (can have 1 of 3) | [optional] + **freeItemId** | **Number**| Free Item Id (can have 1 of 3) | [optional] ### Return type -null (empty response body) +[**RestApiResultVoucherWithStats**](RestApiResultVoucherWithStats.md) ### Authorization diff --git a/docs/WebhookEventSample.md b/docs/WebhookEventSample.md new file mode 100644 index 00000000..1ccd68b9 --- /dev/null +++ b/docs/WebhookEventSample.md @@ -0,0 +1,10 @@ +# 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) | Sample event body | [optional] + + diff --git a/docs/WebhookLog.md b/docs/WebhookLog.md index f0e028b6..f7b3c8a1 100644 --- a/docs/WebhookLog.md +++ b/docs/WebhookLog.md @@ -3,20 +3,20 @@ ## 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] +**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 index 6a446d02..99b2981b 100644 --- a/docs/WebhookSubscription.md +++ b/docs/WebhookSubscription.md @@ -3,12 +3,12 @@ ## 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] +**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 index 66a6c97d..f435c689 100644 --- a/docs/WebhookSubscriptionCreatedEvent.md +++ b/docs/WebhookSubscriptionCreatedEvent.md @@ -3,10 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**webhookSubscriptionEventInfo** | [**WebhookSubscriptionEventInfo**](WebhookSubscriptionEventInfo.md) | Webhook subscription details | [optional] -**flipdishEventId** | **String** | The identitfier of the event | [optional] -**createTime** | **Date** | The time of creation of the event | [optional] -**position** | **Number** | Position | [optional] +**EventName** | **String** | The event name | [optional] +**WebhookSubscriptionEventInfo** | [**WebhookSubscriptionEventInfo**](WebhookSubscriptionEventInfo.md) | Webhook subscription details | [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] diff --git a/docs/WebhookSubscriptionDeletedEvent.md b/docs/WebhookSubscriptionDeletedEvent.md index 686596c6..908e4b3f 100644 --- a/docs/WebhookSubscriptionDeletedEvent.md +++ b/docs/WebhookSubscriptionDeletedEvent.md @@ -3,10 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**webhookSubscriptionEventInfo** | [**WebhookSubscriptionEventInfo**](WebhookSubscriptionEventInfo.md) | Webhook subscription details | [optional] -**flipdishEventId** | **String** | The identitfier of the event | [optional] -**createTime** | **Date** | The time of creation of the event | [optional] -**position** | **Number** | Position | [optional] +**EventName** | **String** | The event name | [optional] +**WebhookSubscriptionEventInfo** | [**WebhookSubscriptionEventInfo**](WebhookSubscriptionEventInfo.md) | Webhook subscription details | [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] diff --git a/docs/WebhookSubscriptionEventInfo.md b/docs/WebhookSubscriptionEventInfo.md index dd4c8fdc..20076a0b 100644 --- a/docs/WebhookSubscriptionEventInfo.md +++ b/docs/WebhookSubscriptionEventInfo.md @@ -3,9 +3,9 @@ ## 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] +**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 index ed3f0121..3dc94015 100644 --- a/docs/WebhookSubscriptionUpdatedEvent.md +++ b/docs/WebhookSubscriptionUpdatedEvent.md @@ -3,10 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventName** | **String** | The event name | [optional] -**webhookSubscriptionEventInfo** | [**WebhookSubscriptionEventInfo**](WebhookSubscriptionEventInfo.md) | Webhook subscription details | [optional] -**flipdishEventId** | **String** | The identitfier of the event | [optional] -**createTime** | **Date** | The time of creation of the event | [optional] -**position** | **Number** | Position | [optional] +**EventName** | **String** | The event name | [optional] +**WebhookSubscriptionEventInfo** | [**WebhookSubscriptionEventInfo**](WebhookSubscriptionEventInfo.md) | Webhook subscription details | [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] diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md index 89277aa0..eac83b0f 100644 --- a/docs/WebhooksApi.md +++ b/docs/WebhooksApi.md @@ -4,22 +4,23 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**craeteWebhookSubscription**](WebhooksApi.md#craeteWebhookSubscription) | **POST** /api/v1.0/webhooks/{clientId}/subscriptions | Create a webhook subscription for you Oauth client -[**createWebhookSubscriptionEventNames**](WebhooksApi.md#createWebhookSubscriptionEventNames) | **POST** /api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | Add event name to your webhook subscription -[**deleteWebhookSubscription**](WebhooksApi.md#deleteWebhookSubscription) | **DELETE** /api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId} | Delete you webhook subscription -[**deleteWebhookSubscriptionEventName**](WebhooksApi.md#deleteWebhookSubscriptionEventName) | **DELETE** /api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | Remove event name to your webhook subscription -[**getWebhookEventNames**](WebhooksApi.md#getWebhookEventNames) | **GET** /api/v1.0/webhooks/events | Get all webhook subscription event names -[**getWebhookEventNamesBySubscriptionId**](WebhooksApi.md#getWebhookEventNamesBySubscriptionId) | **GET** /api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId}/events | Get your webhook subscriptions selected event names -[**getWebhookLogs**](WebhooksApi.md#getWebhookLogs) | **GET** /api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId}/logs | Get logs for your webhook subscription -[**getWebhookSubscriptions**](WebhooksApi.md#getWebhookSubscriptions) | **GET** /api/v1.0/webhooks/{clientId}/subscriptions | Get all webhook subscriptions by your Oauth client id -[**updateWebhookSubscription**](WebhooksApi.md#updateWebhookSubscription) | **PUT** /api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId} | Update a webhook subscription object +[**craeteWebhookSubscription**](WebhooksApi.md#craeteWebhookSubscription) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | Create a webhook subscription for you Oauth App +[**createWebhookSubscriptionEventNames**](WebhooksApi.md#createWebhookSubscriptionEventNames) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | Add event name to your webhook subscription +[**deleteWebhookSubscription**](WebhooksApi.md#deleteWebhookSubscription) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | Delete you webhook subscription +[**deleteWebhookSubscriptionEventName**](WebhooksApi.md#deleteWebhookSubscriptionEventName) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | Remove event name to your webhook subscription +[**getWebhookEventNames**](WebhooksApi.md#getWebhookEventNames) | **GET** /api/v1.0/{appId}/webhooks/events | Get all webhook subscription event names +[**getWebhookEventNamesBySubscriptionId**](WebhooksApi.md#getWebhookEventNamesBySubscriptionId) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events | Get your webhook subscriptions selected event names +[**getWebhookEventSample**](WebhooksApi.md#getWebhookEventSample) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}/test | Get a sample event from a webhook subscription +[**getWebhookLogs**](WebhooksApi.md#getWebhookLogs) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/logs | Get logs for your webhook subscription +[**getWebhookSubscriptions**](WebhooksApi.md#getWebhookSubscriptions) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | Get all webhook subscriptions by your Oauth App id +[**updateWebhookSubscription**](WebhooksApi.md#updateWebhookSubscription) | **PUT** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | Update a webhook subscription object # **craeteWebhookSubscription** -> RestApiIntegerResult craeteWebhookSubscription(clientId, webhookSubscription) +> RestApiIntegerResult craeteWebhookSubscription(oauthAppId, webhookSubscription, appId) -Create a webhook subscription for you Oauth client +Create a webhook subscription for you Oauth App ### Example ```javascript @@ -32,10 +33,12 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.WebhooksApi(); -var clientId = "clientId_example"; // String | Oauth client identifier +var oauthAppId = "oauthAppId_example"; // String | Oauth App identifier var webhookSubscription = new Flipdish.WebhookSubscription(); // WebhookSubscription | Webhook subscription object +var appId = "appId_example"; // String | + var callback = function(error, data, response) { if (error) { @@ -44,15 +47,16 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.craeteWebhookSubscription(clientId, webhookSubscription, callback); +apiInstance.craeteWebhookSubscription(oauthAppId, webhookSubscription, appId, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **clientId** | **String**| Oauth client identifier | + **oauthAppId** | **String**| Oauth App identifier | **webhookSubscription** | [**WebhookSubscription**](WebhookSubscription.md)| Webhook subscription object | + **appId** | **String**| | ### Return type @@ -69,7 +73,7 @@ Name | Type | Description | Notes # **createWebhookSubscriptionEventNames** -> createWebhookSubscriptionEventNames(clientId, webhookSubscriptionId, eventName) +> createWebhookSubscriptionEventNames(oauthAppId, webhookSubscriptionId, eventName, appId) Add event name to your webhook subscription @@ -84,12 +88,14 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.WebhooksApi(); -var clientId = "clientId_example"; // String | Oauth client identifier +var oauthAppId = "oauthAppId_example"; // String | Oauth App identifier var webhookSubscriptionId = 56; // Number | Webhook subscription identifier var eventName = "eventName_example"; // String | Webhook subscription event name +var appId = "appId_example"; // String | + var callback = function(error, data, response) { if (error) { @@ -98,16 +104,17 @@ var callback = function(error, data, response) { console.log('API called successfully.'); } }; -apiInstance.createWebhookSubscriptionEventNames(clientId, webhookSubscriptionId, eventName, callback); +apiInstance.createWebhookSubscriptionEventNames(oauthAppId, webhookSubscriptionId, eventName, appId, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **clientId** | **String**| Oauth client identifier | + **oauthAppId** | **String**| Oauth App identifier | **webhookSubscriptionId** | **Number**| Webhook subscription identifier | **eventName** | **String**| Webhook subscription event name | + **appId** | **String**| | ### Return type @@ -124,7 +131,7 @@ null (empty response body) # **deleteWebhookSubscription** -> deleteWebhookSubscription(clientId, webhookSubscriptionId) +> deleteWebhookSubscription(oauthAppId, webhookSubscriptionId, appId) Delete you webhook subscription @@ -139,10 +146,12 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.WebhooksApi(); -var clientId = "clientId_example"; // String | Oauth client identifier +var oauthAppId = "oauthAppId_example"; // String | Oauth App identifier var webhookSubscriptionId = 56; // Number | Webhook subscription identifier +var appId = "appId_example"; // String | + var callback = function(error, data, response) { if (error) { @@ -151,15 +160,16 @@ var callback = function(error, data, response) { console.log('API called successfully.'); } }; -apiInstance.deleteWebhookSubscription(clientId, webhookSubscriptionId, callback); +apiInstance.deleteWebhookSubscription(oauthAppId, webhookSubscriptionId, appId, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **clientId** | **String**| Oauth client identifier | + **oauthAppId** | **String**| Oauth App identifier | **webhookSubscriptionId** | **Number**| Webhook subscription identifier | + **appId** | **String**| | ### Return type @@ -176,7 +186,7 @@ null (empty response body) # **deleteWebhookSubscriptionEventName** -> deleteWebhookSubscriptionEventName(clientId, webhookSubscriptionId, eventName) +> deleteWebhookSubscriptionEventName(oauthAppId, webhookSubscriptionId, eventName, appId) Remove event name to your webhook subscription @@ -191,12 +201,14 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.WebhooksApi(); -var clientId = "clientId_example"; // String | Oauth client identifier +var oauthAppId = "oauthAppId_example"; // String | Oauth App identifier var webhookSubscriptionId = 56; // Number | Webhook subscription identifier var eventName = "eventName_example"; // String | Webhook subscription event name +var appId = "appId_example"; // String | + var callback = function(error, data, response) { if (error) { @@ -205,16 +217,17 @@ var callback = function(error, data, response) { console.log('API called successfully.'); } }; -apiInstance.deleteWebhookSubscriptionEventName(clientId, webhookSubscriptionId, eventName, callback); +apiInstance.deleteWebhookSubscriptionEventName(oauthAppId, webhookSubscriptionId, eventName, appId, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **clientId** | **String**| Oauth client identifier | + **oauthAppId** | **String**| Oauth App identifier | **webhookSubscriptionId** | **Number**| Webhook subscription identifier | **eventName** | **String**| Webhook subscription event name | + **appId** | **String**| | ### Return type @@ -231,7 +244,7 @@ null (empty response body) # **getWebhookEventNames** -> RestApiStringArrayResult getWebhookEventNames() +> RestApiStringArrayResult getWebhookEventNames(appId) Get all webhook subscription event names @@ -246,6 +259,9 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.WebhooksApi(); +var appId = "appId_example"; // String | + + var callback = function(error, data, response) { if (error) { console.error(error); @@ -253,11 +269,14 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getWebhookEventNames(callback); +apiInstance.getWebhookEventNames(appId, callback); ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | ### Return type @@ -274,7 +293,7 @@ This endpoint does not need any parameter. # **getWebhookEventNamesBySubscriptionId** -> RestApiStringArrayResult getWebhookEventNamesBySubscriptionId(clientId, webhookSubscriptionId) +> RestApiStringArrayResult getWebhookEventNamesBySubscriptionId(oauthAppId, webhookSubscriptionId, appId) Get your webhook subscriptions selected event names @@ -289,10 +308,12 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.WebhooksApi(); -var clientId = "clientId_example"; // String | Oauth client identifier +var oauthAppId = "oauthAppId_example"; // String | Oauth App identifier var webhookSubscriptionId = 56; // Number | Webhook subscription identifier +var appId = "appId_example"; // String | + var callback = function(error, data, response) { if (error) { @@ -301,15 +322,16 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getWebhookEventNamesBySubscriptionId(clientId, webhookSubscriptionId, callback); +apiInstance.getWebhookEventNamesBySubscriptionId(oauthAppId, webhookSubscriptionId, appId, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **clientId** | **String**| Oauth client identifier | + **oauthAppId** | **String**| Oauth App identifier | **webhookSubscriptionId** | **Number**| Webhook subscription identifier | + **appId** | **String**| | ### Return type @@ -319,6 +341,68 @@ Name | Type | Description | Notes [oauth2](../README.md#oauth2) +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + + +# **getWebhookEventSample** +> WebhookEventSample getWebhookEventSample(eventName, appId, oauthAppId, webhookSubscriptionId, opts) + +Get a sample event from a webhook subscription + +### Example +```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 apiInstance = new Flipdish.WebhooksApi(); + +var eventName = "eventName_example"; // String | + +var appId = "appId_example"; // String | + +var oauthAppId = "oauthAppId_example"; // String | + +var webhookSubscriptionId = "webhookSubscriptionId_example"; // String | + +var opts = { + 'version': "version_example" // String | +}; + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getWebhookEventSample(eventName, appId, oauthAppId, webhookSubscriptionId, opts, callback); +``` + +### 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 @@ -326,7 +410,7 @@ Name | Type | Description | Notes # **getWebhookLogs** -> RestApiPaginationResultWebhookLog getWebhookLogs(clientId, webhookSubscriptionId, start, end, opts) +> RestApiPaginationResultWebhookLog getWebhookLogs(oauthAppId, webhookSubscriptionId, start, end, appId, opts) Get logs for your webhook subscription @@ -341,7 +425,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.WebhooksApi(); -var clientId = "clientId_example"; // String | Oauth client identifier +var oauthAppId = "oauthAppId_example"; // String | Oauth App identifier var webhookSubscriptionId = 56; // Number | Webhook subscription identifier @@ -349,6 +433,8 @@ var start = new Date("2013-10-20T19:20:30+01:00"); // Date | Start time var end = new Date("2013-10-20T19:20:30+01:00"); // Date | End time +var appId = "appId_example"; // String | + var opts = { 'page': 56, // Number | Page number 'limit': 56 // Number | Page size @@ -361,17 +447,18 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getWebhookLogs(clientId, webhookSubscriptionId, start, end, opts, callback); +apiInstance.getWebhookLogs(oauthAppId, webhookSubscriptionId, start, end, appId, opts, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **clientId** | **String**| Oauth client identifier | + **oauthAppId** | **String**| Oauth App identifier | **webhookSubscriptionId** | **Number**| Webhook subscription identifier | **start** | **Date**| Start time | **end** | **Date**| End time | + **appId** | **String**| | **page** | **Number**| Page number | [optional] **limit** | **Number**| Page size | [optional] @@ -390,9 +477,9 @@ Name | Type | Description | Notes # **getWebhookSubscriptions** -> RestApiArrayResultWebhookSubscription getWebhookSubscriptions(clientId) +> RestApiPaginationResultWebhookSubscription getWebhookSubscriptions(oauthAppId, appId, opts) -Get all webhook subscriptions by your Oauth client id +Get all webhook subscriptions by your Oauth App id ### Example ```javascript @@ -405,8 +492,14 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.WebhooksApi(); -var clientId = "clientId_example"; // String | Oauth client identifier +var oauthAppId = "oauthAppId_example"; // String | Oauth App identifier +var appId = "appId_example"; // String | + +var opts = { + 'page': 56, // Number | + 'limit': 56 // Number | +}; var callback = function(error, data, response) { if (error) { @@ -415,18 +508,21 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -apiInstance.getWebhookSubscriptions(clientId, callback); +apiInstance.getWebhookSubscriptions(oauthAppId, appId, opts, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **clientId** | **String**| Oauth client identifier | + **oauthAppId** | **String**| Oauth App identifier | + **appId** | **String**| | + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] ### Return type -[**RestApiArrayResultWebhookSubscription**](RestApiArrayResultWebhookSubscription.md) +[**RestApiPaginationResultWebhookSubscription**](RestApiPaginationResultWebhookSubscription.md) ### Authorization @@ -439,7 +535,7 @@ Name | Type | Description | Notes # **updateWebhookSubscription** -> updateWebhookSubscription(clientId, webhookSubscriptionId, webhookSubscription) +> updateWebhookSubscription(oauthAppId, webhookSubscriptionId, webhookSubscription, appId) Update a webhook subscription object @@ -454,12 +550,14 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN'; var apiInstance = new Flipdish.WebhooksApi(); -var clientId = "clientId_example"; // String | Oauth client identifier +var oauthAppId = "oauthAppId_example"; // String | Oauth App identifier var webhookSubscriptionId = 56; // Number | Webhook subscription identifier var webhookSubscription = new Flipdish.WebhookSubscription(); // WebhookSubscription | Webhook subscription object +var appId = "appId_example"; // String | + var callback = function(error, data, response) { if (error) { @@ -468,16 +566,17 @@ var callback = function(error, data, response) { console.log('API called successfully.'); } }; -apiInstance.updateWebhookSubscription(clientId, webhookSubscriptionId, webhookSubscription, callback); +apiInstance.updateWebhookSubscription(oauthAppId, webhookSubscriptionId, webhookSubscription, appId, callback); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **clientId** | **String**| Oauth client identifier | + **oauthAppId** | **String**| Oauth App identifier | **webhookSubscriptionId** | **Number**| Webhook subscription identifier | **webhookSubscription** | [**WebhookSubscription**](WebhookSubscription.md)| Webhook subscription object | + **appId** | **String**| | ### Return type diff --git a/docs/WebsiteApi.md b/docs/WebsiteApi.md new file mode 100644 index 00000000..a8070f10 --- /dev/null +++ b/docs/WebsiteApi.md @@ -0,0 +1,432 @@ +# 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 | Add a testimonial +[**deleteTestimonial**](WebsiteApi.md#deleteTestimonial) | **DELETE** /api/v1.0/{appId}/website/testimonial/{testimonialId} | Delete a testimonial +[**deleteWebsiteImage**](WebsiteApi.md#deleteWebsiteImage) | **DELETE** /api/v1.0/{appId}/website/image/{imageId} | Delete Website Image +[**editTestimonial**](WebsiteApi.md#editTestimonial) | **POST** /api/v1.0/{appId}/website/testimonial/{testimonialId} | Edit a testimonial +[**getIndexConfiguration**](WebsiteApi.md#getIndexConfiguration) | **GET** /api/v1.0/{appId}/website/index | Get Index Configuration +[**setIndexConfiguration**](WebsiteApi.md#setIndexConfiguration) | **POST** /api/v1.0/{appId}/website/index | Set Index Configuration +[**uploadWebsiteImage**](WebsiteApi.md#uploadWebsiteImage) | **POST** /api/v1.0/{appId}/website/image/{imageLocation} | Upload Website Image +[**websiteCheckNow**](WebsiteApi.md#websiteCheckNow) | **GET** /api/v1.0/{appId}/website/dnscheck | Triggers a Check DNS Process + + + +# **addTestimonial** +> RestApiResultWebsiteTestimonial addTestimonial(appId, testimonial) + +Add a testimonial + +### Example +```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 apiInstance = new Flipdish.WebsiteApi(); + +var appId = "appId_example"; // String | Application identifier + +var testimonial = new Flipdish.WebsiteTestimonialBase(); // WebsiteTestimonialBase | Testimonial to be added + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.addTestimonial(appId, testimonial, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **testimonial** | [**WebsiteTestimonialBase**](WebsiteTestimonialBase.md)| Testimonial to be added | + +### 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 + + +# **deleteTestimonial** +> deleteTestimonial(appId, testimonialId) + +Delete a testimonial + +### Example +```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 apiInstance = new Flipdish.WebsiteApi(); + +var appId = "appId_example"; // String | Application identifier + +var testimonialId = 56; // Number | Id of the testimonial to delete + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.deleteTestimonial(appId, testimonialId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **testimonialId** | **Number**| Id of the testimonial to delete | + +### 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) + +Delete Website Image + +### Example +```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 apiInstance = new Flipdish.WebsiteApi(); + +var appId = "appId_example"; // String | Application identifier + +var imageId = 56; // Number | Id of the image + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.deleteWebsiteImage(appId, imageId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **imageId** | **Number**| Id of the image | + +### 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) + +Edit a testimonial + +### Example +```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 apiInstance = new Flipdish.WebsiteApi(); + +var appId = "appId_example"; // String | Application identifier + +var testimonialId = 56; // Number | Id of the testimonial to edit + +var testimonial = new Flipdish.WebsiteTestimonialBase(); // WebsiteTestimonialBase | New values of the testimonial + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.editTestimonial(appId, testimonialId, testimonial, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **testimonialId** | **Number**| Id of the testimonial to edit | + **testimonial** | [**WebsiteTestimonialBase**](WebsiteTestimonialBase.md)| New values of the testimonial | + +### 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 + + +# **getIndexConfiguration** +> RestApiResultIndexPage getIndexConfiguration(appId) + +Get Index Configuration + +### Example +```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 apiInstance = new Flipdish.WebsiteApi(); + +var appId = "appId_example"; // String | Application identifier + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.getIndexConfiguration(appId, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + +### 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 + + +# **setIndexConfiguration** +> RestApiResultIndexPageBase setIndexConfiguration(appId, indexPage) + +Set Index Configuration + +### Example +```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 apiInstance = new Flipdish.WebsiteApi(); + +var appId = "appId_example"; // String | Application identifier + +var indexPage = new Flipdish.IndexPageBase(); // IndexPageBase | New index page definition + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.setIndexConfiguration(appId, indexPage, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **indexPage** | [**IndexPageBase**](IndexPageBase.md)| New index page definition | + +### 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 + + +# **uploadWebsiteImage** +> RestApiResultWebsiteImage uploadWebsiteImage(appId, imageLocation, Image) + +Upload Website Image + +### Example +```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 apiInstance = new Flipdish.WebsiteApi(); + +var appId = "appId_example"; // String | Application identifier + +var imageLocation = "imageLocation_example"; // String | Section for which to upload the image + +var Image = "/path/to/file.txt"; // File | App Logo + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.uploadWebsiteImage(appId, imageLocation, Image, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Application identifier | + **imageLocation** | **String**| Section for which to upload the image | + **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 + + +# **websiteCheckNow** +> websiteCheckNow(appId) + +Triggers a Check DNS Process + +### Example +```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 apiInstance = new Flipdish.WebsiteApi(); + +var appId = "appId_example"; // String | + + +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.websiteCheckNow(appId, callback); +``` + +### 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..4ec6cf31 --- /dev/null +++ b/docs/WebsiteImage.md @@ -0,0 +1,29 @@ +# 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..9734a604 --- /dev/null +++ b/docs/WebsiteTestimonial.md @@ -0,0 +1,10 @@ +# 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..54198e3f --- /dev/null +++ b/docs/WebsiteTestimonialBase.md @@ -0,0 +1,9 @@ +# 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..19bc8baa --- /dev/null +++ b/docs/WebsiteUpdatedEvent.md @@ -0,0 +1,15 @@ +# Flipdish.WebsiteUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppNameId** | **String** | App Name id of the whitelabel of the website | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User updating the website | [optional] +**Description** | **String** | Description of event | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/docs/WebsiteVanityUrlUpdatedEvent.md b/docs/WebsiteVanityUrlUpdatedEvent.md new file mode 100644 index 00000000..922ca0e0 --- /dev/null +++ b/docs/WebsiteVanityUrlUpdatedEvent.md @@ -0,0 +1,15 @@ +# Flipdish.WebsiteVanityUrlUpdatedEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has updated the url | [optional] +**VanityUrl** | **String** | New vanity url | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **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] + + diff --git a/git_push.sh b/git_push.sh deleted file mode 100644 index 0f1f2144..00000000 --- a/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the Git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/package.json b/package.json index fef15b4e..34ce9cb8 100644 --- a/package.json +++ b/package.json @@ -1,31 +1,18 @@ { "name": "@flipdish/api-client-javascript", "version": "1.0.0", - "description": "Javascript Flipdish API client", + "description": "ERROR_UNKNOWN", "license": "Unlicense", - "main": "src/index.js", - "author": "Flipdish", - "repository": { - "type": "git", - "url": "git+https://github.com/flipdishbytes/api-client-javascript.git" - }, - "keywords": [ - "flipdish", - "client", - "javascript" - ], - "bugs": { - "url": "https://github.com/flipdishbytes/api-client-javascript/issues" - }, - "homepage": "https://github.com/flipdishbytes/api-client-javascript#readme", + "main": "src/index.js", "scripts": { - "test": "./node_modules/mocha/bin/mocha --recursive" + "test": "mocha --recursive" }, "browser": { "fs": false }, "dependencies": { - "superagent": "3.5.2" + "superagent": "3.7.0", + "querystring": "0.2.0" }, "devDependencies": { "mocha": "~2.3.4", diff --git a/src/ApiClient.js b/src/ApiClient.js index ecb1cbec..1c3360d4 100644 --- a/src/ApiClient.js +++ b/src/ApiClient.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -110,7 +110,7 @@ return ''; } if (param instanceof Date) { - return param.toJSON(); + return param.toISOString(); } return param.toString(); }; @@ -495,12 +495,15 @@ }; /** - * Parses an ISO-8601 string representation of a date value. - * @param {String} str The date value as a string. + * Parses a string representation of a date value. + * @param {String} str The date value as an ISO-8601 full-date or date-time string. * @returns {Date} The parsed date object. */ exports.parseDate = function(str) { - return new Date(str.replace(/T/i, ' ')); + // OpenAPI 2.0 & 3.0 specs state that: + // - date values are serialized as ISO-8601 full-date strings. + // - date-time values are serialized as ISO-8601 date-time strings, in which the timezone offset is mandatory. + return new Date(str); }; /** diff --git a/src/api/AccountsApi.js b/src/api/AccountsApi.js new file mode 100644 index 00000000..07ac03f3 --- /dev/null +++ b/src/api/AccountsApi.js @@ -0,0 +1,675 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AccountDetailBase', 'model/ChangePasswordModel', 'model/CreateAccountModel', 'model/LoginModel', 'model/LoginWithPinModel', 'model/PasswordResetModel', 'model/RequestLoginPinModel', 'model/RequestLoginPinResposne', 'model/RequestPasswordResetModel', 'model/RestApiArrayResultLocalisedTimeZone', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultAccountDetail', 'model/RestApiUnauthorizedResult', 'model/SetPasswordWithPinModel'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/AccountDetailBase'), require('../model/ChangePasswordModel'), require('../model/CreateAccountModel'), require('../model/LoginModel'), require('../model/LoginWithPinModel'), require('../model/PasswordResetModel'), require('../model/RequestLoginPinModel'), require('../model/RequestLoginPinResposne'), require('../model/RequestPasswordResetModel'), require('../model/RestApiArrayResultLocalisedTimeZone'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultAccountDetail'), require('../model/RestApiUnauthorizedResult'), require('../model/SetPasswordWithPinModel')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AccountsApi = factory(root.Flipdish.ApiClient, root.Flipdish.AccountDetailBase, root.Flipdish.ChangePasswordModel, root.Flipdish.CreateAccountModel, root.Flipdish.LoginModel, root.Flipdish.LoginWithPinModel, root.Flipdish.PasswordResetModel, root.Flipdish.RequestLoginPinModel, root.Flipdish.RequestLoginPinResposne, root.Flipdish.RequestPasswordResetModel, root.Flipdish.RestApiArrayResultLocalisedTimeZone, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultAccountDetail, root.Flipdish.RestApiUnauthorizedResult, root.Flipdish.SetPasswordWithPinModel); + } +}(this, function(ApiClient, AccountDetailBase, ChangePasswordModel, CreateAccountModel, LoginModel, LoginWithPinModel, PasswordResetModel, RequestLoginPinModel, RequestLoginPinResposne, RequestPasswordResetModel, RestApiArrayResultLocalisedTimeZone, RestApiErrorResult, RestApiForbiddenResult, RestApiResultAccountDetail, RestApiUnauthorizedResult, SetPasswordWithPinModel) { + 'use strict'; + + /** + * Accounts service. + * @module api/AccountsApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * Answer a signup question + * @param {module:model/String} signupStepAction Signup step action + * @param {Number} answerId Identifier of the answer + * @param {module:api/AccountsApi~answerSignUpQuestionCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.answerSignUpQuestion = function(signupStepAction, answerId, callback) { + var 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"); + } + + + var pathParams = { + 'signupStepAction': signupStepAction + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/accounts/signupstep/{signupStepAction}/answer', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Change password + * @param {module:model/ChangePasswordModel} changePasswordModel Change password model + * @param {module:api/AccountsApi~changePasswordCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.changePassword = function(changePasswordModel, callback) { + var 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"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/accounts/password', 'PUT', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Change password + * @param {module:model/SetPasswordWithPinModel} changePasswordModel Change password model + * @param {module:api/AccountsApi~changePasswordWithPinCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.changePasswordWithPin = function(changePasswordModel, callback) { + var 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"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/accounts/password/pin', 'PUT', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Create account with email address and store name + * @param {module:model/CreateAccountModel} createAccountModel Create account model + * @param {module:api/AccountsApi~createAccountCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.createAccount = function(createAccountModel, callback) { + var 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"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/accounts', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Gets the current account detail + * @param {module:api/AccountsApi~getAccountDetailsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAccountDetail} + */ + this.getAccountDetails = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultAccountDetail; + + return this.apiClient.callApi( + '/api/v1.0/accounts', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API] Get timezones localised to users language + * @param {module:api/AccountsApi~getLocalisedTimeZonesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultLocalisedTimeZone} + */ + this.getLocalisedTimeZones = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultLocalisedTimeZone; + + return this.apiClient.callApi( + '/api/v1.0/accounts/timezones', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Login with username and password + * @param {module:model/LoginModel} loginModel Login model + * @param {module:api/AccountsApi~loginCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.login = function(loginModel, callback) { + var 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"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/accounts/login', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Login with username and password + * @param {module:model/LoginWithPinModel} loginModel Login model + * @param {module:api/AccountsApi~loginWithPinCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.loginWithPin = function(loginModel, callback) { + var 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"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/accounts/login/pin', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Log out. It removes Flipdish authorization Cookie. + * @param {module:api/AccountsApi~logoutCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.logout = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/accounts/logout', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Reset password with token. + * @param {module:model/PasswordResetModel} passwordResetModel Password reset model + * @param {module:api/AccountsApi~passwordResetWithTokenCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.passwordResetWithToken = function(passwordResetModel, callback) { + var 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"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/accounts/password', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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/RequestLoginPinResposne} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Request login PIN. The server sends the PIN to the email address. + * @param {module:model/RequestLoginPinModel} requestLoginPinRequest Request login PIN request + * @param {module:api/AccountsApi~requestLoginPinCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RequestLoginPinResposne} + */ + this.requestLoginPin = function(requestLoginPinRequest, callback) { + var 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"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RequestLoginPinResposne; + + return this.apiClient.callApi( + '/api/v1.0/accounts/pin', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Request password reset. Flipdish system will send a token via email. + * @param {module:model/RequestPasswordResetModel} requestPasswordResetModel Request password reset model + * @param {module:api/AccountsApi~requestPasswordResetCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.requestPasswordReset = function(requestPasswordResetModel, callback) { + var 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"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/accounts/passwordreset', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Skip a signup question + * @param {module:model/String} signupStepAction Signup step action + * @param {module:api/AccountsApi~skipSignupStepCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.skipSignupStep = function(signupStepAction, callback) { + var 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"); + } + + + var pathParams = { + 'signupStepAction': signupStepAction + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/accounts/signupstep/{signupStepAction}/skip', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Update account with name and language + * @param {module:model/AccountDetailBase} updateAccountModel Update account model + * @param {module:api/AccountsApi~updateAccountCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.updateAccount = function(updateAccountModel, callback) { + var 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"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/accounts', 'PUT', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/ApmApi.js b/src/api/ApmApi.js new file mode 100644 index 00000000..8dfc298f --- /dev/null +++ b/src/api/ApmApi.js @@ -0,0 +1,391 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RestApiArrayResultApmCurrencyDataPoint', 'model/RestApiArrayResultApmDataPoint', 'model/RestApiArrayResultApmHourlyDataPoint', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiPaginationResultPhoneCall', 'model/RestApiResultApmStatistics', 'model/RestApiResultApmStatus', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/RestApiArrayResultApmCurrencyDataPoint'), require('../model/RestApiArrayResultApmDataPoint'), require('../model/RestApiArrayResultApmHourlyDataPoint'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiPaginationResultPhoneCall'), require('../model/RestApiResultApmStatistics'), require('../model/RestApiResultApmStatus'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.ApmApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiArrayResultApmCurrencyDataPoint, root.Flipdish.RestApiArrayResultApmDataPoint, root.Flipdish.RestApiArrayResultApmHourlyDataPoint, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiPaginationResultPhoneCall, root.Flipdish.RestApiResultApmStatistics, root.Flipdish.RestApiResultApmStatus, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, RestApiArrayResultApmCurrencyDataPoint, RestApiArrayResultApmDataPoint, RestApiArrayResultApmHourlyDataPoint, RestApiErrorResult, RestApiForbiddenResult, RestApiPaginationResultPhoneCall, RestApiResultApmStatistics, RestApiResultApmStatus, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * Apm service. + * @module api/ApmApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * [PRIVATE API] Returns true if APM is enabled on at least one store in an application + * @param {String} appId App Id + * @param {module:api/ApmApi~getApmStatusCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultApmStatus} + */ + this.getApmStatus = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultApmStatus; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/apm/status', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API] Get Basic Statistics + * @param {String} appId App Id + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeId List of stores to search by + * @param {module:api/ApmApi~getBasicStatisticsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultApmStatistics} + */ + this.getBasicStatistics = function(appId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + 'storeId': { + value: opts['storeId'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultApmStatistics; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/apm/statistics', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API] Get Calendar statistics + * @param {String} appId App Id + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeId List of stores to search by + * @param {module:api/ApmApi~getCalendarWeekStatisticsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultApmHourlyDataPoint} + */ + this.getCalendarWeekStatistics = function(appId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + 'storeId': { + value: opts['storeId'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultApmHourlyDataPoint; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/apm/statistics/calendar', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API] Get Calls Statistics + * @param {String} appId App Id + * @param {module:model/String} aggregateDataBy Aggregate data by day \\ week + * @param {Object} opts Optional parameters + * @param {Number} opts.dataPointLimit Amount of data points per request + * @param {Array.} opts.storeId List of stores to search by + * @param {module:api/ApmApi~getCallsStatisticsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultApmDataPoint} + */ + this.getCallsStatistics = function(appId, aggregateDataBy, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'aggregateDataBy': aggregateDataBy + }; + var queryParams = { + 'dataPointLimit': opts['dataPointLimit'], + }; + var collectionQueryParams = { + 'storeId': { + value: opts['storeId'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultApmDataPoint; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/apm/statistics/calls/{aggregateDataBy}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API] Get Order Statistics (Value of Orders) + * @param {String} appId App Id + * @param {module:model/String} aggregateDataBy Aggregate data by day \\ week + * @param {Object} opts Optional parameters + * @param {Number} opts.dataPointLimit Amount of data points per request + * @param {Array.} opts.storeId List of stores to search by + * @param {module:api/ApmApi~getOrderStatisticsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultApmCurrencyDataPoint} + */ + this.getOrderStatistics = function(appId, aggregateDataBy, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'aggregateDataBy': aggregateDataBy + }; + var queryParams = { + 'dataPointLimit': opts['dataPointLimit'], + }; + var collectionQueryParams = { + 'storeId': { + value: opts['storeId'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultApmCurrencyDataPoint; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/apm/statistics/orders/{aggregateDataBy}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API] Get paginated APM call list + * @param {String} appId App Id + * @param {Object} opts Optional parameters + * @param {Number} opts.page Requested page index + * @param {Number} opts.limit Requested page limit + * @param {Array.} opts.storeId List of stores to search by + * @param {module:api/ApmApi~getPaginatedCallListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultPhoneCall} + */ + this.getPaginatedCallList = function(appId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + 'page': opts['page'], + 'limit': opts['limit'], + }; + var collectionQueryParams = { + 'storeId': { + value: opts['storeId'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultPhoneCall; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/apm/calls', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/AppsApi.js b/src/api/AppsApi.js new file mode 100644 index 00000000..55d474c1 --- /dev/null +++ b/src/api/AppsApi.js @@ -0,0 +1,711 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AppConfigUpdateModel', 'model/Language', 'model/RestApiArrayResultSupportedCountry', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiPaginationResultApp', 'model/RestApiResultApp', 'model/RestApiResultAppCompliance', 'model/RestApiResultDnsRecordInformation', 'model/RestApiStringResult', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/AppConfigUpdateModel'), require('../model/Language'), require('../model/RestApiArrayResultSupportedCountry'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiPaginationResultApp'), require('../model/RestApiResultApp'), require('../model/RestApiResultAppCompliance'), require('../model/RestApiResultDnsRecordInformation'), require('../model/RestApiStringResult'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AppsApi = factory(root.Flipdish.ApiClient, root.Flipdish.AppConfigUpdateModel, root.Flipdish.Language, root.Flipdish.RestApiArrayResultSupportedCountry, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiPaginationResultApp, root.Flipdish.RestApiResultApp, root.Flipdish.RestApiResultAppCompliance, root.Flipdish.RestApiResultDnsRecordInformation, root.Flipdish.RestApiStringResult, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, AppConfigUpdateModel, Language, RestApiArrayResultSupportedCountry, RestApiErrorResult, RestApiForbiddenResult, RestApiPaginationResultApp, RestApiResultApp, RestApiResultAppCompliance, RestApiResultDnsRecordInformation, RestApiStringResult, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * Apps service. + * @module api/AppsApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + + /** + * 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. + */ + + /** + * Get the application configuration + * @param {String} appId Application identifier + * @param {module:api/AppsApi~getAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultApp} + */ + this.getApp = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultApp; + + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get the application hostname DNS delegation states for A and CNAME records. + * A domain might be ready but still need 10 minutes to work properly because of HAProxy. + * @param {String} appId Application identifier. + * @param {module:api/AppsApi~getAppHostnameStatusCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultDnsRecordInformation} + */ + this.getAppHostnameStatus = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultDnsRecordInformation; + + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/hostnamestatus', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get Apps + * @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} + */ + this.getApps = function(opts, callback) { + opts = opts || {}; + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + 'nameFilter': opts['nameFilter'], + 'page': opts['page'], + 'limit': opts['limit'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultApp; + + return this.apiClient.callApi( + '/api/v1.0/apps', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get the application compliance configuration + * @param {String} appId Application identifier + * @param {module:api/AppsApi~getComplianceCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAppCompliance} + */ + this.getCompliance = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultAppCompliance; + + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/compliance', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] + * @param {String} appId Application identifier. + * @param {module:api/AppsApi~getPanaceaVanityUrlCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + this.getPanaceaVanityUrl = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiStringResult; + + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/panacea/url', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get all supported countries. + * @param {module:api/AppsApi~getSupportedCountriesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultSupportedCountry} + */ + this.getSupportedCountries = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultSupportedCountry; + + return this.apiClient.callApi( + '/api/v1.0/apps/supportedcountries', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Is panacea vanity url available + * Minimum length of 3 characters + * @param {String} vanityUrl Vanity url to check + * @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} + */ + this.isPanaceaVanityUrlAvailable = function(vanityUrl, appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + 'vanityUrl': vanityUrl, + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiStringResult; + + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/panacea/url/available', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Set the application configuration + * @param {String} appId Application identifier + * @param {module:model/AppConfigUpdateModel} appConfigUpdate Changes to the configuration + * @param {module:api/AppsApi~setAppConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultApp} + */ + this.setAppConfig = function(appId, appConfigUpdate, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultApp; + + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/config', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Set the application hostname. + * If no subdomain is specified in {hostname} 'www' will be prepended. + * @param {String} appId Application identifier. + * @param {String} hostname The new Hostname. + * @param {Object} opts Optional parameters + * @param {Boolean} opts.isEmbed Will the website be embedded + * @param {module:api/AppsApi~setAppHostnameCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + this.setAppHostname = function(appId, hostname, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + 'hostname': hostname, + 'isEmbed': opts['isEmbed'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiStringResult; + + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/hostname', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Set the application languages + * @param {String} appId Application identifier + * @param {Array.} languages New list of languages + * @param {module:api/AppsApi~setAppLanguagesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultApp} + */ + this.setAppLanguages = function(appId, languages, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultApp; + + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/config/languages', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Set the application compliance configuration + * @param {String} appId Application identifier + * @param {module:model/String} complianceType Compliance type + * @param {module:api/AppsApi~setComplianceCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAppCompliance} + */ + this.setCompliance = function(appId, complianceType, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + 'complianceType': complianceType, + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultAppCompliance; + + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/compliance', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Set panacea vanity url + * Minimum length of 3 characters + * @param {String} appId Application identifier. + * @param {String} vanityUrl Vanity url + * @param {module:api/AppsApi~setPanaceaVanityUrlCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + this.setPanaceaVanityUrl = function(appId, vanityUrl, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + 'vanityUrl': vanityUrl, + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiStringResult; + + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/panacea/url', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Set the application logo \\ icon + * @param {String} appId Application identifier + * @param {File} Image App Logo + * @param {module:api/AppsApi~uploadAppLogoCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.uploadAppLogo = function(appId, Image, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + 'Image': Image + }; + + var authNames = ['oauth2']; + var contentTypes = ['multipart/form-data']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/logo', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/AuthorizationTokensApi.js b/src/api/AuthorizationTokensApi.js index 1ebdaea2..46c4c0cc 100644 --- a/src/api/AuthorizationTokensApi.js +++ b/src/api/AuthorizationTokensApi.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -58,25 +58,32 @@ /** * Get authorization tokens * - * @param {String} clientId Client identifier + * @param {String} oauthAppId Client identifier + * @param {String} appId * @param {Object} opts Optional parameters * @param {Number} opts.page Requested page number * @param {Number} opts.limit Requested page limit * @param {module:api/AuthorizationTokensApi~getAuthorizationTokensCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/RestApiPaginationResultOAuthTokenModel} */ - this.getAuthorizationTokens = function(clientId, opts, callback) { + this.getAuthorizationTokens = function(oauthAppId, appId, opts, callback) { opts = opts || {}; var postBody = null; - // verify the required parameter 'clientId' is set - if (clientId === undefined || clientId === null) { - throw new Error("Missing the required parameter 'clientId' when calling getAuthorizationTokens"); + // 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"); } var pathParams = { - 'clientId': clientId + 'oauthAppId': oauthAppId, + 'appId': appId }; var queryParams = { 'page': opts['page'], @@ -95,7 +102,7 @@ var returnType = RestApiPaginationResultOAuthTokenModel; return this.apiClient.callApi( - '/api/v1.0/authorizationtokens/{clientId}', 'GET', + '/api/v1.0/{appId}/authorizationtokens/{oauthAppId}', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -112,9 +119,10 @@ /** * Revoke token * @param {String} key Token identifier key + * @param {String} appId * @param {module:api/AuthorizationTokensApi~revokeTokenCallback} callback The callback function, accepting three arguments: error, data, response */ - this.revokeToken = function(key, callback) { + this.revokeToken = function(key, appId, callback) { var postBody = null; // verify the required parameter 'key' is set @@ -122,9 +130,15 @@ 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"); + } + var pathParams = { - 'key': key + 'key': key, + 'appId': appId }; var queryParams = { }; @@ -141,7 +155,7 @@ var returnType = null; return this.apiClient.callApi( - '/api/v1.0/authorizationtokens/{key}', 'DELETE', + '/api/v1.0/{appId}/authorizationtokens/{key}', 'DELETE', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); diff --git a/src/api/BankAccountApi.js b/src/api/BankAccountApi.js new file mode 100644 index 00000000..f07f498c --- /dev/null +++ b/src/api/BankAccountApi.js @@ -0,0 +1,538 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BankAccountCreate', 'model/RestApiArrayResultBankAccountSummary', 'model/RestApiArrayResultCountryWithAccountFieldsDefinitions', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultAccountFieldsDefinitions', 'model/RestApiResultBankAccountDetail', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/BankAccountCreate'), require('../model/RestApiArrayResultBankAccountSummary'), require('../model/RestApiArrayResultCountryWithAccountFieldsDefinitions'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultAccountFieldsDefinitions'), require('../model/RestApiResultBankAccountDetail'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.BankAccountApi = factory(root.Flipdish.ApiClient, root.Flipdish.BankAccountCreate, root.Flipdish.RestApiArrayResultBankAccountSummary, root.Flipdish.RestApiArrayResultCountryWithAccountFieldsDefinitions, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultAccountFieldsDefinitions, root.Flipdish.RestApiResultBankAccountDetail, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, BankAccountCreate, RestApiArrayResultBankAccountSummary, RestApiArrayResultCountryWithAccountFieldsDefinitions, RestApiErrorResult, RestApiForbiddenResult, RestApiResultAccountFieldsDefinitions, RestApiResultBankAccountDetail, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * BankAccount service. + * @module api/BankAccountApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * [PRIVATE API] Attach Bank Account to Store + * @param {String} appId App Name + * @param {Number} bankAccountId Id of account to be updated + * @param {Number} storeId Store to be attached to Bank account + * @param {module:api/BankAccountApi~attachBankAccountToStoreCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.attachBankAccountToStore = function(appId, bankAccountId, storeId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/store/{storeId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Create a new Bank Account and attach to this App + * @param {String} appId App Name + * @param {module:model/BankAccountCreate} account Account to be created + * @param {module:api/BankAccountApi~createBankAccountCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultBankAccountDetail} + */ + this.createBankAccount = function(appId, account, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultBankAccountDetail; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Delete BankAccount + * @param {String} appId App Name + * @param {Number} bankAccountId Id of account to be marked as deleted + * @param {module:api/BankAccountApi~deleteBankAccountCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.deleteBankAccount = function(appId, bankAccountId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get BankAccount Detail by Id + * @param {Number} bankAccountId Id of account + * @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} + */ + this.getBankAccountById = function(bankAccountId, appId, callback) { + var 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"); + } + + + var pathParams = { + 'bankAccountId': bankAccountId, + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultBankAccountDetail; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get List of BankAccounts for WL + * @param {String} appId App Name + * @param {module:api/BankAccountApi~getBankAccountsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultBankAccountSummary} + */ + this.getBankAccounts = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultBankAccountSummary; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get bank account fields definitions + * @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} + */ + this.getCountriesWithFieldDefinitions = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultCountryWithAccountFieldsDefinitions; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/countries-field-definitions', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get bank account fields definitions + * @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} + */ + this.getFieldDefinitions = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultAccountFieldsDefinitions; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/field-definitions', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Update BankAccount + * @param {String} appId App Name + * @param {Number} bankAccountId Id of account to be updated + * @param {module:model/BankAccountCreate} account Details to update account with + * @param {module:api/BankAccountApi~updateBankAccountCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.updateBankAccount = function(appId, bankAccountId, account, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API] Update State of Bank Account + * @param {String} appId App Name + * @param {Number} bankAccountId Id of account to be updated + * @param {String} state New state + * @param {String} reason Reason for state change, Mandatory for rejections + * @param {module:api/BankAccountApi~updateBankAccountStateCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.updateBankAccountState = function(appId, bankAccountId, state, reason, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'state': state + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/state/{state}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/CampaignsApi.js b/src/api/CampaignsApi.js new file mode 100644 index 00000000..c1fa8afd --- /dev/null +++ b/src/api/CampaignsApi.js @@ -0,0 +1,580 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/LoyaltyCampaignBase', 'model/RestApiArrayResultLoyaltyCampaign', 'model/RestApiArrayResultRetentionCampaign', 'model/RestApiArrayResultStoreListItem', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultLoyaltyCampaign', 'model/RestApiResultRetentionCampaign', 'model/RestApiUnauthorizedResult', 'model/RetentionCampaignBase'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/LoyaltyCampaignBase'), require('../model/RestApiArrayResultLoyaltyCampaign'), require('../model/RestApiArrayResultRetentionCampaign'), require('../model/RestApiArrayResultStoreListItem'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultLoyaltyCampaign'), require('../model/RestApiResultRetentionCampaign'), require('../model/RestApiUnauthorizedResult'), require('../model/RetentionCampaignBase')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CampaignsApi = factory(root.Flipdish.ApiClient, root.Flipdish.LoyaltyCampaignBase, root.Flipdish.RestApiArrayResultLoyaltyCampaign, root.Flipdish.RestApiArrayResultRetentionCampaign, root.Flipdish.RestApiArrayResultStoreListItem, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultLoyaltyCampaign, root.Flipdish.RestApiResultRetentionCampaign, root.Flipdish.RestApiUnauthorizedResult, root.Flipdish.RetentionCampaignBase); + } +}(this, function(ApiClient, LoyaltyCampaignBase, RestApiArrayResultLoyaltyCampaign, RestApiArrayResultRetentionCampaign, RestApiArrayResultStoreListItem, RestApiErrorResult, RestApiForbiddenResult, RestApiResultLoyaltyCampaign, RestApiResultRetentionCampaign, RestApiUnauthorizedResult, RetentionCampaignBase) { + 'use strict'; + + /** + * Campaigns service. + * @module api/CampaignsApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * Creates loyalty campaign + * @param {String} appId App Name Id + * @param {module:model/LoyaltyCampaignBase} campaign Loyalty campaign details + * @param {module:api/CampaignsApi~createLoyaltyCampaignCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultLoyaltyCampaign} + */ + this.createLoyaltyCampaign = function(appId, campaign, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultLoyaltyCampaign; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/loyalty', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Creates retention campaign + * @param {String} appId App Name Id + * @param {module:model/RetentionCampaignBase} campaign Retention campaign details + * @param {module:api/CampaignsApi~createRetentionCampaignCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultRetentionCampaign} + */ + this.createRetentionCampaign = function(appId, campaign, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultRetentionCampaign; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/retention', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Gets loyalty campaigns for app + * @param {String} appId App Name Id + * @param {module:api/CampaignsApi~getLoyaltyCampaignsForAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultLoyaltyCampaign} + */ + this.getLoyaltyCampaignsForApp = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultLoyaltyCampaign; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/loyalty', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Gets loyalty campaigns for store + * @param {String} appId App Name Id + * @param {Number} storeId Store Id + * @param {module:api/CampaignsApi~getLoyaltyCampaignsForStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultLoyaltyCampaign} + */ + this.getLoyaltyCampaignsForStore = function(appId, storeId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultLoyaltyCampaign; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/loyalty/{storeId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Gets retention campaigns for app + * @param {String} appId App Name Id + * @param {module:api/CampaignsApi~getRetentionCampaignsForAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRetentionCampaign} + */ + this.getRetentionCampaignsForApp = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultRetentionCampaign; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/retention', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Gets retention campaigns for store + * @param {String} appId App Name Id + * @param {Number} storeId Store Id + * @param {module:api/CampaignsApi~getRetentionCampaignsForStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRetentionCampaign} + */ + this.getRetentionCampaignsForStore = function(appId, storeId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultRetentionCampaign; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/retention/{storeId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Gets list of stores for app + * @param {String} appId App Name Id + * @param {module:api/CampaignsApi~getStoreListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultStoreListItem} + */ + this.getStoreList = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultStoreListItem; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/stores', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Deletes a campaign + * @param {String} appId App Name Id + * @param {Number} campaignId Campaign Id + * @param {module:api/CampaignsApi~removeCampaignCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.removeCampaign = function(appId, campaignId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'campaignId': campaignId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/{campaignId}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Updates loyalty campaign + * @param {String} appId App Name Id + * @param {Number} campaignId Loyalty campaign Id + * @param {module:model/LoyaltyCampaignBase} campaign Loyalty campaign details + * @param {module:api/CampaignsApi~updateLoyaltyCampaignCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultLoyaltyCampaign} + */ + this.updateLoyaltyCampaign = function(appId, campaignId, campaign, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'campaignId': campaignId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultLoyaltyCampaign; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/loyalty/{campaignId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Updates retention campaign + * @param {String} appId App Name Id + * @param {Number} campaignId Retention campaign Id + * @param {module:model/RetentionCampaignBase} campaign Retention campaign details + * @param {module:api/CampaignsApi~updateRetentionCampaignCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultRetentionCampaign} + */ + this.updateRetentionCampaign = function(appId, campaignId, campaign, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'campaignId': campaignId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultRetentionCampaign; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/retention/{campaignId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/CardReadersApi.js b/src/api/CardReadersApi.js new file mode 100644 index 00000000..199eb15c --- /dev/null +++ b/src/api/CardReadersApi.js @@ -0,0 +1,431 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultBluetoothTerminalStatus', 'model/RestApiResultStripeTerminalPrivateKey', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultBluetoothTerminalStatus'), require('../model/RestApiResultStripeTerminalPrivateKey'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CardReadersApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultBluetoothTerminalStatus, root.Flipdish.RestApiResultStripeTerminalPrivateKey, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, RestApiErrorResult, RestApiForbiddenResult, RestApiResultBluetoothTerminalStatus, RestApiResultStripeTerminalPrivateKey, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * CardReaders service. + * @module api/CardReadersApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + + /** + * Callback function to receive the result of the authorizeStripeTerminal operation. + * @callback module:api/CardReadersApi~authorizeStripeTerminalCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStripeTerminalPrivateKey} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get Authorization Key for Stripe Terminal + * Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + * @param {module:api/CardReadersApi~authorizeStripeTerminalCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStripeTerminalPrivateKey} + */ + this.authorizeStripeTerminal = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStripeTerminalPrivateKey; + + return this.apiClient.callApi( + '/api/v1.0/cardreaders/authorize/stripe', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the authorizeStripeTerminal_0 operation. + * @callback module:api/CardReadersApi~authorizeStripeTerminal_0Callback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStripeTerminalPrivateKey} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get Authorization Key for Stripe Terminal + * Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {module:api/CardReadersApi~authorizeStripeTerminal_0Callback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStripeTerminalPrivateKey} + */ + this.authorizeStripeTerminal_0 = function(appId, callback) { + var postBody = null; + + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling authorizeStripeTerminal_0"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStripeTerminalPrivateKey; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/stripeterminal/authorize', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get the status of the bluetooth terminal + * [BETA - this endpoint is under development, do not use it in your production system] + * @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} + */ + this.getBluetoothTerminalStatus = function(appId, deviceId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'deviceId': deviceId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultBluetoothTerminalStatus; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/status', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Trigger check for Bluetooth device update on Kiosk + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {String} deviceId + * @param {String} terminalType + * @param {module:api/CardReadersApi~initiateBluetoothTerminalDeviceUpdateCheckCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.initiateBluetoothTerminalDeviceUpdateCheck = function(appId, deviceId, terminalType, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'deviceId': deviceId, + 'terminalType': terminalType + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/checkForUpdate', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Initiate stripe terminal pairing mode + * [BETA - this endpoint is under development, do not use it in your production system] + * @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 + */ + this.initiateKioskBluetoothPairingMode = function(appId, deviceId, terminalType, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'deviceId': deviceId, + 'terminalType': terminalType + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/pair', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the initiateKioskUpdateInstallForBluetoothTerminal operation. + * @callback module:api/CardReadersApi~initiateKioskUpdateInstallForBluetoothTerminalCallback + * @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~initiateKioskUpdateInstallForBluetoothTerminalCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.initiateKioskUpdateInstallForBluetoothTerminal = function(appId, deviceId, terminalType, callback) { + var postBody = null; + + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling initiateKioskUpdateInstallForBluetoothTerminal"); + } + + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling initiateKioskUpdateInstallForBluetoothTerminal"); + } + + // verify the required parameter 'terminalType' is set + if (terminalType === undefined || terminalType === null) { + throw new Error("Missing the required parameter 'terminalType' when calling initiateKioskUpdateInstallForBluetoothTerminal"); + } + + + var pathParams = { + 'appId': appId, + 'deviceId': deviceId, + 'terminalType': terminalType + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/installUpdate', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Unpair the currently paired stripe terminal + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {String} deviceId + * @param {module:api/CardReadersApi~unpairCurrentlyPairedBluetoothDeviceCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.unpairCurrentlyPairedBluetoothDevice = function(appId, deviceId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'deviceId': deviceId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/unpair', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/ContentSecurityPolicyApi.js b/src/api/ContentSecurityPolicyApi.js new file mode 100644 index 00000000..b6e25aa8 --- /dev/null +++ b/src/api/ContentSecurityPolicyApi.js @@ -0,0 +1,97 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CspReportRequest', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/CspReportRequest'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.ContentSecurityPolicyApi = factory(root.Flipdish.ApiClient, root.Flipdish.CspReportRequest, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, CspReportRequest, RestApiErrorResult, RestApiForbiddenResult, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * ContentSecurityPolicy service. + * @module api/ContentSecurityPolicyApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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} + */ + this.contentSecurityPolicyReport = function(request, callback) { + var 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"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = Object; + + return this.apiClient.callApi( + '/api/v1.0/csp/report', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/CustomersApi.js b/src/api/CustomersApi.js new file mode 100644 index 00000000..6bf18d44 --- /dev/null +++ b/src/api/CustomersApi.js @@ -0,0 +1,166 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CustomerUpdateModel', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultCustomer', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/CustomerUpdateModel'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultCustomer'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CustomersApi = factory(root.Flipdish.ApiClient, root.Flipdish.CustomerUpdateModel, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultCustomer, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, CustomerUpdateModel, RestApiErrorResult, RestApiForbiddenResult, RestApiResultCustomer, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * Customers service. + * @module api/CustomersApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + + /** + * 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. + */ + + /** + * Get customer of an app by Id + * @param {String} appId App Name Id + * @param {Number} customerId Customer Id + * @param {module:api/CustomersApi~getCustomerByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCustomer} + */ + this.getCustomerById = function(appId, customerId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'customerId': customerId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultCustomer; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/customers/{customerId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Update customer of an app by Id + * @param {String} appId App Name Id + * @param {Number} customerId Customer Id + * @param {module:model/CustomerUpdateModel} updateCustomer Updated customer information + * @param {module:api/CustomersApi~updateCustomerByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCustomer} + */ + this.updateCustomerById = function(appId, customerId, updateCustomer, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'customerId': customerId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultCustomer; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/customers/{customerId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/DeliveryTrackingApi.js b/src/api/DeliveryTrackingApi.js new file mode 100644 index 00000000..440c9e09 --- /dev/null +++ b/src/api/DeliveryTrackingApi.js @@ -0,0 +1,387 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/DriverInvitation', 'model/OrderIdAndSequenceNumber', 'model/RestApiArrayResultDriver', 'model/RestApiForbiddenResult', 'model/RestApiResultDriver', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/DriverInvitation'), require('../model/OrderIdAndSequenceNumber'), require('../model/RestApiArrayResultDriver'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultDriver'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DeliveryTrackingApi = factory(root.Flipdish.ApiClient, root.Flipdish.DriverInvitation, root.Flipdish.OrderIdAndSequenceNumber, root.Flipdish.RestApiArrayResultDriver, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultDriver, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, DriverInvitation, OrderIdAndSequenceNumber, RestApiArrayResultDriver, RestApiForbiddenResult, RestApiResultDriver, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * DeliveryTracking service. + * @module api/DeliveryTrackingApi + * @version 1.0.0 + */ + + /** + * Constructs a new DeliveryTrackingApi. + * @alias module:api/DeliveryTrackingApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + + /** + * Callback function to receive the result of the assignDriverToOrder operation. + * @callback module:api/DeliveryTrackingApi~assignDriverToOrderCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * [PRIVATE] Assign driver to order + * @param {String} appId Application identifier + * @param {Number} orderId Order Id + * @param {Number} driverId Driver Id + * @param {module:api/DeliveryTrackingApi~assignDriverToOrderCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.assignDriverToOrder = function(appId, orderId, driverId, callback) { + var postBody = null; + + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling assignDriverToOrder"); + } + + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling assignDriverToOrder"); + } + + // verify the required parameter 'driverId' is set + if (driverId === undefined || driverId === null) { + throw new Error("Missing the required parameter 'driverId' when calling assignDriverToOrder"); + } + + + var pathParams = { + 'appId': appId, + 'orderId': orderId, + 'driverId': driverId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/drivers/{driverId}/orders/{orderId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the assignDriverToOrders operation. + * @callback module:api/DeliveryTrackingApi~assignDriverToOrdersCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Assign driver to multiple orders + * @param {String} appId Application identifier + * @param {Number} driverId Driver Id + * @param {Array.} orderIdAndSequenceNumbers Array of object containing OrderId and Sequence + * @param {module:api/DeliveryTrackingApi~assignDriverToOrdersCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.assignDriverToOrders = function(appId, driverId, orderIdAndSequenceNumbers, callback) { + var postBody = orderIdAndSequenceNumbers; + + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling assignDriverToOrders"); + } + + // verify the required parameter 'driverId' is set + if (driverId === undefined || driverId === null) { + throw new Error("Missing the required parameter 'driverId' when calling assignDriverToOrders"); + } + + // verify the required parameter 'orderIdAndSequenceNumbers' is set + if (orderIdAndSequenceNumbers === undefined || orderIdAndSequenceNumbers === null) { + throw new Error("Missing the required parameter 'orderIdAndSequenceNumbers' when calling assignDriverToOrders"); + } + + + var pathParams = { + 'appId': appId, + 'driverId': driverId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/drivers/{driverId}/orders', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the getDrivers operation. + * @callback module:api/DeliveryTrackingApi~getDriversCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultDriver} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * [PRIVATE] Get drivers by App + * @param {String} appId Application identifier + * @param {Object} opts Optional parameters + * @param {String} opts.name Driver's username + * @param {String} opts.phoneNumber Driver's phone number + * @param {Number} opts.storeId Store Id + * @param {module:model/String} opts.presence Offline/Online + * @param {module:api/DeliveryTrackingApi~getDriversCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultDriver} + */ + this.getDrivers = function(appId, opts, callback) { + opts = opts || {}; + var postBody = null; + + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getDrivers"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + 'name': opts['name'], + 'phoneNumber': opts['phoneNumber'], + 'storeId': opts['storeId'], + 'presence': opts['presence'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultDriver; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/drivers', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the inviteDriverToApp operation. + * @callback module:api/DeliveryTrackingApi~inviteDriverToAppCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultDriver} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * [PRIVATE] Invite driver + * @param {String} appId Application identifier + * @param {module:model/DriverInvitation} driverInvitation Driver invitation model + * @param {module:api/DeliveryTrackingApi~inviteDriverToAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultDriver} + */ + this.inviteDriverToApp = function(appId, driverInvitation, callback) { + var postBody = driverInvitation; + + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling inviteDriverToApp"); + } + + // verify the required parameter 'driverInvitation' is set + if (driverInvitation === undefined || driverInvitation === null) { + throw new Error("Missing the required parameter 'driverInvitation' when calling inviteDriverToApp"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultDriver; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/drivers', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the removeDriverFromApp operation. + * @callback module:api/DeliveryTrackingApi~removeDriverFromAppCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * [PRIVATE] Unassign driver from app + * @param {String} appId Application identifier + * @param {Number} driverId Driver Id + * @param {module:api/DeliveryTrackingApi~removeDriverFromAppCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.removeDriverFromApp = function(appId, driverId, callback) { + var postBody = null; + + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling removeDriverFromApp"); + } + + // verify the required parameter 'driverId' is set + if (driverId === undefined || driverId === null) { + throw new Error("Missing the required parameter 'driverId' when calling removeDriverFromApp"); + } + + + var pathParams = { + 'appId': appId, + 'driverId': driverId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/drivers/{driverId}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the unassignDriverFromOrder operation. + * @callback module:api/DeliveryTrackingApi~unassignDriverFromOrderCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * [PRIVATE] Unassign driver from order + * @param {String} appId Application identifier + * @param {Number} orderId Order Id + * @param {module:api/DeliveryTrackingApi~unassignDriverFromOrderCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.unassignDriverFromOrder = function(appId, orderId, callback) { + var postBody = null; + + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling unassignDriverFromOrder"); + } + + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling unassignDriverFromOrder"); + } + + + var pathParams = { + 'appId': appId, + 'orderId': orderId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/orders/{orderId}/driver', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/DeliveryZoneApi.js b/src/api/DeliveryZoneApi.js new file mode 100644 index 00000000..06a83188 --- /dev/null +++ b/src/api/DeliveryZoneApi.js @@ -0,0 +1,265 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/DeliveryZoneBase', 'model/RestApiArrayResultDeliveryZone', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultDeliveryZone', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/DeliveryZoneBase'), require('../model/RestApiArrayResultDeliveryZone'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultDeliveryZone'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DeliveryZoneApi = factory(root.Flipdish.ApiClient, root.Flipdish.DeliveryZoneBase, root.Flipdish.RestApiArrayResultDeliveryZone, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultDeliveryZone, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, DeliveryZoneBase, RestApiArrayResultDeliveryZone, RestApiErrorResult, RestApiForbiddenResult, RestApiResultDeliveryZone, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * DeliveryZone service. + * @module api/DeliveryZoneApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * Adds a delivery zone to the store id + * @param {Number} storeId Store Id to which the delivery zone will be added + * @param {module:model/DeliveryZoneBase} deliveryZoneBase Optional delivery zone, if not supplied will create a default zone + * @param {module:api/DeliveryZoneApi~addDeliveryZoneCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultDeliveryZone} + */ + this.addDeliveryZone = function(storeId, deliveryZoneBase, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultDeliveryZone; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/deliveryzones', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get all the delivery zones associated with a store + * @param {Number} storeId Store Id to which the delivery zones are associated + * @param {module:api/DeliveryZoneApi~getDeliveryZonesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultDeliveryZone} + */ + this.getDeliveryZones = function(storeId, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultDeliveryZone; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/deliveryzones', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Removes the existing delivery zone + * @param {Number} storeId Store Id to which the delivery zone belongs + * @param {Number} deliveryZoneId Delivery zone id to be removed + * @param {module:api/DeliveryZoneApi~removeDeliveryZoneCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.removeDeliveryZone = function(storeId, deliveryZoneId, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId, + 'deliveryZoneId': deliveryZoneId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Updates the existing delivery zone + * @param {Number} storeId Store Id to which the delivery zone belongs + * @param {Number} deliveryZoneId Delivery zone id to be updated + * @param {module:model/DeliveryZoneBase} deliveryZone Delta of delivery zone parameters that need to be changed + * @param {module:api/DeliveryZoneApi~updateDeliveryZoneCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultDeliveryZone} + */ + this.updateDeliveryZone = function(storeId, deliveryZoneId, deliveryZone, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId, + 'deliveryZoneId': deliveryZoneId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultDeliveryZone; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/DriversApi.js b/src/api/DriversApi.js new file mode 100644 index 00000000..1946da49 --- /dev/null +++ b/src/api/DriversApi.js @@ -0,0 +1,543 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/DriverLoginModel', 'model/DriverRequestLoginPinModel', 'model/RestApiArrayResultDriverStore', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultDriver', 'model/RestApiStringResult', 'model/RestApiUnauthorizedResult', 'model/UpdateDriverNotificationToken', 'model/UpdateDriverProfileModel'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/DriverLoginModel'), require('../model/DriverRequestLoginPinModel'), require('../model/RestApiArrayResultDriverStore'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultDriver'), require('../model/RestApiStringResult'), require('../model/RestApiUnauthorizedResult'), require('../model/UpdateDriverNotificationToken'), require('../model/UpdateDriverProfileModel')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DriversApi = factory(root.Flipdish.ApiClient, root.Flipdish.DriverLoginModel, root.Flipdish.DriverRequestLoginPinModel, root.Flipdish.RestApiArrayResultDriverStore, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultDriver, root.Flipdish.RestApiStringResult, root.Flipdish.RestApiUnauthorizedResult, root.Flipdish.UpdateDriverNotificationToken, root.Flipdish.UpdateDriverProfileModel); + } +}(this, function(ApiClient, DriverLoginModel, DriverRequestLoginPinModel, RestApiArrayResultDriverStore, RestApiErrorResult, RestApiForbiddenResult, RestApiResultDriver, RestApiStringResult, RestApiUnauthorizedResult, UpdateDriverNotificationToken, UpdateDriverProfileModel) { + 'use strict'; + + /** + * Drivers service. + * @module api/DriversApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + + /** + * Callback function to receive the result of the addDriverNotificationToken operation. + * @callback module:api/DriversApi~addDriverNotificationTokenCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Add driver token + * @param {module:model/UpdateDriverNotificationToken} updateDriverToken + * @param {module:api/DriversApi~addDriverNotificationTokenCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.addDriverNotificationToken = function(updateDriverToken, callback) { + var postBody = updateDriverToken; + + // verify the required parameter 'updateDriverToken' is set + if (updateDriverToken === undefined || updateDriverToken === null) { + throw new Error("Missing the required parameter 'updateDriverToken' when calling addDriverNotificationToken"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/drivers/token', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the deleteDriverProfileImage operation. + * @callback module:api/DriversApi~deleteDriverProfileImageCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Delete driver profile image + * @param {module:api/DriversApi~deleteDriverProfileImageCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.deleteDriverProfileImage = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/drivers/profile/image', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the driverLogin operation. + * @callback module:api/DriversApi~driverLoginCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * [PRIVATE] Login with phone number and pin + * @param {module:model/DriverLoginModel} driverLoginModel Driver request login code model + * @param {module:api/DriversApi~driverLoginCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.driverLogin = function(driverLoginModel, callback) { + var postBody = driverLoginModel; + + // verify the required parameter 'driverLoginModel' is set + if (driverLoginModel === undefined || driverLoginModel === null) { + throw new Error("Missing the required parameter 'driverLoginModel' when calling driverLogin"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/drivers/login', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the driverRequestLoginCodeSms operation. + * @callback module:api/DriversApi~driverRequestLoginCodeSmsCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * [PRIVATE] Request an SMS to be sent to the driver with their login code + * @param {module:model/DriverRequestLoginPinModel} driverRequestLoginPinModel Driver request login code model + * @param {module:api/DriversApi~driverRequestLoginCodeSmsCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.driverRequestLoginCodeSms = function(driverRequestLoginPinModel, callback) { + var postBody = driverRequestLoginPinModel; + + // verify the required parameter 'driverRequestLoginPinModel' is set + if (driverRequestLoginPinModel === undefined || driverRequestLoginPinModel === null) { + throw new Error("Missing the required parameter 'driverRequestLoginPinModel' when calling driverRequestLoginCodeSms"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/drivers/pin', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the getDriverProfile operation. + * @callback module:api/DriversApi~getDriverProfileCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultDriver} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get driver profile + * @param {module:api/DriversApi~getDriverProfileCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultDriver} + */ + this.getDriverProfile = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultDriver; + + return this.apiClient.callApi( + '/api/v1.0/drivers/profile', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the getStoresForDriver operation. + * @callback module:api/DriversApi~getStoresForDriverCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultDriverStore} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get stores for driver + * @param {module:api/DriversApi~getStoresForDriverCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultDriverStore} + */ + this.getStoresForDriver = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultDriverStore; + + return this.apiClient.callApi( + '/api/v1.0/drivers/assignedstores', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the removeDriverNotificationToken operation. + * @callback module:api/DriversApi~removeDriverNotificationTokenCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Delete driver token + * @param {module:model/UpdateDriverNotificationToken} removeDriverToken + * @param {module:api/DriversApi~removeDriverNotificationTokenCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.removeDriverNotificationToken = function(removeDriverToken, callback) { + var postBody = removeDriverToken; + + // verify the required parameter 'removeDriverToken' is set + if (removeDriverToken === undefined || removeDriverToken === null) { + throw new Error("Missing the required parameter 'removeDriverToken' when calling removeDriverNotificationToken"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/drivers/token', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the setDriverPresenceForStore operation. + * @callback module:api/DriversApi~setDriverPresenceForStoreCallback + * @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} presence + * @param {module:api/DriversApi~setDriverPresenceForStoreCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.setDriverPresenceForStore = function(storeId, presence, callback) { + var postBody = null; + + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling setDriverPresenceForStore"); + } + + // verify the required parameter 'presence' is set + if (presence === undefined || presence === null) { + throw new Error("Missing the required parameter 'presence' when calling setDriverPresenceForStore"); + } + + + var pathParams = { + 'storeId': storeId, + 'presence': presence + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/drivers/stores/{storeId}/presence/{presence}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the setDriverProfileImage operation. + * @callback module:api/DriversApi~setDriverProfileImageCallback + * @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. + */ + + /** + * Set driver profile image and returns it's url + * @param {module:api/DriversApi~setDriverProfileImageCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + this.setDriverProfileImage = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiStringResult; + + return this.apiClient.callApi( + '/api/v1.0/drivers/profile/image', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the updateDeliveryTrackingStatus operation. + * @callback module:api/DriversApi~updateDeliveryTrackingStatusCallback + * @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. + */ + + /** + * Change delivery tracking status and return the updated status. + * ... + * @param {Number} orderId Order identifier + * @param {module:model/String} deliveryTrackingStatus + * @param {module:api/DriversApi~updateDeliveryTrackingStatusCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + this.updateDeliveryTrackingStatus = function(orderId, deliveryTrackingStatus, callback) { + var postBody = null; + + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling updateDeliveryTrackingStatus"); + } + + // verify the required parameter 'deliveryTrackingStatus' is set + if (deliveryTrackingStatus === undefined || deliveryTrackingStatus === null) { + throw new Error("Missing the required parameter 'deliveryTrackingStatus' when calling updateDeliveryTrackingStatus"); + } + + + var pathParams = { + 'orderId': orderId, + 'deliveryTrackingStatus': deliveryTrackingStatus + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiStringResult; + + return this.apiClient.callApi( + '/api/v1.0/orders/{orderId}/tracking/{deliveryTrackingStatus}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the updateDriverProfile operation. + * @callback module:api/DriversApi~updateDriverProfileCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Update driver profile + * @param {module:model/UpdateDriverProfileModel} updateDriverProfile Update the driver profile (i.e Name) + * @param {module:api/DriversApi~updateDriverProfileCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.updateDriverProfile = function(updateDriverProfile, callback) { + var postBody = updateDriverProfile; + + // verify the required parameter 'updateDriverProfile' is set + if (updateDriverProfile === undefined || updateDriverProfile === null) { + throw new Error("Missing the required parameter 'updateDriverProfile' when calling updateDriverProfile"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/drivers/profile', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/EventsApi.js b/src/api/EventsApi.js index 603cc8c3..5d51d0e6 100644 --- a/src/api/EventsApi.js +++ b/src/api/EventsApi.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -56,14 +56,22 @@ */ /** - * Get customer events + * Get customer events For technical reasons, the number of records returned is limited to 100. * @param {Number} customerId Customer identifier identifier * @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 {Array.} opts.name Event names to filter in + * @param {Number} opts.orderId Events that have Order Id + * @param {Number} opts.storeId Events that have Store Id + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId Events that have User 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} */ @@ -85,10 +93,18 @@ 'page': opts['page'], 'start': opts['start'], 'end': opts['end'], + 'orderId': opts['orderId'], + 'storeId': opts['storeId'], + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'flipdishEventId': opts['flipdishEventId'], }; var collectionQueryParams = { - 'name': { - value: opts['name'], + 'eventType': { + value: opts['eventType'], collectionFormat: 'multi' }, }; @@ -118,16 +134,23 @@ */ /** - * Get events + * Get events For technical reasons, the number of records returned is limited to 100. * @param {Object} opts Optional parameters - * @param {Number} opts.storeId Store Id * @param {Number} opts.whiteLabelId White Label Id * @param {Number} opts.customerId Customer Id * @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 {Array.} opts.name Event names to filter in + * @param {Number} opts.orderId Events that have Order Id + * @param {Number} opts.storeId Events that have Store Id + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId Events that have User 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} */ @@ -139,17 +162,24 @@ var pathParams = { }; var queryParams = { - 'storeId': opts['storeId'], 'whiteLabelId': opts['whiteLabelId'], 'customerId': opts['customerId'], 'limit': opts['limit'], 'page': opts['page'], 'start': opts['start'], 'end': opts['end'], + 'orderId': opts['orderId'], + 'storeId': opts['storeId'], + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'flipdishEventId': opts['flipdishEventId'], }; var collectionQueryParams = { - 'name': { - value: opts['name'], + 'eventType': { + value: opts['eventType'], collectionFormat: 'multi' }, }; @@ -179,7 +209,7 @@ */ /** - * Get event by Id + * Get event by Id For technical reasons, the number of records returned is limited to 100. * @param {String} eventId Event identifier (Guid) * @param {module:api/EventsApi~getEventsByIdCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/EventSearchResult} @@ -226,14 +256,22 @@ */ /** - * Get menu events + * Get menu events For technical reasons, the number of records returned is limited to 100. * @param {Number} menuId Menu Identifier * @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 {Array.} opts.name Event names to filter in + * @param {Number} opts.orderId Events that have Order Id + * @param {Number} opts.storeId Events that have Store Id + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId Events that have User 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} */ @@ -255,10 +293,18 @@ 'page': opts['page'], 'start': opts['start'], 'end': opts['end'], + 'orderId': opts['orderId'], + 'storeId': opts['storeId'], + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'flipdishEventId': opts['flipdishEventId'], }; var collectionQueryParams = { - 'name': { - value: opts['name'], + 'eventType': { + value: opts['eventType'], collectionFormat: 'multi' }, }; @@ -288,14 +334,22 @@ */ /** - * Get order events + * Get order events For technical reasons, the number of records returned is limited to 100. * @param {Number} orderId Order identifier * @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 {Array.} opts.name Event names to filter in + * @param {Number} opts.orderId2 Events that have Order Id + * @param {Number} opts.storeId Events that have Store Id + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId Events that have User 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} */ @@ -317,10 +371,18 @@ 'page': opts['page'], 'start': opts['start'], 'end': opts['end'], + 'orderId': opts['orderId2'], + 'storeId': opts['storeId'], + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'flipdishEventId': opts['flipdishEventId'], }; var collectionQueryParams = { - 'name': { - value: opts['name'], + 'eventType': { + value: opts['eventType'], collectionFormat: 'multi' }, }; @@ -350,14 +412,22 @@ */ /** - * Get order events by customer + * Get order events by customer For technical reasons, the number of records returned is limited to 100. * @param {Number} customerId Customer identifier * @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 {Array.} opts.name Event names to filter in + * @param {Number} opts.orderId Events that have Order Id + * @param {Number} opts.storeId Events that have Store Id + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId Events that have User 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} */ @@ -379,10 +449,18 @@ 'page': opts['page'], 'start': opts['start'], 'end': opts['end'], + 'orderId': opts['orderId'], + 'storeId': opts['storeId'], + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'flipdishEventId': opts['flipdishEventId'], }; var collectionQueryParams = { - 'name': { - value: opts['name'], + 'eventType': { + value: opts['eventType'], collectionFormat: 'multi' }, }; @@ -412,14 +490,22 @@ */ /** - * Get store events + * Get store events For technical reasons, the number of records returned is limited to 100. * @param {Number} storeId Id of the store * @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 {Array.} opts.name Event names to filter in + * @param {Number} opts.orderId Events that have Order Id + * @param {Number} opts.storeId2 Events that have Store Id + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId Events that have User 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} */ @@ -441,10 +527,18 @@ 'page': opts['page'], 'start': opts['start'], 'end': opts['end'], + 'orderId': opts['orderId'], + 'storeId': opts['storeId2'], + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'flipdishEventId': opts['flipdishEventId'], }; var collectionQueryParams = { - 'name': { - value: opts['name'], + 'eventType': { + value: opts['eventType'], collectionFormat: 'multi' }, }; @@ -474,14 +568,22 @@ */ /** - * Get user events + * Get user events For technical reasons, the number of records returned is limited to 100. * @param {Number} userId User identifier * @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 {Array.} opts.name Event names to filter in + * @param {Number} opts.orderId Events that have Order Id + * @param {Number} opts.storeId Events that have Store Id + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId2 Events that have User 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} */ @@ -503,10 +605,18 @@ 'page': opts['page'], 'start': opts['start'], 'end': opts['end'], + 'orderId': opts['orderId'], + 'storeId': opts['storeId'], + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId2'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'flipdishEventId': opts['flipdishEventId'], }; var collectionQueryParams = { - 'name': { - value: opts['name'], + 'eventType': { + value: opts['eventType'], collectionFormat: 'multi' }, }; @@ -536,14 +646,22 @@ */ /** - * Get WhiteLabel events + * Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. * @param {Number} whitelabelId White Label Identifier * @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 {Array.} opts.name Event names to filter in + * @param {Number} opts.orderId Events that have Order Id + * @param {Number} opts.storeId Events that have Store Id + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId Events that have User 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} */ @@ -565,10 +683,18 @@ 'page': opts['page'], 'start': opts['start'], 'end': opts['end'], + 'orderId': opts['orderId'], + 'storeId': opts['storeId'], + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'flipdishEventId': opts['flipdishEventId'], }; var collectionQueryParams = { - 'name': { - value: opts['name'], + 'eventType': { + value: opts['eventType'], collectionFormat: 'multi' }, }; diff --git a/src/api/FilesApi.js b/src/api/FilesApi.js new file mode 100644 index 00000000..0750178b --- /dev/null +++ b/src/api/FilesApi.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RestApiForbiddenResult', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/RestApiForbiddenResult'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.FilesApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, RestApiForbiddenResult, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * Files service. + * @module api/FilesApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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 {'String'} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get file from storage + * @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 'String'} + */ + this.downloadFile = function(appId, fileId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'fileId': fileId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = 'String'; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/files/download/{fileId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/HeartbeatApi.js b/src/api/HeartbeatApi.js new file mode 100644 index 00000000..9fb1390c --- /dev/null +++ b/src/api/HeartbeatApi.js @@ -0,0 +1,208 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiStringResult', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiStringResult'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HeartbeatApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiStringResult, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, RestApiErrorResult, RestApiForbiddenResult, RestApiStringResult, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * Heartbeat service. + * @module api/HeartbeatApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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} + */ + this.headHostname = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = Object; + + return this.apiClient.callApi( + '/api/v1.0/heartbeat/Hostname', 'HEAD', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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} + */ + this.headPing = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiStringResult; + + return this.apiClient.callApi( + '/api/v1.0/heartbeat', 'HEAD', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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} + */ + this.hostname = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = Object; + + return this.apiClient.callApi( + '/api/v1.0/heartbeat/Hostname', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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} + */ + this.ping = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiStringResult; + + return this.apiClient.callApi( + '/api/v1.0/heartbeat', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/HomeApi.js b/src/api/HomeApi.js new file mode 100644 index 00000000..4efac21e --- /dev/null +++ b/src/api/HomeApi.js @@ -0,0 +1,247 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RestApiArrayResultHomeAction', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultHomeStatistics', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/RestApiArrayResultHomeAction'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultHomeStatistics'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HomeApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiArrayResultHomeAction, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultHomeStatistics, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, RestApiArrayResultHomeAction, RestApiErrorResult, RestApiForbiddenResult, RestApiResultHomeStatistics, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * Home service. + * @module api/HomeApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * [PRIVATE API] Complete Home Action + * @param {String} appId App Name Id + * @param {Number} homeActionId Id of the action + * @param {Boolean} isDismissed + * @param {module:api/HomeApi~completeHomeActionCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + this.completeHomeAction = function(appId, homeActionId, isDismissed, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'homeActionId': homeActionId + }; + var queryParams = { + 'isDismissed': isDismissed, + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = Object; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/home/{homeActionId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the dismissOldPortalAction operation. + * @callback module:api/HomeApi~dismissOldPortalActionCallback + * @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] Complete Home Action + * @param {module:api/HomeApi~dismissOldPortalActionCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + this.dismissOldPortalAction = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = Object; + + return this.apiClient.callApi( + '/api/v1.0/home/dismissoldportalaction', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API] Get Home Actions + * @param {String} appId App Name Id + * @param {module:api/HomeApi~getHomeActionsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultHomeAction} + */ + this.getHomeActions = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultHomeAction; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/home', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API] Get Home Statistics + * @param {String} appId App Name Id + * @param {module:api/HomeApi~getHomeStatisticsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultHomeStatistics} + */ + this.getHomeStatistics = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultHomeStatistics; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/home/stats', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/HttpRequestResponseLogsApi.js b/src/api/HttpRequestResponseLogsApi.js index b66e35ff..e954e257 100644 --- a/src/api/HttpRequestResponseLogsApi.js +++ b/src/api/HttpRequestResponseLogsApi.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -48,8 +48,8 @@ /** - * Callback function to receive the result of the getHttpLogsByUserIdAsync operation. - * @callback module:api/HttpRequestResponseLogsApi~getHttpLogsByUserIdAsyncCallback + * Callback function to receive the result of the getLogs operation. + * @callback module:api/HttpRequestResponseLogsApi~getLogsCallback * @param {String} error Error message, if any. * @param {module:model/RestApiPaginationResultHttpRequestAndResponseLog} data The data returned by the service call. * @param {String} response The complete HTTP response. @@ -59,34 +59,43 @@ * Get API interaction logs * @param {Date} start Start date time * @param {Date} end End date time + * @param {String} appId * @param {Object} opts Optional parameters * @param {Number} opts.filterByUserId User id (optional) + * @param {String} opts.guid Id of the log * @param {Number} opts.page Page number * @param {Number} opts.limit Page size - * @param {module:api/HttpRequestResponseLogsApi~getHttpLogsByUserIdAsyncCallback} callback The callback function, accepting three arguments: error, data, response + * @param {module:api/HttpRequestResponseLogsApi~getLogsCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/RestApiPaginationResultHttpRequestAndResponseLog} */ - this.getHttpLogsByUserIdAsync = function(start, end, opts, callback) { + this.getLogs = function(start, end, appId, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'start' is set if (start === undefined || start === null) { - throw new Error("Missing the required parameter 'start' when calling getHttpLogsByUserIdAsync"); + throw new Error("Missing the required parameter 'start' when calling getLogs"); } // verify the required parameter 'end' is set if (end === undefined || end === null) { - throw new Error("Missing the required parameter 'end' when calling getHttpLogsByUserIdAsync"); + throw new Error("Missing the required parameter 'end' when calling getLogs"); + } + + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getLogs"); } var pathParams = { + 'appId': appId }; var queryParams = { 'start': start, 'end': end, 'filterByUserId': opts['filterByUserId'], + 'guid': opts['guid'], 'page': opts['page'], 'limit': opts['limit'], }; @@ -103,7 +112,7 @@ var returnType = RestApiPaginationResultHttpRequestAndResponseLog; return this.apiClient.callApi( - '/api/v1.0/interactions/logs', 'GET', + '/api/v1.0/{appId}/interactions/logs', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); diff --git a/src/api/HydraApi.js b/src/api/HydraApi.js new file mode 100644 index 00000000..3788f512 --- /dev/null +++ b/src/api/HydraApi.js @@ -0,0 +1,897 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/EmvTerminal', 'model/HydraRegistrationRequest', 'model/RestApiArrayResultEmvTerminalWithAssignments', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiPaginationResultHydraDeviceDetails', 'model/RestApiResultHydraConfig', 'model/RestApiResultHydraStatus', 'model/RestApiResultPaymentTerminalDetails', 'model/RestApiResultPaymentTerminalTransactionDetails', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/EmvTerminal'), require('../model/HydraRegistrationRequest'), require('../model/RestApiArrayResultEmvTerminalWithAssignments'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiPaginationResultHydraDeviceDetails'), require('../model/RestApiResultHydraConfig'), require('../model/RestApiResultHydraStatus'), require('../model/RestApiResultPaymentTerminalDetails'), require('../model/RestApiResultPaymentTerminalTransactionDetails'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HydraApi = factory(root.Flipdish.ApiClient, root.Flipdish.EmvTerminal, root.Flipdish.HydraRegistrationRequest, root.Flipdish.RestApiArrayResultEmvTerminalWithAssignments, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiPaginationResultHydraDeviceDetails, root.Flipdish.RestApiResultHydraConfig, root.Flipdish.RestApiResultHydraStatus, root.Flipdish.RestApiResultPaymentTerminalDetails, root.Flipdish.RestApiResultPaymentTerminalTransactionDetails, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, EmvTerminal, HydraRegistrationRequest, RestApiArrayResultEmvTerminalWithAssignments, RestApiErrorResult, RestApiForbiddenResult, RestApiPaginationResultHydraDeviceDetails, RestApiResultHydraConfig, RestApiResultHydraStatus, RestApiResultPaymentTerminalDetails, RestApiResultPaymentTerminalTransactionDetails, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * Hydra service. + * @module api/HydraApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * Assign an EMV terminal to a kiosk + * @param {String} appId + * @param {Number} hydraConfigId + * @param {Number} emvTerminalId + * @param {module:api/HydraApi~assignEmvCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.assignEmv = function(appId, hydraConfigId, emvTerminalId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'hydraConfigId': hydraConfigId, + 'emvTerminalId': emvTerminalId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/emvterminal/assign/{hydraConfigId}/{emvTerminalId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [Private] + * @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} + */ + this.attachStoreToTerminal = function(appId, deviceId, storeId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'deviceId': deviceId, + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultHydraStatus; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/{deviceId}/attach/{storeId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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 + */ + this.cancelEmvPayment = function(orderId, appId, callback) { + var 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"); + } + + + var pathParams = { + 'orderId': orderId, + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/cancelemvpayment/{orderId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [Private] + * @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} + */ + this.detachStoreFromTerminal = function(appId, deviceId, storeId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'deviceId': deviceId, + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultHydraStatus; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/{deviceId}/detach/{storeId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [Private] + * @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} + */ + this.getAttachedDevices = function(appId, deviceType, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'deviceType': deviceType + }; + var queryParams = { + 'pageIndex': opts['pageIndex'], + 'pageSize': opts['pageSize'], + 'storeId': opts['storeId'], + 'deviceName': opts['deviceName'], + 'deviceSerial': opts['deviceSerial'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultHydraDeviceDetails; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/{deviceType}/list', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [Private] + * @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} + */ + this.getEMVTerminalDetails = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultPaymentTerminalDetails; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/emvterminal', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [Private] + * @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} + */ + this.getEmvOrderState = function(orderId, appId, callback) { + var 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"); + } + + + var pathParams = { + 'orderId': orderId, + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultPaymentTerminalTransactionDetails; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/emvorderstate/{orderId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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} + */ + this.getRegistration = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultHydraStatus; + + return this.apiClient.callApi( + '/api/v1.0/hydra/registration', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [Private] + * @param {module:api/HydraApi~getSettingsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultHydraConfig} + */ + this.getSettings = function(callback) { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultHydraConfig; + + return this.apiClient.callApi( + '/api/v1.0/hydra/settings', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [Private] + * @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} + */ + this.hydraCreateEmv = function(appId, emv, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = Object; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/emvterminals', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [Private] + * @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} + */ + this.hydraDeleteEmv = function(appId, id, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'id': id + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = Object; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/emvterminals/{id}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * List EMV terminals belonging to the given AppNameId + * @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} + */ + this.hydraGetEmvsForAppId = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultEmvTerminalWithAssignments; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/emvterminals', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [Private] + * @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 + */ + this.loginWithDeviceId = function(deviceId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'deviceId': deviceId + }; + var queryParams = { + 'hydraUserType': opts['hydraUserType'], + 'serialNumber': opts['serialNumber'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/hydra/{deviceId}/login', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [Private] + * @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} + */ + this.register = function(appId, hydraRegistration, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultHydraStatus; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/registration', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [Private] + * @param {String} appId + * @param {String} deviceId + * @param {module:api/HydraApi~unAssignCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.unAssign = function(appId, deviceId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'deviceId': deviceId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/{deviceId}/registration', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Unassign the currently assigned EMV terminal from a kiosk + * @param {String} appId + * @param {Number} hydraConfigId + * @param {module:api/HydraApi~unassignEmvCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.unassignEmv = function(appId, hydraConfigId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'hydraConfigId': hydraConfigId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/emvterminal/unassign/{hydraConfigId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/LightspeedApi.js b/src/api/LightspeedApi.js new file mode 100644 index 00000000..df379b23 --- /dev/null +++ b/src/api/LightspeedApi.js @@ -0,0 +1,196 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/LightspeedSettings', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultLightspeedSettings', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/LightspeedSettings'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultLightspeedSettings'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.LightspeedApi = factory(root.Flipdish.ApiClient, root.Flipdish.LightspeedSettings, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultLightspeedSettings, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, LightspeedSettings, RestApiErrorResult, RestApiForbiddenResult, RestApiResultLightspeedSettings, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * Lightspeed service. + * @module api/LightspeedApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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} + */ + this.lightspeedGenerateMenu = function(storeId, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = Object; + + return this.apiClient.callApi( + '/api/v1.0/lightspeed/{storeId}/menu/generate', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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} + */ + this.lightspeedGetStoreSettings = function(storeId, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultLightspeedSettings; + + return this.apiClient.callApi( + '/api/v1.0/lightspeed/{storeId}/settings', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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} + */ + this.lightspeedSaveStoreSettings = function(storeId, lightspeedSettings, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultLightspeedSettings; + + return this.apiClient.callApi( + '/api/v1.0/lightspeed/{storeId}/settings', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/MenuOptionSetItemsApi.js b/src/api/MenuOptionSetItemsApi.js index 3bfaaf1a..0ba3c52a 100644 --- a/src/api/MenuOptionSetItemsApi.js +++ b/src/api/MenuOptionSetItemsApi.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -412,6 +412,87 @@ ); } + /** + * 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. + */ + + /** + * [Private API] 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 + */ + this.setOptionSetItemTax = function(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, taxRateId, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'optionSetId': optionSetId, + 'menuItemOptionSetItemId': menuItemOptionSetItemId, + 'taxRateId': taxRateId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/taxrate/{taxRateId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + /** * Callback function to receive the result of the updateMenuItemOptionSetItem operation. * @callback module:api/MenuOptionSetItemsApi~updateMenuItemOptionSetItemCallback @@ -511,11 +592,11 @@ * @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 {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} */ - this.uploadOptionSetItemImage = function(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, image, callback) { + this.uploadOptionSetItemImage = function(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, Image, callback) { var postBody = null; // verify the required parameter 'menuId' is set @@ -543,9 +624,9 @@ 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"); + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadOptionSetItemImage"); } @@ -563,7 +644,7 @@ var headerParams = { }; var formParams = { - 'Image': image + 'Image': Image }; var authNames = ['oauth2']; diff --git a/src/api/MenuOptionSetsApi.js b/src/api/MenuOptionSetsApi.js index f5f2bf13..bb42722c 100644 --- a/src/api/MenuOptionSetsApi.js +++ b/src/api/MenuOptionSetsApi.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -388,13 +388,13 @@ /** * Update menu item option set * @param {Number} menuId Menu identifier - * @param {Number} menuSectionItemId Menu section item 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 */ - this.updateMenuItemOptionSet = function(menuId, menuSectionItemId, menuSectionId, optionSetId, menuItemOptionSet, callback) { + this.updateMenuItemOptionSet = function(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSet, callback) { var postBody = menuItemOptionSet; // verify the required parameter 'menuId' is set @@ -402,16 +402,16 @@ throw new Error("Missing the required parameter 'menuId' 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 '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"); @@ -425,8 +425,8 @@ var pathParams = { 'menuId': menuId, - 'menuSectionItemId': menuSectionItemId, 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, 'optionSetId': optionSetId }; var queryParams = { @@ -464,11 +464,11 @@ * @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 {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} */ - this.uploadOptionSetImage = function(menuId, menuSectionId, menuSectionItemId, optionSetId, image, callback) { + this.uploadOptionSetImage = function(menuId, menuSectionId, menuSectionItemId, optionSetId, Image, callback) { var postBody = null; // verify the required parameter 'menuId' is set @@ -491,9 +491,9 @@ 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"); + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadOptionSetImage"); } @@ -510,7 +510,7 @@ var headerParams = { }; var formParams = { - 'Image': image + 'Image': Image }; var authNames = ['oauth2']; diff --git a/src/api/MenuSectionItemsApi.js b/src/api/MenuSectionItemsApi.js index 31328c1d..3c7250ab 100644 --- a/src/api/MenuSectionItemsApi.js +++ b/src/api/MenuSectionItemsApi.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -47,6 +47,67 @@ 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} + */ + this.cloneMenuSectionItem = function(menuId, menuSectionId, menuSectionItemId, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultMenuSectionItem; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/clone', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + /** * Callback function to receive the result of the createMenuSectionItem operation. * @callback module:api/MenuSectionItemsApi~createMenuSectionItemCallback @@ -342,6 +403,140 @@ ); } + /** + * 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. + */ + + /** + * [PRIVATE API]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 + */ + this.moveMenuItem = function(menuId, menuSectionId, menuSectionItemId, destinationDisplayOrder, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'destinationDisplayOrder': destinationDisplayOrder + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/setorder/{destinationDisplayOrder}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API]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} taxRateId tax rate to be set against item + * @param {module:api/MenuSectionItemsApi~setSectionItemTaxCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.setSectionItemTax = function(menuId, menuSectionId, menuSectionItemId, taxRateId, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'taxRateId': taxRateId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/taxrate/{taxRateId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + /** * Callback function to receive the result of the updateMenuSectionItem operation. * @callback module:api/MenuSectionItemsApi~updateMenuSectionItemCallback @@ -425,11 +620,11 @@ * @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 {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} */ - this.uploadMenuSectionItemImage = function(menuId, menuSectionId, menuSectionItemId, image, callback) { + this.uploadMenuSectionItemImage = function(menuId, menuSectionId, menuSectionItemId, Image, callback) { var postBody = null; // verify the required parameter 'menuId' is set @@ -447,9 +642,9 @@ 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"); + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadMenuSectionItemImage"); } @@ -465,7 +660,7 @@ var headerParams = { }; var formParams = { - 'Image': image + 'Image': Image }; var authNames = ['oauth2']; diff --git a/src/api/MenuSectionsApi.js b/src/api/MenuSectionsApi.js index e3f65585..6d5e83ca 100644 --- a/src/api/MenuSectionsApi.js +++ b/src/api/MenuSectionsApi.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,18 +16,18 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/MenuSectionBase', 'model/RestApiArrayResultMenuSection', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultMenuSection', 'model/RestApiStringResult', 'model/RestApiUnauthorizedResult'], factory); + define(['ApiClient', 'model/BusinessHoursPeriodBase', 'model/MenuObjectDisplayOrders', 'model/MenuSectionAvailabilityBase', 'model/MenuSectionBase', 'model/RestApiArrayResultMenuSection', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultBusinessHoursPeriod', 'model/RestApiResultMenuSection', 'model/RestApiResultMenuSectionAvailability', 'model/RestApiStringResult', 'model/RestApiUnauthorizedResult'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/MenuSectionBase'), require('../model/RestApiArrayResultMenuSection'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultMenuSection'), require('../model/RestApiStringResult'), require('../model/RestApiUnauthorizedResult')); + module.exports = factory(require('../ApiClient'), require('../model/BusinessHoursPeriodBase'), require('../model/MenuObjectDisplayOrders'), require('../model/MenuSectionAvailabilityBase'), require('../model/MenuSectionBase'), require('../model/RestApiArrayResultMenuSection'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultBusinessHoursPeriod'), require('../model/RestApiResultMenuSection'), require('../model/RestApiResultMenuSectionAvailability'), require('../model/RestApiStringResult'), require('../model/RestApiUnauthorizedResult')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.MenuSectionsApi = factory(root.Flipdish.ApiClient, root.Flipdish.MenuSectionBase, root.Flipdish.RestApiArrayResultMenuSection, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultMenuSection, root.Flipdish.RestApiStringResult, root.Flipdish.RestApiUnauthorizedResult); + root.Flipdish.MenuSectionsApi = factory(root.Flipdish.ApiClient, root.Flipdish.BusinessHoursPeriodBase, root.Flipdish.MenuObjectDisplayOrders, root.Flipdish.MenuSectionAvailabilityBase, root.Flipdish.MenuSectionBase, root.Flipdish.RestApiArrayResultMenuSection, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultBusinessHoursPeriod, root.Flipdish.RestApiResultMenuSection, root.Flipdish.RestApiResultMenuSectionAvailability, root.Flipdish.RestApiStringResult, root.Flipdish.RestApiUnauthorizedResult); } -}(this, function(ApiClient, MenuSectionBase, RestApiArrayResultMenuSection, RestApiErrorResult, RestApiForbiddenResult, RestApiResultMenuSection, RestApiStringResult, RestApiUnauthorizedResult) { +}(this, function(ApiClient, BusinessHoursPeriodBase, MenuObjectDisplayOrders, MenuSectionAvailabilityBase, MenuSectionBase, RestApiArrayResultMenuSection, RestApiErrorResult, RestApiForbiddenResult, RestApiResultBusinessHoursPeriod, RestApiResultMenuSection, RestApiResultMenuSectionAvailability, RestApiStringResult, RestApiUnauthorizedResult) { 'use strict'; /** @@ -47,6 +47,127 @@ 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} + */ + this.cloneMenuSection = function(menuId, menuSectionId, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultMenuSection; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/clone', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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} + */ + this.createMenuAvailabilityForDay = function(menuId, menuSectionId, dayOfWeek, businessHoursPeriod, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'dayOfWeek': dayOfWeek + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = Object; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability/times/{dayOfWeek}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + /** * Callback function to receive the result of the createMenuSection operation. * @callback module:api/MenuSectionsApi~createMenuSectionCallback @@ -100,6 +221,66 @@ ); } + /** + * 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} + */ + this.createMenuSectionAvailability = function(menuId, menuSectionId, menuSectionAvailability, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = Object; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + /** * Callback function to receive the result of the deleteMenuSection operation. * @callback module:api/MenuSectionsApi~deleteMenuSectionCallback @@ -307,6 +488,65 @@ ); } + /** + * 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 + */ + this.menuSectionsSetItemDisplayOrders = function(menuId, menuSectionId, displayOrders, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitemdisplayorders', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + /** * Callback function to receive the result of the updateMenuSection operation. * @callback module:api/MenuSectionsApi~updateMenuSectionCallback @@ -320,10 +560,12 @@ * @param {Number} menuId Menu identifier * @param {Number} menuSectionId Menu section identifier * @param {module:model/MenuSectionBase} menuSection Menu section changes (delta) - * @param {Number} undoAfter An optional time period, in hours, after which the hide-section operaton will be undone. + * @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 */ - this.updateMenuSection = function(menuId, menuSectionId, menuSection, undoAfter, callback) { + this.updateMenuSection = function(menuId, menuSectionId, menuSection, opts, callback) { + opts = opts || {}; var postBody = menuSection; // verify the required parameter 'menuId' is set @@ -341,18 +583,13 @@ throw new Error("Missing the required parameter 'menuSection' when calling updateMenuSection"); } - // verify the required parameter 'undoAfter' is set - if (undoAfter === undefined || undoAfter === null) { - throw new Error("Missing the required parameter 'undoAfter' when calling updateMenuSection"); - } - var pathParams = { 'menuId': menuId, 'menuSectionId': menuSectionId }; var queryParams = { - 'undoAfter': undoAfter, + 'undoAfter': opts['undoAfter'], }; var collectionQueryParams = { }; @@ -385,11 +622,11 @@ * Upload menu section image * @param {Number} menuId Menu identifier * @param {Number} menuSectionId Menu section identifier - * @param {File} image Menu section image + * @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} */ - this.uploadMenuSectionImage = function(menuId, menuSectionId, image, callback) { + this.uploadMenuSectionImage = function(menuId, menuSectionId, Image, callback) { var postBody = null; // verify the required parameter 'menuId' is set @@ -402,9 +639,9 @@ 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"); + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadMenuSectionImage"); } @@ -419,7 +656,7 @@ var headerParams = { }; var formParams = { - 'Image': image + 'Image': Image }; var authNames = ['oauth2']; diff --git a/src/api/MenusApi.js b/src/api/MenusApi.js index 6a8f0af1..08463f38 100644 --- a/src/api/MenusApi.js +++ b/src/api/MenusApi.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,18 +16,18 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/MenuBase', 'model/Metadata', 'model/RestApiArrayResultMetadata', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultMenu', 'model/RestApiResultMetadata', 'model/RestApiStringResult', 'model/RestApiUnauthorizedResult'], factory); + define(['ApiClient', 'model/CreateFullMenu', 'model/MenuBase', 'model/MenuElementHide', 'model/MenuObjectDisplayOrders', 'model/MenuTaxRate', 'model/Metadata', 'model/RestApiArrayResultAllMetadataResult', 'model/RestApiArrayResultMenuCheckpoint', 'model/RestApiArrayResultMenuElementEditResponse', 'model/RestApiArrayResultMenuStoreNames', 'model/RestApiArrayResultMenuSummary', 'model/RestApiArrayResultMenuTaxDetails', 'model/RestApiArrayResultMetadata', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultMenu', 'model/RestApiResultMetadata', 'model/RestApiStringResult', 'model/RestApiUnauthorizedResult'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/MenuBase'), require('../model/Metadata'), require('../model/RestApiArrayResultMetadata'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultMenu'), require('../model/RestApiResultMetadata'), require('../model/RestApiStringResult'), require('../model/RestApiUnauthorizedResult')); + module.exports = factory(require('../ApiClient'), require('../model/CreateFullMenu'), require('../model/MenuBase'), require('../model/MenuElementHide'), require('../model/MenuObjectDisplayOrders'), require('../model/MenuTaxRate'), require('../model/Metadata'), require('../model/RestApiArrayResultAllMetadataResult'), require('../model/RestApiArrayResultMenuCheckpoint'), require('../model/RestApiArrayResultMenuElementEditResponse'), require('../model/RestApiArrayResultMenuStoreNames'), require('../model/RestApiArrayResultMenuSummary'), require('../model/RestApiArrayResultMenuTaxDetails'), require('../model/RestApiArrayResultMetadata'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultMenu'), require('../model/RestApiResultMetadata'), require('../model/RestApiStringResult'), require('../model/RestApiUnauthorizedResult')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.MenusApi = factory(root.Flipdish.ApiClient, root.Flipdish.MenuBase, root.Flipdish.Metadata, root.Flipdish.RestApiArrayResultMetadata, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultMenu, root.Flipdish.RestApiResultMetadata, root.Flipdish.RestApiStringResult, root.Flipdish.RestApiUnauthorizedResult); + root.Flipdish.MenusApi = factory(root.Flipdish.ApiClient, root.Flipdish.CreateFullMenu, root.Flipdish.MenuBase, root.Flipdish.MenuElementHide, root.Flipdish.MenuObjectDisplayOrders, root.Flipdish.MenuTaxRate, root.Flipdish.Metadata, root.Flipdish.RestApiArrayResultAllMetadataResult, root.Flipdish.RestApiArrayResultMenuCheckpoint, root.Flipdish.RestApiArrayResultMenuElementEditResponse, root.Flipdish.RestApiArrayResultMenuStoreNames, root.Flipdish.RestApiArrayResultMenuSummary, root.Flipdish.RestApiArrayResultMenuTaxDetails, root.Flipdish.RestApiArrayResultMetadata, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultMenu, root.Flipdish.RestApiResultMetadata, root.Flipdish.RestApiStringResult, root.Flipdish.RestApiUnauthorizedResult); } -}(this, function(ApiClient, MenuBase, Metadata, RestApiArrayResultMetadata, RestApiErrorResult, RestApiForbiddenResult, RestApiResultMenu, RestApiResultMetadata, RestApiStringResult, RestApiUnauthorizedResult) { +}(this, function(ApiClient, CreateFullMenu, MenuBase, MenuElementHide, MenuObjectDisplayOrders, MenuTaxRate, Metadata, RestApiArrayResultAllMetadataResult, RestApiArrayResultMenuCheckpoint, RestApiArrayResultMenuElementEditResponse, RestApiArrayResultMenuStoreNames, RestApiArrayResultMenuSummary, RestApiArrayResultMenuTaxDetails, RestApiArrayResultMetadata, RestApiErrorResult, RestApiForbiddenResult, RestApiResultMenu, RestApiResultMetadata, RestApiStringResult, RestApiUnauthorizedResult) { 'use strict'; /** @@ -47,6 +47,205 @@ 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. + */ + + /** + * [PRIVATE API]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} + */ + this.createDraftMenuFromExistingMenu = function(menuId, newName, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'newName': newName + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultMenu; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/clone/{newName}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. If request body is empty, the system will create a menu with default items. + * @param {String} appId App identifier + * @param {module:model/CreateFullMenu} menu Menu + * @param {module:api/MenusApi~createNewMenuForAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link 'Number'} + */ + this.createNewMenuForApp = function(appId, menu, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = 'Number'; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API]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 + */ + this.deleteMenu = function(menuId, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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 + */ + this.deleteMenuImage = function(menuId, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/image', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + /** * Callback function to receive the result of the deleteMenuItemMetadata operation. * @callback module:api/MenusApi~deleteMenuItemMetadataCallback @@ -56,42 +255,626 @@ */ /** - * Get a menu item metadata by key + * 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 + */ + this.deleteMenuItemMetadata = function(menuId, storeId, menuItemId, key, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'storeId': storeId, + 'menuItemId': menuItemId, + 'key': key + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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} + */ + this.getAllMenuMetadataByMenuIdAndStoreId = function(menuId, storeId, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultAllMetadataResult; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/metadata/store/{storeId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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} + */ + this.getMenuById = function(menuId, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultMenu; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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} + */ + this.getMenuItemMetadata = function(menuId, storeId, menuItemId, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'storeId': storeId, + 'menuItemId': menuItemId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultMetadata; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the getMenuItemMetadataByKey operation. + * @callback module:api/MenusApi~getMenuItemMetadataByKeyCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @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 + */ + this.getMenuItemMetadataByKey = function(menuId, storeId, menuItemId, key, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'storeId': storeId, + 'menuItemId': menuItemId, + 'key': key + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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} + */ + this.getMenuItemOptionSetItemMetadata = function(menuId, storeId, optionSetItemId, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'storeId': storeId, + 'optionSetItemId': optionSetItemId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultMetadata; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API]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} + */ + this.getMenuStoreNames = function(menuId, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultMenuStoreNames; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/stores', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API]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} + */ + this.getMenuTaxDetails = function(menuId, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultMenuTaxDetails; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/tax', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API]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} + */ + this.getMenusByAppId = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultMenuSummary; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API]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} + */ + this.getMenusCheckpoints = function(menuId, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultMenuCheckpoint; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/checkpoints', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API]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 + */ + this.menusDeleteTaxRate = function(menuId, taxId, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId, + 'taxId': taxId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/tax/{taxId}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API]Set if tax shows for a Menu * @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 + * @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 */ - this.deleteMenuItemMetadata = function(menuId, storeId, menuItemId, key, callback) { + this.menusSetDisplayOnMenuTax = function(menuId, show, callback) { var 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"); + throw new Error("Missing the required parameter 'menuId' when calling menusSetDisplayOnMenuTax"); } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling deleteMenuItemMetadata"); + // verify the required parameter 'show' is set + if (show === undefined || show === null) { + throw new Error("Missing the required parameter 'show' when calling menusSetDisplayOnMenuTax"); } var pathParams = { 'menuId': menuId, - 'storeId': storeId, - 'menuItemId': menuItemId, - 'key': key + 'show': show }; var queryParams = { }; @@ -108,57 +891,42 @@ var returnType = null; return this.apiClient.callApi( - '/api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId}', 'GET', + '/api/v1.0/menus/{menuId}/tax/show/{show}', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** - * Callback function to receive the result of the deleteMenuItemMetadata_0 operation. - * @callback module:api/MenusApi~deleteMenuItemMetadata_0Callback + * 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. */ /** - * Update a menu items metadata + * [PRIVATE API]Re-arrange Sections within a Menu * @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~deleteMenuItemMetadata_0Callback} callback The callback function, accepting three arguments: error, data, response + * @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 */ - this.deleteMenuItemMetadata_0 = function(menuId, storeId, menuItemId, key, callback) { - var postBody = null; + this.menusSetItemDisplayOrders = function(menuId, displayOrders, callback) { + var postBody = displayOrders; // verify the required parameter 'menuId' is set if (menuId === undefined || menuId === null) { - throw new Error("Missing the required parameter 'menuId' when calling deleteMenuItemMetadata_0"); - } - - // verify the required parameter 'storeId' is set - if (storeId === undefined || storeId === null) { - throw new Error("Missing the required parameter 'storeId' when calling deleteMenuItemMetadata_0"); + throw new Error("Missing the required parameter 'menuId' when calling menusSetItemDisplayOrders"); } - // verify the required parameter 'menuItemId' is set - if (menuItemId === undefined || menuItemId === null) { - throw new Error("Missing the required parameter 'menuItemId' when calling deleteMenuItemMetadata_0"); - } - - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling deleteMenuItemMetadata_0"); + // verify the required parameter 'displayOrders' is set + if (displayOrders === undefined || displayOrders === null) { + throw new Error("Missing the required parameter 'displayOrders' when calling menusSetItemDisplayOrders"); } var pathParams = { - 'menuId': menuId, - 'storeId': storeId, - 'menuItemId': menuItemId, - 'key': key + 'menuId': menuId }; var queryParams = { }; @@ -170,36 +938,54 @@ }; var authNames = ['oauth2']; - var contentTypes = []; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; var returnType = null; return this.apiClient.callApi( - '/api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId}', 'DELETE', + '/api/v1.0/menus/{menuId}/sectiondisplayorders', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** - * Callback function to receive the result of the deleteMenuSectionImage operation. - * @callback module:api/MenusApi~deleteMenuSectionImageCallback + * Callback function to receive the result of the menusShowHideBulkItems operation. + * @callback module:api/MenusApi~menusShowHideBulkItemsCallback * @param {String} error Error message, if any. - * @param data This operation does not return a value. + * @param {module:model/RestApiArrayResultMenuElementEditResponse} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** - * Delete menu image - * @param {Number} menuId Menu identifier - * @param {module:api/MenusApi~deleteMenuSectionImageCallback} callback The callback function, accepting three arguments: error, data, response + * @param {Number} menuId + * @param {Array.} menuElements + * @param {Boolean} hide + * @param {Number} undoAfter + * @param {module:api/MenusApi~menusShowHideBulkItemsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultMenuElementEditResponse} */ - this.deleteMenuSectionImage = function(menuId, callback) { - var postBody = null; + this.menusShowHideBulkItems = function(menuId, menuElements, hide, undoAfter, callback) { + var postBody = menuElements; // verify the required parameter 'menuId' is set if (menuId === undefined || menuId === null) { - throw new Error("Missing the required parameter 'menuId' when calling deleteMenuSectionImage"); + throw new Error("Missing the required parameter 'menuId' 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"); + } + + // verify the required parameter 'hide' is set + if (hide === undefined || hide === null) { + throw new Error("Missing the required parameter 'hide' when calling menusShowHideBulkItems"); + } + + // verify the required parameter 'undoAfter' is set + if (undoAfter === undefined || undoAfter === null) { + throw new Error("Missing the required parameter 'undoAfter' when calling menusShowHideBulkItems"); } @@ -207,6 +993,8 @@ 'menuId': menuId }; var queryParams = { + 'hide': hide, + 'undoAfter': undoAfter, }; var collectionQueryParams = { }; @@ -216,42 +1004,48 @@ }; var authNames = ['oauth2']; - var contentTypes = []; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = null; + var returnType = RestApiArrayResultMenuElementEditResponse; return this.apiClient.callApi( - '/api/v1.0/menus/{menuId}/image', 'DELETE', + '/api/v1.0/menus/{menuId}/bulkshowhide', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** - * Callback function to receive the result of the getMenuById operation. - * @callback module:api/MenusApi~getMenuByIdCallback + * Callback function to receive the result of the menusUpdateTaxType operation. + * @callback module:api/MenusApi~menusUpdateTaxTypeCallback * @param {String} error Error message, if any. - * @param {module:model/RestApiResultMenu} data The data returned by the service call. + * @param data This operation does not return a value. * @param {String} response The complete HTTP response. */ /** - * Get menu by identifier + * [PRIVATE API]Set the type of Tax on a Menu * @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} + * @param {module:model/String} type Type of Tax + * @param {module:api/MenusApi~menusUpdateTaxTypeCallback} callback The callback function, accepting three arguments: error, data, response */ - this.getMenuById = function(menuId, callback) { + this.menusUpdateTaxType = function(menuId, type, callback) { var 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"); + 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"); } var pathParams = { - 'menuId': menuId + 'menuId': menuId, + 'type': type }; var queryParams = { }; @@ -265,54 +1059,46 @@ var authNames = ['oauth2']; var contentTypes = []; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = RestApiResultMenu; + var returnType = null; return this.apiClient.callApi( - '/api/v1.0/menus/{menuId}', 'GET', + '/api/v1.0/menus/{menuId}/tax/type/{type}', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** - * Callback function to receive the result of the getMenuItemMetadata operation. - * @callback module:api/MenusApi~getMenuItemMetadataCallback + * 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/RestApiArrayResultMetadata} data The data returned by the service call. + * @param {module:model/MenuTaxRate} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** - * Get a menu items metadata + * [PRIVATE API]Add/Update a Tax Rate * @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} + * @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} */ - this.getMenuItemMetadata = function(menuId, storeId, menuItemId, callback) { - var postBody = null; + this.menusUpsertTaxRate = function(menuId, taxRate, callback) { + var postBody = taxRate; // 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"); + throw new Error("Missing the required parameter 'menuId' when calling menusUpsertTaxRate"); } - // verify the required parameter 'menuItemId' is set - if (menuItemId === undefined || menuItemId === null) { - throw new Error("Missing the required parameter 'menuItemId' when calling getMenuItemMetadata"); + // verify the required parameter 'taxRate' is set + if (taxRate === undefined || taxRate === null) { + throw new Error("Missing the required parameter 'taxRate' when calling menusUpsertTaxRate"); } var pathParams = { - 'menuId': menuId, - 'storeId': storeId, - 'menuItemId': menuItemId + 'menuId': menuId }; var queryParams = { }; @@ -324,56 +1110,48 @@ }; var authNames = ['oauth2']; - var contentTypes = []; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = RestApiArrayResultMetadata; + var returnType = MenuTaxRate; return this.apiClient.callApi( - '/api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId}', 'GET', + '/api/v1.0/menus/{menuId}/taxrate', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** - * Callback function to receive the result of the getMenuItemOptionSetItemMetadata operation. - * @callback module:api/MenusApi~getMenuItemOptionSetItemMetadataCallback + * Callback function to receive the result of the restoreAMenuCheckpoint operation. + * @callback module:api/MenusApi~restoreAMenuCheckpointCallback * @param {String} error Error message, if any. - * @param {module:model/RestApiResultMetadata} data The data returned by the service call. + * @param data This operation does not return a value. * @param {String} response The complete HTTP response. */ /** - * Get a menu item option set item metadata by key + * [PRIVATE API]Restore a Menu to a checkpoint * @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} + * @param {Number} checkpointId Checkpoint to restore menu to + * @param {module:api/MenusApi~restoreAMenuCheckpointCallback} callback The callback function, accepting three arguments: error, data, response */ - this.getMenuItemOptionSetItemMetadata = function(menuId, storeId, optionSetItemId, callback) { + this.restoreAMenuCheckpoint = function(menuId, checkpointId, callback) { var 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"); + throw new Error("Missing the required parameter 'menuId' when calling restoreAMenuCheckpoint"); } - // 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"); + // verify the required parameter 'checkpointId' is set + if (checkpointId === undefined || checkpointId === null) { + throw new Error("Missing the required parameter 'checkpointId' when calling restoreAMenuCheckpoint"); } var pathParams = { 'menuId': menuId, - 'storeId': storeId, - 'optionSetItemId': optionSetItemId + 'checkpointId': checkpointId }; var queryParams = { }; @@ -387,10 +1165,10 @@ var authNames = ['oauth2']; var contentTypes = []; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = RestApiResultMetadata; + var returnType = null; return this.apiClient.callApi( - '/api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId}', 'GET', + '/api/v1.0/menus/{menuId}/checkpoints/{checkpointId}/restore', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -405,7 +1183,7 @@ */ /** - * Update a menu items metadata + * Update menu item metadata * @param {Number} menuId Menu identifier * @param {Number} storeId Store identifier * @param {Number} menuItemId Menu item identifier @@ -471,7 +1249,7 @@ */ /** - * Update a menu item option set items metadata + * 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 @@ -528,6 +1306,110 @@ ); } + /** + * 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. + */ + + /** + * [PRIVATE API]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 + */ + this.setMenuLock = function(menuId, locked, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/lock', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API]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 + */ + this.setMenuName = function(menuId, name, callback) { + var 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"); + } + + + var pathParams = { + 'menuId': menuId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/name', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + /** * Callback function to receive the result of the updateMenu operation. * @callback module:api/MenusApi~updateMenuCallback @@ -581,8 +1463,8 @@ } /** - * Callback function to receive the result of the uploadMenuSectionImage operation. - * @callback module:api/MenusApi~uploadMenuSectionImageCallback + * 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. @@ -591,21 +1473,21 @@ /** * Upload menu image * @param {Number} menuId Menu identifier - * @param {File} image Menu image - * @param {module:api/MenusApi~uploadMenuSectionImageCallback} callback The callback function, accepting three arguments: error, data, response + * @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} */ - this.uploadMenuSectionImage = function(menuId, image, callback) { + this.uploadMenuImage = function(menuId, Image, callback) { var 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"); + 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 uploadMenuSectionImage"); + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadMenuImage"); } @@ -619,7 +1501,7 @@ var headerParams = { }; var formParams = { - 'Image': image + 'Image': Image }; var authNames = ['oauth2']; @@ -633,6 +1515,60 @@ authNames, contentTypes, accepts, returnType, 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'} + */ + this.uploadNewMenuForApp = function(appId, Menu, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + 'Menu': Menu + }; + + var authNames = ['oauth2']; + var contentTypes = ['multipart/form-data']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = 'Number'; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus/xlsx', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } }; return exports; diff --git a/src/api/OAuthClientsApi.js b/src/api/OAuthClientsApi.js index 867dad3b..4e13f5e1 100644 --- a/src/api/OAuthClientsApi.js +++ b/src/api/OAuthClientsApi.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,18 +16,18 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/OAuthClient', 'model/RestApiArrayResultOAuthClient', 'model/RestApiArrayResultOauthClientRedirectUri', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultOAuthClient', 'model/RestApiResultOauthClientRedirectUri', 'model/RestApiStringResult', 'model/RestApiUnauthorizedResult'], factory); + define(['ApiClient', 'model/OAuthApp', 'model/RestApiArrayResultOAuthApp', 'model/RestApiArrayResultOauthClientRedirectUri', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultOAuthApp', 'model/RestApiResultOauthClientRedirectUri', 'model/RestApiStringResult', 'model/RestApiUnauthorizedResult'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/OAuthClient'), require('../model/RestApiArrayResultOAuthClient'), require('../model/RestApiArrayResultOauthClientRedirectUri'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultOAuthClient'), require('../model/RestApiResultOauthClientRedirectUri'), require('../model/RestApiStringResult'), require('../model/RestApiUnauthorizedResult')); + module.exports = factory(require('../ApiClient'), require('../model/OAuthApp'), require('../model/RestApiArrayResultOAuthApp'), require('../model/RestApiArrayResultOauthClientRedirectUri'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultOAuthApp'), require('../model/RestApiResultOauthClientRedirectUri'), require('../model/RestApiStringResult'), require('../model/RestApiUnauthorizedResult')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.OAuthClientsApi = factory(root.Flipdish.ApiClient, root.Flipdish.OAuthClient, root.Flipdish.RestApiArrayResultOAuthClient, root.Flipdish.RestApiArrayResultOauthClientRedirectUri, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultOAuthClient, root.Flipdish.RestApiResultOauthClientRedirectUri, root.Flipdish.RestApiStringResult, root.Flipdish.RestApiUnauthorizedResult); + root.Flipdish.OAuthClientsApi = factory(root.Flipdish.ApiClient, root.Flipdish.OAuthApp, root.Flipdish.RestApiArrayResultOAuthApp, root.Flipdish.RestApiArrayResultOauthClientRedirectUri, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultOAuthApp, root.Flipdish.RestApiResultOauthClientRedirectUri, root.Flipdish.RestApiStringResult, root.Flipdish.RestApiUnauthorizedResult); } -}(this, function(ApiClient, OAuthClient, RestApiArrayResultOAuthClient, RestApiArrayResultOauthClientRedirectUri, RestApiErrorResult, RestApiForbiddenResult, RestApiResultOAuthClient, RestApiResultOauthClientRedirectUri, RestApiStringResult, RestApiUnauthorizedResult) { +}(this, function(ApiClient, OAuthApp, RestApiArrayResultOAuthApp, RestApiArrayResultOauthClientRedirectUri, RestApiErrorResult, RestApiForbiddenResult, RestApiResultOAuthApp, RestApiResultOauthClientRedirectUri, RestApiStringResult, RestApiUnauthorizedResult) { 'use strict'; /** @@ -56,18 +56,19 @@ */ /** - * Create OAuth client redirect uri - * @param {String} oAuthClientId OAuth client identifier + * Create OAuth App redirect uri + * @param {String} oauthAppId OAuth App identifier * @param {String} uri Redirect uri + * @param {String} appId * @param {module:api/OAuthClientsApi~addRedirectUriCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/RestApiResultOauthClientRedirectUri} */ - this.addRedirectUri = function(oAuthClientId, uri, callback) { + this.addRedirectUri = function(oauthAppId, uri, appId, callback) { var postBody = uri; - // verify the required parameter 'oAuthClientId' is set - if (oAuthClientId === undefined || oAuthClientId === null) { - throw new Error("Missing the required parameter 'oAuthClientId' when calling addRedirectUri"); + // 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 'uri' is set @@ -75,9 +76,15 @@ throw new Error("Missing the required parameter 'uri' 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"); + } + var pathParams = { - 'oAuthClientId': oAuthClientId + 'oauthAppId': oauthAppId, + 'appId': appId }; var queryParams = { }; @@ -94,35 +101,42 @@ var returnType = RestApiResultOauthClientRedirectUri; return this.apiClient.callApi( - '/api/v1.0/oauthclients/{oAuthClientId}/redirecturis', 'POST', + '/api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** - * Callback function to receive the result of the createOAuthClient operation. - * @callback module:api/OAuthClientsApi~createOAuthClientCallback + * 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. */ /** - * Create OAuth client - * @param {module:model/OAuthClient} oAuthClient OAuth client - * @param {module:api/OAuthClientsApi~createOAuthClientCallback} callback The callback function, accepting three arguments: error, data, response + * Create OAuth App + * @param {module:model/OAuthApp} oAuthApp OAuth App + * @param {String} appId + * @param {module:api/OAuthClientsApi~createOAuthAppCallback} callback The callback function, accepting three arguments: error, data, response */ - this.createOAuthClient = function(oAuthClient, callback) { - var postBody = oAuthClient; + this.createOAuthApp = function(oAuthApp, appId, callback) { + var postBody = oAuthApp; + + // verify the required parameter 'oAuthApp' is set + if (oAuthApp === undefined || oAuthApp === null) { + throw new Error("Missing the required parameter 'oAuthApp' when calling createOAuthApp"); + } - // verify the required parameter 'oAuthClient' is set - if (oAuthClient === undefined || oAuthClient === null) { - throw new Error("Missing the required parameter 'oAuthClient' when calling createOAuthClient"); + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createOAuthApp"); } var pathParams = { + 'appId': appId }; var queryParams = { }; @@ -139,36 +153,43 @@ var returnType = null; return this.apiClient.callApi( - '/api/v1.0/oauthclients', 'POST', + '/api/v1.0/{appId}/oauthclients', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** - * Callback function to receive the result of the deleteOAuthClient operation. - * @callback module:api/OAuthClientsApi~deleteOAuthClientCallback + * 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. */ /** - * Delete OAuth client - * @param {String} oAuthClientId OAuth client identifier - * @param {module:api/OAuthClientsApi~deleteOAuthClientCallback} callback The callback function, accepting three arguments: error, data, response + * Delete OAuth App + * @param {String} oauthAppId OAuth App identifier + * @param {String} appId + * @param {module:api/OAuthClientsApi~deleteOAuthAppCallback} callback The callback function, accepting three arguments: error, data, response */ - this.deleteOAuthClient = function(oAuthClientId, callback) { + this.deleteOAuthApp = function(oauthAppId, appId, callback) { var postBody = null; - // verify the required parameter 'oAuthClientId' is set - if (oAuthClientId === undefined || oAuthClientId === null) { - throw new Error("Missing the required parameter 'oAuthClientId' when calling deleteOAuthClient"); + // 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"); } var pathParams = { - 'oAuthClientId': oAuthClientId + 'oauthAppId': oauthAppId, + 'appId': appId }; var queryParams = { }; @@ -185,39 +206,43 @@ var returnType = null; return this.apiClient.callApi( - '/api/v1.0/oauthclients/{oAuthClientId}', 'DELETE', + '/api/v1.0/{appId}/oauthclients/{oauthAppId}', 'DELETE', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** - * Callback function to receive the result of the getOAuthClientByClientId operation. - * @callback module:api/OAuthClientsApi~getOAuthClientByClientIdCallback + * 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/RestApiResultOAuthClient} data The data returned by the service call. + * @param {module:model/RestApiArrayResultOAuthApp} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** - * Get OAuth client by identifier - * @param {String} clientId OAuth client identifier - * @param {module:api/OAuthClientsApi~getOAuthClientByClientIdCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/RestApiResultOAuthClient} + * Get all OAuth Apps + * @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} */ - this.getOAuthClientByClientId = function(clientId, callback) { + this.getOAuthApps = function(appId, opts, callback) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'clientId' is set - if (clientId === undefined || clientId === null) { - throw new Error("Missing the required parameter 'clientId' 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 getOAuthApps"); } var pathParams = { - 'clientId': clientId + 'appId': appId }; var queryParams = { + 'oauthAppName': opts['oauthAppName'], }; var collectionQueryParams = { }; @@ -229,40 +254,47 @@ var authNames = ['oauth2']; var contentTypes = []; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = RestApiResultOAuthClient; + var returnType = RestApiArrayResultOAuthApp; return this.apiClient.callApi( - '/api/v1.0/oauthclients/{clientId}', 'GET', + '/api/v1.0/{appId}/oauthclients', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** - * Callback function to receive the result of the getOAuthClientSecret operation. - * @callback module:api/OAuthClientsApi~getOAuthClientSecretCallback + * 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/RestApiStringResult} data The data returned by the service call. + * @param {module:model/RestApiResultOAuthApp} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** - * Get OAuth client secret key - * @param {String} clientId OAuth client identifier - * @param {module:api/OAuthClientsApi~getOAuthClientSecretCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/RestApiStringResult} + * Get OAuth App by identifier + * @param {String} oauthAppId OAuth App identifier + * @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} */ - this.getOAuthClientSecret = function(clientId, callback) { + this.getOAuthClientByClientId = function(oauthAppId, appId, callback) { var postBody = null; - // verify the required parameter 'clientId' is set - if (clientId === undefined || clientId === null) { - throw new Error("Missing the required parameter 'clientId' when calling getOAuthClientSecret"); + // 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"); } var pathParams = { - 'clientId': clientId + 'oauthAppId': oauthAppId, + 'appId': appId }; var queryParams = { }; @@ -276,33 +308,47 @@ var authNames = ['oauth2']; var contentTypes = []; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = RestApiStringResult; + var returnType = RestApiResultOAuthApp; return this.apiClient.callApi( - '/api/v1.0/oauthclients/{clientId}/secret', 'GET', + '/api/v1.0/{appId}/oauthclients/{oauthAppId}', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** - * Callback function to receive the result of the getOAuthClients operation. - * @callback module:api/OAuthClientsApi~getOAuthClientsCallback + * 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/RestApiArrayResultOAuthClient} data The data returned by the service call. + * @param {module:model/RestApiStringResult} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** - * Get all OAuth client - * @param {module:api/OAuthClientsApi~getOAuthClientsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/RestApiArrayResultOAuthClient} + * Get OAuth App secret key + * @param {String} oauthAppId OAuth App identifier + * @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} */ - this.getOAuthClients = function(callback) { + this.getOAuthClientSecret = function(oauthAppId, appId, callback) { var 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"); + } + var pathParams = { + 'oauthAppId': oauthAppId, + 'appId': appId }; var queryParams = { }; @@ -316,10 +362,10 @@ var authNames = ['oauth2']; var contentTypes = []; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = RestApiArrayResultOAuthClient; + var returnType = RestApiStringResult; return this.apiClient.callApi( - '/api/v1.0/oauthclients', 'GET', + '/api/v1.0/{appId}/oauthclients/{oauthAppId}/secret', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -334,22 +380,29 @@ */ /** - * Get OAuth access token for client - * @param {String} oAuthClientId OAuth client identifier + * Get OAuth access token for App + * @param {String} oauthAppId OAuth App identifier + * @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} */ - this.getOauthAccessToken = function(oAuthClientId, callback) { + this.getOauthAccessToken = function(oauthAppId, appId, callback) { var postBody = null; - // verify the required parameter 'oAuthClientId' is set - if (oAuthClientId === undefined || oAuthClientId === null) { - throw new Error("Missing the required parameter 'oAuthClientId' when calling getOauthAccessToken"); + // 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"); } var pathParams = { - 'oAuthClientId': oAuthClientId + 'oauthAppId': oauthAppId, + 'appId': appId }; var queryParams = { }; @@ -366,7 +419,7 @@ var returnType = RestApiStringResult; return this.apiClient.callApi( - '/api/v1.0/oauthclients/{oAuthClientId}/accesstoken', 'GET', + '/api/v1.0/{appId}/oauthclients/{oauthAppId}/accesstoken', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -381,22 +434,29 @@ */ /** - * Get OAuth client redirect uris - * @param {String} oAuthClientId OAuth client identifier + * Get OAuth App redirect uris + * @param {String} oauthAppId OAuth App identifier + * @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} */ - this.getRedirectUris = function(oAuthClientId, callback) { + this.getRedirectUris = function(oauthAppId, appId, callback) { var postBody = null; - // verify the required parameter 'oAuthClientId' is set - if (oAuthClientId === undefined || oAuthClientId === null) { - throw new Error("Missing the required parameter 'oAuthClientId' when calling getRedirectUris"); + // 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"); } var pathParams = { - 'oAuthClientId': oAuthClientId + 'oauthAppId': oauthAppId, + 'appId': appId }; var queryParams = { }; @@ -413,7 +473,53 @@ var returnType = RestApiArrayResultOauthClientRedirectUri; return this.apiClient.callApi( - '/api/v1.0/oauthclients/{oAuthClientId}/redirecturis', 'GET', + '/api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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} + */ + this.oAuthClientsGetApplications = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = Object; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/oauthclients/appnames', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -428,17 +534,18 @@ */ /** - * Delete OAuth client redirect uri - * @param {String} oAuthClientId OAuth client identifier + * Delete OAuth App redirect uri + * @param {String} oauthAppId OAuth App identifier * @param {Number} uriId Redirect uri identifier + * @param {String} appId * @param {module:api/OAuthClientsApi~removeRedirectUriCallback} callback The callback function, accepting three arguments: error, data, response */ - this.removeRedirectUri = function(oAuthClientId, uriId, callback) { + this.removeRedirectUri = function(oauthAppId, uriId, appId, callback) { var postBody = null; - // verify the required parameter 'oAuthClientId' is set - if (oAuthClientId === undefined || oAuthClientId === null) { - throw new Error("Missing the required parameter 'oAuthClientId' when calling removeRedirectUri"); + // 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 @@ -446,10 +553,16 @@ 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"); + } + var pathParams = { - 'oAuthClientId': oAuthClientId, - 'uriId': uriId + 'oauthAppId': oauthAppId, + 'uriId': uriId, + 'appId': appId }; var queryParams = { }; @@ -466,7 +579,66 @@ var returnType = null; return this.apiClient.callApi( - '/api/v1.0/oauthclients/{oAuthClientId}/redirecturis/{uriId}', 'DELETE', + '/api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis/{uriId}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Update OAuth App + * @param {String} oauthAppId OAuth App identifier + * @param {module:model/OAuthApp} oAuthApp OAuth App + * @param {String} appId + * @param {module:api/OAuthClientsApi~updateOAuthAppCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.updateOAuthApp = function(oauthAppId, oAuthApp, appId, callback) { + var 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 'oAuthApp' is set + if (oAuthApp === undefined || oAuthApp === null) { + throw new Error("Missing the required parameter 'oAuthApp' 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"); + } + + + var pathParams = { + 'oauthAppId': oauthAppId, + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/oauthclients/{oauthAppId}', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); diff --git a/src/api/OrdersApi.js b/src/api/OrdersApi.js index b5a52d21..4eeffc9e 100644 --- a/src/api/OrdersApi.js +++ b/src/api/OrdersApi.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,18 +16,18 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Accept', 'model/Refund', 'model/Reject', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiPaginationResultOrder', 'model/RestApiResultOrder', 'model/RestApiUnauthorizedResult'], factory); + define(['ApiClient', 'model/Accept', 'model/Refund', 'model/Reject', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiPaginationResultOrder', 'model/RestApiPaginationResultOrderSummary', 'model/RestApiResultOrder', 'model/RestApiUnauthorizedResult'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/Accept'), require('../model/Refund'), require('../model/Reject'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiPaginationResultOrder'), require('../model/RestApiResultOrder'), require('../model/RestApiUnauthorizedResult')); + module.exports = factory(require('../ApiClient'), require('../model/Accept'), require('../model/Refund'), require('../model/Reject'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiPaginationResultOrder'), require('../model/RestApiPaginationResultOrderSummary'), require('../model/RestApiResultOrder'), require('../model/RestApiUnauthorizedResult')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.OrdersApi = factory(root.Flipdish.ApiClient, root.Flipdish.Accept, root.Flipdish.Refund, root.Flipdish.Reject, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiPaginationResultOrder, root.Flipdish.RestApiResultOrder, root.Flipdish.RestApiUnauthorizedResult); + root.Flipdish.OrdersApi = factory(root.Flipdish.ApiClient, root.Flipdish.Accept, root.Flipdish.Refund, root.Flipdish.Reject, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiPaginationResultOrder, root.Flipdish.RestApiPaginationResultOrderSummary, root.Flipdish.RestApiResultOrder, root.Flipdish.RestApiUnauthorizedResult); } -}(this, function(ApiClient, Accept, Refund, Reject, RestApiErrorResult, RestApiForbiddenResult, RestApiPaginationResultOrder, RestApiResultOrder, RestApiUnauthorizedResult) { +}(this, function(ApiClient, Accept, Refund, Reject, RestApiErrorResult, RestApiForbiddenResult, RestApiPaginationResultOrder, RestApiPaginationResultOrderSummary, RestApiResultOrder, RestApiUnauthorizedResult) { 'use strict'; /** @@ -57,9 +57,9 @@ /** * Accept order - * To accept an order, you create an `accept` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + * To accept an order, you create an `accept` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. * @param {Number} id Order identifier - * @param {module:model/Accept} acceptObject + * @param {module:model/Accept} acceptObject Order accept parameters (eg: EstimatedMinutesForDelivery) * @param {module:api/OrdersApi~acceptOrderCallback} callback The callback function, accepting three arguments: error, data, response */ this.acceptOrder = function(id, acceptObject, callback) { @@ -100,6 +100,53 @@ ); } + /** + * 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. + */ + + /** + * Dispatch order + * To dispatch an order send a POST request with `Id` path parameter which identifies the order. + * @param {Number} id Order identifier + * @param {module:api/OrdersApi~dispatchOrderCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.dispatchOrder = function(id, callback) { + var 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"); + } + + + var pathParams = { + 'id': id + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/orders/{id}/dispatch', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + /** * Callback function to receive the result of the getOrderById operation. * @callback module:api/OrdersApi~getOrderByIdCallback @@ -160,6 +207,8 @@ * @param {Object} opts Optional parameters * @param {Array.} opts.physicalRestaurantId Physical restaurant identifiers * @param {Array.} opts.state Order states + * @param {Date} opts.from Order has been placed after this parameter value + * @param {Date} opts.to Order has been placed before this parameter value * @param {Number} opts.page Requested page number * @param {Number} opts.limit Requested page limit * @param {module:api/OrdersApi~getOrdersCallback} callback The callback function, accepting three arguments: error, data, response @@ -173,6 +222,8 @@ var pathParams = { }; var queryParams = { + 'from': opts['from'], + 'to': opts['to'], 'page': opts['page'], 'limit': opts['limit'], }; @@ -203,6 +254,73 @@ ); } + /** + * 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. + */ + + /** + * [PRIVATE API] Get summary of orders by filter + * @param {String} appId App Name Id + * @param {Object} opts Optional parameters + * @param {String} opts.searchQuery Query string + * @param {Array.} opts.physicalRestaurantId Physical restaurant identifiers + * @param {Array.} opts.state Order states + * @param {Number} opts.page Requested page number + * @param {Number} opts.limit Requested page limit + * @param {Boolean} opts.orderByRequestedForTime + * @param {module:api/OrdersApi~getOrdersSummaryCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultOrderSummary} + */ + this.getOrdersSummary = function(appId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + 'searchQuery': opts['searchQuery'], + 'page': opts['page'], + 'limit': opts['limit'], + 'orderByRequestedForTime': opts['orderByRequestedForTime'], + }; + var collectionQueryParams = { + 'physicalRestaurantId': { + value: opts['physicalRestaurantId'], + collectionFormat: 'multi' + }, + 'state': { + value: opts['state'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultOrderSummary; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/orders/summaries', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + /** * Callback function to receive the result of the refundOrder operation. * @callback module:api/OrdersApi~refundOrderCallback @@ -213,7 +331,7 @@ /** * Refund order - * To refund an order, you create a `refund` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + * To refund an order, you create a `refund` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. * @param {Number} id Order identifier * @param {module:model/Refund} refundObject * @param {module:api/OrdersApi~refundOrderCallback} callback The callback function, accepting three arguments: error, data, response @@ -266,7 +384,7 @@ /** * Reject order - * To reject an order, you create a `reject` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + * To reject an order, you create a `reject` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. * @param {Number} id Order identifier * @param {module:model/Reject} rejectObject * @param {module:api/OrdersApi~rejectOrderCallback} callback The callback function, accepting three arguments: error, data, response diff --git a/src/api/PaymentsApi.js b/src/api/PaymentsApi.js new file mode 100644 index 00000000..6721307f --- /dev/null +++ b/src/api/PaymentsApi.js @@ -0,0 +1,99 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultOrderPaymentInformation', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultOrderPaymentInformation'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PaymentsApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultOrderPaymentInformation, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, RestApiErrorResult, RestApiForbiddenResult, RestApiResultOrderPaymentInformation, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * Payments service. + * @module api/PaymentsApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * Returns payment refund information related to the order with the order id + * @param {Number} orderId Order identifier + * @param {module:api/PaymentsApi~getOrderPaymentInformationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultOrderPaymentInformation} + */ + this.getOrderPaymentInformation = function(orderId, callback) { + var 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"); + } + + + var pathParams = { + 'orderId': orderId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultOrderPaymentInformation; + + return this.apiClient.callApi( + '/api/v1.0/payments/payment/{orderId}/refundable', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/PayoutsApi.js b/src/api/PayoutsApi.js new file mode 100644 index 00000000..3d016332 --- /dev/null +++ b/src/api/PayoutsApi.js @@ -0,0 +1,865 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PayoutDetail', 'model/RestApiArrayResultPayoutSummary', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiPaginationResultPayout', 'model/RestApiPaginationResultPayoutChargeback', 'model/RestApiPaginationResultPayoutOrder', 'model/RestApiPaginationResultPayoutOtherCharge', 'model/RestApiPaginationResultPayoutRefund', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/PayoutDetail'), require('../model/RestApiArrayResultPayoutSummary'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiPaginationResultPayout'), require('../model/RestApiPaginationResultPayoutChargeback'), require('../model/RestApiPaginationResultPayoutOrder'), require('../model/RestApiPaginationResultPayoutOtherCharge'), require('../model/RestApiPaginationResultPayoutRefund'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PayoutsApi = factory(root.Flipdish.ApiClient, root.Flipdish.PayoutDetail, root.Flipdish.RestApiArrayResultPayoutSummary, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiPaginationResultPayout, root.Flipdish.RestApiPaginationResultPayoutChargeback, root.Flipdish.RestApiPaginationResultPayoutOrder, root.Flipdish.RestApiPaginationResultPayoutOtherCharge, root.Flipdish.RestApiPaginationResultPayoutRefund, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, PayoutDetail, RestApiArrayResultPayoutSummary, RestApiErrorResult, RestApiForbiddenResult, RestApiPaginationResultPayout, RestApiPaginationResultPayoutChargeback, RestApiPaginationResultPayoutOrder, RestApiPaginationResultPayoutOtherCharge, RestApiPaginationResultPayoutRefund, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * Payouts service. + * @module api/PayoutsApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + + /** + * Callback function to receive the result of the exportPayoutChargebacks operation. + * @callback module:api/PayoutsApi~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. + */ + + /** + * Export a list of payout's chargebacks as CSV + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeIds + * @param {module:api/PayoutsApi~exportPayoutChargebacksCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link 'String'} + */ + this.exportPayoutChargebacks = function(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + var queryParams = { + }; + var collectionQueryParams = { + 'storeIds': { + value: opts['storeIds'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = 'String'; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks/export', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the exportPayoutOrders operation. + * @callback module:api/PayoutsApi~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. + */ + + /** + * Export a list of payout's orders as CSV + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeIds + * @param {module:api/PayoutsApi~exportPayoutOrdersCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link 'String'} + */ + this.exportPayoutOrders = function(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + var queryParams = { + }; + var collectionQueryParams = { + 'storeIds': { + value: opts['storeIds'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = 'String'; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders/export', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the exportPayoutOtherCharges operation. + * @callback module:api/PayoutsApi~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. + */ + + /** + * Export a list of payout's other charges as CSV + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeIds + * @param {module:api/PayoutsApi~exportPayoutOtherChargesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link 'String'} + */ + this.exportPayoutOtherCharges = function(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + var queryParams = { + }; + var collectionQueryParams = { + 'storeIds': { + value: opts['storeIds'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = 'String'; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges/export', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the exportPayoutRefunds operation. + * @callback module:api/PayoutsApi~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. + */ + + /** + * Export a list of payout's refunds as CSV + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeIds + * @param {module:api/PayoutsApi~exportPayoutRefundsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link 'String'} + */ + this.exportPayoutRefunds = function(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + var queryParams = { + }; + var collectionQueryParams = { + 'storeIds': { + value: opts['storeIds'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = 'String'; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds/export', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * Callback function to receive the result of the exportPayoutStores operation. + * @callback module:api/PayoutsApi~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. + */ + + /** + * Export payout's details as CSV + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeIds + * @param {module:api/PayoutsApi~exportPayoutStoresCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link 'String'} + */ + this.exportPayoutStores = function(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + var queryParams = { + }; + var collectionQueryParams = { + 'storeIds': { + value: opts['storeIds'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = 'String'; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/export', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + + /** + * 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. + */ + + /** + * Get Payout details broken down by Store + * @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} + */ + this.getPayout = function(appId, bankAccountId, payoutId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = PayoutDetail; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get list of payout's chargebacks + * @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} + */ + this.getPayoutChargebacks = function(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + var queryParams = { + 'page': opts['page'], + 'limit': opts['limit'], + }; + var collectionQueryParams = { + 'storeIds': { + value: opts['storeIds'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultPayoutChargeback; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get list of payout's orders + * @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} + */ + this.getPayoutOrders = function(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + var queryParams = { + 'page': opts['page'], + 'limit': opts['limit'], + }; + var collectionQueryParams = { + 'storeIds': { + value: opts['storeIds'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultPayoutOrder; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get list of payout's other charges + * @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} + */ + this.getPayoutOtherCharges = function(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + var queryParams = { + 'page': opts['page'], + 'limit': opts['limit'], + }; + var collectionQueryParams = { + 'storeIds': { + value: opts['storeIds'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultPayoutOtherCharge; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get list of payout's refunds + * @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} + */ + this.getPayoutRefunds = function(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + var queryParams = { + 'page': opts['page'], + 'limit': opts['limit'], + }; + var collectionQueryParams = { + 'storeIds': { + value: opts['storeIds'], + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultPayoutRefund; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get list of payout summaries + * 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.bankAccountId + * @param {Number} opts.payeeBankAccountDataId Deprecated + * @param {Date} opts.startDate + * @param {Date} opts.endDate + * @param {module:model/String} opts.status + * @param {module:api/PayoutsApi~getPayoutSummariesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultPayoutSummary} + */ + this.getPayoutSummaries = function(appId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + 'bankAccountId': opts['bankAccountId'], + 'payeeBankAccountDataId': opts['payeeBankAccountDataId'], + 'startDate': opts['startDate'], + 'endDate': opts['endDate'], + 'status': opts['status'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultPayoutSummary; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/payouts/summaries', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get list of payouts + * 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.bankAccountId + * @param {Number} opts.payeeBankAccountDataId Deprecated + * @param {Date} opts.startDate + * @param {Date} opts.endDate + * @param {module:model/String} opts.status + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/PayoutsApi~getPayoutsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultPayout} + */ + this.getPayouts = function(appId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + 'bankAccountId': opts['bankAccountId'], + 'payeeBankAccountDataId': opts['payeeBankAccountDataId'], + 'startDate': opts['startDate'], + 'endDate': opts['endDate'], + 'status': opts['status'], + 'page': opts['page'], + 'limit': opts['limit'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultPayout; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/payouts', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/ProcessingFeeConfigsApi.js b/src/api/ProcessingFeeConfigsApi.js new file mode 100644 index 00000000..43e215f0 --- /dev/null +++ b/src/api/ProcessingFeeConfigsApi.js @@ -0,0 +1,102 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RestApiArrayResultProcessingFeeConfig', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/RestApiArrayResultProcessingFeeConfig'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.ProcessingFeeConfigsApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiArrayResultProcessingFeeConfig, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, RestApiArrayResultProcessingFeeConfig, RestApiErrorResult, RestApiForbiddenResult, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * ProcessingFeeConfigs service. + * @module api/ProcessingFeeConfigsApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * Get processing fee configs by store identifiers + * @param {Array.} storeIds Store identifiers + * @param {module:api/ProcessingFeeConfigsApi~getProcessingFeeConfigsByStoreIdsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultProcessingFeeConfig} + */ + this.getProcessingFeeConfigsByStoreIds = function(storeIds, callback) { + var 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"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + 'storeIds': { + value: storeIds, + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultProcessingFeeConfig; + + return this.apiClient.callApi( + '/api/v1.0/processingfeeconfigs', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/PushNotificationsApi.js b/src/api/PushNotificationsApi.js new file mode 100644 index 00000000..4c20024c --- /dev/null +++ b/src/api/PushNotificationsApi.js @@ -0,0 +1,271 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PushNotificationRequest', 'model/RestApiForbiddenResult', 'model/RestApiPaginationResultPushNotificationResponse', 'model/RestApiResultPushNotificationResponse', 'model/RestApiUnauthorizedResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/PushNotificationRequest'), require('../model/RestApiForbiddenResult'), require('../model/RestApiPaginationResultPushNotificationResponse'), require('../model/RestApiResultPushNotificationResponse'), require('../model/RestApiUnauthorizedResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PushNotificationsApi = factory(root.Flipdish.ApiClient, root.Flipdish.PushNotificationRequest, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiPaginationResultPushNotificationResponse, root.Flipdish.RestApiResultPushNotificationResponse, root.Flipdish.RestApiUnauthorizedResult); + } +}(this, function(ApiClient, PushNotificationRequest, RestApiForbiddenResult, RestApiPaginationResultPushNotificationResponse, RestApiResultPushNotificationResponse, RestApiUnauthorizedResult) { + 'use strict'; + + /** + * PushNotifications service. + * @module api/PushNotificationsApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * [PRIVATE] Push notification to cutomers + * @param {String} appId + * @param {Number} scheduledPushNotificationId ID of Scheduled push notifiaction to delete + * @param {module:api/PushNotificationsApi~deletePushNotificationCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.deletePushNotification = function(appId, scheduledPushNotificationId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'scheduledPushNotificationId': scheduledPushNotificationId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE] Push notification to cutomers + * @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} + */ + this.getPushNotifications = function(appId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + 'page': opts['page'], + 'limit': opts['limit'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultPushNotificationResponse; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/pushnotifications', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE] Push notification to cutomers + * @param {String} appId Application Id + * @param {module:model/PushNotificationRequest} notification Notification to send + * @param {module:api/PushNotificationsApi~schedulePushNotificationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultPushNotificationResponse} + */ + this.schedulePushNotification = function(appId, notification, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultPushNotificationResponse; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/pushnotifications', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE] Update the push notification + * @param {String} appId Application Id + * @param {Number} scheduledPushNotificationId Notification Id + * @param {module:model/PushNotificationRequest} notification Notification to send + * @param {module:api/PushNotificationsApi~updatePushNotificationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultPushNotificationResponse} + */ + this.updatePushNotification = function(appId, scheduledPushNotificationId, notification, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'scheduledPushNotificationId': scheduledPushNotificationId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultPushNotificationResponse; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/StoreGroupsApi.js b/src/api/StoreGroupsApi.js new file mode 100644 index 00000000..231a4e9a --- /dev/null +++ b/src/api/StoreGroupsApi.js @@ -0,0 +1,363 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiPaginationResultStoreGroup', 'model/RestApiPaginationResultStoreGroupExtended', 'model/RestApiResultStoreGroup', 'model/RestApiResultStoreGroupBase', 'model/RestApiUnauthorizedResult', 'model/StoreGroupBase'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiPaginationResultStoreGroup'), require('../model/RestApiPaginationResultStoreGroupExtended'), require('../model/RestApiResultStoreGroup'), require('../model/RestApiResultStoreGroupBase'), require('../model/RestApiUnauthorizedResult'), require('../model/StoreGroupBase')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreGroupsApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiPaginationResultStoreGroup, root.Flipdish.RestApiPaginationResultStoreGroupExtended, root.Flipdish.RestApiResultStoreGroup, root.Flipdish.RestApiResultStoreGroupBase, root.Flipdish.RestApiUnauthorizedResult, root.Flipdish.StoreGroupBase); + } +}(this, function(ApiClient, RestApiErrorResult, RestApiForbiddenResult, RestApiPaginationResultStoreGroup, RestApiPaginationResultStoreGroupExtended, RestApiResultStoreGroup, RestApiResultStoreGroupBase, RestApiUnauthorizedResult, StoreGroupBase) { + 'use strict'; + + /** + * StoreGroups service. + * @module api/StoreGroupsApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + + /** + * 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. + */ + + /** + * Creates a Store Group It will be attached to an existing App + * @param {String} appNameId App Name Id + * @param {module:model/StoreGroupBase} storeGroup Store group definition + * @param {module:api/StoreGroupsApi~createStoreGroupCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStoreGroup} + */ + this.createStoreGroup = function(appNameId, storeGroup, callback) { + var 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"); + } + + + var pathParams = { + 'appNameId': appNameId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStoreGroup; + + return this.apiClient.callApi( + '/api/v1.0/{appNameId}/storegroups', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Returns a Store Groups + * @param {Number} storeGroupId Store Group Id + * @param {module:api/StoreGroupsApi~getStoreGroupCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStoreGroup} + */ + this.getStoreGroup = function(storeGroupId, callback) { + var 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"); + } + + + var pathParams = { + 'storeGroupId': storeGroupId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStoreGroup; + + return this.apiClient.callApi( + '/api/v1.0/storegroups/{storeGroupId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Returns a paginated list of Store Groups + * @param {String} appNameId App Name Id + * @param {Object} opts Optional parameters + * @param {String} opts.searchQuery Search query + * @param {Number} opts.page Requested page index + * @param {Number} opts.limit Requested page limit + * @param {module:api/StoreGroupsApi~getStoreGroupsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultStoreGroup} + */ + this.getStoreGroups = function(appNameId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appNameId': appNameId + }; + var queryParams = { + 'searchQuery': opts['searchQuery'], + 'page': opts['page'], + 'limit': opts['limit'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultStoreGroup; + + return this.apiClient.callApi( + '/api/v1.0/{appNameId}/storegroups', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * [PRIVATE API] Returns a paginated list of Extended Store Groups + * @param {String} appNameId App Name Id + * @param {Object} opts Optional parameters + * @param {String} opts.searchQuery Search query + * @param {Number} opts.page Requested page index + * @param {Number} opts.limit Requested page 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} + */ + this.getStoreGroupsExtended = function(appNameId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appNameId': appNameId + }; + var queryParams = { + 'searchQuery': opts['searchQuery'], + 'page': opts['page'], + 'limit': opts['limit'], + 'groupingRadius': opts['groupingRadius'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultStoreGroupExtended; + + return this.apiClient.callApi( + '/api/v1.0/{appNameId}/storegroups/extended', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Deletes a Store Group Can only remove a store group if there is no stores attached to the group + * @param {Number} storeGroupId Store Group Id + * @param {module:api/StoreGroupsApi~removeStoreGroupCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.removeStoreGroup = function(storeGroupId, callback) { + var 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"); + } + + + var pathParams = { + 'storeGroupId': storeGroupId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/storegroups/{storeGroupId}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Updates Store Group + * @param {Number} storeGroupId Store Group Id + * @param {module:model/StoreGroupBase} storeGroup Store Group Delta + * @param {module:api/StoreGroupsApi~updateStoreGroupCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStoreGroupBase} + */ + this.updateStoreGroup = function(storeGroupId, storeGroup, callback) { + var 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"); + } + + + var pathParams = { + 'storeGroupId': storeGroupId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStoreGroupBase; + + return this.apiClient.callApi( + '/api/v1.0/storegroups/{storeGroupId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/StoreOrderCapacityApi.js b/src/api/StoreOrderCapacityApi.js new file mode 100644 index 00000000..3b875e16 --- /dev/null +++ b/src/api/StoreOrderCapacityApi.js @@ -0,0 +1,179 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultStoreOrderCapacityConfig', 'model/RestApiUnauthorizedResult', 'model/StoreOrderCapacityConfigEditModel'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultStoreOrderCapacityConfig'), require('../model/RestApiUnauthorizedResult'), require('../model/StoreOrderCapacityConfigEditModel')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreOrderCapacityApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultStoreOrderCapacityConfig, root.Flipdish.RestApiUnauthorizedResult, root.Flipdish.StoreOrderCapacityConfigEditModel); + } +}(this, function(ApiClient, RestApiErrorResult, RestApiForbiddenResult, RestApiResultStoreOrderCapacityConfig, RestApiUnauthorizedResult, StoreOrderCapacityConfigEditModel) { + 'use strict'; + + /** + * StoreOrderCapacity service. + * @module api/StoreOrderCapacityApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * Get store's order capacity configuration + * @param {String} appId App Name Id + * @param {Number} storeId Store Id + * @param {module:model/String} deliveryType Delivery / Pickup + * @param {module:api/StoreOrderCapacityApi~getStoreOrderCapacityCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStoreOrderCapacityConfig} + */ + this.getStoreOrderCapacity = function(appId, storeId, deliveryType, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'storeId': storeId, + 'deliveryType': deliveryType + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStoreOrderCapacityConfig; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/storeordercapacity/{storeId}/{deliveryType}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Create or update a store's order capacity configuration + * @param {Number} storeId Store identifier + * @param {module:model/String} deliveryType Delivery / Pickup + * @param {module:model/StoreOrderCapacityConfigEditModel} newOrderCapacityConfig new order capacity configuration + * @param {String} appId + * @param {module:api/StoreOrderCapacityApi~updateStoreOrderCapacityConfigCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.updateStoreOrderCapacityConfig = function(storeId, deliveryType, newOrderCapacityConfig, appId, callback) { + var 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 'newOrderCapacityConfig' is set + if (newOrderCapacityConfig === undefined || newOrderCapacityConfig === null) { + throw new Error("Missing the required parameter 'newOrderCapacityConfig' 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"); + } + + + var pathParams = { + 'storeId': storeId, + 'appId': appId + }; + var queryParams = { + 'deliveryType': deliveryType, + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/storeordercapacity/{storeId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/StoresApi.js b/src/api/StoresApi.js index 05b45f1c..340cbf93 100644 --- a/src/api/StoresApi.js +++ b/src/api/StoresApi.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,18 +16,18 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiPaginationResultStore', 'model/RestApiResultStore', 'model/RestApiUnauthorizedResult'], factory); + define(['ApiClient', 'model/BusinessHoursOverrideBase', 'model/BusinessHoursPeriodBase', 'model/Coordinates', 'model/PreOrderConfig', 'model/RestApiArrayResultBusinessHoursPeriod', 'model/RestApiArrayResultPreOrderTime', 'model/RestApiArrayResultProcessingFeeConfig', 'model/RestApiArrayResultRestApiDefaultResponse', 'model/RestApiArrayResultStoreStatistics', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiPaginationResultBusinessHoursOverride', 'model/RestApiPaginationResultStore', 'model/RestApiPaginationResultStoreHeader', 'model/RestApiResultAssignedBankAccount', 'model/RestApiResultBusinessHoursOverride', 'model/RestApiResultBusinessHoursPeriod', 'model/RestApiResultCoordinates', 'model/RestApiResultPreOrderConfig', 'model/RestApiResultProcessingFeeConfig', 'model/RestApiResultStore', 'model/RestApiResultStoreAddress', 'model/RestApiResultStoreEndOfDayReport', 'model/RestApiUnauthorizedResult', 'model/StoreAddressBase', 'model/StoreBase', 'model/StoreCloneSettings', 'model/StoreCreateBase'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiPaginationResultStore'), require('../model/RestApiResultStore'), require('../model/RestApiUnauthorizedResult')); + module.exports = factory(require('../ApiClient'), require('../model/BusinessHoursOverrideBase'), require('../model/BusinessHoursPeriodBase'), require('../model/Coordinates'), require('../model/PreOrderConfig'), require('../model/RestApiArrayResultBusinessHoursPeriod'), require('../model/RestApiArrayResultPreOrderTime'), require('../model/RestApiArrayResultProcessingFeeConfig'), require('../model/RestApiArrayResultRestApiDefaultResponse'), require('../model/RestApiArrayResultStoreStatistics'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiPaginationResultBusinessHoursOverride'), require('../model/RestApiPaginationResultStore'), require('../model/RestApiPaginationResultStoreHeader'), require('../model/RestApiResultAssignedBankAccount'), require('../model/RestApiResultBusinessHoursOverride'), require('../model/RestApiResultBusinessHoursPeriod'), require('../model/RestApiResultCoordinates'), require('../model/RestApiResultPreOrderConfig'), require('../model/RestApiResultProcessingFeeConfig'), require('../model/RestApiResultStore'), require('../model/RestApiResultStoreAddress'), require('../model/RestApiResultStoreEndOfDayReport'), require('../model/RestApiUnauthorizedResult'), require('../model/StoreAddressBase'), require('../model/StoreBase'), require('../model/StoreCloneSettings'), require('../model/StoreCreateBase')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.StoresApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiPaginationResultStore, root.Flipdish.RestApiResultStore, root.Flipdish.RestApiUnauthorizedResult); + root.Flipdish.StoresApi = factory(root.Flipdish.ApiClient, root.Flipdish.BusinessHoursOverrideBase, root.Flipdish.BusinessHoursPeriodBase, root.Flipdish.Coordinates, root.Flipdish.PreOrderConfig, root.Flipdish.RestApiArrayResultBusinessHoursPeriod, root.Flipdish.RestApiArrayResultPreOrderTime, root.Flipdish.RestApiArrayResultProcessingFeeConfig, root.Flipdish.RestApiArrayResultRestApiDefaultResponse, root.Flipdish.RestApiArrayResultStoreStatistics, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiPaginationResultBusinessHoursOverride, root.Flipdish.RestApiPaginationResultStore, root.Flipdish.RestApiPaginationResultStoreHeader, root.Flipdish.RestApiResultAssignedBankAccount, root.Flipdish.RestApiResultBusinessHoursOverride, root.Flipdish.RestApiResultBusinessHoursPeriod, root.Flipdish.RestApiResultCoordinates, root.Flipdish.RestApiResultPreOrderConfig, root.Flipdish.RestApiResultProcessingFeeConfig, root.Flipdish.RestApiResultStore, root.Flipdish.RestApiResultStoreAddress, root.Flipdish.RestApiResultStoreEndOfDayReport, root.Flipdish.RestApiUnauthorizedResult, root.Flipdish.StoreAddressBase, root.Flipdish.StoreBase, root.Flipdish.StoreCloneSettings, root.Flipdish.StoreCreateBase); } -}(this, function(ApiClient, RestApiErrorResult, RestApiForbiddenResult, RestApiPaginationResultStore, RestApiResultStore, RestApiUnauthorizedResult) { +}(this, function(ApiClient, BusinessHoursOverrideBase, BusinessHoursPeriodBase, Coordinates, PreOrderConfig, RestApiArrayResultBusinessHoursPeriod, RestApiArrayResultPreOrderTime, RestApiArrayResultProcessingFeeConfig, RestApiArrayResultRestApiDefaultResponse, RestApiArrayResultStoreStatistics, RestApiErrorResult, RestApiForbiddenResult, RestApiPaginationResultBusinessHoursOverride, RestApiPaginationResultStore, RestApiPaginationResultStoreHeader, RestApiResultAssignedBankAccount, RestApiResultBusinessHoursOverride, RestApiResultBusinessHoursPeriod, RestApiResultCoordinates, RestApiResultPreOrderConfig, RestApiResultProcessingFeeConfig, RestApiResultStore, RestApiResultStoreAddress, RestApiResultStoreEndOfDayReport, RestApiUnauthorizedResult, StoreAddressBase, StoreBase, StoreCloneSettings, StoreCreateBase) { 'use strict'; /** @@ -48,25 +48,338 @@ /** - * Callback function to receive the result of the getStoreById operation. - * @callback module:api/StoresApi~getStoreByIdCallback + * 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. + */ + + /** + * Archive store + * @param {Number} storeId Store identifier + * @param {module:api/StoresApi~archiveStoreCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.archiveStore = function(storeId, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/archive', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Assign Menu to Store + * @param {Number} storeId Store identifier + * @param {Number} menuId Id of Menu to assign to store + * @param {module:api/StoresApi~assignMenuCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRestApiDefaultResponse} + */ + this.assignMenu = function(storeId, menuId, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId, + 'menuId': menuId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultRestApiDefaultResponse; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/menu/{menuId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. */ /** - * Get store by identifier + * Clone store with store clone settings * @param {Number} storeId Store identifier - * @param {module:api/StoresApi~getStoreByIdCallback} callback The callback function, accepting three arguments: error, data, response + * @param {module:model/StoreCloneSettings} settings Settings for cloning the store + * @param {module:api/StoresApi~cloneStoreCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/RestApiResultStore} */ - this.getStoreById = function(storeId, callback) { + this.cloneStore = function(storeId, settings, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStore; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/clone', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Create Business Hours Override for a store + * @param {Number} storeId Store identifier + * @param {module:model/BusinessHoursOverrideBase} businessHoursOverride Business Hours Override + * @param {module:api/StoresApi~createBusinessHoursOverrideByStoreIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultBusinessHoursOverride} + */ + this.createBusinessHoursOverrideByStoreId = function(storeId, businessHoursOverride, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultBusinessHoursOverride; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/businesshoursoverrides', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Create store with Store Group identifier + * @param {Number} storeGroupId Store Group identifier + * @param {module:model/StoreCreateBase} store Store + * @param {module:api/StoresApi~createStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStore} + */ + this.createStore = function(storeGroupId, store, callback) { + var 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"); + } + + + var pathParams = { + }; + var queryParams = { + 'storeGroupId': storeGroupId, + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStore; + + return this.apiClient.callApi( + '/api/v1.0/stores', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Delete Business Hours Override for a store + * @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} + */ + this.deleteBusinessHoursOverride = function(storeId, businessHoursOverrideId, callback) { var 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"); + 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"); + } + + + var pathParams = { + 'storeId': storeId, + 'businessHoursOverrideId': businessHoursOverrideId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultRestApiDefaultResponse; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get Stores Bank Account Id + * @param {Number} storeId Store identifier + * @param {module:api/StoresApi~getBankAccountForStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAssignedBankAccount} + */ + this.getBankAccountForStore = function(storeId, callback) { + var 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"); } @@ -85,43 +398,49 @@ var authNames = ['oauth2']; var contentTypes = []; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = RestApiResultStore; + var returnType = RestApiResultAssignedBankAccount; return this.apiClient.callApi( - '/api/v1.0/stores/{storeId}', 'GET', + '/api/v1.0/stores/{storeId}/bankaccount', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** - * Callback function to receive the result of the getStores operation. - * @callback module:api/StoresApi~getStoresCallback + * 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/RestApiPaginationResultStore} data The data returned by the service call. + * @param {module:model/RestApiArrayResultBusinessHoursPeriod} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** - * Get all stores - * @param {Object} opts Optional parameters - * @param {String} opts.searchQuery Search query - * @param {Number} opts.page Requested page index - * @param {Number} opts.limit Requested page limit - * @param {module:api/StoresApi~getStoresCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/RestApiPaginationResultStore} + * Get Business hours + * @param {Number} storeId Store identifier + * @param {module:model/String} deliveryType Delivery type + * @param {module:api/StoresApi~getBusinessHoursCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultBusinessHoursPeriod} */ - this.getStores = function(opts, callback) { - opts = opts || {}; + this.getBusinessHours = function(storeId, deliveryType, callback) { var 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"); + } + var pathParams = { + 'storeId': storeId, + 'deliveryType': deliveryType }; var queryParams = { - 'searchQuery': opts['searchQuery'], - 'page': opts['page'], - 'limit': opts['limit'], }; var collectionQueryParams = { }; @@ -133,10 +452,1055 @@ var authNames = ['oauth2']; var contentTypes = []; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = RestApiPaginationResultStore; + var returnType = RestApiArrayResultBusinessHoursPeriod; return this.apiClient.callApi( - '/api/v1.0/stores', 'GET', + '/api/v1.0/stores/{storeId}/availability/{deliveryType}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get business hours overrides by store identifier + * @param {Number} storeId Store identifier + * @param {Object} opts Optional parameters + * @param {Date} opts.after Return results that ended after this datetime. Default value is the current datetime. + * @param {Number} opts.page Requested page index + * @param {Number} opts.limit Requested page limit + * @param {module:api/StoresApi~getBusinessHoursOverrideByStoreIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultBusinessHoursOverride} + */ + this.getBusinessHoursOverrideByStoreId = function(storeId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + 'after': opts['after'], + 'page': opts['page'], + 'limit': opts['limit'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultBusinessHoursOverride; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/businesshoursoverrides', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get store end of day report + * @param {Number} storeId Store identifier + * @param {Object} opts Optional parameters + * @param {Date} opts._date Store identifier + * @param {module:api/StoresApi~getEndOfDayReportCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStoreEndOfDayReport} + */ + this.getEndOfDayReport = function(storeId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + 'date': opts['_date'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStoreEndOfDayReport; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/endofdayreport', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get the pre order config for a store, by type + * @param {Number} storeId Store identifier + * @param {module:model/String} deliveryType \"delivery\" or \"pickup\" + * @param {module:api/StoresApi~getPreOrderConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultPreOrderConfig} + */ + this.getPreOrderConfig = function(storeId, deliveryType, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId, + 'deliveryType': deliveryType + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultPreOrderConfig; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get the Preview times of the pre-order configuration + * @param {Number} storeId Store identifier + * @param {module:model/String} deliveryType \"delivery\" or \"pickup\" + * @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} + */ + this.getPreOrderPreview = function(storeId, deliveryType, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'storeId': storeId, + 'deliveryType': deliveryType + }; + var 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'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultPreOrderTime; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/preview', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get processing fee configs by store identifier + * @param {Number} storeId Store identifier + * @param {Object} opts Optional parameters + * @param {String} opts.appNameId App Name Id(Not used, still here for compatability reasons) + * @param {module:api/StoresApi~getProcessingFeeConfigsByStoreIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultProcessingFeeConfig} + */ + this.getProcessingFeeConfigsByStoreId = function(storeId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + 'appNameId': opts['appNameId'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultProcessingFeeConfig; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/processingfeeconfigs', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get processing fee configs by store identifier + * @param {Number} storeId Store identifier + * @param {module:model/String} paymentAccountType + * @param {Object} opts Optional parameters + * @param {String} opts.appNameId App Name Id(Not used, still here for compatability reasons) + * @param {module:api/StoresApi~getProcessingFeeConfigsByStoreIdAndPaymentAccountTypeCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultProcessingFeeConfig} + */ + this.getProcessingFeeConfigsByStoreIdAndPaymentAccountType = function(storeId, paymentAccountType, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'storeId': storeId, + 'paymentAccountType': paymentAccountType + }; + var queryParams = { + 'appNameId': opts['appNameId'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultProcessingFeeConfig; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/processingfeeconfigs/{paymentAccountType}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get store by identifier + * @param {Number} storeId Store identifier + * @param {module:api/StoresApi~getStoreByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStore} + */ + this.getStoreById = function(storeId, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStore; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get all stores by app name id + * @param {String} appId App Name Id + * @param {Object} opts Optional parameters + * @param {String} opts.storeNameQuery + * @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} + */ + this.getStoreHeadersByAppId = function(appId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + 'storeNameQuery': opts['storeNameQuery'], + 'page': opts['page'], + 'limit': opts['limit'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultStoreHeader; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores/header', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get stores statistics by app name id and storeIds + * @param {String} appId App Name Id + * @param {Array.} storeId Store Ids + * @param {module:api/StoresApi~getStoreNetSalesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultStoreStatistics} + */ + this.getStoreNetSales = function(appId, storeId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + 'storeId': { + value: storeId, + collectionFormat: 'multi' + }, + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultStoreStatistics; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores/stats', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get all stores, excluding archived ones + * @param {Object} opts Optional parameters + * @param {String} opts.searchQuery Search query + * @param {Number} opts.page Requested page index + * @param {Number} opts.limit Requested page limit + * @param {Number} opts.storeGroupId Store Group Id + * @param {module:api/StoresApi~getStoresCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultStore} + */ + this.getStores = function(opts, callback) { + opts = opts || {}; + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + 'searchQuery': opts['searchQuery'], + 'page': opts['page'], + 'limit': opts['limit'], + 'storeGroupId': opts['storeGroupId'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultStore; + + return this.apiClient.callApi( + '/api/v1.0/stores', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get all stores by app name id + * @param {String} appId App Name Id + * @param {Object} opts Optional parameters + * @param {String} opts.searchQuery Search query + * @param {Number} opts.page Requested page index + * @param {Number} opts.limit Requested page limit + * @param {module:api/StoresApi~getStoresByAppIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultStore} + */ + this.getStoresByAppId = function(appId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + 'searchQuery': opts['searchQuery'], + 'page': opts['page'], + 'limit': opts['limit'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiPaginationResultStore; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Publish store + * @param {Number} storeId Store identifier + * @param {module:api/StoresApi~publishStoreCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.publishStore = function(storeId, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/publish', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Set Business hours + * @param {Number} storeId Store identifier + * @param {module:model/String} deliveryType Delivery type + * @param {module:model/BusinessHoursPeriodBase} businessHoursPeriod Business Hours Period + * @param {module:api/StoresApi~setBusinessHoursCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultBusinessHoursPeriod} + */ + this.setBusinessHours = function(storeId, deliveryType, businessHoursPeriod, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId, + 'deliveryType': deliveryType + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultBusinessHoursPeriod; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/availability/{deliveryType}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * UPDATE pre order config for a store, by type + * @param {Number} storeId Store identifier + * @param {module:model/String} deliveryType \"delivery\" or \"pickup\" + * @param {Boolean} enabled Update pre order config values + * @param {module:api/StoresApi~setPreOrdeEnabledCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRestApiDefaultResponse} + */ + this.setPreOrdeEnabled = function(storeId, deliveryType, enabled, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId, + 'deliveryType': deliveryType + }; + var queryParams = { + 'enabled': enabled, + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultRestApiDefaultResponse; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/enabled', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Unpublish store + * @param {Number} storeId Store identifier + * @param {module:api/StoresApi~unpublishStoreCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.unpublishStore = function(storeId, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/unpublish', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * UPDATE pre order config for a store, by type + * @param {Number} storeId Store identifier + * @param {module:model/String} deliveryType \"delivery\" or \"pickup\" + * @param {module:model/PreOrderConfig} preOrderConfig Update pre order config values + * @param {module:api/StoresApi~updatePreOrderConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRestApiDefaultResponse} + */ + this.updatePreOrderConfig = function(storeId, deliveryType, preOrderConfig, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId, + 'deliveryType': deliveryType + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultRestApiDefaultResponse; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Update store by identifier + * @param {Number} storeId Store Group identifier + * @param {module:model/StoreBase} store Store + * @param {module:api/StoresApi~updateStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStore} + */ + this.updateStore = function(storeId, store, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStore; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Update store address + * @param {Number} storeId Store identifier + * @param {module:model/StoreAddressBase} storeAddress Store address + * @param {module:api/StoresApi~updateStoreAddressCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStoreAddress} + */ + this.updateStoreAddress = function(storeId, storeAddress, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStoreAddress; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/address', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Update store address coordinates + * @param {Number} storeId Store identifier + * @param {module:model/Coordinates} coordinates Store address coordinates + * @param {Object} opts Optional parameters + * @param {String} opts.appNameId App Name Id(Not used, still here for compatability reasons) + * @param {module:api/StoresApi~updateStoreAddressCoordinatesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCoordinates} + */ + this.updateStoreAddressCoordinates = function(storeId, coordinates, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + 'appNameId': opts['appNameId'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultCoordinates; + + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/address/coordinates', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); diff --git a/src/api/StripeCustomConnectApi.js b/src/api/StripeCustomConnectApi.js new file mode 100644 index 00000000..adbb2535 --- /dev/null +++ b/src/api/StripeCustomConnectApi.js @@ -0,0 +1,446 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BankAccountCreate', 'model/BankAccountDetailsUpdateRequest', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultBankAccountDetail', 'model/RestApiResultStripeConnectedAccount', 'model/RestApiUnauthorizedResult', 'model/StripeAccountLinkRequest'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/BankAccountCreate'), require('../model/BankAccountDetailsUpdateRequest'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultBankAccountDetail'), require('../model/RestApiResultStripeConnectedAccount'), require('../model/RestApiUnauthorizedResult'), require('../model/StripeAccountLinkRequest')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StripeCustomConnectApi = factory(root.Flipdish.ApiClient, root.Flipdish.BankAccountCreate, root.Flipdish.BankAccountDetailsUpdateRequest, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultBankAccountDetail, root.Flipdish.RestApiResultStripeConnectedAccount, root.Flipdish.RestApiUnauthorizedResult, root.Flipdish.StripeAccountLinkRequest); + } +}(this, function(ApiClient, BankAccountCreate, BankAccountDetailsUpdateRequest, RestApiErrorResult, RestApiForbiddenResult, RestApiResultBankAccountDetail, RestApiResultStripeConnectedAccount, RestApiUnauthorizedResult, StripeAccountLinkRequest) { + 'use strict'; + + /** + * StripeCustomConnect service. + * @module api/StripeCustomConnectApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * Create a new Bank Account and Stripe connected account + * @param {String} appId App Name + * @param {module:model/BankAccountCreate} account Account to be created + * @param {module:api/StripeCustomConnectApi~createBankAccountAndConnectedAccountCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultBankAccountDetail} + */ + this.createBankAccountAndConnectedAccount = function(appId, account, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultBankAccountDetail; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/bank-account', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Create or update a Stripe connected account associated with the bank account of bankAccountId + * @param {String} appId App Name Id + * @param {Number} bankAccountId Bank Account Id + * @param {module:api/StripeCustomConnectApi~createStripeConnectedAccountCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStripeConnectedAccount} + */ + this.createStripeConnectedAccount = function(appId, bankAccountId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStripeConnectedAccount; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/{bankAccountId}/create-update-account', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Gets a single-use Stripe URL for the given account + * @param {String} appId App Name + * @param {String} stripeConnectedAccountId Stripe Connected Account Id + * @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} + */ + this.createStripeConnectedAccountLink = function(appId, stripeConnectedAccountId, stripeAccountLinkRequest, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'stripeConnectedAccountId': stripeConnectedAccountId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStripeConnectedAccount; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/{stripeConnectedAccountId}/create-account-link', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Gets the current verification status of the given connected account + * @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} + */ + this.getVerificationStatus = function(appId, stripeConnectedAccountId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + 'stripeConnectedAccountId': stripeConnectedAccountId, + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStripeConnectedAccount; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/verification-status', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Update bank account's BusinessType and create a Stripe Connected Account + * @param {String} appId App Name + * @param {Number} bankAccountId Bank Account Id + * @param {String} businessType Bank Account business type + * @param {module:api/StripeCustomConnectApi~setBankAccountBusinessTypeCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultBankAccountDetail} + */ + this.setBankAccountBusinessType = function(appId, bankAccountId, businessType, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultBankAccountDetail; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/bank-account/{bankAccountId}/businesstype', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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} + */ + this.stripeCustomConnectRefresh = function(linkRequestId, appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + 'linkRequestId': linkRequestId, + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = Object; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/refresh-link', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Update bank account details + * @param {String} appId App Name Id + * @param {Number} bankAccountId Bank Account Id + * @param {module:model/BankAccountDetailsUpdateRequest} updateRequest fields to be updated + * @param {module:api/StripeCustomConnectApi~updateBankAccountDetailsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStripeConnectedAccount} + */ + this.updateBankAccountDetails = function(appId, bankAccountId, updateRequest, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStripeConnectedAccount; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/{bankAccountId}/update-bank-account-details', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/StuartApi.js b/src/api/StuartApi.js new file mode 100644 index 00000000..f63b965d --- /dev/null +++ b/src/api/StuartApi.js @@ -0,0 +1,260 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultJobResponse', 'model/RestApiResultStuartSettings', 'model/RestApiUnauthorizedResult', 'model/StuartSettings'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultJobResponse'), require('../model/RestApiResultStuartSettings'), require('../model/RestApiUnauthorizedResult'), require('../model/StuartSettings')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StuartApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultJobResponse, root.Flipdish.RestApiResultStuartSettings, root.Flipdish.RestApiUnauthorizedResult, root.Flipdish.StuartSettings); + } +}(this, function(ApiClient, RestApiErrorResult, RestApiForbiddenResult, RestApiResultJobResponse, RestApiResultStuartSettings, RestApiUnauthorizedResult, StuartSettings) { + 'use strict'; + + /** + * Stuart service. + * @module api/StuartApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * Cancel a stuart job + * @param {Number} jobId Stuart job identifier + * @param {Number} storeId Store identifier + * @param {module:api/StuartApi~stuartCancelJobCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + this.stuartCancelJob = function(jobId, storeId, callback) { + var 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"); + } + + + var pathParams = { + 'jobId': jobId + }; + var queryParams = { + 'storeId': storeId, + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = Object; + + return this.apiClient.callApi( + '/api/v1.0/stuart/jobs/{jobId}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get start job details + * @param {Number} jobId Stuart job identifier + * @param {Number} storeId Store identifier + * @param {module:api/StuartApi~stuartGetJobCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultJobResponse} + */ + this.stuartGetJob = function(jobId, storeId, callback) { + var 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"); + } + + + var pathParams = { + 'jobId': jobId + }; + var queryParams = { + 'storeId': storeId, + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultJobResponse; + + return this.apiClient.callApi( + '/api/v1.0/stuart/jobs/{jobId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get stuart settings for a store + * @param {Number} storeId Store Identifier + * @param {module:api/StuartApi~stuartGetStuartSettingsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStuartSettings} + */ + this.stuartGetStuartSettings = function(storeId, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultStuartSettings; + + return this.apiClient.callApi( + '/api/v1.0/stuart/settings/{storeId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Set stuart settings for a store + * @param {Number} storeId Store Identifier + * @param {module:model/StuartSettings} stuartSettings Stuart settings model + * @param {module:api/StuartApi~stuartPostStuartSettingsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + this.stuartPostStuartSettings = function(storeId, stuartSettings, callback) { + var 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"); + } + + + var pathParams = { + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = Object; + + return this.apiClient.callApi( + '/api/v1.0/stuart/settings/{storeId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/TeammatesApi.js b/src/api/TeammatesApi.js new file mode 100644 index 00000000..bfe4d63c --- /dev/null +++ b/src/api/TeammatesApi.js @@ -0,0 +1,373 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CreateTeammate', 'model/RestApiArrayResultTeammate', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultRedeemInvitationResult', 'model/RestApiResultTeammate', 'model/RestApiUnauthorizedResult', 'model/TeammateBase'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/CreateTeammate'), require('../model/RestApiArrayResultTeammate'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultRedeemInvitationResult'), require('../model/RestApiResultTeammate'), require('../model/RestApiUnauthorizedResult'), require('../model/TeammateBase')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.TeammatesApi = factory(root.Flipdish.ApiClient, root.Flipdish.CreateTeammate, root.Flipdish.RestApiArrayResultTeammate, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultRedeemInvitationResult, root.Flipdish.RestApiResultTeammate, root.Flipdish.RestApiUnauthorizedResult, root.Flipdish.TeammateBase); + } +}(this, function(ApiClient, CreateTeammate, RestApiArrayResultTeammate, RestApiErrorResult, RestApiForbiddenResult, RestApiResultRedeemInvitationResult, RestApiResultTeammate, RestApiUnauthorizedResult, TeammateBase) { + 'use strict'; + + /** + * Teammates service. + * @module api/TeammatesApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * Create teammate and send an invite. + * @param {String} appId Application identifier + * @param {module:model/CreateTeammate} teammate teammate model + * @param {module:api/TeammatesApi~createTeammateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultTeammate} + */ + this.createTeammate = function(appId, teammate, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultTeammate; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/teammates', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Delete teammate + * @param {String} appId + * @param {String} id + * @param {module:api/TeammatesApi~deleteTeammateCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.deleteTeammate = function(appId, id, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'id': id + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/teammates/{id}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get a teammates by email address + * @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} + */ + this.getTeammateByAppIdAndTeammateId = function(appId, id, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'id': id + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultTeammate; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/teammates/{id}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get all teammates + * @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} + */ + this.getTeammatesByAppId = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiArrayResultTeammate; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/teammates', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Redeem one-time code from invitation + * @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} + */ + this.redeemInvitation = function(otc, appId, callback) { + var 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"); + } + + + var pathParams = { + 'otc': otc, + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultRedeemInvitationResult; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/teammates/redeem/{otc}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Update teammates (this method does not support Deltas!) + * @param {String} appId Application identifier + * @param {String} id teammate identifier + * @param {module:model/TeammateBase} teammate teammate model + * @param {module:api/TeammatesApi~updateTeammateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultTeammate} + */ + this.updateTeammate = function(appId, id, teammate, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'id': id + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultTeammate; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/teammates/{id}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/api/UsersApi.js b/src/api/UsersApi.js index 12227409..456a6c60 100644 --- a/src/api/UsersApi.js +++ b/src/api/UsersApi.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,18 +16,18 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiStringArrayResult', 'model/RestApiUnauthorizedResult'], factory); + define(['ApiClient', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiStringArrayResult', 'model/RestApiStringResult', 'model/RestApiUnauthorizedResult'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiStringArrayResult'), require('../model/RestApiUnauthorizedResult')); + module.exports = factory(require('../ApiClient'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiStringArrayResult'), require('../model/RestApiStringResult'), require('../model/RestApiUnauthorizedResult')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.UsersApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiStringArrayResult, root.Flipdish.RestApiUnauthorizedResult); + root.Flipdish.UsersApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiStringArrayResult, root.Flipdish.RestApiStringResult, root.Flipdish.RestApiUnauthorizedResult); } -}(this, function(ApiClient, RestApiErrorResult, RestApiForbiddenResult, RestApiStringArrayResult, RestApiUnauthorizedResult) { +}(this, function(ApiClient, RestApiErrorResult, RestApiForbiddenResult, RestApiStringArrayResult, RestApiStringResult, RestApiUnauthorizedResult) { 'use strict'; /** @@ -47,6 +47,59 @@ this.apiClient = apiClient || ApiClient.instance; + /** + * 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} + */ + this.getPreviousOrderCountForStore = function(userId, storeId, callback) { + var 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"); + } + + + var pathParams = { + 'userId': userId, + 'storeId': storeId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiStringResult; + + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/previousordercount/{storeId}', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + /** * Callback function to receive the result of the getRoles operation. * @callback module:api/UsersApi~getRolesCallback diff --git a/src/api/VouchersApi.js b/src/api/VouchersApi.js index 1dcc4f3d..4550e837 100644 --- a/src/api/VouchersApi.js +++ b/src/api/VouchersApi.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,18 +16,18 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/RestApiArrayResultMetadata', 'model/RestApiArrayResultRestApiDefaultResponse', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiPaginationResultVoucher', 'model/RestApiResultMetadata', 'model/RestApiResultVoucher', 'model/RestApiUnauthorizedResult'], factory); + define(['ApiClient', 'model/CreateVoucher', 'model/RestApiArrayResultVoucherDataPoint', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiPaginationResultVoucherSummary', 'model/RestApiResultVoucherWithStats', 'model/RestApiUnauthorizedResult', 'model/VoucherBase'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/RestApiArrayResultMetadata'), require('../model/RestApiArrayResultRestApiDefaultResponse'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiPaginationResultVoucher'), require('../model/RestApiResultMetadata'), require('../model/RestApiResultVoucher'), require('../model/RestApiUnauthorizedResult')); + module.exports = factory(require('../ApiClient'), require('../model/CreateVoucher'), require('../model/RestApiArrayResultVoucherDataPoint'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiPaginationResultVoucherSummary'), require('../model/RestApiResultVoucherWithStats'), require('../model/RestApiUnauthorizedResult'), require('../model/VoucherBase')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.VouchersApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiArrayResultMetadata, root.Flipdish.RestApiArrayResultRestApiDefaultResponse, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiPaginationResultVoucher, root.Flipdish.RestApiResultMetadata, root.Flipdish.RestApiResultVoucher, root.Flipdish.RestApiUnauthorizedResult); + root.Flipdish.VouchersApi = factory(root.Flipdish.ApiClient, root.Flipdish.CreateVoucher, root.Flipdish.RestApiArrayResultVoucherDataPoint, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiPaginationResultVoucherSummary, root.Flipdish.RestApiResultVoucherWithStats, root.Flipdish.RestApiUnauthorizedResult, root.Flipdish.VoucherBase); } -}(this, function(ApiClient, RestApiArrayResultMetadata, RestApiArrayResultRestApiDefaultResponse, RestApiErrorResult, RestApiForbiddenResult, RestApiPaginationResultVoucher, RestApiResultMetadata, RestApiResultVoucher, RestApiUnauthorizedResult) { +}(this, function(ApiClient, CreateVoucher, RestApiArrayResultVoucherDataPoint, RestApiErrorResult, RestApiForbiddenResult, RestApiPaginationResultVoucherSummary, RestApiResultVoucherWithStats, RestApiUnauthorizedResult, VoucherBase) { 'use strict'; /** @@ -48,51 +48,36 @@ /** - * Callback function to receive the result of the deleteVoucherMetadata operation. - * @callback module:api/VouchersApi~deleteVoucherMetadataCallback + * 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/RestApiArrayResultRestApiDefaultResponse} data The data returned by the service call. + * @param {module:model/RestApiResultVoucherWithStats} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** - * Delete voucher metadata - * @param {Number} voucherId - * @param {Number} menuId - * @param {Number} storeId - * @param {String} key - * @param {module:api/VouchersApi~deleteVoucherMetadataCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/RestApiArrayResultRestApiDefaultResponse} + * [PRIVATE API] Create voucher + * @param {String} appId App Name Id + * @param {module:model/CreateVoucher} voucher Voucher Details + * @param {module:api/VouchersApi~createVoucherCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultVoucherWithStats} */ - this.deleteVoucherMetadata = function(voucherId, menuId, storeId, key, callback) { - var postBody = null; + this.createVoucher = function(appId, voucher, callback) { + var postBody = voucher; - // verify the required parameter 'voucherId' is set - if (voucherId === undefined || voucherId === null) { - throw new Error("Missing the required parameter 'voucherId' when calling deleteVoucherMetadata"); + // 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 'menuId' is set - if (menuId === undefined || menuId === null) { - throw new Error("Missing the required parameter 'menuId' when calling deleteVoucherMetadata"); - } - - // verify the required parameter 'storeId' is set - if (storeId === undefined || storeId === null) { - throw new Error("Missing the required parameter 'storeId' when calling deleteVoucherMetadata"); - } - - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling deleteVoucherMetadata"); + // verify the required parameter 'voucher' is set + if (voucher === undefined || voucher === null) { + throw new Error("Missing the required parameter 'voucher' when calling createVoucher"); } var pathParams = { - 'voucherId': voucherId, - 'menuId': menuId, - 'storeId': storeId, - 'key': key + 'appId': appId }; var queryParams = { }; @@ -104,12 +89,12 @@ }; var authNames = ['oauth2']; - var contentTypes = []; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = RestApiArrayResultRestApiDefaultResponse; + var returnType = RestApiResultVoucherWithStats; return this.apiClient.callApi( - '/api/v1.0/vouchers/{voucherId}/menu/{menuId}/store/{storeId}/metadata/{key}', 'DELETE', + '/api/v1.0/vouchers/{appId}', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -119,15 +104,15 @@ * 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/RestApiResultVoucher} data The data returned by the service call. + * @param {module:model/RestApiResultVoucherWithStats} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** - * Get voucher by identifier - * @param {Number} voucherId + * [PRIVATE API] Get voucher by identifier + * @param {Number} voucherId Id of the voucher * @param {module:api/VouchersApi~getVoucherByIdCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/RestApiResultVoucher} + * data is of type: {@link module:model/RestApiResultVoucherWithStats} */ this.getVoucherById = function(voucherId, callback) { var postBody = null; @@ -153,7 +138,7 @@ var authNames = ['oauth2']; var contentTypes = []; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = RestApiResultVoucher; + var returnType = RestApiResultVoucherWithStats; return this.apiClient.callApi( '/api/v1.0/vouchers/{voucherId}', 'GET', @@ -163,114 +148,43 @@ } /** - * Callback function to receive the result of the getVoucherMetadata operation. - * @callback module:api/VouchersApi~getVoucherMetadataCallback - * @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 voucher metadata - * @param {Number} voucherId - * @param {Number} menuId - * @param {Number} storeId - * @param {module:api/VouchersApi~getVoucherMetadataCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/RestApiArrayResultMetadata} - */ - this.getVoucherMetadata = function(voucherId, menuId, storeId, callback) { - var postBody = null; - - // verify the required parameter 'voucherId' is set - if (voucherId === undefined || voucherId === null) { - throw new Error("Missing the required parameter 'voucherId' when calling getVoucherMetadata"); - } - - // verify the required parameter 'menuId' is set - if (menuId === undefined || menuId === null) { - throw new Error("Missing the required parameter 'menuId' when calling getVoucherMetadata"); - } - - // verify the required parameter 'storeId' is set - if (storeId === undefined || storeId === null) { - throw new Error("Missing the required parameter 'storeId' when calling getVoucherMetadata"); - } - - - var pathParams = { - 'voucherId': voucherId, - 'menuId': menuId, - 'storeId': storeId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['oauth2']; - var contentTypes = []; - var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = RestApiArrayResultMetadata; - - return this.apiClient.callApi( - '/api/v1.0/vouchers/{voucherId}/menu/{menuId}/store/{storeId}/metadata', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getVoucherMetadata_0 operation. - * @callback module:api/VouchersApi~getVoucherMetadata_0Callback + * 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/RestApiResultMetadata} data The data returned by the service call. + * @param {module:model/RestApiArrayResultVoucherDataPoint} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** - * Get voucher metadata - * @param {Number} voucherId - * @param {Number} menuId - * @param {Number} storeId - * @param {String} key - * @param {module:api/VouchersApi~getVoucherMetadata_0Callback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/RestApiResultMetadata} + * [PRIVATE API] Get voucher stats by identifier + * @param {Number} voucherId Id of the voucher + * @param {module:model/String} aggregateDataBy Aggregate data by day \\ week \\ month + * @param {Object} opts Optional parameters + * @param {Number} opts.dataPointLimit Amount of data points per request + * @param {module:api/VouchersApi~getVoucherStatsByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultVoucherDataPoint} */ - this.getVoucherMetadata_0 = function(voucherId, menuId, storeId, key, callback) { + this.getVoucherStatsById = function(voucherId, aggregateDataBy, opts, callback) { + opts = opts || {}; var postBody = null; // verify the required parameter 'voucherId' is set if (voucherId === undefined || voucherId === null) { - throw new Error("Missing the required parameter 'voucherId' when calling getVoucherMetadata_0"); + throw new Error("Missing the required parameter 'voucherId' when calling getVoucherStatsById"); } - // verify the required parameter 'menuId' is set - if (menuId === undefined || menuId === null) { - throw new Error("Missing the required parameter 'menuId' when calling getVoucherMetadata_0"); - } - - // verify the required parameter 'storeId' is set - if (storeId === undefined || storeId === null) { - throw new Error("Missing the required parameter 'storeId' when calling getVoucherMetadata_0"); - } - - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling getVoucherMetadata_0"); + // verify the required parameter 'aggregateDataBy' is set + if (aggregateDataBy === undefined || aggregateDataBy === null) { + throw new Error("Missing the required parameter 'aggregateDataBy' when calling getVoucherStatsById"); } var pathParams = { - 'voucherId': voucherId, - 'menuId': menuId, - 'storeId': storeId, - 'key': key + 'voucherId': voucherId }; var queryParams = { + 'aggregateDataBy': aggregateDataBy, + 'dataPointLimit': opts['dataPointLimit'], }; var collectionQueryParams = { }; @@ -282,10 +196,10 @@ var authNames = ['oauth2']; var contentTypes = []; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = RestApiResultMetadata; + var returnType = RestApiArrayResultVoucherDataPoint; return this.apiClient.callApi( - '/api/v1.0/vouchers/{voucherId}/menu/{menuId}/store/{storeId}/metadata/{key}', 'GET', + '/api/v1.0/vouchers/stats/{voucherId}', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -295,56 +209,62 @@ * 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/RestApiPaginationResultVoucher} data The data returned by the service call. + * @param {module:model/RestApiPaginationResultVoucherSummary} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** - * Get vouchers + * [PRIVATE API] Get vouchers summaries for App Id + * @param {String} appId Application Id * @param {Object} opts Optional parameters - * @param {String} opts.filter - * @param {Number} opts.pageNumber - * @param {Number} opts.pageSize - * @param {module:model/String} opts.sortOrder - * @param {module:model/String} opts.orderBy - * @param {module:model/String} opts.subType - * @param {module:model/String} opts.status - * @param {String} opts.code - * @param {Date} opts.validFromBegin - * @param {Date} opts.validFromEnd - * @param {Date} opts.expiryBegin - * @param {Date} opts.expiryEnd - * @param {Number} opts.amount - * @param {module:model/String} opts.voucherType - * @param {String} opts.description + * @param {Number} opts.pageIndex Page Number + * @param {Number} opts.pageSize Page Size + * @param {Array.} opts.searchCodes Search by Voucher Code\\s + * @param {Array.} opts.statusSearch Search by Status + * @param {Array.} opts.typeSearch Search by Type + * @param {Array.} opts.subTypeSearch Search by Sub Type + * @param {Array.} opts.storeIds Search by Store Ids * @param {module:api/VouchersApi~getVouchersCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/RestApiPaginationResultVoucher} + * data is of type: {@link module:model/RestApiPaginationResultVoucherSummary} */ - this.getVouchers = function(opts, callback) { + this.getVouchers = function(appId, opts, callback) { opts = opts || {}; var 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"); + } + var pathParams = { + 'appId': appId }; var queryParams = { - 'filter': opts['filter'], - 'pageNumber': opts['pageNumber'], + 'pageIndex': opts['pageIndex'], 'pageSize': opts['pageSize'], - 'sortOrder': opts['sortOrder'], - 'orderBy': opts['orderBy'], - 'subType': opts['subType'], - 'status': opts['status'], - 'code': opts['code'], - 'validFromBegin': opts['validFromBegin'], - 'validFromEnd': opts['validFromEnd'], - 'expiryBegin': opts['expiryBegin'], - 'expiryEnd': opts['expiryEnd'], - 'amount': opts['amount'], - 'voucherType': opts['voucherType'], - 'description': opts['description'], }; var collectionQueryParams = { + 'searchCodes': { + value: opts['searchCodes'], + collectionFormat: 'multi' + }, + 'statusSearch': { + value: opts['statusSearch'], + collectionFormat: 'multi' + }, + 'typeSearch': { + value: opts['typeSearch'], + collectionFormat: 'multi' + }, + 'subTypeSearch': { + value: opts['subTypeSearch'], + collectionFormat: 'multi' + }, + 'storeIds': { + value: opts['storeIds'], + collectionFormat: 'multi' + }, }; var headerParams = { }; @@ -354,70 +274,63 @@ var authNames = ['oauth2']; var contentTypes = []; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = RestApiPaginationResultVoucher; + var returnType = RestApiPaginationResultVoucherSummary; return this.apiClient.callApi( - '/api/v1.0/vouchers', 'GET', + '/api/v1.0/{appId}/vouchers/summaries', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** - * Callback function to receive the result of the setVoucherMetadata operation. - * @callback module:api/VouchersApi~setVoucherMetadataCallback + * Callback function to receive the result of the updateVoucher operation. + * @callback module:api/VouchersApi~updateVoucherCallback * @param {String} error Error message, if any. - * @param data This operation does not return a value. + * @param {module:model/RestApiResultVoucherWithStats} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** - * Add voucher metadata - * @param {Number} voucherId - * @param {Number} menuId - * @param {Number} storeId - * @param {String} key - * @param {String} value - * @param {module:api/VouchersApi~setVoucherMetadataCallback} callback The callback function, accepting three arguments: error, data, response + * [PRIVATE API] Updates voucher + * @param {Number} voucherId Id of the voucher + * @param {module:model/VoucherBase} voucher Updated details for the voucher + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeId + * @param {Number} opts.percentValue Percent voucher value (can have 1 of 3) + * @param {Number} opts.lumpValue Lump voucher value (can have 1 of 3) + * @param {Number} opts.freeItemId Free Item Id (can have 1 of 3) + * @param {module:api/VouchersApi~updateVoucherCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultVoucherWithStats} */ - this.setVoucherMetadata = function(voucherId, menuId, storeId, key, value, callback) { - var postBody = value; + this.updateVoucher = function(voucherId, voucher, opts, callback) { + opts = opts || {}; + var postBody = voucher; // verify the required parameter 'voucherId' is set if (voucherId === undefined || voucherId === null) { - throw new Error("Missing the required parameter 'voucherId' when calling setVoucherMetadata"); - } - - // verify the required parameter 'menuId' is set - if (menuId === undefined || menuId === null) { - throw new Error("Missing the required parameter 'menuId' when calling setVoucherMetadata"); - } - - // verify the required parameter 'storeId' is set - if (storeId === undefined || storeId === null) { - throw new Error("Missing the required parameter 'storeId' when calling setVoucherMetadata"); - } - - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling setVoucherMetadata"); + throw new Error("Missing the required parameter 'voucherId' when calling updateVoucher"); } - // verify the required parameter 'value' is set - if (value === undefined || value === null) { - throw new Error("Missing the required parameter 'value' when calling setVoucherMetadata"); + // verify the required parameter 'voucher' is set + if (voucher === undefined || voucher === null) { + throw new Error("Missing the required parameter 'voucher' when calling updateVoucher"); } var pathParams = { - 'voucherId': voucherId, - 'menuId': menuId, - 'storeId': storeId, - 'key': key + 'voucherId': voucherId }; var queryParams = { + 'percentValue': opts['percentValue'], + 'lumpValue': opts['lumpValue'], + 'freeItemId': opts['freeItemId'], }; var collectionQueryParams = { + 'storeId': { + value: opts['storeId'], + collectionFormat: 'multi' + }, }; var headerParams = { }; @@ -427,10 +340,10 @@ var authNames = ['oauth2']; var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = null; + var returnType = RestApiResultVoucherWithStats; return this.apiClient.callApi( - '/api/v1.0/vouchers/{voucherId}/menu/{menuId}/store/{storeId}/metadata/{key}', 'PUT', + '/api/v1.0/vouchers/{voucherId}', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); diff --git a/src/api/WebhooksApi.js b/src/api/WebhooksApi.js index 3c6e606a..1ca9c5da 100644 --- a/src/api/WebhooksApi.js +++ b/src/api/WebhooksApi.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,18 +16,18 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/RestApiArrayResultWebhookSubscription', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiIntegerResult', 'model/RestApiPaginationResultWebhookLog', 'model/RestApiStringArrayResult', 'model/RestApiUnauthorizedResult', 'model/WebhookSubscription'], factory); + define(['ApiClient', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiIntegerResult', 'model/RestApiPaginationResultWebhookLog', 'model/RestApiPaginationResultWebhookSubscription', 'model/RestApiStringArrayResult', 'model/RestApiUnauthorizedResult', 'model/WebhookEventSample', 'model/WebhookSubscription'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/RestApiArrayResultWebhookSubscription'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiIntegerResult'), require('../model/RestApiPaginationResultWebhookLog'), require('../model/RestApiStringArrayResult'), require('../model/RestApiUnauthorizedResult'), require('../model/WebhookSubscription')); + module.exports = factory(require('../ApiClient'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiIntegerResult'), require('../model/RestApiPaginationResultWebhookLog'), require('../model/RestApiPaginationResultWebhookSubscription'), require('../model/RestApiStringArrayResult'), require('../model/RestApiUnauthorizedResult'), require('../model/WebhookEventSample'), require('../model/WebhookSubscription')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.WebhooksApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiArrayResultWebhookSubscription, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiIntegerResult, root.Flipdish.RestApiPaginationResultWebhookLog, root.Flipdish.RestApiStringArrayResult, root.Flipdish.RestApiUnauthorizedResult, root.Flipdish.WebhookSubscription); + root.Flipdish.WebhooksApi = factory(root.Flipdish.ApiClient, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiIntegerResult, root.Flipdish.RestApiPaginationResultWebhookLog, root.Flipdish.RestApiPaginationResultWebhookSubscription, root.Flipdish.RestApiStringArrayResult, root.Flipdish.RestApiUnauthorizedResult, root.Flipdish.WebhookEventSample, root.Flipdish.WebhookSubscription); } -}(this, function(ApiClient, RestApiArrayResultWebhookSubscription, RestApiErrorResult, RestApiForbiddenResult, RestApiIntegerResult, RestApiPaginationResultWebhookLog, RestApiStringArrayResult, RestApiUnauthorizedResult, WebhookSubscription) { +}(this, function(ApiClient, RestApiErrorResult, RestApiForbiddenResult, RestApiIntegerResult, RestApiPaginationResultWebhookLog, RestApiPaginationResultWebhookSubscription, RestApiStringArrayResult, RestApiUnauthorizedResult, WebhookEventSample, WebhookSubscription) { 'use strict'; /** @@ -56,18 +56,19 @@ */ /** - * Create a webhook subscription for you Oauth client - * @param {String} clientId Oauth client identifier + * Create a webhook subscription for you Oauth App + * @param {String} oauthAppId Oauth App identifier * @param {module:model/WebhookSubscription} webhookSubscription Webhook subscription object + * @param {String} appId * @param {module:api/WebhooksApi~craeteWebhookSubscriptionCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/RestApiIntegerResult} */ - this.craeteWebhookSubscription = function(clientId, webhookSubscription, callback) { + this.craeteWebhookSubscription = function(oauthAppId, webhookSubscription, appId, callback) { var postBody = webhookSubscription; - // verify the required parameter 'clientId' is set - if (clientId === undefined || clientId === null) { - throw new Error("Missing the required parameter 'clientId' when calling craeteWebhookSubscription"); + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling craeteWebhookSubscription"); } // verify the required parameter 'webhookSubscription' is set @@ -75,9 +76,15 @@ throw new Error("Missing the required parameter 'webhookSubscription' when calling craeteWebhookSubscription"); } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling craeteWebhookSubscription"); + } + var pathParams = { - 'clientId': clientId + 'oauthAppId': oauthAppId, + 'appId': appId }; var queryParams = { }; @@ -94,7 +101,7 @@ var returnType = RestApiIntegerResult; return this.apiClient.callApi( - '/api/v1.0/webhooks/{clientId}/subscriptions', 'POST', + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -110,17 +117,18 @@ /** * Add event name to your webhook subscription - * @param {String} clientId Oauth client identifier + * @param {String} oauthAppId Oauth App identifier * @param {Number} webhookSubscriptionId Webhook subscription identifier * @param {String} eventName Webhook subscription event name + * @param {String} appId * @param {module:api/WebhooksApi~createWebhookSubscriptionEventNamesCallback} callback The callback function, accepting three arguments: error, data, response */ - this.createWebhookSubscriptionEventNames = function(clientId, webhookSubscriptionId, eventName, callback) { + this.createWebhookSubscriptionEventNames = function(oauthAppId, webhookSubscriptionId, eventName, appId, callback) { var postBody = null; - // verify the required parameter 'clientId' is set - if (clientId === undefined || clientId === null) { - throw new Error("Missing the required parameter 'clientId' when calling createWebhookSubscriptionEventNames"); + // 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 @@ -133,11 +141,17 @@ 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"); + } + var pathParams = { - 'clientId': clientId, + 'oauthAppId': oauthAppId, 'webhookSubscriptionId': webhookSubscriptionId, - 'eventName': eventName + 'eventName': eventName, + 'appId': appId }; var queryParams = { }; @@ -154,7 +168,7 @@ var returnType = null; return this.apiClient.callApi( - '/api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId}/events/{eventName}', 'POST', + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -170,16 +184,17 @@ /** * Delete you webhook subscription - * @param {String} clientId Oauth client identifier + * @param {String} oauthAppId Oauth App identifier * @param {Number} webhookSubscriptionId Webhook subscription identifier + * @param {String} appId * @param {module:api/WebhooksApi~deleteWebhookSubscriptionCallback} callback The callback function, accepting three arguments: error, data, response */ - this.deleteWebhookSubscription = function(clientId, webhookSubscriptionId, callback) { + this.deleteWebhookSubscription = function(oauthAppId, webhookSubscriptionId, appId, callback) { var postBody = null; - // verify the required parameter 'clientId' is set - if (clientId === undefined || clientId === null) { - throw new Error("Missing the required parameter 'clientId' when calling deleteWebhookSubscription"); + // 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 @@ -187,10 +202,16 @@ 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"); + } + var pathParams = { - 'clientId': clientId, - 'webhookSubscriptionId': webhookSubscriptionId + 'oauthAppId': oauthAppId, + 'webhookSubscriptionId': webhookSubscriptionId, + 'appId': appId }; var queryParams = { }; @@ -207,7 +228,7 @@ var returnType = null; return this.apiClient.callApi( - '/api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId}', 'DELETE', + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}', 'DELETE', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -223,17 +244,18 @@ /** * Remove event name to your webhook subscription - * @param {String} clientId Oauth client identifier + * @param {String} oauthAppId Oauth App identifier * @param {Number} webhookSubscriptionId Webhook subscription identifier * @param {String} eventName Webhook subscription event name + * @param {String} appId * @param {module:api/WebhooksApi~deleteWebhookSubscriptionEventNameCallback} callback The callback function, accepting three arguments: error, data, response */ - this.deleteWebhookSubscriptionEventName = function(clientId, webhookSubscriptionId, eventName, callback) { + this.deleteWebhookSubscriptionEventName = function(oauthAppId, webhookSubscriptionId, eventName, appId, callback) { var postBody = null; - // verify the required parameter 'clientId' is set - if (clientId === undefined || clientId === null) { - throw new Error("Missing the required parameter 'clientId' when calling deleteWebhookSubscriptionEventName"); + // 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 @@ -246,11 +268,17 @@ 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"); + } + var pathParams = { - 'clientId': clientId, + 'oauthAppId': oauthAppId, 'webhookSubscriptionId': webhookSubscriptionId, - 'eventName': eventName + 'eventName': eventName, + 'appId': appId }; var queryParams = { }; @@ -267,7 +295,7 @@ var returnType = null; return this.apiClient.callApi( - '/api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId}/events/{eventName}', 'DELETE', + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}', 'DELETE', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -283,14 +311,21 @@ /** * Get all webhook subscription event names + * @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} */ - this.getWebhookEventNames = function(callback) { + this.getWebhookEventNames = function(appId, callback) { var 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"); + } + var pathParams = { + 'appId': appId }; var queryParams = { }; @@ -307,7 +342,7 @@ var returnType = RestApiStringArrayResult; return this.apiClient.callApi( - '/api/v1.0/webhooks/events', 'GET', + '/api/v1.0/{appId}/webhooks/events', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -323,17 +358,18 @@ /** * Get your webhook subscriptions selected event names - * @param {String} clientId Oauth client identifier + * @param {String} oauthAppId Oauth App identifier * @param {Number} webhookSubscriptionId Webhook subscription identifier + * @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} */ - this.getWebhookEventNamesBySubscriptionId = function(clientId, webhookSubscriptionId, callback) { + this.getWebhookEventNamesBySubscriptionId = function(oauthAppId, webhookSubscriptionId, appId, callback) { var postBody = null; - // verify the required parameter 'clientId' is set - if (clientId === undefined || clientId === null) { - throw new Error("Missing the required parameter 'clientId' when calling getWebhookEventNamesBySubscriptionId"); + // 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 @@ -341,10 +377,16 @@ 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"); + } + var pathParams = { - 'clientId': clientId, - 'webhookSubscriptionId': webhookSubscriptionId + 'oauthAppId': oauthAppId, + 'webhookSubscriptionId': webhookSubscriptionId, + 'appId': appId }; var queryParams = { }; @@ -361,7 +403,79 @@ var returnType = RestApiStringArrayResult; return this.apiClient.callApi( - '/api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId}/events', 'GET', + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get a sample event from a webhook subscription + * @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} + */ + this.getWebhookEventSample = function(eventName, appId, oauthAppId, webhookSubscriptionId, opts, callback) { + opts = opts || {}; + var 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"); + } + + + var pathParams = { + 'eventName': eventName, + 'appId': appId, + 'oauthAppId': oauthAppId, + 'webhookSubscriptionId': webhookSubscriptionId + }; + var queryParams = { + 'version': opts['version'], + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = WebhookEventSample; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}/test', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -377,23 +491,24 @@ /** * Get logs for your webhook subscription - * @param {String} clientId Oauth client identifier + * @param {String} oauthAppId Oauth App identifier * @param {Number} webhookSubscriptionId Webhook subscription identifier * @param {Date} start Start time * @param {Date} end End time + * @param {String} appId * @param {Object} opts Optional parameters * @param {Number} opts.page Page number * @param {Number} opts.limit Page size * @param {module:api/WebhooksApi~getWebhookLogsCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/RestApiPaginationResultWebhookLog} */ - this.getWebhookLogs = function(clientId, webhookSubscriptionId, start, end, opts, callback) { + this.getWebhookLogs = function(oauthAppId, webhookSubscriptionId, start, end, appId, opts, callback) { opts = opts || {}; var postBody = null; - // verify the required parameter 'clientId' is set - if (clientId === undefined || clientId === null) { - throw new Error("Missing the required parameter 'clientId' when calling getWebhookLogs"); + // 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 @@ -411,10 +526,16 @@ 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"); + } + var pathParams = { - 'clientId': clientId, - 'webhookSubscriptionId': webhookSubscriptionId + 'oauthAppId': oauthAppId, + 'webhookSubscriptionId': webhookSubscriptionId, + 'appId': appId }; var queryParams = { 'start': start, @@ -435,7 +556,7 @@ var returnType = RestApiPaginationResultWebhookLog; return this.apiClient.callApi( - '/api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId}/logs', 'GET', + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/logs', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -445,29 +566,42 @@ * 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/RestApiArrayResultWebhookSubscription} data The data returned by the service call. + * @param {module:model/RestApiPaginationResultWebhookSubscription} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** - * Get all webhook subscriptions by your Oauth client id - * @param {String} clientId Oauth client identifier + * Get all webhook subscriptions by your Oauth App id + * @param {String} oauthAppId Oauth App identifier + * @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/RestApiArrayResultWebhookSubscription} + * data is of type: {@link module:model/RestApiPaginationResultWebhookSubscription} */ - this.getWebhookSubscriptions = function(clientId, callback) { + this.getWebhookSubscriptions = function(oauthAppId, appId, opts, callback) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'clientId' is set - if (clientId === undefined || clientId === null) { - throw new Error("Missing the required parameter 'clientId' when calling getWebhookSubscriptions"); + // 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"); } var pathParams = { - 'clientId': clientId + 'oauthAppId': oauthAppId, + 'appId': appId }; var queryParams = { + 'page': opts['page'], + 'limit': opts['limit'], }; var collectionQueryParams = { }; @@ -479,10 +613,10 @@ var authNames = ['oauth2']; var contentTypes = []; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; - var returnType = RestApiArrayResultWebhookSubscription; + var returnType = RestApiPaginationResultWebhookSubscription; return this.apiClient.callApi( - '/api/v1.0/webhooks/{clientId}/subscriptions', 'GET', + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); @@ -498,17 +632,18 @@ /** * Update a webhook subscription object - * @param {String} clientId Oauth client identifier + * @param {String} oauthAppId Oauth App identifier * @param {Number} webhookSubscriptionId Webhook subscription identifier * @param {module:model/WebhookSubscription} webhookSubscription Webhook subscription object + * @param {String} appId * @param {module:api/WebhooksApi~updateWebhookSubscriptionCallback} callback The callback function, accepting three arguments: error, data, response */ - this.updateWebhookSubscription = function(clientId, webhookSubscriptionId, webhookSubscription, callback) { + this.updateWebhookSubscription = function(oauthAppId, webhookSubscriptionId, webhookSubscription, appId, callback) { var postBody = webhookSubscription; - // verify the required parameter 'clientId' is set - if (clientId === undefined || clientId === null) { - throw new Error("Missing the required parameter 'clientId' when calling updateWebhookSubscription"); + // 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 @@ -521,10 +656,16 @@ throw new Error("Missing the required parameter 'webhookSubscription' 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"); + } + var pathParams = { - 'clientId': clientId, - 'webhookSubscriptionId': webhookSubscriptionId + 'oauthAppId': oauthAppId, + 'webhookSubscriptionId': webhookSubscriptionId, + 'appId': appId }; var queryParams = { }; @@ -541,7 +682,7 @@ var returnType = null; return this.apiClient.callApi( - '/api/v1.0/webhooks/{clientId}/subscriptions/{webhookSubscriptionId}', 'PUT', + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}', 'PUT', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); diff --git a/src/api/WebsiteApi.js b/src/api/WebsiteApi.js new file mode 100644 index 00000000..856f5ecc --- /dev/null +++ b/src/api/WebsiteApi.js @@ -0,0 +1,478 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/IndexPageBase', 'model/RestApiErrorResult', 'model/RestApiForbiddenResult', 'model/RestApiResultIndexPage', 'model/RestApiResultIndexPageBase', 'model/RestApiResultWebsiteImage', 'model/RestApiResultWebsiteTestimonial', 'model/RestApiUnauthorizedResult', 'model/WebsiteTestimonialBase'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/IndexPageBase'), require('../model/RestApiErrorResult'), require('../model/RestApiForbiddenResult'), require('../model/RestApiResultIndexPage'), require('../model/RestApiResultIndexPageBase'), require('../model/RestApiResultWebsiteImage'), require('../model/RestApiResultWebsiteTestimonial'), require('../model/RestApiUnauthorizedResult'), require('../model/WebsiteTestimonialBase')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.WebsiteApi = factory(root.Flipdish.ApiClient, root.Flipdish.IndexPageBase, root.Flipdish.RestApiErrorResult, root.Flipdish.RestApiForbiddenResult, root.Flipdish.RestApiResultIndexPage, root.Flipdish.RestApiResultIndexPageBase, root.Flipdish.RestApiResultWebsiteImage, root.Flipdish.RestApiResultWebsiteTestimonial, root.Flipdish.RestApiUnauthorizedResult, root.Flipdish.WebsiteTestimonialBase); + } +}(this, function(ApiClient, IndexPageBase, RestApiErrorResult, RestApiForbiddenResult, RestApiResultIndexPage, RestApiResultIndexPageBase, RestApiResultWebsiteImage, RestApiResultWebsiteTestimonial, RestApiUnauthorizedResult, WebsiteTestimonialBase) { + 'use strict'; + + /** + * Website service. + * @module api/WebsiteApi + * @version 1.0.0 + */ + + /** + * 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. + */ + var exports = function(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. + */ + + /** + * Add a testimonial + * @param {String} appId Application identifier + * @param {module:model/WebsiteTestimonialBase} testimonial Testimonial to be added + * @param {module:api/WebsiteApi~addTestimonialCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultWebsiteTestimonial} + */ + this.addTestimonial = function(appId, testimonial, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultWebsiteTestimonial; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/testimonial', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Delete a testimonial + * @param {String} appId Application identifier + * @param {Number} testimonialId Id of the testimonial to delete + * @param {module:api/WebsiteApi~deleteTestimonialCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.deleteTestimonial = function(appId, testimonialId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'testimonialId': testimonialId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/testimonial/{testimonialId}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Delete Website Image + * @param {String} appId Application identifier + * @param {Number} imageId Id of the image + * @param {module:api/WebsiteApi~deleteWebsiteImageCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.deleteWebsiteImage = function(appId, imageId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'imageId': imageId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/image/{imageId}', 'DELETE', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Edit a testimonial + * @param {String} appId Application identifier + * @param {Number} testimonialId Id of the testimonial to edit + * @param {module:model/WebsiteTestimonialBase} testimonial New values of the testimonial + * @param {module:api/WebsiteApi~editTestimonialCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultWebsiteTestimonial} + */ + this.editTestimonial = function(appId, testimonialId, testimonial, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'testimonialId': testimonialId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultWebsiteTestimonial; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/testimonial/{testimonialId}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Get Index Configuration + * @param {String} appId Application identifier + * @param {module:api/WebsiteApi~getIndexConfigurationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultIndexPage} + */ + this.getIndexConfiguration = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultIndexPage; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/index', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Set Index Configuration + * @param {String} appId Application identifier + * @param {module:model/IndexPageBase} indexPage New index page definition + * @param {module:api/WebsiteApi~setIndexConfigurationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultIndexPageBase} + */ + this.setIndexConfiguration = function(appId, indexPage, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultIndexPageBase; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/index', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Upload Website Image + * @param {String} appId Application identifier + * @param {module:model/String} imageLocation Section for which to upload the image + * @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} + */ + this.uploadWebsiteImage = function(appId, imageLocation, Image, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId, + 'imageLocation': imageLocation + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + 'Image': Image + }; + + var authNames = ['oauth2']; + var contentTypes = ['multipart/form-data']; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = RestApiResultWebsiteImage; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/image/{imageLocation}', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, 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. + */ + + /** + * Triggers a Check DNS Process + * @param {String} appId + * @param {module:api/WebsiteApi~websiteCheckNowCallback} callback The callback function, accepting three arguments: error, data, response + */ + this.websiteCheckNow = function(appId, callback) { + var 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"); + } + + + var pathParams = { + 'appId': appId + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['oauth2']; + var contentTypes = []; + var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + var returnType = null; + + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/dnscheck', 'GET', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); + } + }; + + return exports; +})); diff --git a/src/index.js b/src/index.js index 9bab613b..28e25d71 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,16 +16,16 @@ (function(factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Accept', 'model/BusinessHoursPeriod', 'model/CampaignCreatedEvent', 'model/Coordinates', 'model/CustomerConsentUpdatedEvent', 'model/CustomerCreatedEvent', 'model/CustomerSummary', 'model/CustomerUpdatedEvent', 'model/DeliveryFeeArea', 'model/DeliveryLocation', 'model/EventSearchResult', 'model/FeeSummary', 'model/HttpRequestAndResponseLog', 'model/Menu', 'model/MenuBase', 'model/MenuCreatedEvent', 'model/MenuItemOptionSet', 'model/MenuItemOptionSetBase', 'model/MenuItemOptionSetItem', 'model/MenuItemOptionSetItemBase', 'model/MenuSection', 'model/MenuSectionAvailability', 'model/MenuSectionBase', 'model/MenuSectionItem', 'model/MenuSectionItemBase', 'model/MenuUpdatedEvent', 'model/Metadata', 'model/OAuthClient', 'model/OAuthTokenModel', 'model/OauthClientRedirectUri', 'model/Order', 'model/OrderAcceptedEvent', 'model/OrderCreatedEvent', 'model/OrderItem', 'model/OrderItemOption', 'model/OrderRatingUpdatedEvent', 'model/OrderRefundedEvent', 'model/OrderRejectedEvent', 'model/OrderTipUpdatedEvent', 'model/Range', 'model/Refund', 'model/Reject', 'model/RestApiArrayResultMenuItemOptionSet', 'model/RestApiArrayResultMenuItemOptionSetItem', 'model/RestApiArrayResultMenuSection', 'model/RestApiArrayResultMenuSectionItem', 'model/RestApiArrayResultMetadata', 'model/RestApiArrayResultOAuthClient', 'model/RestApiArrayResultOauthClientRedirectUri', 'model/RestApiArrayResultRestApiDefaultResponse', 'model/RestApiArrayResultWebhookSubscription', 'model/RestApiDefaultResponse', 'model/RestApiErrorResult', 'model/RestApiEventSearchPaginationResult', 'model/RestApiForbiddenResult', 'model/RestApiIntegerResult', 'model/RestApiPaginationResultHttpRequestAndResponseLog', 'model/RestApiPaginationResultOAuthTokenModel', 'model/RestApiPaginationResultOrder', 'model/RestApiPaginationResultStore', 'model/RestApiPaginationResultVoucher', 'model/RestApiPaginationResultWebhookLog', 'model/RestApiResultMenu', 'model/RestApiResultMenuItemOptionSet', 'model/RestApiResultMenuItemOptionSetItem', 'model/RestApiResultMenuSection', 'model/RestApiResultMenuSectionItem', 'model/RestApiResultMetadata', 'model/RestApiResultOAuthClient', 'model/RestApiResultOauthClientRedirectUri', 'model/RestApiResultOrder', 'model/RestApiResultStore', 'model/RestApiResultVoucher', 'model/RestApiStringArrayResult', 'model/RestApiStringResult', 'model/RestApiUnauthorizedResult', 'model/SearchCriteria', 'model/Store', 'model/StoreAddress', 'model/StoreCreatedEvent', 'model/StoreDeletedEvent', 'model/StoreDeliveryZoneUpdatedEvent', 'model/StoreNote', 'model/StoreOpeningHoursUpdatedEvent', 'model/StoreSummary', 'model/StoreUpdatedEvent', 'model/UserEventInfo', 'model/ValidationErrorResult', 'model/Voucher', 'model/VoucherSummary', 'model/WebhookLog', 'model/WebhookSubscription', 'model/WebhookSubscriptionCreatedEvent', 'model/WebhookSubscriptionDeletedEvent', 'model/WebhookSubscriptionEventInfo', 'model/WebhookSubscriptionUpdatedEvent', 'api/AuthorizationTokensApi', 'api/EventsApi', 'api/HttpRequestResponseLogsApi', 'api/MenuOptionSetItemsApi', 'api/MenuOptionSetsApi', 'api/MenuSectionItemsApi', 'api/MenuSectionsApi', 'api/MenusApi', 'api/OAuthClientsApi', 'api/OrdersApi', 'api/StoresApi', 'api/UsersApi', 'api/VouchersApi', 'api/WebhooksApi'], factory); + define(['ApiClient', 'model/Accept', 'model/AccountDetail', 'model/AccountDetailBase', 'model/AccountFieldDefinition', 'model/AccountFieldKeyValuePair', 'model/AccountFieldsDefinitions', 'model/AddItemDetails', 'model/AllMetadataResult', 'model/AnalyticsClientEvent', 'model/ApmCurrencyDataPoint', 'model/ApmDataPoint', 'model/ApmHourlyDataPoint', 'model/ApmStatistics', 'model/ApmStatus', 'model/App', 'model/AppCompliance', 'model/AppConfigUpdateModel', 'model/AppCreatedEvent', 'model/AppUpdatedEvent', 'model/AssignedBankAccount', 'model/BalanceDetails', 'model/BankAccount', 'model/BankAccountCreate', 'model/BankAccountCreatedEvent', 'model/BankAccountDeletedEvent', 'model/BankAccountDetail', 'model/BankAccountDetailsUpdateRequest', 'model/BankAccountSummary', 'model/BankAccountUpdatedEvent', 'model/BluetoothTerminalStatus', 'model/BusinessHoursOverride', 'model/BusinessHoursOverrideBase', 'model/BusinessHoursPeriod', 'model/BusinessHoursPeriodBase', 'model/CampaignStatistics', 'model/CertificateCreatedEvent', 'model/CertificateRenewedEvent', 'model/ChangePasswordModel', 'model/ChargebackDetails', 'model/Coordinates', 'model/CountryWithAccountFieldsDefinitions', 'model/CreateAccountModel', 'model/CreateFullMenu', 'model/CreateFullMenuItemOptionSet', 'model/CreateFullMenuItemOptionSetItem', 'model/CreateFullMenuSection', 'model/CreateFullMenuSectionItem', 'model/CreateMenuTaxRate', 'model/CreateMetadata', 'model/CreateTeammate', 'model/CreateVoucher', 'model/CreditNoteDetails', 'model/CspReport', 'model/CspReportRequest', 'model/CurrencyData', 'model/Customer', 'model/CustomerConsentUpdatedEvent', 'model/CustomerCreatedEvent', 'model/CustomerDeliveryTrackingOrder', 'model/CustomerDeliveryTrackingOrderLine', 'model/CustomerSummary', 'model/CustomerUpdateModel', 'model/CustomerUpdatedEvent', 'model/DeliveryLocation', 'model/DeliveryZone', 'model/DeliveryZoneBase', 'model/DeliveryZoneCreatedEvent', 'model/DeliveryZoneDeletedEvent', 'model/DeliveryZoneUpdatedEvent', 'model/DeviceSettings', 'model/DnsRecordInformation', 'model/DnsVerifiedEvent', 'model/Driver', 'model/DriverInvitation', 'model/DriverLoginModel', 'model/DriverRequestLoginPinModel', 'model/DriverStore', 'model/EmvNotificationEvent', 'model/EmvTerminal', 'model/EmvTerminalWithAssignments', 'model/EventSearchResult', 'model/FeeSummary', 'model/FlipdishEventBase', 'model/FlipdishFeesDetails', 'model/GroupedCoordinates', 'model/HomeAction', 'model/HomeStatistics', 'model/HttpRequestAndResponseLog', 'model/HydraAssignedEvent', 'model/HydraConfig', 'model/HydraConnectionStatusChangedEvent', 'model/HydraDeviceDetails', 'model/HydraRegistrationRequest', 'model/HydraRequestResetEvent', 'model/HydraSettingChangedEvent', 'model/HydraStatus', 'model/HydraStoreAssignedEvent', 'model/HydraStoreData', 'model/HydraStoreUnassignedEvent', 'model/HydraUnAssignedEvent', 'model/IndexPage', 'model/IndexPageBase', 'model/JobAddress', 'model/JobCancellation', 'model/JobContact', 'model/JobDelivery', 'model/JobDeliveryDetail', 'model/JobDriver', 'model/JobEta', 'model/JobPricing', 'model/JobProof', 'model/JobResponse', 'model/KioskBluetoothInstallUpdateInitiateEvent', 'model/KioskBluetoothPairingModeEvent', 'model/KioskBluetoothTerminalInitiateUpdateCheckEvent', 'model/KioskBluetoothTerminalUpdatedEvent', 'model/KioskBluetoothUnpairingModeEvent', 'model/Language', 'model/LightspeedSettings', 'model/LocalisedTimeZone', 'model/LoginModel', 'model/LoginWithPinModel', 'model/LoyaltyCampaign', 'model/LoyaltyCampaignBase', 'model/LoyaltyCampaignCreatedEvent', 'model/LoyaltyCampaignDeletedEvent', 'model/LoyaltyCampaignUpdatedEvent', 'model/LumpDiscountDetails', 'model/MaskedPhoneNumber', 'model/Menu', 'model/MenuBase', 'model/MenuCheckpoint', 'model/MenuCheckpointCreatedEvent', 'model/MenuCreatedEvent', 'model/MenuElementEditResponse', 'model/MenuElementHide', 'model/MenuItemOptionSet', 'model/MenuItemOptionSetBase', 'model/MenuItemOptionSetCreatedEvent', 'model/MenuItemOptionSetDeletedEvent', 'model/MenuItemOptionSetItem', 'model/MenuItemOptionSetItemBase', 'model/MenuItemOptionSetItemCreatedEvent', 'model/MenuItemOptionSetItemDeletedEvent', 'model/MenuItemOptionSetItemUpdatedEvent', 'model/MenuItemOptionSetUpdatedEvent', 'model/MenuObjectDisplayOrders', 'model/MenuSection', 'model/MenuSectionAvailability', 'model/MenuSectionAvailabilityBase', 'model/MenuSectionBase', 'model/MenuSectionCreatedEvent', 'model/MenuSectionDeletedEvent', 'model/MenuSectionItem', 'model/MenuSectionItemBase', 'model/MenuSectionItemCreatedEvent', 'model/MenuSectionItemDeletedEvent', 'model/MenuSectionItemUpdatedEvent', 'model/MenuSectionUpdatedEvent', 'model/MenuStoreNames', 'model/MenuSummary', 'model/MenuTaxDetails', 'model/MenuTaxRate', 'model/MenuUpdatedEvent', 'model/MenuUploadedEvent', 'model/Metadata', 'model/OAuthApp', 'model/OAuthTokenModel', 'model/OauthClientRedirectUri', 'model/ObjectDisplayOrder', 'model/Order', 'model/OrderAcceptedEvent', 'model/OrderCapacityConfigUpdatedEvent', 'model/OrderCreatedEvent', 'model/OrderCustomerTrackingCreatedEvent', 'model/OrderDeliveryTrackingStatusUpdatedEvent', 'model/OrderDispatchedEvent', 'model/OrderIdAndSequenceNumber', 'model/OrderItem', 'model/OrderItemOption', 'model/OrderPaymentInformation', 'model/OrderRatingUpdatedEvent', 'model/OrderRefundedEvent', 'model/OrderRejectedEvent', 'model/OrderSummary', 'model/OrderTipUpdatedEvent', 'model/OrderVoucherSummary', 'model/OtherChargesDetails', 'model/PasswordResetModel', 'model/PaymentTerminalDetails', 'model/PaymentTerminalTransactionDetails', 'model/Payout', 'model/PayoutChargeback', 'model/PayoutDetail', 'model/PayoutOrder', 'model/PayoutOtherCharge', 'model/PayoutRefund', 'model/PayoutStore', 'model/PayoutSummary', 'model/PercentDiscountDetails', 'model/PhoneCall', 'model/PhoneCallEndedEvent', 'model/PhoneCallStartedEvent', 'model/PreOrderConfig', 'model/PreOrderTime', 'model/PredefinedAnswer', 'model/Printer', 'model/PrinterAssignedToStoreEvent', 'model/PrinterTurnedOffEvent', 'model/PrinterTurnedOnEvent', 'model/PrinterUnassignedFromStoreEvent', 'model/ProcessingFeeConfig', 'model/PushNotificationDeletedEvent', 'model/PushNotificationRequest', 'model/PushNotificationResponse', 'model/PushNotificationScheduledEvent', 'model/PushNotificationSentEvent', 'model/Range', 'model/RedeemInvitationResult', 'model/Refund', 'model/Reject', 'model/RequestLoginPinModel', 'model/RequestLoginPinResposne', 'model/RequestPasswordResetModel', 'model/RestApiArrayResultAllMetadataResult', 'model/RestApiArrayResultApmCurrencyDataPoint', 'model/RestApiArrayResultApmDataPoint', 'model/RestApiArrayResultApmHourlyDataPoint', 'model/RestApiArrayResultBankAccountSummary', 'model/RestApiArrayResultBusinessHoursPeriod', 'model/RestApiArrayResultCountryWithAccountFieldsDefinitions', 'model/RestApiArrayResultDeliveryZone', 'model/RestApiArrayResultDriver', 'model/RestApiArrayResultDriverStore', 'model/RestApiArrayResultEmvTerminalWithAssignments', 'model/RestApiArrayResultHomeAction', 'model/RestApiArrayResultLocalisedTimeZone', 'model/RestApiArrayResultLoyaltyCampaign', 'model/RestApiArrayResultMenuCheckpoint', 'model/RestApiArrayResultMenuElementEditResponse', 'model/RestApiArrayResultMenuItemOptionSet', 'model/RestApiArrayResultMenuItemOptionSetItem', 'model/RestApiArrayResultMenuSection', 'model/RestApiArrayResultMenuSectionItem', 'model/RestApiArrayResultMenuStoreNames', 'model/RestApiArrayResultMenuSummary', 'model/RestApiArrayResultMenuTaxDetails', 'model/RestApiArrayResultMetadata', 'model/RestApiArrayResultOAuthApp', 'model/RestApiArrayResultOauthClientRedirectUri', 'model/RestApiArrayResultPayoutSummary', 'model/RestApiArrayResultPreOrderTime', 'model/RestApiArrayResultProcessingFeeConfig', 'model/RestApiArrayResultRestApiDefaultResponse', 'model/RestApiArrayResultRetentionCampaign', 'model/RestApiArrayResultStoreListItem', 'model/RestApiArrayResultStoreStatistics', 'model/RestApiArrayResultSupportedCountry', 'model/RestApiArrayResultTeammate', 'model/RestApiArrayResultVoucherDataPoint', 'model/RestApiDefaultResponse', 'model/RestApiErrorResult', 'model/RestApiEventSearchPaginationResult', 'model/RestApiForbiddenResult', 'model/RestApiIntegerResult', 'model/RestApiPaginationResultApp', 'model/RestApiPaginationResultBusinessHoursOverride', 'model/RestApiPaginationResultHttpRequestAndResponseLog', 'model/RestApiPaginationResultHydraDeviceDetails', 'model/RestApiPaginationResultOAuthTokenModel', 'model/RestApiPaginationResultOrder', 'model/RestApiPaginationResultOrderSummary', 'model/RestApiPaginationResultPayout', 'model/RestApiPaginationResultPayoutChargeback', 'model/RestApiPaginationResultPayoutOrder', 'model/RestApiPaginationResultPayoutOtherCharge', 'model/RestApiPaginationResultPayoutRefund', 'model/RestApiPaginationResultPhoneCall', 'model/RestApiPaginationResultPushNotificationResponse', 'model/RestApiPaginationResultStore', 'model/RestApiPaginationResultStoreGroup', 'model/RestApiPaginationResultStoreGroupExtended', 'model/RestApiPaginationResultStoreHeader', 'model/RestApiPaginationResultVoucherSummary', 'model/RestApiPaginationResultWebhookLog', 'model/RestApiPaginationResultWebhookSubscription', 'model/RestApiResultAccountDetail', 'model/RestApiResultAccountFieldsDefinitions', 'model/RestApiResultApmStatistics', 'model/RestApiResultApmStatus', 'model/RestApiResultApp', 'model/RestApiResultAppCompliance', 'model/RestApiResultAssignedBankAccount', 'model/RestApiResultBankAccountDetail', 'model/RestApiResultBluetoothTerminalStatus', 'model/RestApiResultBusinessHoursOverride', 'model/RestApiResultBusinessHoursPeriod', 'model/RestApiResultCoordinates', 'model/RestApiResultCustomer', 'model/RestApiResultDeliveryZone', 'model/RestApiResultDnsRecordInformation', 'model/RestApiResultDriver', 'model/RestApiResultHomeStatistics', 'model/RestApiResultHydraConfig', 'model/RestApiResultHydraStatus', 'model/RestApiResultIndexPage', 'model/RestApiResultIndexPageBase', 'model/RestApiResultJobResponse', 'model/RestApiResultLightspeedSettings', 'model/RestApiResultLoyaltyCampaign', 'model/RestApiResultMenu', 'model/RestApiResultMenuItemOptionSet', 'model/RestApiResultMenuItemOptionSetItem', 'model/RestApiResultMenuSection', 'model/RestApiResultMenuSectionAvailability', 'model/RestApiResultMenuSectionItem', 'model/RestApiResultMetadata', 'model/RestApiResultOAuthApp', 'model/RestApiResultOauthClientRedirectUri', 'model/RestApiResultOrder', 'model/RestApiResultOrderPaymentInformation', 'model/RestApiResultPaymentTerminalDetails', 'model/RestApiResultPaymentTerminalTransactionDetails', 'model/RestApiResultPreOrderConfig', 'model/RestApiResultProcessingFeeConfig', 'model/RestApiResultPushNotificationResponse', 'model/RestApiResultRedeemInvitationResult', 'model/RestApiResultRetentionCampaign', 'model/RestApiResultStore', 'model/RestApiResultStoreAddress', 'model/RestApiResultStoreEndOfDayReport', 'model/RestApiResultStoreGroup', 'model/RestApiResultStoreGroupBase', 'model/RestApiResultStoreOrderCapacityConfig', 'model/RestApiResultStripeConnectedAccount', 'model/RestApiResultStripeTerminalPrivateKey', 'model/RestApiResultStuartSettings', 'model/RestApiResultTeammate', 'model/RestApiResultVoucherWithStats', 'model/RestApiResultWebsiteImage', 'model/RestApiResultWebsiteTestimonial', 'model/RestApiStringArrayResult', 'model/RestApiStringResult', 'model/RestApiUnauthorizedResult', 'model/RetentionCampaign', 'model/RetentionCampaignBase', 'model/RetentionCampaignCreatedEvent', 'model/RetentionCampaignDeletedEvent', 'model/RetentionCampaignUpdatedEvent', 'model/RevenueAdjustmentsDetails', 'model/RevenueDetail', 'model/SearchCriteria', 'model/SetPasswordWithPinModel', 'model/SignupStep', 'model/SmsInfo', 'model/SmsReceivedEvent', 'model/StatisticsCurrencyDataPoint', 'model/Store', 'model/StoreAddress', 'model/StoreAddressBase', 'model/StoreAddressUpdatedEvent', 'model/StoreArchivedEvent', 'model/StoreBase', 'model/StoreBusinessHoursOverrideCreatedEvent', 'model/StoreBusinessHoursOverrideDeletedEvent', 'model/StoreCampaignStartTime', 'model/StoreCloneSettings', 'model/StoreCreateBase', 'model/StoreCreatedEvent', 'model/StoreDataPoint', 'model/StoreDeletedEvent', 'model/StoreEndOfDayReport', 'model/StoreGroup', 'model/StoreGroupBase', 'model/StoreGroupCreatedEvent', 'model/StoreGroupDeletedEvent', 'model/StoreGroupExtended', 'model/StoreGroupUpdatedEvent', 'model/StoreHeader', 'model/StoreKioskSetting', 'model/StoreKioskSettingUpdatedEvent', 'model/StoreListItem', 'model/StoreLogoCreatedEvent', 'model/StoreLogoDeletedEvent', 'model/StoreLogoUpdatedEvent', 'model/StoreMenuAssignedEvent', 'model/StoreNote', 'model/StoreOpeningHoursUpdatedEvent', 'model/StoreOrderCapacityConfig', 'model/StoreOrderCapacityConfigEditModel', 'model/StoreOrderCapacityPeriod', 'model/StorePreOrderConfigUpdatedEvent', 'model/StorePublishedEvent', 'model/StoreStatistics', 'model/StoreSummary', 'model/StoreUnarchivedEvent', 'model/StoreUnpublishedEvent', 'model/StoreUpdatedEvent', 'model/StripeAccountLinkRequest', 'model/StripeConnectedAccount', 'model/StripeConnectedAccountInfo', 'model/StripeTerminalPrivateKey', 'model/StuartSettings', 'model/StuartSettingsTransportPrices', 'model/SupportedCountry', 'model/Teammate', 'model/TeammateBase', 'model/TeammateDeletedEvent', 'model/TeammateInviteAcceptedEvent', 'model/TeammateInviteSentEvent', 'model/TeammateUpdatedEvent', 'model/UpdateDriverNotificationToken', 'model/UpdateDriverProfileModel', 'model/UserAnsweredSignupQuestionsEvent', 'model/UserCreatedEvent', 'model/UserDeletedEvent', 'model/UserEventInfo', 'model/UserLoginEvent', 'model/UserPasswordCreatedEvent', 'model/UserUpdatedEvent', 'model/ValidationErrorResult', 'model/Voucher', 'model/VoucherBase', 'model/VoucherCreatedEvent', 'model/VoucherDataPoint', 'model/VoucherDeletedEvent', 'model/VoucherSummary', 'model/VoucherUpdatedEvent', 'model/VoucherWithStats', 'model/WebhookEventSample', 'model/WebhookLog', 'model/WebhookSubscription', 'model/WebhookSubscriptionCreatedEvent', 'model/WebhookSubscriptionDeletedEvent', 'model/WebhookSubscriptionEventInfo', 'model/WebhookSubscriptionUpdatedEvent', 'model/WebsiteImage', 'model/WebsiteTestimonial', 'model/WebsiteTestimonialBase', 'model/WebsiteUpdatedEvent', 'model/WebsiteVanityUrlUpdatedEvent', 'api/AccountsApi', 'api/ApmApi', 'api/AppsApi', 'api/AuthorizationTokensApi', 'api/BankAccountApi', 'api/CampaignsApi', 'api/CardReadersApi', 'api/ContentSecurityPolicyApi', 'api/CustomersApi', 'api/DeliveryTrackingApi', 'api/DeliveryZoneApi', 'api/DriversApi', 'api/EventsApi', 'api/FilesApi', 'api/HeartbeatApi', 'api/HomeApi', 'api/HttpRequestResponseLogsApi', 'api/HydraApi', 'api/LightspeedApi', 'api/MenuOptionSetItemsApi', 'api/MenuOptionSetsApi', 'api/MenuSectionItemsApi', 'api/MenuSectionsApi', 'api/MenusApi', 'api/OAuthClientsApi', 'api/OrdersApi', 'api/PaymentsApi', 'api/PayoutsApi', 'api/ProcessingFeeConfigsApi', 'api/PushNotificationsApi', 'api/StoreGroupsApi', 'api/StoreOrderCapacityApi', 'api/StoresApi', 'api/StripeCustomConnectApi', 'api/StuartApi', 'api/TeammatesApi', 'api/UsersApi', 'api/VouchersApi', 'api/WebhooksApi', 'api/WebsiteApi'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('./ApiClient'), require('./model/Accept'), require('./model/BusinessHoursPeriod'), require('./model/CampaignCreatedEvent'), require('./model/Coordinates'), require('./model/CustomerConsentUpdatedEvent'), require('./model/CustomerCreatedEvent'), require('./model/CustomerSummary'), require('./model/CustomerUpdatedEvent'), require('./model/DeliveryFeeArea'), require('./model/DeliveryLocation'), require('./model/EventSearchResult'), require('./model/FeeSummary'), require('./model/HttpRequestAndResponseLog'), require('./model/Menu'), require('./model/MenuBase'), require('./model/MenuCreatedEvent'), require('./model/MenuItemOptionSet'), require('./model/MenuItemOptionSetBase'), require('./model/MenuItemOptionSetItem'), require('./model/MenuItemOptionSetItemBase'), require('./model/MenuSection'), require('./model/MenuSectionAvailability'), require('./model/MenuSectionBase'), require('./model/MenuSectionItem'), require('./model/MenuSectionItemBase'), require('./model/MenuUpdatedEvent'), require('./model/Metadata'), require('./model/OAuthClient'), require('./model/OAuthTokenModel'), require('./model/OauthClientRedirectUri'), require('./model/Order'), require('./model/OrderAcceptedEvent'), require('./model/OrderCreatedEvent'), require('./model/OrderItem'), require('./model/OrderItemOption'), require('./model/OrderRatingUpdatedEvent'), require('./model/OrderRefundedEvent'), require('./model/OrderRejectedEvent'), require('./model/OrderTipUpdatedEvent'), require('./model/Range'), require('./model/Refund'), require('./model/Reject'), require('./model/RestApiArrayResultMenuItemOptionSet'), require('./model/RestApiArrayResultMenuItemOptionSetItem'), require('./model/RestApiArrayResultMenuSection'), require('./model/RestApiArrayResultMenuSectionItem'), require('./model/RestApiArrayResultMetadata'), require('./model/RestApiArrayResultOAuthClient'), require('./model/RestApiArrayResultOauthClientRedirectUri'), require('./model/RestApiArrayResultRestApiDefaultResponse'), require('./model/RestApiArrayResultWebhookSubscription'), require('./model/RestApiDefaultResponse'), require('./model/RestApiErrorResult'), require('./model/RestApiEventSearchPaginationResult'), require('./model/RestApiForbiddenResult'), require('./model/RestApiIntegerResult'), require('./model/RestApiPaginationResultHttpRequestAndResponseLog'), require('./model/RestApiPaginationResultOAuthTokenModel'), require('./model/RestApiPaginationResultOrder'), require('./model/RestApiPaginationResultStore'), require('./model/RestApiPaginationResultVoucher'), require('./model/RestApiPaginationResultWebhookLog'), require('./model/RestApiResultMenu'), require('./model/RestApiResultMenuItemOptionSet'), require('./model/RestApiResultMenuItemOptionSetItem'), require('./model/RestApiResultMenuSection'), require('./model/RestApiResultMenuSectionItem'), require('./model/RestApiResultMetadata'), require('./model/RestApiResultOAuthClient'), require('./model/RestApiResultOauthClientRedirectUri'), require('./model/RestApiResultOrder'), require('./model/RestApiResultStore'), require('./model/RestApiResultVoucher'), require('./model/RestApiStringArrayResult'), require('./model/RestApiStringResult'), require('./model/RestApiUnauthorizedResult'), require('./model/SearchCriteria'), require('./model/Store'), require('./model/StoreAddress'), require('./model/StoreCreatedEvent'), require('./model/StoreDeletedEvent'), require('./model/StoreDeliveryZoneUpdatedEvent'), require('./model/StoreNote'), require('./model/StoreOpeningHoursUpdatedEvent'), require('./model/StoreSummary'), require('./model/StoreUpdatedEvent'), require('./model/UserEventInfo'), require('./model/ValidationErrorResult'), require('./model/Voucher'), require('./model/VoucherSummary'), require('./model/WebhookLog'), require('./model/WebhookSubscription'), require('./model/WebhookSubscriptionCreatedEvent'), require('./model/WebhookSubscriptionDeletedEvent'), require('./model/WebhookSubscriptionEventInfo'), require('./model/WebhookSubscriptionUpdatedEvent'), require('./api/AuthorizationTokensApi'), require('./api/EventsApi'), require('./api/HttpRequestResponseLogsApi'), require('./api/MenuOptionSetItemsApi'), require('./api/MenuOptionSetsApi'), require('./api/MenuSectionItemsApi'), require('./api/MenuSectionsApi'), require('./api/MenusApi'), require('./api/OAuthClientsApi'), require('./api/OrdersApi'), require('./api/StoresApi'), require('./api/UsersApi'), require('./api/VouchersApi'), require('./api/WebhooksApi')); + module.exports = factory(require('./ApiClient'), require('./model/Accept'), require('./model/AccountDetail'), require('./model/AccountDetailBase'), require('./model/AccountFieldDefinition'), require('./model/AccountFieldKeyValuePair'), require('./model/AccountFieldsDefinitions'), require('./model/AddItemDetails'), require('./model/AllMetadataResult'), require('./model/AnalyticsClientEvent'), require('./model/ApmCurrencyDataPoint'), require('./model/ApmDataPoint'), require('./model/ApmHourlyDataPoint'), require('./model/ApmStatistics'), require('./model/ApmStatus'), require('./model/App'), require('./model/AppCompliance'), require('./model/AppConfigUpdateModel'), require('./model/AppCreatedEvent'), require('./model/AppUpdatedEvent'), require('./model/AssignedBankAccount'), require('./model/BalanceDetails'), require('./model/BankAccount'), require('./model/BankAccountCreate'), require('./model/BankAccountCreatedEvent'), require('./model/BankAccountDeletedEvent'), require('./model/BankAccountDetail'), require('./model/BankAccountDetailsUpdateRequest'), require('./model/BankAccountSummary'), require('./model/BankAccountUpdatedEvent'), require('./model/BluetoothTerminalStatus'), require('./model/BusinessHoursOverride'), require('./model/BusinessHoursOverrideBase'), require('./model/BusinessHoursPeriod'), require('./model/BusinessHoursPeriodBase'), require('./model/CampaignStatistics'), require('./model/CertificateCreatedEvent'), require('./model/CertificateRenewedEvent'), require('./model/ChangePasswordModel'), require('./model/ChargebackDetails'), require('./model/Coordinates'), require('./model/CountryWithAccountFieldsDefinitions'), require('./model/CreateAccountModel'), require('./model/CreateFullMenu'), require('./model/CreateFullMenuItemOptionSet'), require('./model/CreateFullMenuItemOptionSetItem'), require('./model/CreateFullMenuSection'), require('./model/CreateFullMenuSectionItem'), require('./model/CreateMenuTaxRate'), require('./model/CreateMetadata'), require('./model/CreateTeammate'), require('./model/CreateVoucher'), require('./model/CreditNoteDetails'), require('./model/CspReport'), require('./model/CspReportRequest'), require('./model/CurrencyData'), require('./model/Customer'), require('./model/CustomerConsentUpdatedEvent'), require('./model/CustomerCreatedEvent'), require('./model/CustomerDeliveryTrackingOrder'), require('./model/CustomerDeliveryTrackingOrderLine'), require('./model/CustomerSummary'), require('./model/CustomerUpdateModel'), require('./model/CustomerUpdatedEvent'), require('./model/DeliveryLocation'), require('./model/DeliveryZone'), require('./model/DeliveryZoneBase'), require('./model/DeliveryZoneCreatedEvent'), require('./model/DeliveryZoneDeletedEvent'), require('./model/DeliveryZoneUpdatedEvent'), require('./model/DeviceSettings'), require('./model/DnsRecordInformation'), require('./model/DnsVerifiedEvent'), require('./model/Driver'), require('./model/DriverInvitation'), require('./model/DriverLoginModel'), require('./model/DriverRequestLoginPinModel'), require('./model/DriverStore'), require('./model/EmvNotificationEvent'), require('./model/EmvTerminal'), require('./model/EmvTerminalWithAssignments'), require('./model/EventSearchResult'), require('./model/FeeSummary'), require('./model/FlipdishEventBase'), require('./model/FlipdishFeesDetails'), require('./model/GroupedCoordinates'), require('./model/HomeAction'), require('./model/HomeStatistics'), require('./model/HttpRequestAndResponseLog'), require('./model/HydraAssignedEvent'), require('./model/HydraConfig'), require('./model/HydraConnectionStatusChangedEvent'), require('./model/HydraDeviceDetails'), require('./model/HydraRegistrationRequest'), require('./model/HydraRequestResetEvent'), require('./model/HydraSettingChangedEvent'), require('./model/HydraStatus'), require('./model/HydraStoreAssignedEvent'), require('./model/HydraStoreData'), require('./model/HydraStoreUnassignedEvent'), require('./model/HydraUnAssignedEvent'), require('./model/IndexPage'), require('./model/IndexPageBase'), require('./model/JobAddress'), require('./model/JobCancellation'), require('./model/JobContact'), require('./model/JobDelivery'), require('./model/JobDeliveryDetail'), require('./model/JobDriver'), require('./model/JobEta'), require('./model/JobPricing'), require('./model/JobProof'), require('./model/JobResponse'), require('./model/KioskBluetoothInstallUpdateInitiateEvent'), require('./model/KioskBluetoothPairingModeEvent'), require('./model/KioskBluetoothTerminalInitiateUpdateCheckEvent'), require('./model/KioskBluetoothTerminalUpdatedEvent'), require('./model/KioskBluetoothUnpairingModeEvent'), require('./model/Language'), require('./model/LightspeedSettings'), require('./model/LocalisedTimeZone'), require('./model/LoginModel'), require('./model/LoginWithPinModel'), require('./model/LoyaltyCampaign'), require('./model/LoyaltyCampaignBase'), require('./model/LoyaltyCampaignCreatedEvent'), require('./model/LoyaltyCampaignDeletedEvent'), require('./model/LoyaltyCampaignUpdatedEvent'), require('./model/LumpDiscountDetails'), require('./model/MaskedPhoneNumber'), require('./model/Menu'), require('./model/MenuBase'), require('./model/MenuCheckpoint'), require('./model/MenuCheckpointCreatedEvent'), require('./model/MenuCreatedEvent'), require('./model/MenuElementEditResponse'), require('./model/MenuElementHide'), require('./model/MenuItemOptionSet'), require('./model/MenuItemOptionSetBase'), require('./model/MenuItemOptionSetCreatedEvent'), require('./model/MenuItemOptionSetDeletedEvent'), require('./model/MenuItemOptionSetItem'), require('./model/MenuItemOptionSetItemBase'), require('./model/MenuItemOptionSetItemCreatedEvent'), require('./model/MenuItemOptionSetItemDeletedEvent'), require('./model/MenuItemOptionSetItemUpdatedEvent'), require('./model/MenuItemOptionSetUpdatedEvent'), require('./model/MenuObjectDisplayOrders'), require('./model/MenuSection'), require('./model/MenuSectionAvailability'), require('./model/MenuSectionAvailabilityBase'), require('./model/MenuSectionBase'), require('./model/MenuSectionCreatedEvent'), require('./model/MenuSectionDeletedEvent'), require('./model/MenuSectionItem'), require('./model/MenuSectionItemBase'), require('./model/MenuSectionItemCreatedEvent'), require('./model/MenuSectionItemDeletedEvent'), require('./model/MenuSectionItemUpdatedEvent'), require('./model/MenuSectionUpdatedEvent'), require('./model/MenuStoreNames'), require('./model/MenuSummary'), require('./model/MenuTaxDetails'), require('./model/MenuTaxRate'), require('./model/MenuUpdatedEvent'), require('./model/MenuUploadedEvent'), require('./model/Metadata'), require('./model/OAuthApp'), require('./model/OAuthTokenModel'), require('./model/OauthClientRedirectUri'), require('./model/ObjectDisplayOrder'), require('./model/Order'), require('./model/OrderAcceptedEvent'), require('./model/OrderCapacityConfigUpdatedEvent'), require('./model/OrderCreatedEvent'), require('./model/OrderCustomerTrackingCreatedEvent'), require('./model/OrderDeliveryTrackingStatusUpdatedEvent'), require('./model/OrderDispatchedEvent'), require('./model/OrderIdAndSequenceNumber'), require('./model/OrderItem'), require('./model/OrderItemOption'), require('./model/OrderPaymentInformation'), require('./model/OrderRatingUpdatedEvent'), require('./model/OrderRefundedEvent'), require('./model/OrderRejectedEvent'), require('./model/OrderSummary'), require('./model/OrderTipUpdatedEvent'), require('./model/OrderVoucherSummary'), require('./model/OtherChargesDetails'), require('./model/PasswordResetModel'), require('./model/PaymentTerminalDetails'), require('./model/PaymentTerminalTransactionDetails'), require('./model/Payout'), require('./model/PayoutChargeback'), require('./model/PayoutDetail'), require('./model/PayoutOrder'), require('./model/PayoutOtherCharge'), require('./model/PayoutRefund'), require('./model/PayoutStore'), require('./model/PayoutSummary'), require('./model/PercentDiscountDetails'), require('./model/PhoneCall'), require('./model/PhoneCallEndedEvent'), require('./model/PhoneCallStartedEvent'), require('./model/PreOrderConfig'), require('./model/PreOrderTime'), require('./model/PredefinedAnswer'), require('./model/Printer'), require('./model/PrinterAssignedToStoreEvent'), require('./model/PrinterTurnedOffEvent'), require('./model/PrinterTurnedOnEvent'), require('./model/PrinterUnassignedFromStoreEvent'), require('./model/ProcessingFeeConfig'), require('./model/PushNotificationDeletedEvent'), require('./model/PushNotificationRequest'), require('./model/PushNotificationResponse'), require('./model/PushNotificationScheduledEvent'), require('./model/PushNotificationSentEvent'), require('./model/Range'), require('./model/RedeemInvitationResult'), require('./model/Refund'), require('./model/Reject'), require('./model/RequestLoginPinModel'), require('./model/RequestLoginPinResposne'), require('./model/RequestPasswordResetModel'), require('./model/RestApiArrayResultAllMetadataResult'), require('./model/RestApiArrayResultApmCurrencyDataPoint'), require('./model/RestApiArrayResultApmDataPoint'), require('./model/RestApiArrayResultApmHourlyDataPoint'), require('./model/RestApiArrayResultBankAccountSummary'), require('./model/RestApiArrayResultBusinessHoursPeriod'), require('./model/RestApiArrayResultCountryWithAccountFieldsDefinitions'), require('./model/RestApiArrayResultDeliveryZone'), require('./model/RestApiArrayResultDriver'), require('./model/RestApiArrayResultDriverStore'), require('./model/RestApiArrayResultEmvTerminalWithAssignments'), require('./model/RestApiArrayResultHomeAction'), require('./model/RestApiArrayResultLocalisedTimeZone'), require('./model/RestApiArrayResultLoyaltyCampaign'), require('./model/RestApiArrayResultMenuCheckpoint'), require('./model/RestApiArrayResultMenuElementEditResponse'), require('./model/RestApiArrayResultMenuItemOptionSet'), require('./model/RestApiArrayResultMenuItemOptionSetItem'), require('./model/RestApiArrayResultMenuSection'), require('./model/RestApiArrayResultMenuSectionItem'), require('./model/RestApiArrayResultMenuStoreNames'), require('./model/RestApiArrayResultMenuSummary'), require('./model/RestApiArrayResultMenuTaxDetails'), require('./model/RestApiArrayResultMetadata'), require('./model/RestApiArrayResultOAuthApp'), require('./model/RestApiArrayResultOauthClientRedirectUri'), require('./model/RestApiArrayResultPayoutSummary'), require('./model/RestApiArrayResultPreOrderTime'), require('./model/RestApiArrayResultProcessingFeeConfig'), require('./model/RestApiArrayResultRestApiDefaultResponse'), require('./model/RestApiArrayResultRetentionCampaign'), require('./model/RestApiArrayResultStoreListItem'), require('./model/RestApiArrayResultStoreStatistics'), require('./model/RestApiArrayResultSupportedCountry'), require('./model/RestApiArrayResultTeammate'), require('./model/RestApiArrayResultVoucherDataPoint'), require('./model/RestApiDefaultResponse'), require('./model/RestApiErrorResult'), require('./model/RestApiEventSearchPaginationResult'), require('./model/RestApiForbiddenResult'), require('./model/RestApiIntegerResult'), require('./model/RestApiPaginationResultApp'), require('./model/RestApiPaginationResultBusinessHoursOverride'), require('./model/RestApiPaginationResultHttpRequestAndResponseLog'), require('./model/RestApiPaginationResultHydraDeviceDetails'), require('./model/RestApiPaginationResultOAuthTokenModel'), require('./model/RestApiPaginationResultOrder'), require('./model/RestApiPaginationResultOrderSummary'), require('./model/RestApiPaginationResultPayout'), require('./model/RestApiPaginationResultPayoutChargeback'), require('./model/RestApiPaginationResultPayoutOrder'), require('./model/RestApiPaginationResultPayoutOtherCharge'), require('./model/RestApiPaginationResultPayoutRefund'), require('./model/RestApiPaginationResultPhoneCall'), require('./model/RestApiPaginationResultPushNotificationResponse'), require('./model/RestApiPaginationResultStore'), require('./model/RestApiPaginationResultStoreGroup'), require('./model/RestApiPaginationResultStoreGroupExtended'), require('./model/RestApiPaginationResultStoreHeader'), require('./model/RestApiPaginationResultVoucherSummary'), require('./model/RestApiPaginationResultWebhookLog'), require('./model/RestApiPaginationResultWebhookSubscription'), require('./model/RestApiResultAccountDetail'), require('./model/RestApiResultAccountFieldsDefinitions'), require('./model/RestApiResultApmStatistics'), require('./model/RestApiResultApmStatus'), require('./model/RestApiResultApp'), require('./model/RestApiResultAppCompliance'), require('./model/RestApiResultAssignedBankAccount'), require('./model/RestApiResultBankAccountDetail'), require('./model/RestApiResultBluetoothTerminalStatus'), require('./model/RestApiResultBusinessHoursOverride'), require('./model/RestApiResultBusinessHoursPeriod'), require('./model/RestApiResultCoordinates'), require('./model/RestApiResultCustomer'), require('./model/RestApiResultDeliveryZone'), require('./model/RestApiResultDnsRecordInformation'), require('./model/RestApiResultDriver'), require('./model/RestApiResultHomeStatistics'), require('./model/RestApiResultHydraConfig'), require('./model/RestApiResultHydraStatus'), require('./model/RestApiResultIndexPage'), require('./model/RestApiResultIndexPageBase'), require('./model/RestApiResultJobResponse'), require('./model/RestApiResultLightspeedSettings'), require('./model/RestApiResultLoyaltyCampaign'), require('./model/RestApiResultMenu'), require('./model/RestApiResultMenuItemOptionSet'), require('./model/RestApiResultMenuItemOptionSetItem'), require('./model/RestApiResultMenuSection'), require('./model/RestApiResultMenuSectionAvailability'), require('./model/RestApiResultMenuSectionItem'), require('./model/RestApiResultMetadata'), require('./model/RestApiResultOAuthApp'), require('./model/RestApiResultOauthClientRedirectUri'), require('./model/RestApiResultOrder'), require('./model/RestApiResultOrderPaymentInformation'), require('./model/RestApiResultPaymentTerminalDetails'), require('./model/RestApiResultPaymentTerminalTransactionDetails'), require('./model/RestApiResultPreOrderConfig'), require('./model/RestApiResultProcessingFeeConfig'), require('./model/RestApiResultPushNotificationResponse'), require('./model/RestApiResultRedeemInvitationResult'), require('./model/RestApiResultRetentionCampaign'), require('./model/RestApiResultStore'), require('./model/RestApiResultStoreAddress'), require('./model/RestApiResultStoreEndOfDayReport'), require('./model/RestApiResultStoreGroup'), require('./model/RestApiResultStoreGroupBase'), require('./model/RestApiResultStoreOrderCapacityConfig'), require('./model/RestApiResultStripeConnectedAccount'), require('./model/RestApiResultStripeTerminalPrivateKey'), require('./model/RestApiResultStuartSettings'), require('./model/RestApiResultTeammate'), require('./model/RestApiResultVoucherWithStats'), require('./model/RestApiResultWebsiteImage'), require('./model/RestApiResultWebsiteTestimonial'), require('./model/RestApiStringArrayResult'), require('./model/RestApiStringResult'), require('./model/RestApiUnauthorizedResult'), require('./model/RetentionCampaign'), require('./model/RetentionCampaignBase'), require('./model/RetentionCampaignCreatedEvent'), require('./model/RetentionCampaignDeletedEvent'), require('./model/RetentionCampaignUpdatedEvent'), require('./model/RevenueAdjustmentsDetails'), require('./model/RevenueDetail'), require('./model/SearchCriteria'), require('./model/SetPasswordWithPinModel'), require('./model/SignupStep'), require('./model/SmsInfo'), require('./model/SmsReceivedEvent'), require('./model/StatisticsCurrencyDataPoint'), require('./model/Store'), require('./model/StoreAddress'), require('./model/StoreAddressBase'), require('./model/StoreAddressUpdatedEvent'), require('./model/StoreArchivedEvent'), require('./model/StoreBase'), require('./model/StoreBusinessHoursOverrideCreatedEvent'), require('./model/StoreBusinessHoursOverrideDeletedEvent'), require('./model/StoreCampaignStartTime'), require('./model/StoreCloneSettings'), require('./model/StoreCreateBase'), require('./model/StoreCreatedEvent'), require('./model/StoreDataPoint'), require('./model/StoreDeletedEvent'), require('./model/StoreEndOfDayReport'), require('./model/StoreGroup'), require('./model/StoreGroupBase'), require('./model/StoreGroupCreatedEvent'), require('./model/StoreGroupDeletedEvent'), require('./model/StoreGroupExtended'), require('./model/StoreGroupUpdatedEvent'), require('./model/StoreHeader'), require('./model/StoreKioskSetting'), require('./model/StoreKioskSettingUpdatedEvent'), require('./model/StoreListItem'), require('./model/StoreLogoCreatedEvent'), require('./model/StoreLogoDeletedEvent'), require('./model/StoreLogoUpdatedEvent'), require('./model/StoreMenuAssignedEvent'), require('./model/StoreNote'), require('./model/StoreOpeningHoursUpdatedEvent'), require('./model/StoreOrderCapacityConfig'), require('./model/StoreOrderCapacityConfigEditModel'), require('./model/StoreOrderCapacityPeriod'), require('./model/StorePreOrderConfigUpdatedEvent'), require('./model/StorePublishedEvent'), require('./model/StoreStatistics'), require('./model/StoreSummary'), require('./model/StoreUnarchivedEvent'), require('./model/StoreUnpublishedEvent'), require('./model/StoreUpdatedEvent'), require('./model/StripeAccountLinkRequest'), require('./model/StripeConnectedAccount'), require('./model/StripeConnectedAccountInfo'), require('./model/StripeTerminalPrivateKey'), require('./model/StuartSettings'), require('./model/StuartSettingsTransportPrices'), require('./model/SupportedCountry'), require('./model/Teammate'), require('./model/TeammateBase'), require('./model/TeammateDeletedEvent'), require('./model/TeammateInviteAcceptedEvent'), require('./model/TeammateInviteSentEvent'), require('./model/TeammateUpdatedEvent'), require('./model/UpdateDriverNotificationToken'), require('./model/UpdateDriverProfileModel'), require('./model/UserAnsweredSignupQuestionsEvent'), require('./model/UserCreatedEvent'), require('./model/UserDeletedEvent'), require('./model/UserEventInfo'), require('./model/UserLoginEvent'), require('./model/UserPasswordCreatedEvent'), require('./model/UserUpdatedEvent'), require('./model/ValidationErrorResult'), require('./model/Voucher'), require('./model/VoucherBase'), require('./model/VoucherCreatedEvent'), require('./model/VoucherDataPoint'), require('./model/VoucherDeletedEvent'), require('./model/VoucherSummary'), require('./model/VoucherUpdatedEvent'), require('./model/VoucherWithStats'), require('./model/WebhookEventSample'), require('./model/WebhookLog'), require('./model/WebhookSubscription'), require('./model/WebhookSubscriptionCreatedEvent'), require('./model/WebhookSubscriptionDeletedEvent'), require('./model/WebhookSubscriptionEventInfo'), require('./model/WebhookSubscriptionUpdatedEvent'), require('./model/WebsiteImage'), require('./model/WebsiteTestimonial'), require('./model/WebsiteTestimonialBase'), require('./model/WebsiteUpdatedEvent'), require('./model/WebsiteVanityUrlUpdatedEvent'), require('./api/AccountsApi'), require('./api/ApmApi'), require('./api/AppsApi'), require('./api/AuthorizationTokensApi'), require('./api/BankAccountApi'), require('./api/CampaignsApi'), require('./api/CardReadersApi'), require('./api/ContentSecurityPolicyApi'), require('./api/CustomersApi'), require('./api/DeliveryTrackingApi'), require('./api/DeliveryZoneApi'), require('./api/DriversApi'), require('./api/EventsApi'), require('./api/FilesApi'), require('./api/HeartbeatApi'), require('./api/HomeApi'), require('./api/HttpRequestResponseLogsApi'), require('./api/HydraApi'), require('./api/LightspeedApi'), require('./api/MenuOptionSetItemsApi'), require('./api/MenuOptionSetsApi'), require('./api/MenuSectionItemsApi'), require('./api/MenuSectionsApi'), require('./api/MenusApi'), require('./api/OAuthClientsApi'), require('./api/OrdersApi'), require('./api/PaymentsApi'), require('./api/PayoutsApi'), require('./api/ProcessingFeeConfigsApi'), require('./api/PushNotificationsApi'), require('./api/StoreGroupsApi'), require('./api/StoreOrderCapacityApi'), require('./api/StoresApi'), require('./api/StripeCustomConnectApi'), require('./api/StuartApi'), require('./api/TeammatesApi'), require('./api/UsersApi'), require('./api/VouchersApi'), require('./api/WebhooksApi'), require('./api/WebsiteApi')); } -}(function(ApiClient, Accept, BusinessHoursPeriod, CampaignCreatedEvent, Coordinates, CustomerConsentUpdatedEvent, CustomerCreatedEvent, CustomerSummary, CustomerUpdatedEvent, DeliveryFeeArea, DeliveryLocation, EventSearchResult, FeeSummary, HttpRequestAndResponseLog, Menu, MenuBase, MenuCreatedEvent, MenuItemOptionSet, MenuItemOptionSetBase, MenuItemOptionSetItem, MenuItemOptionSetItemBase, MenuSection, MenuSectionAvailability, MenuSectionBase, MenuSectionItem, MenuSectionItemBase, MenuUpdatedEvent, Metadata, OAuthClient, OAuthTokenModel, OauthClientRedirectUri, Order, OrderAcceptedEvent, OrderCreatedEvent, OrderItem, OrderItemOption, OrderRatingUpdatedEvent, OrderRefundedEvent, OrderRejectedEvent, OrderTipUpdatedEvent, Range, Refund, Reject, RestApiArrayResultMenuItemOptionSet, RestApiArrayResultMenuItemOptionSetItem, RestApiArrayResultMenuSection, RestApiArrayResultMenuSectionItem, RestApiArrayResultMetadata, RestApiArrayResultOAuthClient, RestApiArrayResultOauthClientRedirectUri, RestApiArrayResultRestApiDefaultResponse, RestApiArrayResultWebhookSubscription, RestApiDefaultResponse, RestApiErrorResult, RestApiEventSearchPaginationResult, RestApiForbiddenResult, RestApiIntegerResult, RestApiPaginationResultHttpRequestAndResponseLog, RestApiPaginationResultOAuthTokenModel, RestApiPaginationResultOrder, RestApiPaginationResultStore, RestApiPaginationResultVoucher, RestApiPaginationResultWebhookLog, RestApiResultMenu, RestApiResultMenuItemOptionSet, RestApiResultMenuItemOptionSetItem, RestApiResultMenuSection, RestApiResultMenuSectionItem, RestApiResultMetadata, RestApiResultOAuthClient, RestApiResultOauthClientRedirectUri, RestApiResultOrder, RestApiResultStore, RestApiResultVoucher, RestApiStringArrayResult, RestApiStringResult, RestApiUnauthorizedResult, SearchCriteria, Store, StoreAddress, StoreCreatedEvent, StoreDeletedEvent, StoreDeliveryZoneUpdatedEvent, StoreNote, StoreOpeningHoursUpdatedEvent, StoreSummary, StoreUpdatedEvent, UserEventInfo, ValidationErrorResult, Voucher, VoucherSummary, WebhookLog, WebhookSubscription, WebhookSubscriptionCreatedEvent, WebhookSubscriptionDeletedEvent, WebhookSubscriptionEventInfo, WebhookSubscriptionUpdatedEvent, AuthorizationTokensApi, EventsApi, HttpRequestResponseLogsApi, MenuOptionSetItemsApi, MenuOptionSetsApi, MenuSectionItemsApi, MenuSectionsApi, MenusApi, OAuthClientsApi, OrdersApi, StoresApi, UsersApi, VouchersApi, WebhooksApi) { +}(function(ApiClient, Accept, AccountDetail, AccountDetailBase, AccountFieldDefinition, AccountFieldKeyValuePair, AccountFieldsDefinitions, AddItemDetails, AllMetadataResult, AnalyticsClientEvent, ApmCurrencyDataPoint, ApmDataPoint, ApmHourlyDataPoint, ApmStatistics, ApmStatus, App, AppCompliance, AppConfigUpdateModel, AppCreatedEvent, AppUpdatedEvent, AssignedBankAccount, BalanceDetails, BankAccount, BankAccountCreate, BankAccountCreatedEvent, BankAccountDeletedEvent, BankAccountDetail, BankAccountDetailsUpdateRequest, BankAccountSummary, BankAccountUpdatedEvent, BluetoothTerminalStatus, BusinessHoursOverride, BusinessHoursOverrideBase, BusinessHoursPeriod, BusinessHoursPeriodBase, CampaignStatistics, CertificateCreatedEvent, CertificateRenewedEvent, ChangePasswordModel, ChargebackDetails, Coordinates, CountryWithAccountFieldsDefinitions, CreateAccountModel, CreateFullMenu, CreateFullMenuItemOptionSet, CreateFullMenuItemOptionSetItem, CreateFullMenuSection, CreateFullMenuSectionItem, CreateMenuTaxRate, CreateMetadata, CreateTeammate, CreateVoucher, CreditNoteDetails, CspReport, CspReportRequest, CurrencyData, Customer, CustomerConsentUpdatedEvent, CustomerCreatedEvent, CustomerDeliveryTrackingOrder, CustomerDeliveryTrackingOrderLine, CustomerSummary, CustomerUpdateModel, CustomerUpdatedEvent, DeliveryLocation, DeliveryZone, DeliveryZoneBase, DeliveryZoneCreatedEvent, DeliveryZoneDeletedEvent, DeliveryZoneUpdatedEvent, DeviceSettings, DnsRecordInformation, DnsVerifiedEvent, Driver, DriverInvitation, DriverLoginModel, DriverRequestLoginPinModel, DriverStore, EmvNotificationEvent, EmvTerminal, EmvTerminalWithAssignments, EventSearchResult, FeeSummary, FlipdishEventBase, FlipdishFeesDetails, GroupedCoordinates, HomeAction, HomeStatistics, HttpRequestAndResponseLog, HydraAssignedEvent, HydraConfig, HydraConnectionStatusChangedEvent, HydraDeviceDetails, HydraRegistrationRequest, HydraRequestResetEvent, HydraSettingChangedEvent, HydraStatus, HydraStoreAssignedEvent, HydraStoreData, HydraStoreUnassignedEvent, HydraUnAssignedEvent, IndexPage, IndexPageBase, JobAddress, JobCancellation, JobContact, JobDelivery, JobDeliveryDetail, JobDriver, JobEta, JobPricing, JobProof, JobResponse, KioskBluetoothInstallUpdateInitiateEvent, KioskBluetoothPairingModeEvent, KioskBluetoothTerminalInitiateUpdateCheckEvent, KioskBluetoothTerminalUpdatedEvent, KioskBluetoothUnpairingModeEvent, Language, LightspeedSettings, LocalisedTimeZone, LoginModel, LoginWithPinModel, LoyaltyCampaign, LoyaltyCampaignBase, LoyaltyCampaignCreatedEvent, LoyaltyCampaignDeletedEvent, LoyaltyCampaignUpdatedEvent, LumpDiscountDetails, MaskedPhoneNumber, Menu, MenuBase, MenuCheckpoint, MenuCheckpointCreatedEvent, MenuCreatedEvent, MenuElementEditResponse, MenuElementHide, MenuItemOptionSet, MenuItemOptionSetBase, MenuItemOptionSetCreatedEvent, MenuItemOptionSetDeletedEvent, MenuItemOptionSetItem, MenuItemOptionSetItemBase, MenuItemOptionSetItemCreatedEvent, MenuItemOptionSetItemDeletedEvent, MenuItemOptionSetItemUpdatedEvent, MenuItemOptionSetUpdatedEvent, MenuObjectDisplayOrders, MenuSection, MenuSectionAvailability, MenuSectionAvailabilityBase, MenuSectionBase, MenuSectionCreatedEvent, MenuSectionDeletedEvent, MenuSectionItem, MenuSectionItemBase, MenuSectionItemCreatedEvent, MenuSectionItemDeletedEvent, MenuSectionItemUpdatedEvent, MenuSectionUpdatedEvent, MenuStoreNames, MenuSummary, MenuTaxDetails, MenuTaxRate, MenuUpdatedEvent, MenuUploadedEvent, Metadata, OAuthApp, OAuthTokenModel, OauthClientRedirectUri, ObjectDisplayOrder, Order, OrderAcceptedEvent, OrderCapacityConfigUpdatedEvent, OrderCreatedEvent, OrderCustomerTrackingCreatedEvent, OrderDeliveryTrackingStatusUpdatedEvent, OrderDispatchedEvent, OrderIdAndSequenceNumber, OrderItem, OrderItemOption, OrderPaymentInformation, OrderRatingUpdatedEvent, OrderRefundedEvent, OrderRejectedEvent, OrderSummary, OrderTipUpdatedEvent, OrderVoucherSummary, OtherChargesDetails, PasswordResetModel, PaymentTerminalDetails, PaymentTerminalTransactionDetails, Payout, PayoutChargeback, PayoutDetail, PayoutOrder, PayoutOtherCharge, PayoutRefund, PayoutStore, PayoutSummary, PercentDiscountDetails, PhoneCall, PhoneCallEndedEvent, PhoneCallStartedEvent, PreOrderConfig, PreOrderTime, PredefinedAnswer, Printer, PrinterAssignedToStoreEvent, PrinterTurnedOffEvent, PrinterTurnedOnEvent, PrinterUnassignedFromStoreEvent, ProcessingFeeConfig, PushNotificationDeletedEvent, PushNotificationRequest, PushNotificationResponse, PushNotificationScheduledEvent, PushNotificationSentEvent, Range, RedeemInvitationResult, Refund, Reject, RequestLoginPinModel, RequestLoginPinResposne, RequestPasswordResetModel, RestApiArrayResultAllMetadataResult, RestApiArrayResultApmCurrencyDataPoint, RestApiArrayResultApmDataPoint, RestApiArrayResultApmHourlyDataPoint, RestApiArrayResultBankAccountSummary, RestApiArrayResultBusinessHoursPeriod, RestApiArrayResultCountryWithAccountFieldsDefinitions, RestApiArrayResultDeliveryZone, RestApiArrayResultDriver, RestApiArrayResultDriverStore, RestApiArrayResultEmvTerminalWithAssignments, RestApiArrayResultHomeAction, RestApiArrayResultLocalisedTimeZone, RestApiArrayResultLoyaltyCampaign, RestApiArrayResultMenuCheckpoint, RestApiArrayResultMenuElementEditResponse, RestApiArrayResultMenuItemOptionSet, RestApiArrayResultMenuItemOptionSetItem, RestApiArrayResultMenuSection, RestApiArrayResultMenuSectionItem, RestApiArrayResultMenuStoreNames, RestApiArrayResultMenuSummary, RestApiArrayResultMenuTaxDetails, RestApiArrayResultMetadata, RestApiArrayResultOAuthApp, RestApiArrayResultOauthClientRedirectUri, RestApiArrayResultPayoutSummary, RestApiArrayResultPreOrderTime, RestApiArrayResultProcessingFeeConfig, RestApiArrayResultRestApiDefaultResponse, RestApiArrayResultRetentionCampaign, RestApiArrayResultStoreListItem, RestApiArrayResultStoreStatistics, RestApiArrayResultSupportedCountry, RestApiArrayResultTeammate, RestApiArrayResultVoucherDataPoint, RestApiDefaultResponse, RestApiErrorResult, RestApiEventSearchPaginationResult, RestApiForbiddenResult, RestApiIntegerResult, RestApiPaginationResultApp, RestApiPaginationResultBusinessHoursOverride, RestApiPaginationResultHttpRequestAndResponseLog, RestApiPaginationResultHydraDeviceDetails, RestApiPaginationResultOAuthTokenModel, RestApiPaginationResultOrder, RestApiPaginationResultOrderSummary, RestApiPaginationResultPayout, RestApiPaginationResultPayoutChargeback, RestApiPaginationResultPayoutOrder, RestApiPaginationResultPayoutOtherCharge, RestApiPaginationResultPayoutRefund, RestApiPaginationResultPhoneCall, RestApiPaginationResultPushNotificationResponse, RestApiPaginationResultStore, RestApiPaginationResultStoreGroup, RestApiPaginationResultStoreGroupExtended, RestApiPaginationResultStoreHeader, RestApiPaginationResultVoucherSummary, RestApiPaginationResultWebhookLog, RestApiPaginationResultWebhookSubscription, RestApiResultAccountDetail, RestApiResultAccountFieldsDefinitions, RestApiResultApmStatistics, RestApiResultApmStatus, RestApiResultApp, RestApiResultAppCompliance, RestApiResultAssignedBankAccount, RestApiResultBankAccountDetail, RestApiResultBluetoothTerminalStatus, RestApiResultBusinessHoursOverride, RestApiResultBusinessHoursPeriod, RestApiResultCoordinates, RestApiResultCustomer, RestApiResultDeliveryZone, RestApiResultDnsRecordInformation, RestApiResultDriver, RestApiResultHomeStatistics, RestApiResultHydraConfig, RestApiResultHydraStatus, RestApiResultIndexPage, RestApiResultIndexPageBase, RestApiResultJobResponse, RestApiResultLightspeedSettings, RestApiResultLoyaltyCampaign, RestApiResultMenu, RestApiResultMenuItemOptionSet, RestApiResultMenuItemOptionSetItem, RestApiResultMenuSection, RestApiResultMenuSectionAvailability, RestApiResultMenuSectionItem, RestApiResultMetadata, RestApiResultOAuthApp, RestApiResultOauthClientRedirectUri, RestApiResultOrder, RestApiResultOrderPaymentInformation, RestApiResultPaymentTerminalDetails, RestApiResultPaymentTerminalTransactionDetails, RestApiResultPreOrderConfig, RestApiResultProcessingFeeConfig, RestApiResultPushNotificationResponse, RestApiResultRedeemInvitationResult, RestApiResultRetentionCampaign, RestApiResultStore, RestApiResultStoreAddress, RestApiResultStoreEndOfDayReport, RestApiResultStoreGroup, RestApiResultStoreGroupBase, RestApiResultStoreOrderCapacityConfig, RestApiResultStripeConnectedAccount, RestApiResultStripeTerminalPrivateKey, RestApiResultStuartSettings, RestApiResultTeammate, RestApiResultVoucherWithStats, RestApiResultWebsiteImage, RestApiResultWebsiteTestimonial, RestApiStringArrayResult, RestApiStringResult, RestApiUnauthorizedResult, RetentionCampaign, RetentionCampaignBase, RetentionCampaignCreatedEvent, RetentionCampaignDeletedEvent, RetentionCampaignUpdatedEvent, RevenueAdjustmentsDetails, RevenueDetail, SearchCriteria, SetPasswordWithPinModel, SignupStep, SmsInfo, SmsReceivedEvent, StatisticsCurrencyDataPoint, Store, StoreAddress, StoreAddressBase, StoreAddressUpdatedEvent, StoreArchivedEvent, StoreBase, StoreBusinessHoursOverrideCreatedEvent, StoreBusinessHoursOverrideDeletedEvent, StoreCampaignStartTime, StoreCloneSettings, StoreCreateBase, StoreCreatedEvent, StoreDataPoint, StoreDeletedEvent, StoreEndOfDayReport, StoreGroup, StoreGroupBase, StoreGroupCreatedEvent, StoreGroupDeletedEvent, StoreGroupExtended, StoreGroupUpdatedEvent, StoreHeader, StoreKioskSetting, StoreKioskSettingUpdatedEvent, StoreListItem, StoreLogoCreatedEvent, StoreLogoDeletedEvent, StoreLogoUpdatedEvent, StoreMenuAssignedEvent, StoreNote, StoreOpeningHoursUpdatedEvent, StoreOrderCapacityConfig, StoreOrderCapacityConfigEditModel, StoreOrderCapacityPeriod, StorePreOrderConfigUpdatedEvent, StorePublishedEvent, StoreStatistics, StoreSummary, StoreUnarchivedEvent, StoreUnpublishedEvent, StoreUpdatedEvent, StripeAccountLinkRequest, StripeConnectedAccount, StripeConnectedAccountInfo, StripeTerminalPrivateKey, StuartSettings, StuartSettingsTransportPrices, SupportedCountry, Teammate, TeammateBase, TeammateDeletedEvent, TeammateInviteAcceptedEvent, TeammateInviteSentEvent, TeammateUpdatedEvent, UpdateDriverNotificationToken, UpdateDriverProfileModel, UserAnsweredSignupQuestionsEvent, UserCreatedEvent, UserDeletedEvent, UserEventInfo, UserLoginEvent, UserPasswordCreatedEvent, UserUpdatedEvent, ValidationErrorResult, Voucher, VoucherBase, VoucherCreatedEvent, VoucherDataPoint, VoucherDeletedEvent, VoucherSummary, VoucherUpdatedEvent, VoucherWithStats, WebhookEventSample, WebhookLog, WebhookSubscription, WebhookSubscriptionCreatedEvent, WebhookSubscriptionDeletedEvent, WebhookSubscriptionEventInfo, WebhookSubscriptionUpdatedEvent, WebsiteImage, WebsiteTestimonial, WebsiteTestimonialBase, WebsiteUpdatedEvent, WebsiteVanityUrlUpdatedEvent, AccountsApi, ApmApi, AppsApi, AuthorizationTokensApi, BankAccountApi, CampaignsApi, CardReadersApi, ContentSecurityPolicyApi, CustomersApi, DeliveryTrackingApi, DeliveryZoneApi, DriversApi, EventsApi, FilesApi, HeartbeatApi, HomeApi, HttpRequestResponseLogsApi, HydraApi, LightspeedApi, MenuOptionSetItemsApi, MenuOptionSetsApi, MenuSectionItemsApi, MenuSectionsApi, MenusApi, OAuthClientsApi, OrdersApi, PaymentsApi, PayoutsApi, ProcessingFeeConfigsApi, PushNotificationsApi, StoreGroupsApi, StoreOrderCapacityApi, StoresApi, StripeCustomConnectApi, StuartApi, TeammatesApi, UsersApi, VouchersApi, WebhooksApi, WebsiteApi) { 'use strict'; /** - * Javascript Flipdish API client.
+ * ERROR_UNKNOWN.
* 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: @@ -66,21 +66,281 @@ * @property {module:model/Accept} */ Accept: Accept, + /** + * The AccountDetail model constructor. + * @property {module:model/AccountDetail} + */ + AccountDetail: AccountDetail, + /** + * The AccountDetailBase model constructor. + * @property {module:model/AccountDetailBase} + */ + AccountDetailBase: AccountDetailBase, + /** + * The AccountFieldDefinition model constructor. + * @property {module:model/AccountFieldDefinition} + */ + AccountFieldDefinition: AccountFieldDefinition, + /** + * The AccountFieldKeyValuePair model constructor. + * @property {module:model/AccountFieldKeyValuePair} + */ + AccountFieldKeyValuePair: AccountFieldKeyValuePair, + /** + * The AccountFieldsDefinitions model constructor. + * @property {module:model/AccountFieldsDefinitions} + */ + AccountFieldsDefinitions: AccountFieldsDefinitions, + /** + * The AddItemDetails model constructor. + * @property {module:model/AddItemDetails} + */ + AddItemDetails: AddItemDetails, + /** + * The AllMetadataResult model constructor. + * @property {module:model/AllMetadataResult} + */ + AllMetadataResult: AllMetadataResult, + /** + * The AnalyticsClientEvent model constructor. + * @property {module:model/AnalyticsClientEvent} + */ + AnalyticsClientEvent: AnalyticsClientEvent, + /** + * The ApmCurrencyDataPoint model constructor. + * @property {module:model/ApmCurrencyDataPoint} + */ + ApmCurrencyDataPoint: ApmCurrencyDataPoint, + /** + * The ApmDataPoint model constructor. + * @property {module:model/ApmDataPoint} + */ + ApmDataPoint: ApmDataPoint, + /** + * The ApmHourlyDataPoint model constructor. + * @property {module:model/ApmHourlyDataPoint} + */ + ApmHourlyDataPoint: ApmHourlyDataPoint, + /** + * The ApmStatistics model constructor. + * @property {module:model/ApmStatistics} + */ + ApmStatistics: ApmStatistics, + /** + * The ApmStatus model constructor. + * @property {module:model/ApmStatus} + */ + ApmStatus: ApmStatus, + /** + * The App model constructor. + * @property {module:model/App} + */ + App: App, + /** + * The AppCompliance model constructor. + * @property {module:model/AppCompliance} + */ + AppCompliance: AppCompliance, + /** + * The AppConfigUpdateModel model constructor. + * @property {module:model/AppConfigUpdateModel} + */ + AppConfigUpdateModel: AppConfigUpdateModel, + /** + * The AppCreatedEvent model constructor. + * @property {module:model/AppCreatedEvent} + */ + AppCreatedEvent: AppCreatedEvent, + /** + * The AppUpdatedEvent model constructor. + * @property {module:model/AppUpdatedEvent} + */ + AppUpdatedEvent: AppUpdatedEvent, + /** + * The AssignedBankAccount model constructor. + * @property {module:model/AssignedBankAccount} + */ + AssignedBankAccount: AssignedBankAccount, + /** + * The BalanceDetails model constructor. + * @property {module:model/BalanceDetails} + */ + BalanceDetails: BalanceDetails, + /** + * The BankAccount model constructor. + * @property {module:model/BankAccount} + */ + BankAccount: BankAccount, + /** + * The BankAccountCreate model constructor. + * @property {module:model/BankAccountCreate} + */ + BankAccountCreate: BankAccountCreate, + /** + * The BankAccountCreatedEvent model constructor. + * @property {module:model/BankAccountCreatedEvent} + */ + BankAccountCreatedEvent: BankAccountCreatedEvent, + /** + * The BankAccountDeletedEvent model constructor. + * @property {module:model/BankAccountDeletedEvent} + */ + BankAccountDeletedEvent: BankAccountDeletedEvent, + /** + * The BankAccountDetail model constructor. + * @property {module:model/BankAccountDetail} + */ + BankAccountDetail: BankAccountDetail, + /** + * The BankAccountDetailsUpdateRequest model constructor. + * @property {module:model/BankAccountDetailsUpdateRequest} + */ + BankAccountDetailsUpdateRequest: BankAccountDetailsUpdateRequest, + /** + * The BankAccountSummary model constructor. + * @property {module:model/BankAccountSummary} + */ + BankAccountSummary: BankAccountSummary, + /** + * The BankAccountUpdatedEvent model constructor. + * @property {module:model/BankAccountUpdatedEvent} + */ + BankAccountUpdatedEvent: BankAccountUpdatedEvent, + /** + * The BluetoothTerminalStatus model constructor. + * @property {module:model/BluetoothTerminalStatus} + */ + BluetoothTerminalStatus: BluetoothTerminalStatus, + /** + * The BusinessHoursOverride model constructor. + * @property {module:model/BusinessHoursOverride} + */ + BusinessHoursOverride: BusinessHoursOverride, + /** + * The BusinessHoursOverrideBase model constructor. + * @property {module:model/BusinessHoursOverrideBase} + */ + BusinessHoursOverrideBase: BusinessHoursOverrideBase, /** * The BusinessHoursPeriod model constructor. * @property {module:model/BusinessHoursPeriod} */ BusinessHoursPeriod: BusinessHoursPeriod, /** - * The CampaignCreatedEvent model constructor. - * @property {module:model/CampaignCreatedEvent} + * The BusinessHoursPeriodBase model constructor. + * @property {module:model/BusinessHoursPeriodBase} + */ + BusinessHoursPeriodBase: BusinessHoursPeriodBase, + /** + * The CampaignStatistics model constructor. + * @property {module:model/CampaignStatistics} */ - CampaignCreatedEvent: CampaignCreatedEvent, + CampaignStatistics: CampaignStatistics, + /** + * The CertificateCreatedEvent model constructor. + * @property {module:model/CertificateCreatedEvent} + */ + CertificateCreatedEvent: CertificateCreatedEvent, + /** + * The CertificateRenewedEvent model constructor. + * @property {module:model/CertificateRenewedEvent} + */ + CertificateRenewedEvent: CertificateRenewedEvent, + /** + * The ChangePasswordModel model constructor. + * @property {module:model/ChangePasswordModel} + */ + ChangePasswordModel: ChangePasswordModel, + /** + * The ChargebackDetails model constructor. + * @property {module:model/ChargebackDetails} + */ + ChargebackDetails: ChargebackDetails, /** * The Coordinates model constructor. * @property {module:model/Coordinates} */ Coordinates: Coordinates, + /** + * The CountryWithAccountFieldsDefinitions model constructor. + * @property {module:model/CountryWithAccountFieldsDefinitions} + */ + CountryWithAccountFieldsDefinitions: CountryWithAccountFieldsDefinitions, + /** + * The CreateAccountModel model constructor. + * @property {module:model/CreateAccountModel} + */ + CreateAccountModel: CreateAccountModel, + /** + * The CreateFullMenu model constructor. + * @property {module:model/CreateFullMenu} + */ + CreateFullMenu: CreateFullMenu, + /** + * The CreateFullMenuItemOptionSet model constructor. + * @property {module:model/CreateFullMenuItemOptionSet} + */ + CreateFullMenuItemOptionSet: CreateFullMenuItemOptionSet, + /** + * The CreateFullMenuItemOptionSetItem model constructor. + * @property {module:model/CreateFullMenuItemOptionSetItem} + */ + CreateFullMenuItemOptionSetItem: CreateFullMenuItemOptionSetItem, + /** + * The CreateFullMenuSection model constructor. + * @property {module:model/CreateFullMenuSection} + */ + CreateFullMenuSection: CreateFullMenuSection, + /** + * The CreateFullMenuSectionItem model constructor. + * @property {module:model/CreateFullMenuSectionItem} + */ + CreateFullMenuSectionItem: CreateFullMenuSectionItem, + /** + * The CreateMenuTaxRate model constructor. + * @property {module:model/CreateMenuTaxRate} + */ + CreateMenuTaxRate: CreateMenuTaxRate, + /** + * The CreateMetadata model constructor. + * @property {module:model/CreateMetadata} + */ + CreateMetadata: CreateMetadata, + /** + * The CreateTeammate model constructor. + * @property {module:model/CreateTeammate} + */ + CreateTeammate: CreateTeammate, + /** + * The CreateVoucher model constructor. + * @property {module:model/CreateVoucher} + */ + CreateVoucher: CreateVoucher, + /** + * The CreditNoteDetails model constructor. + * @property {module:model/CreditNoteDetails} + */ + CreditNoteDetails: CreditNoteDetails, + /** + * The CspReport model constructor. + * @property {module:model/CspReport} + */ + CspReport: CspReport, + /** + * The CspReportRequest model constructor. + * @property {module:model/CspReportRequest} + */ + CspReportRequest: CspReportRequest, + /** + * The CurrencyData model constructor. + * @property {module:model/CurrencyData} + */ + CurrencyData: CurrencyData, + /** + * The Customer model constructor. + * @property {module:model/Customer} + */ + Customer: Customer, /** * The CustomerConsentUpdatedEvent model constructor. * @property {module:model/CustomerConsentUpdatedEvent} @@ -91,26 +351,116 @@ * @property {module:model/CustomerCreatedEvent} */ CustomerCreatedEvent: CustomerCreatedEvent, + /** + * The CustomerDeliveryTrackingOrder model constructor. + * @property {module:model/CustomerDeliveryTrackingOrder} + */ + CustomerDeliveryTrackingOrder: CustomerDeliveryTrackingOrder, + /** + * The CustomerDeliveryTrackingOrderLine model constructor. + * @property {module:model/CustomerDeliveryTrackingOrderLine} + */ + CustomerDeliveryTrackingOrderLine: CustomerDeliveryTrackingOrderLine, /** * The CustomerSummary model constructor. * @property {module:model/CustomerSummary} */ CustomerSummary: CustomerSummary, + /** + * The CustomerUpdateModel model constructor. + * @property {module:model/CustomerUpdateModel} + */ + CustomerUpdateModel: CustomerUpdateModel, /** * The CustomerUpdatedEvent model constructor. * @property {module:model/CustomerUpdatedEvent} */ CustomerUpdatedEvent: CustomerUpdatedEvent, - /** - * The DeliveryFeeArea model constructor. - * @property {module:model/DeliveryFeeArea} - */ - DeliveryFeeArea: DeliveryFeeArea, /** * The DeliveryLocation model constructor. * @property {module:model/DeliveryLocation} */ DeliveryLocation: DeliveryLocation, + /** + * The DeliveryZone model constructor. + * @property {module:model/DeliveryZone} + */ + DeliveryZone: DeliveryZone, + /** + * The DeliveryZoneBase model constructor. + * @property {module:model/DeliveryZoneBase} + */ + DeliveryZoneBase: DeliveryZoneBase, + /** + * The DeliveryZoneCreatedEvent model constructor. + * @property {module:model/DeliveryZoneCreatedEvent} + */ + DeliveryZoneCreatedEvent: DeliveryZoneCreatedEvent, + /** + * The DeliveryZoneDeletedEvent model constructor. + * @property {module:model/DeliveryZoneDeletedEvent} + */ + DeliveryZoneDeletedEvent: DeliveryZoneDeletedEvent, + /** + * The DeliveryZoneUpdatedEvent model constructor. + * @property {module:model/DeliveryZoneUpdatedEvent} + */ + DeliveryZoneUpdatedEvent: DeliveryZoneUpdatedEvent, + /** + * The DeviceSettings model constructor. + * @property {module:model/DeviceSettings} + */ + DeviceSettings: DeviceSettings, + /** + * The DnsRecordInformation model constructor. + * @property {module:model/DnsRecordInformation} + */ + DnsRecordInformation: DnsRecordInformation, + /** + * The DnsVerifiedEvent model constructor. + * @property {module:model/DnsVerifiedEvent} + */ + DnsVerifiedEvent: DnsVerifiedEvent, + /** + * The Driver model constructor. + * @property {module:model/Driver} + */ + Driver: Driver, + /** + * The DriverInvitation model constructor. + * @property {module:model/DriverInvitation} + */ + DriverInvitation: DriverInvitation, + /** + * The DriverLoginModel model constructor. + * @property {module:model/DriverLoginModel} + */ + DriverLoginModel: DriverLoginModel, + /** + * The DriverRequestLoginPinModel model constructor. + * @property {module:model/DriverRequestLoginPinModel} + */ + DriverRequestLoginPinModel: DriverRequestLoginPinModel, + /** + * The DriverStore model constructor. + * @property {module:model/DriverStore} + */ + DriverStore: DriverStore, + /** + * The EmvNotificationEvent model constructor. + * @property {module:model/EmvNotificationEvent} + */ + EmvNotificationEvent: EmvNotificationEvent, + /** + * The EmvTerminal model constructor. + * @property {module:model/EmvTerminal} + */ + EmvTerminal: EmvTerminal, + /** + * The EmvTerminalWithAssignments model constructor. + * @property {module:model/EmvTerminalWithAssignments} + */ + EmvTerminalWithAssignments: EmvTerminalWithAssignments, /** * The EventSearchResult model constructor. * @property {module:model/EventSearchResult} @@ -121,11 +471,241 @@ * @property {module:model/FeeSummary} */ FeeSummary: FeeSummary, + /** + * The FlipdishEventBase model constructor. + * @property {module:model/FlipdishEventBase} + */ + FlipdishEventBase: FlipdishEventBase, + /** + * The FlipdishFeesDetails model constructor. + * @property {module:model/FlipdishFeesDetails} + */ + FlipdishFeesDetails: FlipdishFeesDetails, + /** + * The GroupedCoordinates model constructor. + * @property {module:model/GroupedCoordinates} + */ + GroupedCoordinates: GroupedCoordinates, + /** + * The HomeAction model constructor. + * @property {module:model/HomeAction} + */ + HomeAction: HomeAction, + /** + * The HomeStatistics model constructor. + * @property {module:model/HomeStatistics} + */ + HomeStatistics: HomeStatistics, /** * The HttpRequestAndResponseLog model constructor. * @property {module:model/HttpRequestAndResponseLog} */ HttpRequestAndResponseLog: HttpRequestAndResponseLog, + /** + * The HydraAssignedEvent model constructor. + * @property {module:model/HydraAssignedEvent} + */ + HydraAssignedEvent: HydraAssignedEvent, + /** + * The HydraConfig model constructor. + * @property {module:model/HydraConfig} + */ + HydraConfig: HydraConfig, + /** + * The HydraConnectionStatusChangedEvent model constructor. + * @property {module:model/HydraConnectionStatusChangedEvent} + */ + HydraConnectionStatusChangedEvent: HydraConnectionStatusChangedEvent, + /** + * The HydraDeviceDetails model constructor. + * @property {module:model/HydraDeviceDetails} + */ + HydraDeviceDetails: HydraDeviceDetails, + /** + * The HydraRegistrationRequest model constructor. + * @property {module:model/HydraRegistrationRequest} + */ + HydraRegistrationRequest: HydraRegistrationRequest, + /** + * The HydraRequestResetEvent model constructor. + * @property {module:model/HydraRequestResetEvent} + */ + HydraRequestResetEvent: HydraRequestResetEvent, + /** + * The HydraSettingChangedEvent model constructor. + * @property {module:model/HydraSettingChangedEvent} + */ + HydraSettingChangedEvent: HydraSettingChangedEvent, + /** + * The HydraStatus model constructor. + * @property {module:model/HydraStatus} + */ + HydraStatus: HydraStatus, + /** + * The HydraStoreAssignedEvent model constructor. + * @property {module:model/HydraStoreAssignedEvent} + */ + HydraStoreAssignedEvent: HydraStoreAssignedEvent, + /** + * The HydraStoreData model constructor. + * @property {module:model/HydraStoreData} + */ + HydraStoreData: HydraStoreData, + /** + * The HydraStoreUnassignedEvent model constructor. + * @property {module:model/HydraStoreUnassignedEvent} + */ + HydraStoreUnassignedEvent: HydraStoreUnassignedEvent, + /** + * The HydraUnAssignedEvent model constructor. + * @property {module:model/HydraUnAssignedEvent} + */ + HydraUnAssignedEvent: HydraUnAssignedEvent, + /** + * The IndexPage model constructor. + * @property {module:model/IndexPage} + */ + IndexPage: IndexPage, + /** + * The IndexPageBase model constructor. + * @property {module:model/IndexPageBase} + */ + IndexPageBase: IndexPageBase, + /** + * The JobAddress model constructor. + * @property {module:model/JobAddress} + */ + JobAddress: JobAddress, + /** + * The JobCancellation model constructor. + * @property {module:model/JobCancellation} + */ + JobCancellation: JobCancellation, + /** + * The JobContact model constructor. + * @property {module:model/JobContact} + */ + JobContact: JobContact, + /** + * The JobDelivery model constructor. + * @property {module:model/JobDelivery} + */ + JobDelivery: JobDelivery, + /** + * The JobDeliveryDetail model constructor. + * @property {module:model/JobDeliveryDetail} + */ + JobDeliveryDetail: JobDeliveryDetail, + /** + * The JobDriver model constructor. + * @property {module:model/JobDriver} + */ + JobDriver: JobDriver, + /** + * The JobEta model constructor. + * @property {module:model/JobEta} + */ + JobEta: JobEta, + /** + * The JobPricing model constructor. + * @property {module:model/JobPricing} + */ + JobPricing: JobPricing, + /** + * The JobProof model constructor. + * @property {module:model/JobProof} + */ + JobProof: JobProof, + /** + * The JobResponse model constructor. + * @property {module:model/JobResponse} + */ + JobResponse: JobResponse, + /** + * The KioskBluetoothInstallUpdateInitiateEvent model constructor. + * @property {module:model/KioskBluetoothInstallUpdateInitiateEvent} + */ + KioskBluetoothInstallUpdateInitiateEvent: KioskBluetoothInstallUpdateInitiateEvent, + /** + * The KioskBluetoothPairingModeEvent model constructor. + * @property {module:model/KioskBluetoothPairingModeEvent} + */ + KioskBluetoothPairingModeEvent: KioskBluetoothPairingModeEvent, + /** + * The KioskBluetoothTerminalInitiateUpdateCheckEvent model constructor. + * @property {module:model/KioskBluetoothTerminalInitiateUpdateCheckEvent} + */ + KioskBluetoothTerminalInitiateUpdateCheckEvent: KioskBluetoothTerminalInitiateUpdateCheckEvent, + /** + * The KioskBluetoothTerminalUpdatedEvent model constructor. + * @property {module:model/KioskBluetoothTerminalUpdatedEvent} + */ + KioskBluetoothTerminalUpdatedEvent: KioskBluetoothTerminalUpdatedEvent, + /** + * The KioskBluetoothUnpairingModeEvent model constructor. + * @property {module:model/KioskBluetoothUnpairingModeEvent} + */ + KioskBluetoothUnpairingModeEvent: KioskBluetoothUnpairingModeEvent, + /** + * The Language model constructor. + * @property {module:model/Language} + */ + Language: Language, + /** + * The LightspeedSettings model constructor. + * @property {module:model/LightspeedSettings} + */ + LightspeedSettings: LightspeedSettings, + /** + * The LocalisedTimeZone model constructor. + * @property {module:model/LocalisedTimeZone} + */ + LocalisedTimeZone: LocalisedTimeZone, + /** + * The LoginModel model constructor. + * @property {module:model/LoginModel} + */ + LoginModel: LoginModel, + /** + * The LoginWithPinModel model constructor. + * @property {module:model/LoginWithPinModel} + */ + LoginWithPinModel: LoginWithPinModel, + /** + * The LoyaltyCampaign model constructor. + * @property {module:model/LoyaltyCampaign} + */ + LoyaltyCampaign: LoyaltyCampaign, + /** + * The LoyaltyCampaignBase model constructor. + * @property {module:model/LoyaltyCampaignBase} + */ + LoyaltyCampaignBase: LoyaltyCampaignBase, + /** + * The LoyaltyCampaignCreatedEvent model constructor. + * @property {module:model/LoyaltyCampaignCreatedEvent} + */ + LoyaltyCampaignCreatedEvent: LoyaltyCampaignCreatedEvent, + /** + * The LoyaltyCampaignDeletedEvent model constructor. + * @property {module:model/LoyaltyCampaignDeletedEvent} + */ + LoyaltyCampaignDeletedEvent: LoyaltyCampaignDeletedEvent, + /** + * The LoyaltyCampaignUpdatedEvent model constructor. + * @property {module:model/LoyaltyCampaignUpdatedEvent} + */ + LoyaltyCampaignUpdatedEvent: LoyaltyCampaignUpdatedEvent, + /** + * The LumpDiscountDetails model constructor. + * @property {module:model/LumpDiscountDetails} + */ + LumpDiscountDetails: LumpDiscountDetails, + /** + * The MaskedPhoneNumber model constructor. + * @property {module:model/MaskedPhoneNumber} + */ + MaskedPhoneNumber: MaskedPhoneNumber, /** * The Menu model constructor. * @property {module:model/Menu} @@ -136,11 +716,31 @@ * @property {module:model/MenuBase} */ MenuBase: MenuBase, + /** + * The MenuCheckpoint model constructor. + * @property {module:model/MenuCheckpoint} + */ + MenuCheckpoint: MenuCheckpoint, + /** + * The MenuCheckpointCreatedEvent model constructor. + * @property {module:model/MenuCheckpointCreatedEvent} + */ + MenuCheckpointCreatedEvent: MenuCheckpointCreatedEvent, /** * The MenuCreatedEvent model constructor. * @property {module:model/MenuCreatedEvent} */ MenuCreatedEvent: MenuCreatedEvent, + /** + * The MenuElementEditResponse model constructor. + * @property {module:model/MenuElementEditResponse} + */ + MenuElementEditResponse: MenuElementEditResponse, + /** + * The MenuElementHide model constructor. + * @property {module:model/MenuElementHide} + */ + MenuElementHide: MenuElementHide, /** * The MenuItemOptionSet model constructor. * @property {module:model/MenuItemOptionSet} @@ -151,6 +751,16 @@ * @property {module:model/MenuItemOptionSetBase} */ MenuItemOptionSetBase: MenuItemOptionSetBase, + /** + * The MenuItemOptionSetCreatedEvent model constructor. + * @property {module:model/MenuItemOptionSetCreatedEvent} + */ + MenuItemOptionSetCreatedEvent: MenuItemOptionSetCreatedEvent, + /** + * The MenuItemOptionSetDeletedEvent model constructor. + * @property {module:model/MenuItemOptionSetDeletedEvent} + */ + MenuItemOptionSetDeletedEvent: MenuItemOptionSetDeletedEvent, /** * The MenuItemOptionSetItem model constructor. * @property {module:model/MenuItemOptionSetItem} @@ -161,6 +771,31 @@ * @property {module:model/MenuItemOptionSetItemBase} */ MenuItemOptionSetItemBase: MenuItemOptionSetItemBase, + /** + * The MenuItemOptionSetItemCreatedEvent model constructor. + * @property {module:model/MenuItemOptionSetItemCreatedEvent} + */ + MenuItemOptionSetItemCreatedEvent: MenuItemOptionSetItemCreatedEvent, + /** + * The MenuItemOptionSetItemDeletedEvent model constructor. + * @property {module:model/MenuItemOptionSetItemDeletedEvent} + */ + MenuItemOptionSetItemDeletedEvent: MenuItemOptionSetItemDeletedEvent, + /** + * The MenuItemOptionSetItemUpdatedEvent model constructor. + * @property {module:model/MenuItemOptionSetItemUpdatedEvent} + */ + MenuItemOptionSetItemUpdatedEvent: MenuItemOptionSetItemUpdatedEvent, + /** + * The MenuItemOptionSetUpdatedEvent model constructor. + * @property {module:model/MenuItemOptionSetUpdatedEvent} + */ + MenuItemOptionSetUpdatedEvent: MenuItemOptionSetUpdatedEvent, + /** + * The MenuObjectDisplayOrders model constructor. + * @property {module:model/MenuObjectDisplayOrders} + */ + MenuObjectDisplayOrders: MenuObjectDisplayOrders, /** * The MenuSection model constructor. * @property {module:model/MenuSection} @@ -171,11 +806,26 @@ * @property {module:model/MenuSectionAvailability} */ MenuSectionAvailability: MenuSectionAvailability, + /** + * The MenuSectionAvailabilityBase model constructor. + * @property {module:model/MenuSectionAvailabilityBase} + */ + MenuSectionAvailabilityBase: MenuSectionAvailabilityBase, /** * The MenuSectionBase model constructor. * @property {module:model/MenuSectionBase} */ MenuSectionBase: MenuSectionBase, + /** + * The MenuSectionCreatedEvent model constructor. + * @property {module:model/MenuSectionCreatedEvent} + */ + MenuSectionCreatedEvent: MenuSectionCreatedEvent, + /** + * The MenuSectionDeletedEvent model constructor. + * @property {module:model/MenuSectionDeletedEvent} + */ + MenuSectionDeletedEvent: MenuSectionDeletedEvent, /** * The MenuSectionItem model constructor. * @property {module:model/MenuSectionItem} @@ -186,21 +836,66 @@ * @property {module:model/MenuSectionItemBase} */ MenuSectionItemBase: MenuSectionItemBase, + /** + * The MenuSectionItemCreatedEvent model constructor. + * @property {module:model/MenuSectionItemCreatedEvent} + */ + MenuSectionItemCreatedEvent: MenuSectionItemCreatedEvent, + /** + * The MenuSectionItemDeletedEvent model constructor. + * @property {module:model/MenuSectionItemDeletedEvent} + */ + MenuSectionItemDeletedEvent: MenuSectionItemDeletedEvent, + /** + * The MenuSectionItemUpdatedEvent model constructor. + * @property {module:model/MenuSectionItemUpdatedEvent} + */ + MenuSectionItemUpdatedEvent: MenuSectionItemUpdatedEvent, + /** + * The MenuSectionUpdatedEvent model constructor. + * @property {module:model/MenuSectionUpdatedEvent} + */ + MenuSectionUpdatedEvent: MenuSectionUpdatedEvent, + /** + * The MenuStoreNames model constructor. + * @property {module:model/MenuStoreNames} + */ + MenuStoreNames: MenuStoreNames, + /** + * The MenuSummary model constructor. + * @property {module:model/MenuSummary} + */ + MenuSummary: MenuSummary, + /** + * The MenuTaxDetails model constructor. + * @property {module:model/MenuTaxDetails} + */ + MenuTaxDetails: MenuTaxDetails, + /** + * The MenuTaxRate model constructor. + * @property {module:model/MenuTaxRate} + */ + MenuTaxRate: MenuTaxRate, /** * The MenuUpdatedEvent model constructor. * @property {module:model/MenuUpdatedEvent} */ MenuUpdatedEvent: MenuUpdatedEvent, + /** + * The MenuUploadedEvent model constructor. + * @property {module:model/MenuUploadedEvent} + */ + MenuUploadedEvent: MenuUploadedEvent, /** * The Metadata model constructor. * @property {module:model/Metadata} */ Metadata: Metadata, /** - * The OAuthClient model constructor. - * @property {module:model/OAuthClient} + * The OAuthApp model constructor. + * @property {module:model/OAuthApp} */ - OAuthClient: OAuthClient, + OAuthApp: OAuthApp, /** * The OAuthTokenModel model constructor. * @property {module:model/OAuthTokenModel} @@ -211,6 +906,11 @@ * @property {module:model/OauthClientRedirectUri} */ OauthClientRedirectUri: OauthClientRedirectUri, + /** + * The ObjectDisplayOrder model constructor. + * @property {module:model/ObjectDisplayOrder} + */ + ObjectDisplayOrder: ObjectDisplayOrder, /** * The Order model constructor. * @property {module:model/Order} @@ -221,11 +921,36 @@ * @property {module:model/OrderAcceptedEvent} */ OrderAcceptedEvent: OrderAcceptedEvent, + /** + * The OrderCapacityConfigUpdatedEvent model constructor. + * @property {module:model/OrderCapacityConfigUpdatedEvent} + */ + OrderCapacityConfigUpdatedEvent: OrderCapacityConfigUpdatedEvent, /** * The OrderCreatedEvent model constructor. * @property {module:model/OrderCreatedEvent} */ OrderCreatedEvent: OrderCreatedEvent, + /** + * The OrderCustomerTrackingCreatedEvent model constructor. + * @property {module:model/OrderCustomerTrackingCreatedEvent} + */ + OrderCustomerTrackingCreatedEvent: OrderCustomerTrackingCreatedEvent, + /** + * The OrderDeliveryTrackingStatusUpdatedEvent model constructor. + * @property {module:model/OrderDeliveryTrackingStatusUpdatedEvent} + */ + OrderDeliveryTrackingStatusUpdatedEvent: OrderDeliveryTrackingStatusUpdatedEvent, + /** + * The OrderDispatchedEvent model constructor. + * @property {module:model/OrderDispatchedEvent} + */ + OrderDispatchedEvent: OrderDispatchedEvent, + /** + * The OrderIdAndSequenceNumber model constructor. + * @property {module:model/OrderIdAndSequenceNumber} + */ + OrderIdAndSequenceNumber: OrderIdAndSequenceNumber, /** * The OrderItem model constructor. * @property {module:model/OrderItem} @@ -236,6 +961,11 @@ * @property {module:model/OrderItemOption} */ OrderItemOption: OrderItemOption, + /** + * The OrderPaymentInformation model constructor. + * @property {module:model/OrderPaymentInformation} + */ + OrderPaymentInformation: OrderPaymentInformation, /** * The OrderRatingUpdatedEvent model constructor. * @property {module:model/OrderRatingUpdatedEvent} @@ -251,16 +981,181 @@ * @property {module:model/OrderRejectedEvent} */ OrderRejectedEvent: OrderRejectedEvent, + /** + * The OrderSummary model constructor. + * @property {module:model/OrderSummary} + */ + OrderSummary: OrderSummary, /** * The OrderTipUpdatedEvent model constructor. * @property {module:model/OrderTipUpdatedEvent} */ OrderTipUpdatedEvent: OrderTipUpdatedEvent, + /** + * The OrderVoucherSummary model constructor. + * @property {module:model/OrderVoucherSummary} + */ + OrderVoucherSummary: OrderVoucherSummary, + /** + * The OtherChargesDetails model constructor. + * @property {module:model/OtherChargesDetails} + */ + OtherChargesDetails: OtherChargesDetails, + /** + * The PasswordResetModel model constructor. + * @property {module:model/PasswordResetModel} + */ + PasswordResetModel: PasswordResetModel, + /** + * The PaymentTerminalDetails model constructor. + * @property {module:model/PaymentTerminalDetails} + */ + PaymentTerminalDetails: PaymentTerminalDetails, + /** + * The PaymentTerminalTransactionDetails model constructor. + * @property {module:model/PaymentTerminalTransactionDetails} + */ + PaymentTerminalTransactionDetails: PaymentTerminalTransactionDetails, + /** + * The Payout model constructor. + * @property {module:model/Payout} + */ + Payout: Payout, + /** + * The PayoutChargeback model constructor. + * @property {module:model/PayoutChargeback} + */ + PayoutChargeback: PayoutChargeback, + /** + * The PayoutDetail model constructor. + * @property {module:model/PayoutDetail} + */ + PayoutDetail: PayoutDetail, + /** + * The PayoutOrder model constructor. + * @property {module:model/PayoutOrder} + */ + PayoutOrder: PayoutOrder, + /** + * The PayoutOtherCharge model constructor. + * @property {module:model/PayoutOtherCharge} + */ + PayoutOtherCharge: PayoutOtherCharge, + /** + * The PayoutRefund model constructor. + * @property {module:model/PayoutRefund} + */ + PayoutRefund: PayoutRefund, + /** + * The PayoutStore model constructor. + * @property {module:model/PayoutStore} + */ + PayoutStore: PayoutStore, + /** + * The PayoutSummary model constructor. + * @property {module:model/PayoutSummary} + */ + PayoutSummary: PayoutSummary, + /** + * The PercentDiscountDetails model constructor. + * @property {module:model/PercentDiscountDetails} + */ + PercentDiscountDetails: PercentDiscountDetails, + /** + * The PhoneCall model constructor. + * @property {module:model/PhoneCall} + */ + PhoneCall: PhoneCall, + /** + * The PhoneCallEndedEvent model constructor. + * @property {module:model/PhoneCallEndedEvent} + */ + PhoneCallEndedEvent: PhoneCallEndedEvent, + /** + * The PhoneCallStartedEvent model constructor. + * @property {module:model/PhoneCallStartedEvent} + */ + PhoneCallStartedEvent: PhoneCallStartedEvent, + /** + * The PreOrderConfig model constructor. + * @property {module:model/PreOrderConfig} + */ + PreOrderConfig: PreOrderConfig, + /** + * The PreOrderTime model constructor. + * @property {module:model/PreOrderTime} + */ + PreOrderTime: PreOrderTime, + /** + * The PredefinedAnswer model constructor. + * @property {module:model/PredefinedAnswer} + */ + PredefinedAnswer: PredefinedAnswer, + /** + * The Printer model constructor. + * @property {module:model/Printer} + */ + Printer: Printer, + /** + * The PrinterAssignedToStoreEvent model constructor. + * @property {module:model/PrinterAssignedToStoreEvent} + */ + PrinterAssignedToStoreEvent: PrinterAssignedToStoreEvent, + /** + * The PrinterTurnedOffEvent model constructor. + * @property {module:model/PrinterTurnedOffEvent} + */ + PrinterTurnedOffEvent: PrinterTurnedOffEvent, + /** + * The PrinterTurnedOnEvent model constructor. + * @property {module:model/PrinterTurnedOnEvent} + */ + PrinterTurnedOnEvent: PrinterTurnedOnEvent, + /** + * The PrinterUnassignedFromStoreEvent model constructor. + * @property {module:model/PrinterUnassignedFromStoreEvent} + */ + PrinterUnassignedFromStoreEvent: PrinterUnassignedFromStoreEvent, + /** + * The ProcessingFeeConfig model constructor. + * @property {module:model/ProcessingFeeConfig} + */ + ProcessingFeeConfig: ProcessingFeeConfig, + /** + * The PushNotificationDeletedEvent model constructor. + * @property {module:model/PushNotificationDeletedEvent} + */ + PushNotificationDeletedEvent: PushNotificationDeletedEvent, + /** + * The PushNotificationRequest model constructor. + * @property {module:model/PushNotificationRequest} + */ + PushNotificationRequest: PushNotificationRequest, + /** + * The PushNotificationResponse model constructor. + * @property {module:model/PushNotificationResponse} + */ + PushNotificationResponse: PushNotificationResponse, + /** + * The PushNotificationScheduledEvent model constructor. + * @property {module:model/PushNotificationScheduledEvent} + */ + PushNotificationScheduledEvent: PushNotificationScheduledEvent, + /** + * The PushNotificationSentEvent model constructor. + * @property {module:model/PushNotificationSentEvent} + */ + PushNotificationSentEvent: PushNotificationSentEvent, /** * The Range model constructor. * @property {module:model/Range} */ Range: Range, + /** + * The RedeemInvitationResult model constructor. + * @property {module:model/RedeemInvitationResult} + */ + RedeemInvitationResult: RedeemInvitationResult, /** * The Refund model constructor. * @property {module:model/Refund} @@ -271,6 +1166,101 @@ * @property {module:model/Reject} */ Reject: Reject, + /** + * The RequestLoginPinModel model constructor. + * @property {module:model/RequestLoginPinModel} + */ + RequestLoginPinModel: RequestLoginPinModel, + /** + * The RequestLoginPinResposne model constructor. + * @property {module:model/RequestLoginPinResposne} + */ + RequestLoginPinResposne: RequestLoginPinResposne, + /** + * The RequestPasswordResetModel model constructor. + * @property {module:model/RequestPasswordResetModel} + */ + RequestPasswordResetModel: RequestPasswordResetModel, + /** + * The RestApiArrayResultAllMetadataResult model constructor. + * @property {module:model/RestApiArrayResultAllMetadataResult} + */ + RestApiArrayResultAllMetadataResult: RestApiArrayResultAllMetadataResult, + /** + * The RestApiArrayResultApmCurrencyDataPoint model constructor. + * @property {module:model/RestApiArrayResultApmCurrencyDataPoint} + */ + RestApiArrayResultApmCurrencyDataPoint: RestApiArrayResultApmCurrencyDataPoint, + /** + * The RestApiArrayResultApmDataPoint model constructor. + * @property {module:model/RestApiArrayResultApmDataPoint} + */ + RestApiArrayResultApmDataPoint: RestApiArrayResultApmDataPoint, + /** + * The RestApiArrayResultApmHourlyDataPoint model constructor. + * @property {module:model/RestApiArrayResultApmHourlyDataPoint} + */ + RestApiArrayResultApmHourlyDataPoint: RestApiArrayResultApmHourlyDataPoint, + /** + * The RestApiArrayResultBankAccountSummary model constructor. + * @property {module:model/RestApiArrayResultBankAccountSummary} + */ + RestApiArrayResultBankAccountSummary: RestApiArrayResultBankAccountSummary, + /** + * The RestApiArrayResultBusinessHoursPeriod model constructor. + * @property {module:model/RestApiArrayResultBusinessHoursPeriod} + */ + RestApiArrayResultBusinessHoursPeriod: RestApiArrayResultBusinessHoursPeriod, + /** + * The RestApiArrayResultCountryWithAccountFieldsDefinitions model constructor. + * @property {module:model/RestApiArrayResultCountryWithAccountFieldsDefinitions} + */ + RestApiArrayResultCountryWithAccountFieldsDefinitions: RestApiArrayResultCountryWithAccountFieldsDefinitions, + /** + * The RestApiArrayResultDeliveryZone model constructor. + * @property {module:model/RestApiArrayResultDeliveryZone} + */ + RestApiArrayResultDeliveryZone: RestApiArrayResultDeliveryZone, + /** + * The RestApiArrayResultDriver model constructor. + * @property {module:model/RestApiArrayResultDriver} + */ + RestApiArrayResultDriver: RestApiArrayResultDriver, + /** + * The RestApiArrayResultDriverStore model constructor. + * @property {module:model/RestApiArrayResultDriverStore} + */ + RestApiArrayResultDriverStore: RestApiArrayResultDriverStore, + /** + * The RestApiArrayResultEmvTerminalWithAssignments model constructor. + * @property {module:model/RestApiArrayResultEmvTerminalWithAssignments} + */ + RestApiArrayResultEmvTerminalWithAssignments: RestApiArrayResultEmvTerminalWithAssignments, + /** + * The RestApiArrayResultHomeAction model constructor. + * @property {module:model/RestApiArrayResultHomeAction} + */ + RestApiArrayResultHomeAction: RestApiArrayResultHomeAction, + /** + * The RestApiArrayResultLocalisedTimeZone model constructor. + * @property {module:model/RestApiArrayResultLocalisedTimeZone} + */ + RestApiArrayResultLocalisedTimeZone: RestApiArrayResultLocalisedTimeZone, + /** + * The RestApiArrayResultLoyaltyCampaign model constructor. + * @property {module:model/RestApiArrayResultLoyaltyCampaign} + */ + RestApiArrayResultLoyaltyCampaign: RestApiArrayResultLoyaltyCampaign, + /** + * The RestApiArrayResultMenuCheckpoint model constructor. + * @property {module:model/RestApiArrayResultMenuCheckpoint} + */ + RestApiArrayResultMenuCheckpoint: RestApiArrayResultMenuCheckpoint, + /** + * The RestApiArrayResultMenuElementEditResponse model constructor. + * @property {module:model/RestApiArrayResultMenuElementEditResponse} + */ + RestApiArrayResultMenuElementEditResponse: RestApiArrayResultMenuElementEditResponse, /** * The RestApiArrayResultMenuItemOptionSet model constructor. * @property {module:model/RestApiArrayResultMenuItemOptionSet} @@ -291,31 +1281,86 @@ * @property {module:model/RestApiArrayResultMenuSectionItem} */ RestApiArrayResultMenuSectionItem: RestApiArrayResultMenuSectionItem, + /** + * The RestApiArrayResultMenuStoreNames model constructor. + * @property {module:model/RestApiArrayResultMenuStoreNames} + */ + RestApiArrayResultMenuStoreNames: RestApiArrayResultMenuStoreNames, + /** + * The RestApiArrayResultMenuSummary model constructor. + * @property {module:model/RestApiArrayResultMenuSummary} + */ + RestApiArrayResultMenuSummary: RestApiArrayResultMenuSummary, + /** + * The RestApiArrayResultMenuTaxDetails model constructor. + * @property {module:model/RestApiArrayResultMenuTaxDetails} + */ + RestApiArrayResultMenuTaxDetails: RestApiArrayResultMenuTaxDetails, /** * The RestApiArrayResultMetadata model constructor. * @property {module:model/RestApiArrayResultMetadata} */ RestApiArrayResultMetadata: RestApiArrayResultMetadata, /** - * The RestApiArrayResultOAuthClient model constructor. - * @property {module:model/RestApiArrayResultOAuthClient} + * The RestApiArrayResultOAuthApp model constructor. + * @property {module:model/RestApiArrayResultOAuthApp} */ - RestApiArrayResultOAuthClient: RestApiArrayResultOAuthClient, + RestApiArrayResultOAuthApp: RestApiArrayResultOAuthApp, /** * The RestApiArrayResultOauthClientRedirectUri model constructor. * @property {module:model/RestApiArrayResultOauthClientRedirectUri} */ RestApiArrayResultOauthClientRedirectUri: RestApiArrayResultOauthClientRedirectUri, + /** + * The RestApiArrayResultPayoutSummary model constructor. + * @property {module:model/RestApiArrayResultPayoutSummary} + */ + RestApiArrayResultPayoutSummary: RestApiArrayResultPayoutSummary, + /** + * The RestApiArrayResultPreOrderTime model constructor. + * @property {module:model/RestApiArrayResultPreOrderTime} + */ + RestApiArrayResultPreOrderTime: RestApiArrayResultPreOrderTime, + /** + * The RestApiArrayResultProcessingFeeConfig model constructor. + * @property {module:model/RestApiArrayResultProcessingFeeConfig} + */ + RestApiArrayResultProcessingFeeConfig: RestApiArrayResultProcessingFeeConfig, /** * The RestApiArrayResultRestApiDefaultResponse model constructor. * @property {module:model/RestApiArrayResultRestApiDefaultResponse} */ RestApiArrayResultRestApiDefaultResponse: RestApiArrayResultRestApiDefaultResponse, /** - * The RestApiArrayResultWebhookSubscription model constructor. - * @property {module:model/RestApiArrayResultWebhookSubscription} + * The RestApiArrayResultRetentionCampaign model constructor. + * @property {module:model/RestApiArrayResultRetentionCampaign} + */ + RestApiArrayResultRetentionCampaign: RestApiArrayResultRetentionCampaign, + /** + * The RestApiArrayResultStoreListItem model constructor. + * @property {module:model/RestApiArrayResultStoreListItem} + */ + RestApiArrayResultStoreListItem: RestApiArrayResultStoreListItem, + /** + * The RestApiArrayResultStoreStatistics model constructor. + * @property {module:model/RestApiArrayResultStoreStatistics} + */ + RestApiArrayResultStoreStatistics: RestApiArrayResultStoreStatistics, + /** + * The RestApiArrayResultSupportedCountry model constructor. + * @property {module:model/RestApiArrayResultSupportedCountry} + */ + RestApiArrayResultSupportedCountry: RestApiArrayResultSupportedCountry, + /** + * The RestApiArrayResultTeammate model constructor. + * @property {module:model/RestApiArrayResultTeammate} + */ + RestApiArrayResultTeammate: RestApiArrayResultTeammate, + /** + * The RestApiArrayResultVoucherDataPoint model constructor. + * @property {module:model/RestApiArrayResultVoucherDataPoint} */ - RestApiArrayResultWebhookSubscription: RestApiArrayResultWebhookSubscription, + RestApiArrayResultVoucherDataPoint: RestApiArrayResultVoucherDataPoint, /** * The RestApiDefaultResponse model constructor. * @property {module:model/RestApiDefaultResponse} @@ -341,36 +1386,231 @@ * @property {module:model/RestApiIntegerResult} */ RestApiIntegerResult: RestApiIntegerResult, + /** + * The RestApiPaginationResultApp model constructor. + * @property {module:model/RestApiPaginationResultApp} + */ + RestApiPaginationResultApp: RestApiPaginationResultApp, + /** + * The RestApiPaginationResultBusinessHoursOverride model constructor. + * @property {module:model/RestApiPaginationResultBusinessHoursOverride} + */ + RestApiPaginationResultBusinessHoursOverride: RestApiPaginationResultBusinessHoursOverride, /** * The RestApiPaginationResultHttpRequestAndResponseLog model constructor. * @property {module:model/RestApiPaginationResultHttpRequestAndResponseLog} */ RestApiPaginationResultHttpRequestAndResponseLog: RestApiPaginationResultHttpRequestAndResponseLog, + /** + * The RestApiPaginationResultHydraDeviceDetails model constructor. + * @property {module:model/RestApiPaginationResultHydraDeviceDetails} + */ + RestApiPaginationResultHydraDeviceDetails: RestApiPaginationResultHydraDeviceDetails, /** * The RestApiPaginationResultOAuthTokenModel model constructor. * @property {module:model/RestApiPaginationResultOAuthTokenModel} */ - RestApiPaginationResultOAuthTokenModel: RestApiPaginationResultOAuthTokenModel, + RestApiPaginationResultOAuthTokenModel: RestApiPaginationResultOAuthTokenModel, + /** + * The RestApiPaginationResultOrder model constructor. + * @property {module:model/RestApiPaginationResultOrder} + */ + RestApiPaginationResultOrder: RestApiPaginationResultOrder, + /** + * The RestApiPaginationResultOrderSummary model constructor. + * @property {module:model/RestApiPaginationResultOrderSummary} + */ + RestApiPaginationResultOrderSummary: RestApiPaginationResultOrderSummary, + /** + * The RestApiPaginationResultPayout model constructor. + * @property {module:model/RestApiPaginationResultPayout} + */ + RestApiPaginationResultPayout: RestApiPaginationResultPayout, + /** + * The RestApiPaginationResultPayoutChargeback model constructor. + * @property {module:model/RestApiPaginationResultPayoutChargeback} + */ + RestApiPaginationResultPayoutChargeback: RestApiPaginationResultPayoutChargeback, + /** + * The RestApiPaginationResultPayoutOrder model constructor. + * @property {module:model/RestApiPaginationResultPayoutOrder} + */ + RestApiPaginationResultPayoutOrder: RestApiPaginationResultPayoutOrder, + /** + * The RestApiPaginationResultPayoutOtherCharge model constructor. + * @property {module:model/RestApiPaginationResultPayoutOtherCharge} + */ + RestApiPaginationResultPayoutOtherCharge: RestApiPaginationResultPayoutOtherCharge, + /** + * The RestApiPaginationResultPayoutRefund model constructor. + * @property {module:model/RestApiPaginationResultPayoutRefund} + */ + RestApiPaginationResultPayoutRefund: RestApiPaginationResultPayoutRefund, + /** + * The RestApiPaginationResultPhoneCall model constructor. + * @property {module:model/RestApiPaginationResultPhoneCall} + */ + RestApiPaginationResultPhoneCall: RestApiPaginationResultPhoneCall, + /** + * The RestApiPaginationResultPushNotificationResponse model constructor. + * @property {module:model/RestApiPaginationResultPushNotificationResponse} + */ + RestApiPaginationResultPushNotificationResponse: RestApiPaginationResultPushNotificationResponse, + /** + * The RestApiPaginationResultStore model constructor. + * @property {module:model/RestApiPaginationResultStore} + */ + RestApiPaginationResultStore: RestApiPaginationResultStore, + /** + * The RestApiPaginationResultStoreGroup model constructor. + * @property {module:model/RestApiPaginationResultStoreGroup} + */ + RestApiPaginationResultStoreGroup: RestApiPaginationResultStoreGroup, + /** + * The RestApiPaginationResultStoreGroupExtended model constructor. + * @property {module:model/RestApiPaginationResultStoreGroupExtended} + */ + RestApiPaginationResultStoreGroupExtended: RestApiPaginationResultStoreGroupExtended, + /** + * The RestApiPaginationResultStoreHeader model constructor. + * @property {module:model/RestApiPaginationResultStoreHeader} + */ + RestApiPaginationResultStoreHeader: RestApiPaginationResultStoreHeader, + /** + * The RestApiPaginationResultVoucherSummary model constructor. + * @property {module:model/RestApiPaginationResultVoucherSummary} + */ + RestApiPaginationResultVoucherSummary: RestApiPaginationResultVoucherSummary, + /** + * The RestApiPaginationResultWebhookLog model constructor. + * @property {module:model/RestApiPaginationResultWebhookLog} + */ + RestApiPaginationResultWebhookLog: RestApiPaginationResultWebhookLog, + /** + * The RestApiPaginationResultWebhookSubscription model constructor. + * @property {module:model/RestApiPaginationResultWebhookSubscription} + */ + RestApiPaginationResultWebhookSubscription: RestApiPaginationResultWebhookSubscription, + /** + * The RestApiResultAccountDetail model constructor. + * @property {module:model/RestApiResultAccountDetail} + */ + RestApiResultAccountDetail: RestApiResultAccountDetail, + /** + * The RestApiResultAccountFieldsDefinitions model constructor. + * @property {module:model/RestApiResultAccountFieldsDefinitions} + */ + RestApiResultAccountFieldsDefinitions: RestApiResultAccountFieldsDefinitions, + /** + * The RestApiResultApmStatistics model constructor. + * @property {module:model/RestApiResultApmStatistics} + */ + RestApiResultApmStatistics: RestApiResultApmStatistics, + /** + * The RestApiResultApmStatus model constructor. + * @property {module:model/RestApiResultApmStatus} + */ + RestApiResultApmStatus: RestApiResultApmStatus, + /** + * The RestApiResultApp model constructor. + * @property {module:model/RestApiResultApp} + */ + RestApiResultApp: RestApiResultApp, + /** + * The RestApiResultAppCompliance model constructor. + * @property {module:model/RestApiResultAppCompliance} + */ + RestApiResultAppCompliance: RestApiResultAppCompliance, + /** + * The RestApiResultAssignedBankAccount model constructor. + * @property {module:model/RestApiResultAssignedBankAccount} + */ + RestApiResultAssignedBankAccount: RestApiResultAssignedBankAccount, + /** + * The RestApiResultBankAccountDetail model constructor. + * @property {module:model/RestApiResultBankAccountDetail} + */ + RestApiResultBankAccountDetail: RestApiResultBankAccountDetail, + /** + * The RestApiResultBluetoothTerminalStatus model constructor. + * @property {module:model/RestApiResultBluetoothTerminalStatus} + */ + RestApiResultBluetoothTerminalStatus: RestApiResultBluetoothTerminalStatus, + /** + * The RestApiResultBusinessHoursOverride model constructor. + * @property {module:model/RestApiResultBusinessHoursOverride} + */ + RestApiResultBusinessHoursOverride: RestApiResultBusinessHoursOverride, + /** + * The RestApiResultBusinessHoursPeriod model constructor. + * @property {module:model/RestApiResultBusinessHoursPeriod} + */ + RestApiResultBusinessHoursPeriod: RestApiResultBusinessHoursPeriod, + /** + * The RestApiResultCoordinates model constructor. + * @property {module:model/RestApiResultCoordinates} + */ + RestApiResultCoordinates: RestApiResultCoordinates, + /** + * The RestApiResultCustomer model constructor. + * @property {module:model/RestApiResultCustomer} + */ + RestApiResultCustomer: RestApiResultCustomer, + /** + * The RestApiResultDeliveryZone model constructor. + * @property {module:model/RestApiResultDeliveryZone} + */ + RestApiResultDeliveryZone: RestApiResultDeliveryZone, + /** + * The RestApiResultDnsRecordInformation model constructor. + * @property {module:model/RestApiResultDnsRecordInformation} + */ + RestApiResultDnsRecordInformation: RestApiResultDnsRecordInformation, + /** + * The RestApiResultDriver model constructor. + * @property {module:model/RestApiResultDriver} + */ + RestApiResultDriver: RestApiResultDriver, + /** + * The RestApiResultHomeStatistics model constructor. + * @property {module:model/RestApiResultHomeStatistics} + */ + RestApiResultHomeStatistics: RestApiResultHomeStatistics, + /** + * The RestApiResultHydraConfig model constructor. + * @property {module:model/RestApiResultHydraConfig} + */ + RestApiResultHydraConfig: RestApiResultHydraConfig, + /** + * The RestApiResultHydraStatus model constructor. + * @property {module:model/RestApiResultHydraStatus} + */ + RestApiResultHydraStatus: RestApiResultHydraStatus, + /** + * The RestApiResultIndexPage model constructor. + * @property {module:model/RestApiResultIndexPage} + */ + RestApiResultIndexPage: RestApiResultIndexPage, /** - * The RestApiPaginationResultOrder model constructor. - * @property {module:model/RestApiPaginationResultOrder} + * The RestApiResultIndexPageBase model constructor. + * @property {module:model/RestApiResultIndexPageBase} */ - RestApiPaginationResultOrder: RestApiPaginationResultOrder, + RestApiResultIndexPageBase: RestApiResultIndexPageBase, /** - * The RestApiPaginationResultStore model constructor. - * @property {module:model/RestApiPaginationResultStore} + * The RestApiResultJobResponse model constructor. + * @property {module:model/RestApiResultJobResponse} */ - RestApiPaginationResultStore: RestApiPaginationResultStore, + RestApiResultJobResponse: RestApiResultJobResponse, /** - * The RestApiPaginationResultVoucher model constructor. - * @property {module:model/RestApiPaginationResultVoucher} + * The RestApiResultLightspeedSettings model constructor. + * @property {module:model/RestApiResultLightspeedSettings} */ - RestApiPaginationResultVoucher: RestApiPaginationResultVoucher, + RestApiResultLightspeedSettings: RestApiResultLightspeedSettings, /** - * The RestApiPaginationResultWebhookLog model constructor. - * @property {module:model/RestApiPaginationResultWebhookLog} + * The RestApiResultLoyaltyCampaign model constructor. + * @property {module:model/RestApiResultLoyaltyCampaign} */ - RestApiPaginationResultWebhookLog: RestApiPaginationResultWebhookLog, + RestApiResultLoyaltyCampaign: RestApiResultLoyaltyCampaign, /** * The RestApiResultMenu model constructor. * @property {module:model/RestApiResultMenu} @@ -391,6 +1631,11 @@ * @property {module:model/RestApiResultMenuSection} */ RestApiResultMenuSection: RestApiResultMenuSection, + /** + * The RestApiResultMenuSectionAvailability model constructor. + * @property {module:model/RestApiResultMenuSectionAvailability} + */ + RestApiResultMenuSectionAvailability: RestApiResultMenuSectionAvailability, /** * The RestApiResultMenuSectionItem model constructor. * @property {module:model/RestApiResultMenuSectionItem} @@ -402,10 +1647,10 @@ */ RestApiResultMetadata: RestApiResultMetadata, /** - * The RestApiResultOAuthClient model constructor. - * @property {module:model/RestApiResultOAuthClient} + * The RestApiResultOAuthApp model constructor. + * @property {module:model/RestApiResultOAuthApp} */ - RestApiResultOAuthClient: RestApiResultOAuthClient, + RestApiResultOAuthApp: RestApiResultOAuthApp, /** * The RestApiResultOauthClientRedirectUri model constructor. * @property {module:model/RestApiResultOauthClientRedirectUri} @@ -416,16 +1661,111 @@ * @property {module:model/RestApiResultOrder} */ RestApiResultOrder: RestApiResultOrder, + /** + * The RestApiResultOrderPaymentInformation model constructor. + * @property {module:model/RestApiResultOrderPaymentInformation} + */ + RestApiResultOrderPaymentInformation: RestApiResultOrderPaymentInformation, + /** + * The RestApiResultPaymentTerminalDetails model constructor. + * @property {module:model/RestApiResultPaymentTerminalDetails} + */ + RestApiResultPaymentTerminalDetails: RestApiResultPaymentTerminalDetails, + /** + * The RestApiResultPaymentTerminalTransactionDetails model constructor. + * @property {module:model/RestApiResultPaymentTerminalTransactionDetails} + */ + RestApiResultPaymentTerminalTransactionDetails: RestApiResultPaymentTerminalTransactionDetails, + /** + * The RestApiResultPreOrderConfig model constructor. + * @property {module:model/RestApiResultPreOrderConfig} + */ + RestApiResultPreOrderConfig: RestApiResultPreOrderConfig, + /** + * The RestApiResultProcessingFeeConfig model constructor. + * @property {module:model/RestApiResultProcessingFeeConfig} + */ + RestApiResultProcessingFeeConfig: RestApiResultProcessingFeeConfig, + /** + * The RestApiResultPushNotificationResponse model constructor. + * @property {module:model/RestApiResultPushNotificationResponse} + */ + RestApiResultPushNotificationResponse: RestApiResultPushNotificationResponse, + /** + * The RestApiResultRedeemInvitationResult model constructor. + * @property {module:model/RestApiResultRedeemInvitationResult} + */ + RestApiResultRedeemInvitationResult: RestApiResultRedeemInvitationResult, + /** + * The RestApiResultRetentionCampaign model constructor. + * @property {module:model/RestApiResultRetentionCampaign} + */ + RestApiResultRetentionCampaign: RestApiResultRetentionCampaign, /** * The RestApiResultStore model constructor. * @property {module:model/RestApiResultStore} */ RestApiResultStore: RestApiResultStore, /** - * The RestApiResultVoucher model constructor. - * @property {module:model/RestApiResultVoucher} + * The RestApiResultStoreAddress model constructor. + * @property {module:model/RestApiResultStoreAddress} + */ + RestApiResultStoreAddress: RestApiResultStoreAddress, + /** + * The RestApiResultStoreEndOfDayReport model constructor. + * @property {module:model/RestApiResultStoreEndOfDayReport} + */ + RestApiResultStoreEndOfDayReport: RestApiResultStoreEndOfDayReport, + /** + * The RestApiResultStoreGroup model constructor. + * @property {module:model/RestApiResultStoreGroup} */ - RestApiResultVoucher: RestApiResultVoucher, + RestApiResultStoreGroup: RestApiResultStoreGroup, + /** + * The RestApiResultStoreGroupBase model constructor. + * @property {module:model/RestApiResultStoreGroupBase} + */ + RestApiResultStoreGroupBase: RestApiResultStoreGroupBase, + /** + * The RestApiResultStoreOrderCapacityConfig model constructor. + * @property {module:model/RestApiResultStoreOrderCapacityConfig} + */ + RestApiResultStoreOrderCapacityConfig: RestApiResultStoreOrderCapacityConfig, + /** + * The RestApiResultStripeConnectedAccount model constructor. + * @property {module:model/RestApiResultStripeConnectedAccount} + */ + RestApiResultStripeConnectedAccount: RestApiResultStripeConnectedAccount, + /** + * The RestApiResultStripeTerminalPrivateKey model constructor. + * @property {module:model/RestApiResultStripeTerminalPrivateKey} + */ + RestApiResultStripeTerminalPrivateKey: RestApiResultStripeTerminalPrivateKey, + /** + * The RestApiResultStuartSettings model constructor. + * @property {module:model/RestApiResultStuartSettings} + */ + RestApiResultStuartSettings: RestApiResultStuartSettings, + /** + * The RestApiResultTeammate model constructor. + * @property {module:model/RestApiResultTeammate} + */ + RestApiResultTeammate: RestApiResultTeammate, + /** + * The RestApiResultVoucherWithStats model constructor. + * @property {module:model/RestApiResultVoucherWithStats} + */ + RestApiResultVoucherWithStats: RestApiResultVoucherWithStats, + /** + * The RestApiResultWebsiteImage model constructor. + * @property {module:model/RestApiResultWebsiteImage} + */ + RestApiResultWebsiteImage: RestApiResultWebsiteImage, + /** + * The RestApiResultWebsiteTestimonial model constructor. + * @property {module:model/RestApiResultWebsiteTestimonial} + */ + RestApiResultWebsiteTestimonial: RestApiResultWebsiteTestimonial, /** * The RestApiStringArrayResult model constructor. * @property {module:model/RestApiStringArrayResult} @@ -441,11 +1781,71 @@ * @property {module:model/RestApiUnauthorizedResult} */ RestApiUnauthorizedResult: RestApiUnauthorizedResult, + /** + * The RetentionCampaign model constructor. + * @property {module:model/RetentionCampaign} + */ + RetentionCampaign: RetentionCampaign, + /** + * The RetentionCampaignBase model constructor. + * @property {module:model/RetentionCampaignBase} + */ + RetentionCampaignBase: RetentionCampaignBase, + /** + * The RetentionCampaignCreatedEvent model constructor. + * @property {module:model/RetentionCampaignCreatedEvent} + */ + RetentionCampaignCreatedEvent: RetentionCampaignCreatedEvent, + /** + * The RetentionCampaignDeletedEvent model constructor. + * @property {module:model/RetentionCampaignDeletedEvent} + */ + RetentionCampaignDeletedEvent: RetentionCampaignDeletedEvent, + /** + * The RetentionCampaignUpdatedEvent model constructor. + * @property {module:model/RetentionCampaignUpdatedEvent} + */ + RetentionCampaignUpdatedEvent: RetentionCampaignUpdatedEvent, + /** + * The RevenueAdjustmentsDetails model constructor. + * @property {module:model/RevenueAdjustmentsDetails} + */ + RevenueAdjustmentsDetails: RevenueAdjustmentsDetails, + /** + * The RevenueDetail model constructor. + * @property {module:model/RevenueDetail} + */ + RevenueDetail: RevenueDetail, /** * The SearchCriteria model constructor. * @property {module:model/SearchCriteria} */ SearchCriteria: SearchCriteria, + /** + * The SetPasswordWithPinModel model constructor. + * @property {module:model/SetPasswordWithPinModel} + */ + SetPasswordWithPinModel: SetPasswordWithPinModel, + /** + * The SignupStep model constructor. + * @property {module:model/SignupStep} + */ + SignupStep: SignupStep, + /** + * The SmsInfo model constructor. + * @property {module:model/SmsInfo} + */ + SmsInfo: SmsInfo, + /** + * The SmsReceivedEvent model constructor. + * @property {module:model/SmsReceivedEvent} + */ + SmsReceivedEvent: SmsReceivedEvent, + /** + * The StatisticsCurrencyDataPoint model constructor. + * @property {module:model/StatisticsCurrencyDataPoint} + */ + StatisticsCurrencyDataPoint: StatisticsCurrencyDataPoint, /** * The Store model constructor. * @property {module:model/Store} @@ -456,21 +1856,141 @@ * @property {module:model/StoreAddress} */ StoreAddress: StoreAddress, + /** + * The StoreAddressBase model constructor. + * @property {module:model/StoreAddressBase} + */ + StoreAddressBase: StoreAddressBase, + /** + * The StoreAddressUpdatedEvent model constructor. + * @property {module:model/StoreAddressUpdatedEvent} + */ + StoreAddressUpdatedEvent: StoreAddressUpdatedEvent, + /** + * The StoreArchivedEvent model constructor. + * @property {module:model/StoreArchivedEvent} + */ + StoreArchivedEvent: StoreArchivedEvent, + /** + * The StoreBase model constructor. + * @property {module:model/StoreBase} + */ + StoreBase: StoreBase, + /** + * The StoreBusinessHoursOverrideCreatedEvent model constructor. + * @property {module:model/StoreBusinessHoursOverrideCreatedEvent} + */ + StoreBusinessHoursOverrideCreatedEvent: StoreBusinessHoursOverrideCreatedEvent, + /** + * The StoreBusinessHoursOverrideDeletedEvent model constructor. + * @property {module:model/StoreBusinessHoursOverrideDeletedEvent} + */ + StoreBusinessHoursOverrideDeletedEvent: StoreBusinessHoursOverrideDeletedEvent, + /** + * The StoreCampaignStartTime model constructor. + * @property {module:model/StoreCampaignStartTime} + */ + StoreCampaignStartTime: StoreCampaignStartTime, + /** + * The StoreCloneSettings model constructor. + * @property {module:model/StoreCloneSettings} + */ + StoreCloneSettings: StoreCloneSettings, + /** + * The StoreCreateBase model constructor. + * @property {module:model/StoreCreateBase} + */ + StoreCreateBase: StoreCreateBase, /** * The StoreCreatedEvent model constructor. * @property {module:model/StoreCreatedEvent} */ StoreCreatedEvent: StoreCreatedEvent, + /** + * The StoreDataPoint model constructor. + * @property {module:model/StoreDataPoint} + */ + StoreDataPoint: StoreDataPoint, /** * The StoreDeletedEvent model constructor. * @property {module:model/StoreDeletedEvent} */ StoreDeletedEvent: StoreDeletedEvent, /** - * The StoreDeliveryZoneUpdatedEvent model constructor. - * @property {module:model/StoreDeliveryZoneUpdatedEvent} + * The StoreEndOfDayReport model constructor. + * @property {module:model/StoreEndOfDayReport} + */ + StoreEndOfDayReport: StoreEndOfDayReport, + /** + * The StoreGroup model constructor. + * @property {module:model/StoreGroup} */ - StoreDeliveryZoneUpdatedEvent: StoreDeliveryZoneUpdatedEvent, + StoreGroup: StoreGroup, + /** + * The StoreGroupBase model constructor. + * @property {module:model/StoreGroupBase} + */ + StoreGroupBase: StoreGroupBase, + /** + * The StoreGroupCreatedEvent model constructor. + * @property {module:model/StoreGroupCreatedEvent} + */ + StoreGroupCreatedEvent: StoreGroupCreatedEvent, + /** + * The StoreGroupDeletedEvent model constructor. + * @property {module:model/StoreGroupDeletedEvent} + */ + StoreGroupDeletedEvent: StoreGroupDeletedEvent, + /** + * The StoreGroupExtended model constructor. + * @property {module:model/StoreGroupExtended} + */ + StoreGroupExtended: StoreGroupExtended, + /** + * The StoreGroupUpdatedEvent model constructor. + * @property {module:model/StoreGroupUpdatedEvent} + */ + StoreGroupUpdatedEvent: StoreGroupUpdatedEvent, + /** + * The StoreHeader model constructor. + * @property {module:model/StoreHeader} + */ + StoreHeader: StoreHeader, + /** + * The StoreKioskSetting model constructor. + * @property {module:model/StoreKioskSetting} + */ + StoreKioskSetting: StoreKioskSetting, + /** + * The StoreKioskSettingUpdatedEvent model constructor. + * @property {module:model/StoreKioskSettingUpdatedEvent} + */ + StoreKioskSettingUpdatedEvent: StoreKioskSettingUpdatedEvent, + /** + * The StoreListItem model constructor. + * @property {module:model/StoreListItem} + */ + StoreListItem: StoreListItem, + /** + * The StoreLogoCreatedEvent model constructor. + * @property {module:model/StoreLogoCreatedEvent} + */ + StoreLogoCreatedEvent: StoreLogoCreatedEvent, + /** + * The StoreLogoDeletedEvent model constructor. + * @property {module:model/StoreLogoDeletedEvent} + */ + StoreLogoDeletedEvent: StoreLogoDeletedEvent, + /** + * The StoreLogoUpdatedEvent model constructor. + * @property {module:model/StoreLogoUpdatedEvent} + */ + StoreLogoUpdatedEvent: StoreLogoUpdatedEvent, + /** + * The StoreMenuAssignedEvent model constructor. + * @property {module:model/StoreMenuAssignedEvent} + */ + StoreMenuAssignedEvent: StoreMenuAssignedEvent, /** * The StoreNote model constructor. * @property {module:model/StoreNote} @@ -481,21 +2001,166 @@ * @property {module:model/StoreOpeningHoursUpdatedEvent} */ StoreOpeningHoursUpdatedEvent: StoreOpeningHoursUpdatedEvent, + /** + * The StoreOrderCapacityConfig model constructor. + * @property {module:model/StoreOrderCapacityConfig} + */ + StoreOrderCapacityConfig: StoreOrderCapacityConfig, + /** + * The StoreOrderCapacityConfigEditModel model constructor. + * @property {module:model/StoreOrderCapacityConfigEditModel} + */ + StoreOrderCapacityConfigEditModel: StoreOrderCapacityConfigEditModel, + /** + * The StoreOrderCapacityPeriod model constructor. + * @property {module:model/StoreOrderCapacityPeriod} + */ + StoreOrderCapacityPeriod: StoreOrderCapacityPeriod, + /** + * The StorePreOrderConfigUpdatedEvent model constructor. + * @property {module:model/StorePreOrderConfigUpdatedEvent} + */ + StorePreOrderConfigUpdatedEvent: StorePreOrderConfigUpdatedEvent, + /** + * The StorePublishedEvent model constructor. + * @property {module:model/StorePublishedEvent} + */ + StorePublishedEvent: StorePublishedEvent, + /** + * The StoreStatistics model constructor. + * @property {module:model/StoreStatistics} + */ + StoreStatistics: StoreStatistics, /** * The StoreSummary model constructor. * @property {module:model/StoreSummary} */ StoreSummary: StoreSummary, + /** + * The StoreUnarchivedEvent model constructor. + * @property {module:model/StoreUnarchivedEvent} + */ + StoreUnarchivedEvent: StoreUnarchivedEvent, + /** + * The StoreUnpublishedEvent model constructor. + * @property {module:model/StoreUnpublishedEvent} + */ + StoreUnpublishedEvent: StoreUnpublishedEvent, /** * The StoreUpdatedEvent model constructor. * @property {module:model/StoreUpdatedEvent} */ StoreUpdatedEvent: StoreUpdatedEvent, + /** + * The StripeAccountLinkRequest model constructor. + * @property {module:model/StripeAccountLinkRequest} + */ + StripeAccountLinkRequest: StripeAccountLinkRequest, + /** + * The StripeConnectedAccount model constructor. + * @property {module:model/StripeConnectedAccount} + */ + StripeConnectedAccount: StripeConnectedAccount, + /** + * The StripeConnectedAccountInfo model constructor. + * @property {module:model/StripeConnectedAccountInfo} + */ + StripeConnectedAccountInfo: StripeConnectedAccountInfo, + /** + * The StripeTerminalPrivateKey model constructor. + * @property {module:model/StripeTerminalPrivateKey} + */ + StripeTerminalPrivateKey: StripeTerminalPrivateKey, + /** + * The StuartSettings model constructor. + * @property {module:model/StuartSettings} + */ + StuartSettings: StuartSettings, + /** + * The StuartSettingsTransportPrices model constructor. + * @property {module:model/StuartSettingsTransportPrices} + */ + StuartSettingsTransportPrices: StuartSettingsTransportPrices, + /** + * The SupportedCountry model constructor. + * @property {module:model/SupportedCountry} + */ + SupportedCountry: SupportedCountry, + /** + * The Teammate model constructor. + * @property {module:model/Teammate} + */ + Teammate: Teammate, + /** + * The TeammateBase model constructor. + * @property {module:model/TeammateBase} + */ + TeammateBase: TeammateBase, + /** + * The TeammateDeletedEvent model constructor. + * @property {module:model/TeammateDeletedEvent} + */ + TeammateDeletedEvent: TeammateDeletedEvent, + /** + * The TeammateInviteAcceptedEvent model constructor. + * @property {module:model/TeammateInviteAcceptedEvent} + */ + TeammateInviteAcceptedEvent: TeammateInviteAcceptedEvent, + /** + * The TeammateInviteSentEvent model constructor. + * @property {module:model/TeammateInviteSentEvent} + */ + TeammateInviteSentEvent: TeammateInviteSentEvent, + /** + * The TeammateUpdatedEvent model constructor. + * @property {module:model/TeammateUpdatedEvent} + */ + TeammateUpdatedEvent: TeammateUpdatedEvent, + /** + * The UpdateDriverNotificationToken model constructor. + * @property {module:model/UpdateDriverNotificationToken} + */ + UpdateDriverNotificationToken: UpdateDriverNotificationToken, + /** + * The UpdateDriverProfileModel model constructor. + * @property {module:model/UpdateDriverProfileModel} + */ + UpdateDriverProfileModel: UpdateDriverProfileModel, + /** + * The UserAnsweredSignupQuestionsEvent model constructor. + * @property {module:model/UserAnsweredSignupQuestionsEvent} + */ + UserAnsweredSignupQuestionsEvent: UserAnsweredSignupQuestionsEvent, + /** + * The UserCreatedEvent model constructor. + * @property {module:model/UserCreatedEvent} + */ + UserCreatedEvent: UserCreatedEvent, + /** + * The UserDeletedEvent model constructor. + * @property {module:model/UserDeletedEvent} + */ + UserDeletedEvent: UserDeletedEvent, /** * The UserEventInfo model constructor. * @property {module:model/UserEventInfo} */ UserEventInfo: UserEventInfo, + /** + * The UserLoginEvent model constructor. + * @property {module:model/UserLoginEvent} + */ + UserLoginEvent: UserLoginEvent, + /** + * The UserPasswordCreatedEvent model constructor. + * @property {module:model/UserPasswordCreatedEvent} + */ + UserPasswordCreatedEvent: UserPasswordCreatedEvent, + /** + * The UserUpdatedEvent model constructor. + * @property {module:model/UserUpdatedEvent} + */ + UserUpdatedEvent: UserUpdatedEvent, /** * The ValidationErrorResult model constructor. * @property {module:model/ValidationErrorResult} @@ -506,11 +2171,46 @@ * @property {module:model/Voucher} */ Voucher: Voucher, + /** + * The VoucherBase model constructor. + * @property {module:model/VoucherBase} + */ + VoucherBase: VoucherBase, + /** + * The VoucherCreatedEvent model constructor. + * @property {module:model/VoucherCreatedEvent} + */ + VoucherCreatedEvent: VoucherCreatedEvent, + /** + * The VoucherDataPoint model constructor. + * @property {module:model/VoucherDataPoint} + */ + VoucherDataPoint: VoucherDataPoint, + /** + * The VoucherDeletedEvent model constructor. + * @property {module:model/VoucherDeletedEvent} + */ + VoucherDeletedEvent: VoucherDeletedEvent, /** * The VoucherSummary model constructor. * @property {module:model/VoucherSummary} */ VoucherSummary: VoucherSummary, + /** + * The VoucherUpdatedEvent model constructor. + * @property {module:model/VoucherUpdatedEvent} + */ + VoucherUpdatedEvent: VoucherUpdatedEvent, + /** + * The VoucherWithStats model constructor. + * @property {module:model/VoucherWithStats} + */ + VoucherWithStats: VoucherWithStats, + /** + * The WebhookEventSample model constructor. + * @property {module:model/WebhookEventSample} + */ + WebhookEventSample: WebhookEventSample, /** * The WebhookLog model constructor. * @property {module:model/WebhookLog} @@ -541,21 +2241,126 @@ * @property {module:model/WebhookSubscriptionUpdatedEvent} */ WebhookSubscriptionUpdatedEvent: WebhookSubscriptionUpdatedEvent, + /** + * The WebsiteImage model constructor. + * @property {module:model/WebsiteImage} + */ + WebsiteImage: WebsiteImage, + /** + * The WebsiteTestimonial model constructor. + * @property {module:model/WebsiteTestimonial} + */ + WebsiteTestimonial: WebsiteTestimonial, + /** + * The WebsiteTestimonialBase model constructor. + * @property {module:model/WebsiteTestimonialBase} + */ + WebsiteTestimonialBase: WebsiteTestimonialBase, + /** + * The WebsiteUpdatedEvent model constructor. + * @property {module:model/WebsiteUpdatedEvent} + */ + WebsiteUpdatedEvent: WebsiteUpdatedEvent, + /** + * The WebsiteVanityUrlUpdatedEvent model constructor. + * @property {module:model/WebsiteVanityUrlUpdatedEvent} + */ + WebsiteVanityUrlUpdatedEvent: WebsiteVanityUrlUpdatedEvent, + /** + * The AccountsApi service constructor. + * @property {module:api/AccountsApi} + */ + AccountsApi: AccountsApi, + /** + * The ApmApi service constructor. + * @property {module:api/ApmApi} + */ + ApmApi: ApmApi, + /** + * The AppsApi service constructor. + * @property {module:api/AppsApi} + */ + AppsApi: AppsApi, /** * The AuthorizationTokensApi service constructor. * @property {module:api/AuthorizationTokensApi} */ AuthorizationTokensApi: AuthorizationTokensApi, + /** + * The BankAccountApi service constructor. + * @property {module:api/BankAccountApi} + */ + BankAccountApi: BankAccountApi, + /** + * The CampaignsApi service constructor. + * @property {module:api/CampaignsApi} + */ + CampaignsApi: CampaignsApi, + /** + * The CardReadersApi service constructor. + * @property {module:api/CardReadersApi} + */ + CardReadersApi: CardReadersApi, + /** + * The ContentSecurityPolicyApi service constructor. + * @property {module:api/ContentSecurityPolicyApi} + */ + ContentSecurityPolicyApi: ContentSecurityPolicyApi, + /** + * The CustomersApi service constructor. + * @property {module:api/CustomersApi} + */ + CustomersApi: CustomersApi, + /** + * The DeliveryTrackingApi service constructor. + * @property {module:api/DeliveryTrackingApi} + */ + DeliveryTrackingApi: DeliveryTrackingApi, + /** + * The DeliveryZoneApi service constructor. + * @property {module:api/DeliveryZoneApi} + */ + DeliveryZoneApi: DeliveryZoneApi, + /** + * The DriversApi service constructor. + * @property {module:api/DriversApi} + */ + DriversApi: DriversApi, /** * The EventsApi service constructor. * @property {module:api/EventsApi} */ EventsApi: EventsApi, + /** + * The FilesApi service constructor. + * @property {module:api/FilesApi} + */ + FilesApi: FilesApi, + /** + * The HeartbeatApi service constructor. + * @property {module:api/HeartbeatApi} + */ + HeartbeatApi: HeartbeatApi, + /** + * The HomeApi service constructor. + * @property {module:api/HomeApi} + */ + HomeApi: HomeApi, /** * The HttpRequestResponseLogsApi service constructor. * @property {module:api/HttpRequestResponseLogsApi} */ HttpRequestResponseLogsApi: HttpRequestResponseLogsApi, + /** + * The HydraApi service constructor. + * @property {module:api/HydraApi} + */ + HydraApi: HydraApi, + /** + * The LightspeedApi service constructor. + * @property {module:api/LightspeedApi} + */ + LightspeedApi: LightspeedApi, /** * The MenuOptionSetItemsApi service constructor. * @property {module:api/MenuOptionSetItemsApi} @@ -591,11 +2396,56 @@ * @property {module:api/OrdersApi} */ OrdersApi: OrdersApi, + /** + * The PaymentsApi service constructor. + * @property {module:api/PaymentsApi} + */ + PaymentsApi: PaymentsApi, + /** + * The PayoutsApi service constructor. + * @property {module:api/PayoutsApi} + */ + PayoutsApi: PayoutsApi, + /** + * The ProcessingFeeConfigsApi service constructor. + * @property {module:api/ProcessingFeeConfigsApi} + */ + ProcessingFeeConfigsApi: ProcessingFeeConfigsApi, + /** + * The PushNotificationsApi service constructor. + * @property {module:api/PushNotificationsApi} + */ + PushNotificationsApi: PushNotificationsApi, + /** + * The StoreGroupsApi service constructor. + * @property {module:api/StoreGroupsApi} + */ + StoreGroupsApi: StoreGroupsApi, + /** + * The StoreOrderCapacityApi service constructor. + * @property {module:api/StoreOrderCapacityApi} + */ + StoreOrderCapacityApi: StoreOrderCapacityApi, /** * The StoresApi service constructor. * @property {module:api/StoresApi} */ StoresApi: StoresApi, + /** + * The StripeCustomConnectApi service constructor. + * @property {module:api/StripeCustomConnectApi} + */ + StripeCustomConnectApi: StripeCustomConnectApi, + /** + * The StuartApi service constructor. + * @property {module:api/StuartApi} + */ + StuartApi: StuartApi, + /** + * The TeammatesApi service constructor. + * @property {module:api/TeammatesApi} + */ + TeammatesApi: TeammatesApi, /** * The UsersApi service constructor. * @property {module:api/UsersApi} @@ -610,7 +2460,12 @@ * The WebhooksApi service constructor. * @property {module:api/WebhooksApi} */ - WebhooksApi: WebhooksApi + WebhooksApi: WebhooksApi, + /** + * The WebsiteApi service constructor. + * @property {module:api/WebsiteApi} + */ + WebsiteApi: WebsiteApi }; return exports; diff --git a/src/model/Accept.js b/src/model/Accept.js index 9b2602d4..38fd6c17 100644 --- a/src/model/Accept.js +++ b/src/model/Accept.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The Accept model module. * @module model/Accept @@ -46,9 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - }; /** @@ -61,10 +55,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('EstimatedMinutesForDelivery')) { - obj['EstimatedMinutesForDelivery'] = ApiClient.convertToType(data['EstimatedMinutesForDelivery'], 'Number'); - } + if (data.hasOwnProperty('EstimatedMinutesForDelivery')) + obj.EstimatedMinutesForDelivery = ApiClient.convertToType(data['EstimatedMinutesForDelivery'], 'Number'); } return obj; } @@ -73,11 +65,9 @@ * Estimated minutes for delivery * @member {Number} EstimatedMinutesForDelivery */ - exports.prototype['EstimatedMinutesForDelivery'] = undefined; - + exports.prototype.EstimatedMinutesForDelivery = undefined; return exports; -})); - +})); diff --git a/src/model/AccountDetail.js b/src/model/AccountDetail.js new file mode 100644 index 00000000..d65739d7 --- /dev/null +++ b/src/model/AccountDetail.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/SignupStep'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./SignupStep')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AccountDetail = factory(root.Flipdish.ApiClient, root.Flipdish.SignupStep); + } +}(this, function(ApiClient, SignupStep) { + 'use strict'; + + /** + * The AccountDetail model module. + * @module model/AccountDetail + * @version 1.0.0 + */ + + /** + * Constructs a new AccountDetail. + * Account details + * @alias module:model/AccountDetail + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Email + * @member {String} Email + */ + exports.prototype.Email = undefined; + + /** + * Signup steps + * @member {Array.} SignupSteps + */ + exports.prototype.SignupSteps = undefined; + + /** + * Is account email verified + * @member {Boolean} IsVerified + */ + exports.prototype.IsVerified = undefined; + + /** + * is the account a Self Server + * @member {Boolean} IsSelfServeUser + */ + exports.prototype.IsSelfServeUser = undefined; + + /** + * Accounts Id + * @member {Number} AccountId + */ + exports.prototype.AccountId = undefined; + + /** + * Name + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Language Id + * @member {String} Language + */ + exports.prototype.Language = undefined; + + /** + * Time Zone Info Id + * @member {String} TimeZoneInfoId + */ + exports.prototype.TimeZoneInfoId = undefined; + + /** + * Display the time in time zone local to the user + * @member {Boolean} DisplayTimesInUserLocalTimeZone + */ + exports.prototype.DisplayTimesInUserLocalTimeZone = undefined; + + /** + * Show hidden features + * @member {Boolean} ShowHiddenFeatures + */ + exports.prototype.ShowHiddenFeatures = undefined; + + + return exports; + +})); diff --git a/src/model/AccountDetailBase.js b/src/model/AccountDetailBase.js new file mode 100644 index 00000000..96e885b0 --- /dev/null +++ b/src/model/AccountDetailBase.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AccountDetailBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The AccountDetailBase model module. + * @module model/AccountDetailBase + * @version 1.0.0 + */ + + /** + * Constructs a new AccountDetailBase. + * Account Details Base + * @alias module:model/AccountDetailBase + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Name + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Language Id + * @member {String} Language + */ + exports.prototype.Language = undefined; + + /** + * Time Zone Info Id + * @member {String} TimeZoneInfoId + */ + exports.prototype.TimeZoneInfoId = undefined; + + /** + * Display the time in time zone local to the user + * @member {Boolean} DisplayTimesInUserLocalTimeZone + */ + exports.prototype.DisplayTimesInUserLocalTimeZone = undefined; + + /** + * Show hidden features + * @member {Boolean} ShowHiddenFeatures + */ + exports.prototype.ShowHiddenFeatures = undefined; + + + return exports; + +})); diff --git a/src/model/AccountFieldDefinition.js b/src/model/AccountFieldDefinition.js new file mode 100644 index 00000000..ea58baff --- /dev/null +++ b/src/model/AccountFieldDefinition.js @@ -0,0 +1,227 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AccountFieldDefinition = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The AccountFieldDefinition model module. + * @module model/AccountFieldDefinition + * @version 1.0.0 + */ + + /** + * Constructs a new AccountFieldDefinition. + * Represents the format of a bank account field + * @alias module:model/AccountFieldDefinition + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Key = undefined; + + /** + * Display name of the field + * @member {String} DisplayName + */ + exports.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 + */ + exports.prototype.Type = undefined; + + /** + * Minimum length of the field + * @member {Number} MinLength + */ + exports.prototype.MinLength = undefined; + + /** + * Maximum length of the field + * @member {Number} MaxLength + */ + exports.prototype.MaxLength = undefined; + + /** + * Is the field digits (numeric) only + * @member {Boolean} DigitsOnly + */ + exports.prototype.DigitsOnly = undefined; + + /** + * Regex for validating the field (if specified) + * @member {String} Regex + */ + exports.prototype.Regex = undefined; + + + + /** + * Allowed values for the Key property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.TypeEnum = { + /** + * value: "None" + * @const + */ + None: "None", + + /** + * value: "Iban" + * @const + */ + Iban: "Iban" + }; + + return exports; + +})); diff --git a/src/model/AccountFieldKeyValuePair.js b/src/model/AccountFieldKeyValuePair.js new file mode 100644 index 00000000..20851ad8 --- /dev/null +++ b/src/model/AccountFieldKeyValuePair.js @@ -0,0 +1,167 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AccountFieldKeyValuePair = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The AccountFieldKeyValuePair model module. + * @module model/AccountFieldKeyValuePair + * @version 1.0.0 + */ + + /** + * Constructs a new AccountFieldKeyValuePair. + * Represents one populated account field (its key and value) + * @alias module:model/AccountFieldKeyValuePair + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Key = undefined; + + /** + * The value of the field + * @member {String} Value + */ + exports.prototype.Value = undefined; + + + + /** + * Allowed values for the Key property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/AccountFieldsDefinitions.js b/src/model/AccountFieldsDefinitions.js new file mode 100644 index 00000000..5dffb143 --- /dev/null +++ b/src/model/AccountFieldsDefinitions.js @@ -0,0 +1,73 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AccountFieldDefinition'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AccountFieldDefinition')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AccountFieldsDefinitions = factory(root.Flipdish.ApiClient, root.Flipdish.AccountFieldDefinition); + } +}(this, function(ApiClient, AccountFieldDefinition) { + 'use strict'; + + /** + * The AccountFieldsDefinitions model module. + * @module model/AccountFieldsDefinitions + * @version 1.0.0 + */ + + /** + * Constructs a new AccountFieldsDefinitions. + * List of field definitions per country + * @alias module:model/AccountFieldsDefinitions + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('DefinitionsPerCountry')) + obj.DefinitionsPerCountry = ApiClient.convertToType(data['DefinitionsPerCountry'], {'String': [AccountFieldDefinition]}); + } + return obj; + } + + /** + * List of field definitions per country + * @member {Object.>} DefinitionsPerCountry + */ + exports.prototype.DefinitionsPerCountry = undefined; + + + return exports; + +})); diff --git a/src/model/AddItemDetails.js b/src/model/AddItemDetails.js new file mode 100644 index 00000000..265ea269 --- /dev/null +++ b/src/model/AddItemDetails.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AddItemDetails = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The AddItemDetails model module. + * @module model/AddItemDetails + * @version 1.0.0 + */ + + /** + * Constructs a new AddItemDetails. + * Add item details + * @alias module:model/AddItemDetails + * @class + */ + var exports = function() { + }; + + /** + * Constructs a AddItemDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddItemDetails} obj Optional instance to populate. + * @return {module:model/AddItemDetails} The populated AddItemDetails instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('PromotionalItemId')) + obj.PromotionalItemId = ApiClient.convertToType(data['PromotionalItemId'], 'Number'); + if (data.hasOwnProperty('PromotionalItemName')) + obj.PromotionalItemName = ApiClient.convertToType(data['PromotionalItemName'], 'String'); + } + return obj; + } + + /** + * Promotional Item Id + * @member {Number} PromotionalItemId + */ + exports.prototype.PromotionalItemId = undefined; + + /** + * Promotional Item Name + * @member {String} PromotionalItemName + */ + exports.prototype.PromotionalItemName = undefined; + + + return exports; + +})); diff --git a/src/model/AllMetadataResult.js b/src/model/AllMetadataResult.js new file mode 100644 index 00000000..89aabaeb --- /dev/null +++ b/src/model/AllMetadataResult.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Metadata'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Metadata')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AllMetadataResult = factory(root.Flipdish.ApiClient, root.Flipdish.Metadata); + } +}(this, function(ApiClient, Metadata) { + 'use strict'; + + /** + * The AllMetadataResult model module. + * @module model/AllMetadataResult + * @version 1.0.0 + */ + + /** + * Constructs a new AllMetadataResult. + * + * @alias module:model/AllMetadataResult + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.MenuItemMetadata = undefined; + + /** + * Menu item optionset item metadata + * @member {Array.} MenuItemOptionSetItemMetadata + */ + exports.prototype.MenuItemOptionSetItemMetadata = undefined; + + + return exports; + +})); diff --git a/src/model/AnalyticsClientEvent.js b/src/model/AnalyticsClientEvent.js new file mode 100644 index 00000000..e95d552f --- /dev/null +++ b/src/model/AnalyticsClientEvent.js @@ -0,0 +1,153 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AnalyticsClientEvent = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The AnalyticsClientEvent model module. + * @module model/AnalyticsClientEvent + * @version 1.0.0 + */ + + /** + * Constructs a new AnalyticsClientEvent. + * Client Analytics event + * @alias module:model/AnalyticsClientEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Type of the event + * @member {String} EventType + */ + exports.prototype.EventType = undefined; + + /** + * Type of the app the event is coming from + * @member {String} AppType + */ + exports.prototype.AppType = undefined; + + /** + * JSON Metadata + * @member {String} Metadata + */ + exports.prototype.Metadata = undefined; + + /** + * User Id + * @member {Number} UserId + */ + exports.prototype.UserId = undefined; + + /** + * Latitude of the event + * @member {Number} Latitude + */ + exports.prototype.Latitude = undefined; + + /** + * Longitude of the event + * @member {Number} Longitude + */ + exports.prototype.Longitude = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/ApmCurrencyDataPoint.js b/src/model/ApmCurrencyDataPoint.js new file mode 100644 index 00000000..a4ebd131 --- /dev/null +++ b/src/model/ApmCurrencyDataPoint.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CurrencyData'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./CurrencyData')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.ApmCurrencyDataPoint = factory(root.Flipdish.ApiClient, root.Flipdish.CurrencyData); + } +}(this, function(ApiClient, CurrencyData) { + 'use strict'; + + /** + * The ApmCurrencyDataPoint model module. + * @module model/ApmCurrencyDataPoint + * @version 1.0.0 + */ + + /** + * Constructs a new ApmCurrencyDataPoint. + * A single data point in timeline graphs related to APM + * @alias module:model/ApmCurrencyDataPoint + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.PeriodStart = undefined; + + /** + * The length in days that this data point covers + * @member {Number} PeriodLengthInDays + */ + exports.prototype.PeriodLengthInDays = undefined; + + /** + * The values of this data point + * @member {Array.} CurrencyData + */ + exports.prototype.CurrencyData = undefined; + + + return exports; + +})); diff --git a/src/model/ApmDataPoint.js b/src/model/ApmDataPoint.js new file mode 100644 index 00000000..dbd77012 --- /dev/null +++ b/src/model/ApmDataPoint.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.ApmDataPoint = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The ApmDataPoint model module. + * @module model/ApmDataPoint + * @version 1.0.0 + */ + + /** + * Constructs a new ApmDataPoint. + * A single data point in timeline graphs related to APM + * @alias module:model/ApmDataPoint + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.PeriodStart = undefined; + + /** + * The length in days that this data point covers + * @member {Number} PeriodLengthInDays + */ + exports.prototype.PeriodLengthInDays = undefined; + + /** + * The value of this data point + * @member {Number} Value + */ + exports.prototype.Value = undefined; + + + return exports; + +})); diff --git a/src/model/ApmHourlyDataPoint.js b/src/model/ApmHourlyDataPoint.js new file mode 100644 index 00000000..aa0b88e0 --- /dev/null +++ b/src/model/ApmHourlyDataPoint.js @@ -0,0 +1,139 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.ApmHourlyDataPoint = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The ApmHourlyDataPoint model module. + * @module model/ApmHourlyDataPoint + * @version 1.0.0 + */ + + /** + * Constructs a new ApmHourlyDataPoint. + * Provides an average value for a single hour of day of the week + * @alias module:model/ApmHourlyDataPoint + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Day = undefined; + + /** + * Hour in the day + * @member {Number} Hour + */ + exports.prototype.Hour = undefined; + + /** + * Total Value + * @member {Number} TotalValue + */ + exports.prototype.TotalValue = undefined; + + + + /** + * Allowed values for the Day property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/ApmStatistics.js b/src/model/ApmStatistics.js new file mode 100644 index 00000000..5e108be1 --- /dev/null +++ b/src/model/ApmStatistics.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StatisticsCurrencyDataPoint'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StatisticsCurrencyDataPoint')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.ApmStatistics = factory(root.Flipdish.ApiClient, root.Flipdish.StatisticsCurrencyDataPoint); + } +}(this, function(ApiClient, StatisticsCurrencyDataPoint) { + 'use strict'; + + /** + * The ApmStatistics model module. + * @module model/ApmStatistics + * @version 1.0.0 + */ + + /** + * Constructs a new ApmStatistics. + * APM Statistics + * @alias module:model/ApmStatistics + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.EstimatedMinutesSaved = undefined; + + /** + * Total amount of time that could be saved + * @member {Number} EstimatedMinutesCouldSaved + */ + exports.prototype.EstimatedMinutesCouldSaved = undefined; + + /** + * Currency based data + * @member {Array.} CurrencyData + */ + exports.prototype.CurrencyData = undefined; + + + return exports; + +})); diff --git a/src/model/ApmStatus.js b/src/model/ApmStatus.js new file mode 100644 index 00000000..11c5f56f --- /dev/null +++ b/src/model/ApmStatus.js @@ -0,0 +1,73 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.ApmStatus = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The ApmStatus model module. + * @module model/ApmStatus + * @version 1.0.0 + */ + + /** + * Constructs a new ApmStatus. + * APM status + * @alias module:model/ApmStatus + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('IsApmEnabled')) + obj.IsApmEnabled = ApiClient.convertToType(data['IsApmEnabled'], 'Boolean'); + } + return obj; + } + + /** + * Indicates if APM is active or otherwise + * @member {Boolean} IsApmEnabled + */ + exports.prototype.IsApmEnabled = undefined; + + + return exports; + +})); diff --git a/src/model/App.js b/src/model/App.js new file mode 100644 index 00000000..14ca04ff --- /dev/null +++ b/src/model/App.js @@ -0,0 +1,973 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Coordinates', 'model/Language'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Coordinates'), require('./Language')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.App = factory(root.Flipdish.ApiClient, root.Flipdish.Coordinates, root.Flipdish.Language); + } +}(this, function(ApiClient, Coordinates, Language) { + 'use strict'; + + /** + * The App model module. + * @module model/App + * @version 1.0.0 + */ + + /** + * Constructs a new App. + * App + * @alias module:model/App + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('HasAndroidApp')) + obj.HasAndroidApp = ApiClient.convertToType(data['HasAndroidApp'], 'Boolean'); + if (data.hasOwnProperty('CountryId')) + obj.CountryId = ApiClient.convertToType(data['CountryId'], 'String'); + 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('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('ApplicationCategory')) + obj.ApplicationCategory = ApiClient.convertToType(data['ApplicationCategory'], 'String'); + if (data.hasOwnProperty('IsPanaceaEnabled')) + obj.IsPanaceaEnabled = ApiClient.convertToType(data['IsPanaceaEnabled'], 'Boolean'); + if (data.hasOwnProperty('CookieConsentPromptEnabled')) + obj.CookieConsentPromptEnabled = ApiClient.convertToType(data['CookieConsentPromptEnabled'], 'Boolean'); + } + return obj; + } + + /** + * App Identifier + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + /** + * Has iOS app in Apple App Store. This is readonly. + * @member {Boolean} HasIosApp + */ + exports.prototype.HasIosApp = undefined; + + /** + * Has Android app in Google Play Store. This is readonly. + * @member {Boolean} HasAndroidApp + */ + exports.prototype.HasAndroidApp = 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 + */ + exports.prototype.CountryId = undefined; + + /** + * Application Logo. + * @member {String} LogoImageUrl + */ + exports.prototype.LogoImageUrl = undefined; + + /** + * Languages that have been selected to be available to customers. + * @member {Array.} Languages + */ + exports.prototype.Languages = undefined; + + /** + * Lists all languages that are supported by Flipdish. + * @member {Array.} AvailableAppLanguages + */ + exports.prototype.AvailableAppLanguages = undefined; + + /** + * App access level for the logged in user + * @member {module:model/App.AppAccessLevelEnum} AppAccessLevel + */ + exports.prototype.AppAccessLevel = undefined; + + /** + * Constitutes a list of available resources + * @member {Array.} AppResourceSet + */ + exports.prototype.AppResourceSet = undefined; + + /** + * Feature flags. These cannot be set by 3rd parties. + * @member {Array.} Features + */ + exports.prototype.Features = undefined; + + /** + * Center of the map coordinates. This is used to center the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. + * @member {module:model/Coordinates} MapCenter + */ + exports.prototype.MapCenter = undefined; + + /** + * North East(Top Right) Corner of the map coordinates. This is used to frame the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. + * @member {module:model/Coordinates} MapNorthEast + */ + exports.prototype.MapNorthEast = undefined; + + /** + * South West (Bottom Left) Corner of the map coordinates. This is used to frame the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. + * @member {module:model/Coordinates} MapSouthWest + */ + exports.prototype.MapSouthWest = undefined; + + /** + * App name. This is used in various places on the Apple App Store, Google Play Store, mobile apps and websites. + * @member {String} Name + */ + exports.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 + */ + exports.prototype.HostName = undefined; + + /** + * Main color of the web / Android / iOS applications + * @member {String} MainColor + */ + exports.prototype.MainColor = undefined; + + /** + * Application Category + * @member {module:model/App.ApplicationCategoryEnum} ApplicationCategory + */ + exports.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 aternative to using Panacea websites is to use a custom domain. + * @member {Boolean} IsPanaceaEnabled + */ + exports.prototype.IsPanaceaEnabled = undefined; + + /** + * Cookie Consent Prompt Enabled + * @member {Boolean} CookieConsentPromptEnabled + */ + exports.prototype.CookieConsentPromptEnabled = undefined; + + + + /** + * Allowed values for the AppAccessLevel property. + * @enum {String} + * @readonly + */ + exports.AppAccessLevelEnum = { + /** + * value: "None" + * @const + */ + None: "None", + + /** + * value: "Owner" + * @const + */ + Owner: "Owner", + + /** + * value: "StoreOwner" + * @const + */ + StoreOwner: "StoreOwner", + + /** + * value: "ManagedOwner" + * @const + */ + ManagedOwner: "ManagedOwner", + + /** + * value: "StoreManager" + * @const + */ + StoreManager: "StoreManager", + + /** + * value: "StoreStaff" + * @const + */ + StoreStaff: "StoreStaff", + + /** + * value: "StoreReadOnlyAccess" + * @const + */ + StoreReadOnlyAccess: "StoreReadOnlyAccess", + + /** + * value: "FinanceManger" + * @const + */ + FinanceManger: "FinanceManger" + }; + + + /** + * Allowed values for the AppResourceSet property. + * @enum {String} + * @readonly + */ + exports.AppResourceSetEnum = { + /** + * value: "ViewApp" + * @const + */ + ViewApp: "ViewApp", + + /** + * value: "CreateApp" + * @const + */ + CreateApp: "CreateApp", + + /** + * value: "UpdateApp" + * @const + */ + UpdateApp: "UpdateApp", + + /** + * value: "EditAppAssets" + * @const + */ + EditAppAssets: "EditAppAssets", + + /** + * 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: "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: "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: "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: "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: "UpdateVouchersExtendDisable" + * @const + */ + UpdateVouchersExtendDisable: "UpdateVouchersExtendDisable", + + /** + * 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: "ViewFeesConfigurations" + * @const + */ + ViewFeesConfigurations: "ViewFeesConfigurations", + + /** + * value: "EditFeesConfigurations" + * @const + */ + EditFeesConfigurations: "EditFeesConfigurations", + + /** + * value: "ViewHydraConfig" + * @const + */ + ViewHydraConfig: "ViewHydraConfig", + + /** + * value: "UpdateHydraConfigManage" + * @const + */ + UpdateHydraConfigManage: "UpdateHydraConfigManage", + + /** + * value: "InitiateBluetoothPairingMode" + * @const + */ + InitiateBluetoothPairingMode: "InitiateBluetoothPairingMode", + + /** + * value: "ViewCustomers" + * @const + */ + ViewCustomers: "ViewCustomers", + + /** + * value: "EditCustomers" + * @const + */ + EditCustomers: "EditCustomers", + + /** + * 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: "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: "ViewPayouts" + * @const + */ + ViewPayouts: "ViewPayouts" + }; + + + /** + * Allowed values for the ApplicationCategory property. + * @enum {String} + * @readonly + */ + exports.ApplicationCategoryEnum = { + /** + * value: "Restaurant" + * @const + */ + Restaurant: "Restaurant", + + /** + * value: "Cafe" + * @const + */ + Cafe: "Cafe", + + /** + * value: "Convenience" + * @const + */ + Convenience: "Convenience" + }; + + return exports; + +})); diff --git a/src/model/AppCompliance.js b/src/model/AppCompliance.js new file mode 100644 index 00000000..056edd19 --- /dev/null +++ b/src/model/AppCompliance.js @@ -0,0 +1,101 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AppCompliance = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The AppCompliance model module. + * @module model/AppCompliance + * @version 1.0.0 + */ + + /** + * Constructs a new AppCompliance. + * Application compliance model + * @alias module:model/AppCompliance + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('AppId')) + obj.AppId = ApiClient.convertToType(data['AppId'], 'String'); + if (data.hasOwnProperty('ComplianceType')) + obj.ComplianceType = ApiClient.convertToType(data['ComplianceType'], 'String'); + } + return obj; + } + + /** + * App ID + * @member {String} AppId + */ + exports.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 + */ + exports.prototype.ComplianceType = undefined; + + + + /** + * Allowed values for the ComplianceType property. + * @enum {String} + * @readonly + */ + exports.ComplianceTypeEnum = { + /** + * value: "Default" + * @const + */ + _Default: "Default", + + /** + * value: "GdprCompliance" + * @const + */ + GdprCompliance: "GdprCompliance" + }; + + return exports; + +})); diff --git a/src/model/AppConfigUpdateModel.js b/src/model/AppConfigUpdateModel.js new file mode 100644 index 00000000..b6f96494 --- /dev/null +++ b/src/model/AppConfigUpdateModel.js @@ -0,0 +1,139 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AppConfigUpdateModel = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The AppConfigUpdateModel model module. + * @module model/AppConfigUpdateModel + * @version 1.0.0 + */ + + /** + * Constructs a new AppConfigUpdateModel. + * Application configuration + * @alias module:model/AppConfigUpdateModel + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('ApplicationCategory')) + obj.ApplicationCategory = ApiClient.convertToType(data['ApplicationCategory'], 'String'); + if (data.hasOwnProperty('IsPanaceaEnabled')) + obj.IsPanaceaEnabled = ApiClient.convertToType(data['IsPanaceaEnabled'], 'Boolean'); + if (data.hasOwnProperty('CookieConsentPromptEnabled')) + obj.CookieConsentPromptEnabled = ApiClient.convertToType(data['CookieConsentPromptEnabled'], 'Boolean'); + } + 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 + */ + exports.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 + */ + exports.prototype.HostName = undefined; + + /** + * Main color of the web / Android / iOS applications + * @member {String} MainColor + */ + exports.prototype.MainColor = undefined; + + /** + * Application Category + * @member {module:model/AppConfigUpdateModel.ApplicationCategoryEnum} ApplicationCategory + */ + exports.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 aternative to using Panacea websites is to use a custom domain. + * @member {Boolean} IsPanaceaEnabled + */ + exports.prototype.IsPanaceaEnabled = undefined; + + /** + * Cookie Consent Prompt Enabled + * @member {Boolean} CookieConsentPromptEnabled + */ + exports.prototype.CookieConsentPromptEnabled = undefined; + + + + /** + * Allowed values for the ApplicationCategory property. + * @enum {String} + * @readonly + */ + exports.ApplicationCategoryEnum = { + /** + * value: "Restaurant" + * @const + */ + Restaurant: "Restaurant", + + /** + * value: "Cafe" + * @const + */ + Cafe: "Cafe", + + /** + * value: "Convenience" + * @const + */ + Convenience: "Convenience" + }; + + return exports; + +})); diff --git a/src/model/AppCreatedEvent.js b/src/model/AppCreatedEvent.js new file mode 100644 index 00000000..c1f33590 --- /dev/null +++ b/src/model/AppCreatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AppCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The AppCreatedEvent model module. + * @module model/AppCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new AppCreatedEvent. + * Application created event + * @alias module:model/AppCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * App Name + * @member {String} AppName + */ + exports.prototype.AppName = undefined; + + /** + * Country Id + * @member {String} CountryId + */ + exports.prototype.CountryId = undefined; + + /** + * User information + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/AppUpdatedEvent.js b/src/model/AppUpdatedEvent.js new file mode 100644 index 00000000..f4cbc92b --- /dev/null +++ b/src/model/AppUpdatedEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AppUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The AppUpdatedEvent model module. + * @module model/AppUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new AppUpdatedEvent. + * Application updated event + * @alias module:model/AppUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * A summary of changes made + * @member {String} Changes + */ + exports.prototype.Changes = undefined; + + /** + * App Name + * @member {String} AppName + */ + exports.prototype.AppName = undefined; + + /** + * Country Id + * @member {String} CountryId + */ + exports.prototype.CountryId = undefined; + + /** + * User information + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/AssignedBankAccount.js b/src/model/AssignedBankAccount.js new file mode 100644 index 00000000..43d57c53 --- /dev/null +++ b/src/model/AssignedBankAccount.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.AssignedBankAccount = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The AssignedBankAccount model module. + * @module model/AssignedBankAccount + * @version 1.0.0 + */ + + /** + * Constructs a new AssignedBankAccount. + * Assigned to Store Bank Account + * @alias module:model/AssignedBankAccount + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Id = undefined; + + /** + * Name of Bank Account + * @member {String} BankAccountName + */ + exports.prototype.BankAccountName = undefined; + + + return exports; + +})); diff --git a/src/model/BalanceDetails.js b/src/model/BalanceDetails.js new file mode 100644 index 00000000..36733d65 --- /dev/null +++ b/src/model/BalanceDetails.js @@ -0,0 +1,79 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.BalanceDetails = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The BalanceDetails model module. + * @module model/BalanceDetails + * @version 1.0.0 + */ + + /** + * Constructs a new BalanceDetails. + * Period opening and closing balance + * @alias module:model/BalanceDetails + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.OpeningBalance = undefined; + + /** + * @member {Number} ClosingBalance + */ + exports.prototype.ClosingBalance = undefined; + + + return exports; + +})); diff --git a/src/model/BankAccount.js b/src/model/BankAccount.js new file mode 100644 index 00000000..22dedc1f --- /dev/null +++ b/src/model/BankAccount.js @@ -0,0 +1,193 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AccountFieldKeyValuePair'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AccountFieldKeyValuePair')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.BankAccount = factory(root.Flipdish.ApiClient, root.Flipdish.AccountFieldKeyValuePair); + } +}(this, function(ApiClient, AccountFieldKeyValuePair) { + 'use strict'; + + /** + * The BankAccount model module. + * @module model/BankAccount + * @version 1.0.0 + */ + + /** + * Constructs a new BankAccount. + * BANK ACCOUNT + * @alias module:model/BankAccount + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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'); + } + return obj; + } + + /** + * Id of this account + * @member {Number} Id + */ + exports.prototype.Id = undefined; + + /** + * Name of this account + * @member {String} AccountName + */ + exports.prototype.AccountName = undefined; + + /** + * IBAN of this account + * @member {String} Iban + */ + exports.prototype.Iban = undefined; + + /** + * SWIFT of this bank account + * @member {String} Swift + */ + exports.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 + */ + exports.prototype.PopulatedAccountFields = undefined; + + /** + * Status of Account + * @member {module:model/BankAccount.AccountStateEnum} AccountState + */ + exports.prototype.AccountState = undefined; + + /** + * Store Names that are attached to this account + * @member {Array.} StoreNames + */ + exports.prototype.StoreNames = undefined; + + /** + * Address lf the bank + * @member {String} BankAddress + */ + exports.prototype.BankAddress = undefined; + + /** + * CountryCode of the Bank Account + * @member {String} BankCountryCode + */ + exports.prototype.BankCountryCode = undefined; + + /** + * Account Holders Address + * @member {String} AccountHolderAddress + */ + exports.prototype.AccountHolderAddress = undefined; + + /** + * Account Holders Country Code + * @member {String} AccountHolderCountryCode + */ + exports.prototype.AccountHolderCountryCode = undefined; + + /** + * Account Holders Vat Number + * @member {String} VatNumber + */ + exports.prototype.VatNumber = undefined; + + + + /** + * Allowed values for the AccountState property. + * @enum {String} + * @readonly + */ + exports.AccountStateEnum = { + /** + * value: "Unverified" + * @const + */ + Unverified: "Unverified", + + /** + * value: "AwatingVerification" + * @const + */ + AwatingVerification: "AwatingVerification", + + /** + * value: "Verified" + * @const + */ + Verified: "Verified", + + /** + * value: "Grandfathered" + * @const + */ + Grandfathered: "Grandfathered" + }; + + return exports; + +})); diff --git a/src/model/BankAccountCreate.js b/src/model/BankAccountCreate.js new file mode 100644 index 00000000..af02acc6 --- /dev/null +++ b/src/model/BankAccountCreate.js @@ -0,0 +1,903 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AccountFieldKeyValuePair'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AccountFieldKeyValuePair')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.BankAccountCreate = factory(root.Flipdish.ApiClient, root.Flipdish.AccountFieldKeyValuePair); + } +}(this, function(ApiClient, AccountFieldKeyValuePair) { + 'use strict'; + + /** + * The BankAccountCreate model module. + * @module model/BankAccountCreate + * @version 1.0.0 + */ + + /** + * Constructs a new BankAccountCreate. + * + * @alias module:model/BankAccountCreate + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.BankAddress = undefined; + + /** + * CountryCode of the Bank Account + * @member {String} BankCountryCode + */ + exports.prototype.BankCountryCode = undefined; + + /** + * Account Holders Address + * @member {String} AccountHolderAddress + */ + exports.prototype.AccountHolderAddress = undefined; + + /** + * Account Holders Country Code + * @member {String} AccountHolderCountryCode + */ + exports.prototype.AccountHolderCountryCode = undefined; + + /** + * Account Holders Vat Number + * @member {String} VatNumber + */ + exports.prototype.VatNumber = undefined; + + /** + * Currency of Account + * @member {module:model/BankAccountCreate.CurrencyCodeEnum} CurrencyCode + */ + exports.prototype.CurrencyCode = undefined; + + /** + * List of stores to attach to Account + * @member {Array.} StoreIds + */ + exports.prototype.StoreIds = undefined; + + /** + * Name of Bank + * @member {String} BankName + */ + exports.prototype.BankName = undefined; + + /** + * Name of this account + * @member {String} AccountName + */ + exports.prototype.AccountName = undefined; + + /** + * IBAN of this account + * @member {String} Iban + */ + exports.prototype.Iban = undefined; + + /** + * SWIFT of this bank account + * @member {String} Swift + */ + exports.prototype.Swift = undefined; + + /** + * National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + * @member {String} NationalClearingCode + */ + exports.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 + */ + exports.prototype.PopulatedAccountFields = undefined; + + /** + * Reason for Rejection + * @member {String} RejectionReason + */ + exports.prototype.RejectionReason = undefined; + + /** + * Business Type + * @member {module:model/BankAccountCreate.BusinessTypeEnum} BusinessType + */ + exports.prototype.BusinessType = undefined; + + + + /** + * Allowed values for the CurrencyCode property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.BusinessTypeEnum = { + /** + * value: "Individual" + * @const + */ + Individual: "Individual", + + /** + * value: "Company" + * @const + */ + Company: "Company", + + /** + * value: "NonProfit" + * @const + */ + NonProfit: "NonProfit", + + /** + * value: "GovernmentEntity" + * @const + */ + GovernmentEntity: "GovernmentEntity" + }; + + return exports; + +})); diff --git a/src/model/BankAccountCreatedEvent.js b/src/model/BankAccountCreatedEvent.js new file mode 100644 index 00000000..22dfd1c9 --- /dev/null +++ b/src/model/BankAccountCreatedEvent.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BankAccount'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./BankAccount')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.BankAccountCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.BankAccount); + } +}(this, function(ApiClient, BankAccount) { + 'use strict'; + + /** + * The BankAccountCreatedEvent model module. + * @module model/BankAccountCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new BankAccountCreatedEvent. + * + * @alias module:model/BankAccountCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('BankAccount')) + obj.BankAccount = BankAccount.constructFromObject(data['BankAccount']); + 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'); + } + return obj; + } + + /** + * The create bank account + * @member {module:model/BankAccount} BankAccount + */ + exports.prototype.BankAccount = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/BankAccountDeletedEvent.js b/src/model/BankAccountDeletedEvent.js new file mode 100644 index 00000000..b05e36c1 --- /dev/null +++ b/src/model/BankAccountDeletedEvent.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BankAccount'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./BankAccount')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.BankAccountDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.BankAccount); + } +}(this, function(ApiClient, BankAccount) { + 'use strict'; + + /** + * The BankAccountDeletedEvent model module. + * @module model/BankAccountDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new BankAccountDeletedEvent. + * + * @alias module:model/BankAccountDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('BankAccount')) + obj.BankAccount = BankAccount.constructFromObject(data['BankAccount']); + 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'); + } + return obj; + } + + /** + * The create bank account + * @member {module:model/BankAccount} BankAccount + */ + exports.prototype.BankAccount = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/BankAccountDetail.js b/src/model/BankAccountDetail.js new file mode 100644 index 00000000..9529fd91 --- /dev/null +++ b/src/model/BankAccountDetail.js @@ -0,0 +1,967 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AccountFieldKeyValuePair', 'model/StripeConnectedAccountInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AccountFieldKeyValuePair'), require('./StripeConnectedAccountInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.BankAccountDetail = factory(root.Flipdish.ApiClient, root.Flipdish.AccountFieldKeyValuePair, root.Flipdish.StripeConnectedAccountInfo); + } +}(this, function(ApiClient, AccountFieldKeyValuePair, StripeConnectedAccountInfo) { + 'use strict'; + + /** + * The BankAccountDetail model module. + * @module model/BankAccountDetail + * @version 1.0.0 + */ + + /** + * Constructs a new BankAccountDetail. + * + * @alias module:model/BankAccountDetail + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Id = undefined; + + /** + * Store Names that are attached to this account + * @member {Array.} StoreNames + */ + exports.prototype.StoreNames = undefined; + + /** + * Status of Account + * @member {module:model/BankAccountDetail.AccountStateEnum} AccountState + */ + exports.prototype.AccountState = undefined; + + /** + * Information about the Stripe connected account associated with this bank account (if any) + * @member {module:model/StripeConnectedAccountInfo} StripeConnectedAccountInfo + */ + exports.prototype.StripeConnectedAccountInfo = undefined; + + /** + * Address lf the bank + * @member {String} BankAddress + */ + exports.prototype.BankAddress = undefined; + + /** + * CountryCode of the Bank Account + * @member {String} BankCountryCode + */ + exports.prototype.BankCountryCode = undefined; + + /** + * Account Holders Address + * @member {String} AccountHolderAddress + */ + exports.prototype.AccountHolderAddress = undefined; + + /** + * Account Holders Country Code + * @member {String} AccountHolderCountryCode + */ + exports.prototype.AccountHolderCountryCode = undefined; + + /** + * Account Holders Vat Number + * @member {String} VatNumber + */ + exports.prototype.VatNumber = undefined; + + /** + * Currency of Account + * @member {module:model/BankAccountDetail.CurrencyCodeEnum} CurrencyCode + */ + exports.prototype.CurrencyCode = undefined; + + /** + * List of stores to attach to Account + * @member {Array.} StoreIds + */ + exports.prototype.StoreIds = undefined; + + /** + * Name of Bank + * @member {String} BankName + */ + exports.prototype.BankName = undefined; + + /** + * Name of this account + * @member {String} AccountName + */ + exports.prototype.AccountName = undefined; + + /** + * IBAN of this account + * @member {String} Iban + */ + exports.prototype.Iban = undefined; + + /** + * SWIFT of this bank account + * @member {String} Swift + */ + exports.prototype.Swift = undefined; + + /** + * National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + * @member {String} NationalClearingCode + */ + exports.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 + */ + exports.prototype.PopulatedAccountFields = undefined; + + /** + * Reason for Rejection + * @member {String} RejectionReason + */ + exports.prototype.RejectionReason = undefined; + + /** + * Business Type + * @member {module:model/BankAccountDetail.BusinessTypeEnum} BusinessType + */ + exports.prototype.BusinessType = undefined; + + + + /** + * Allowed values for the AccountState property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.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 + */ + exports.BusinessTypeEnum = { + /** + * value: "Individual" + * @const + */ + Individual: "Individual", + + /** + * value: "Company" + * @const + */ + Company: "Company", + + /** + * value: "NonProfit" + * @const + */ + NonProfit: "NonProfit", + + /** + * value: "GovernmentEntity" + * @const + */ + GovernmentEntity: "GovernmentEntity" + }; + + return exports; + +})); diff --git a/src/model/BankAccountDetailsUpdateRequest.js b/src/model/BankAccountDetailsUpdateRequest.js new file mode 100644 index 00000000..52c2f9a1 --- /dev/null +++ b/src/model/BankAccountDetailsUpdateRequest.js @@ -0,0 +1,193 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AccountFieldKeyValuePair'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AccountFieldKeyValuePair')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.BankAccountDetailsUpdateRequest = factory(root.Flipdish.ApiClient, root.Flipdish.AccountFieldKeyValuePair); + } +}(this, function(ApiClient, AccountFieldKeyValuePair) { + 'use strict'; + + /** + * The BankAccountDetailsUpdateRequest model module. + * @module model/BankAccountDetailsUpdateRequest + * @version 1.0.0 + */ + + /** + * Constructs a new BankAccountDetailsUpdateRequest. + * Represents a request to update bank account information details + * @alias module:model/BankAccountDetailsUpdateRequest + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.BankAddress = undefined; + + /** + * Address of the payee + * @member {String} AccountHolderAddress + */ + exports.prototype.AccountHolderAddress = undefined; + + /** + * Account Holders Vat Number + * @member {String} VatNumber + */ + exports.prototype.VatNumber = undefined; + + /** + * List of stores to attach to Account + * @member {Array.} StoreIds + */ + exports.prototype.StoreIds = undefined; + + /** + * Name of Bank + * @member {String} BankName + */ + exports.prototype.BankName = undefined; + + /** + * Name of this account + * @member {String} AccountName + */ + exports.prototype.AccountName = undefined; + + /** + * IBAN of this account + * @member {String} Iban + */ + exports.prototype.Iban = undefined; + + /** + * SWIFT of this bank account + * @member {String} Swift + */ + exports.prototype.Swift = undefined; + + /** + * National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + * @member {String} NationalClearingCode + */ + exports.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 + */ + exports.prototype.PopulatedAccountFields = undefined; + + /** + * Reason for Rejection + * @member {String} RejectionReason + */ + exports.prototype.RejectionReason = undefined; + + /** + * Business Type + * @member {module:model/BankAccountDetailsUpdateRequest.BusinessTypeEnum} BusinessType + */ + exports.prototype.BusinessType = undefined; + + + + /** + * Allowed values for the BusinessType property. + * @enum {String} + * @readonly + */ + exports.BusinessTypeEnum = { + /** + * value: "Individual" + * @const + */ + Individual: "Individual", + + /** + * value: "Company" + * @const + */ + Company: "Company", + + /** + * value: "NonProfit" + * @const + */ + NonProfit: "NonProfit", + + /** + * value: "GovernmentEntity" + * @const + */ + GovernmentEntity: "GovernmentEntity" + }; + + return exports; + +})); diff --git a/src/model/BankAccountSummary.js b/src/model/BankAccountSummary.js new file mode 100644 index 00000000..65775f40 --- /dev/null +++ b/src/model/BankAccountSummary.js @@ -0,0 +1,225 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AccountFieldKeyValuePair', 'model/StripeConnectedAccountInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AccountFieldKeyValuePair'), require('./StripeConnectedAccountInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.BankAccountSummary = factory(root.Flipdish.ApiClient, root.Flipdish.AccountFieldKeyValuePair, root.Flipdish.StripeConnectedAccountInfo); + } +}(this, function(ApiClient, AccountFieldKeyValuePair, StripeConnectedAccountInfo) { + 'use strict'; + + /** + * The BankAccountSummary model module. + * @module model/BankAccountSummary + * @version 1.0.0 + */ + + /** + * Constructs a new BankAccountSummary. + * + * @alias module:model/BankAccountSummary + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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 + */ + exports.prototype.Id = undefined; + + /** + * Store Names that are attached to this account + * @member {Array.} StoreNames + */ + exports.prototype.StoreNames = undefined; + + /** + * Status of Account + * @member {module:model/BankAccountSummary.AccountStateEnum} AccountState + */ + exports.prototype.AccountState = undefined; + + /** + * Currency of Account + * @member {String} CurrencyCode + */ + exports.prototype.CurrencyCode = undefined; + + /** + * Information about the Stripe connected account associated with this bank account (if any) + * @member {module:model/StripeConnectedAccountInfo} StripeConnectedAccountInfo + */ + exports.prototype.StripeConnectedAccountInfo = undefined; + + /** + * Name of this account + * @member {String} AccountName + */ + exports.prototype.AccountName = undefined; + + /** + * IBAN of this account + * @member {String} Iban + */ + exports.prototype.Iban = undefined; + + /** + * SWIFT of this bank account + * @member {String} Swift + */ + exports.prototype.Swift = undefined; + + /** + * National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + * @member {String} NationalClearingCode + */ + exports.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 + */ + exports.prototype.PopulatedAccountFields = undefined; + + /** + * Reason for Rejection + * @member {String} RejectionReason + */ + exports.prototype.RejectionReason = undefined; + + /** + * Business Type + * @member {module:model/BankAccountSummary.BusinessTypeEnum} BusinessType + */ + exports.prototype.BusinessType = undefined; + + + + /** + * Allowed values for the AccountState property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.BusinessTypeEnum = { + /** + * value: "Individual" + * @const + */ + Individual: "Individual", + + /** + * value: "Company" + * @const + */ + Company: "Company", + + /** + * value: "NonProfit" + * @const + */ + NonProfit: "NonProfit", + + /** + * value: "GovernmentEntity" + * @const + */ + GovernmentEntity: "GovernmentEntity" + }; + + return exports; + +})); diff --git a/src/model/BankAccountUpdatedEvent.js b/src/model/BankAccountUpdatedEvent.js new file mode 100644 index 00000000..4ecd6d60 --- /dev/null +++ b/src/model/BankAccountUpdatedEvent.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BankAccount'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./BankAccount')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.BankAccountUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.BankAccount); + } +}(this, function(ApiClient, BankAccount) { + 'use strict'; + + /** + * The BankAccountUpdatedEvent model module. + * @module model/BankAccountUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new BankAccountUpdatedEvent. + * + * @alias module:model/BankAccountUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('BankAccount')) + obj.BankAccount = BankAccount.constructFromObject(data['BankAccount']); + 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'); + } + return obj; + } + + /** + * The create bank account + * @member {module:model/BankAccount} BankAccount + */ + exports.prototype.BankAccount = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/BluetoothTerminalStatus.js b/src/model/BluetoothTerminalStatus.js new file mode 100644 index 00000000..275d5c0c --- /dev/null +++ b/src/model/BluetoothTerminalStatus.js @@ -0,0 +1,171 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.BluetoothTerminalStatus = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The BluetoothTerminalStatus model module. + * @module model/BluetoothTerminalStatus + * @version 1.0.0 + */ + + /** + * Constructs a new BluetoothTerminalStatus. + * Status of the bluetooth terminal + * @alias module:model/BluetoothTerminalStatus + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Serial Number + * @member {String} SerialNumber + */ + exports.prototype.SerialNumber = undefined; + + /** + * Software Version + * @member {String} SoftwareVersion + */ + exports.prototype.SoftwareVersion = undefined; + + /** + * Device Type + * @member {module:model/BluetoothTerminalStatus.DeviceTypeEnum} DeviceType + */ + exports.prototype.DeviceType = undefined; + + /** + * Device Status + * @member {module:model/BluetoothTerminalStatus.StatusEnum} Status + */ + exports.prototype.Status = undefined; + + /** + * Indication of the battery level from 0 to 1 + * @member {Number} BatteryLevel + */ + exports.prototype.BatteryLevel = undefined; + + /** + * Last time the status was updated + * @member {Date} UpdateTime + */ + exports.prototype.UpdateTime = undefined; + + + + /** + * Allowed values for the DeviceType property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + + /** + * Allowed values for the Status property. + * @enum {String} + * @readonly + */ + exports.StatusEnum = { + /** + * value: "Not_Connected" + * @const + */ + Not_Connected: "Not_Connected", + + /** + * value: "Connecting" + * @const + */ + Connecting: "Connecting", + + /** + * value: "Connected" + * @const + */ + Connected: "Connected" + }; + + return exports; + +})); diff --git a/src/model/BusinessHoursOverride.js b/src/model/BusinessHoursOverride.js new file mode 100644 index 00000000..52e5a2de --- /dev/null +++ b/src/model/BusinessHoursOverride.js @@ -0,0 +1,155 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.BusinessHoursOverride = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The BusinessHoursOverride model module. + * @module model/BusinessHoursOverride + * @version 1.0.0 + */ + + /** + * Constructs a new BusinessHoursOverride. + * + * @alias module:model/BusinessHoursOverride + * @class + * @param StartTime {Date} Date and time in ISO 8601 format. + * @param EndTime {Date} Date and time in ISO 8601 format. + */ + var exports = function(StartTime, EndTime) { + this.StartTime = StartTime; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.BusinessHoursOverrideId = undefined; + + /** + * Delivery or Pickup + * @member {module:model/BusinessHoursOverride.DeliveryTypeEnum} DeliveryType + */ + exports.prototype.DeliveryType = undefined; + + /** + * Date and time in ISO 8601 format. + * @member {Date} StartTime + */ + exports.prototype.StartTime = undefined; + + /** + * Date and time in ISO 8601 format. + * @member {Date} EndTime + */ + exports.prototype.EndTime = undefined; + + /** + * Open, Closed or ClosedAllowPreOrders + * @member {module:model/BusinessHoursOverride.TypeEnum} Type + */ + exports.prototype.Type = undefined; + + + + /** + * Allowed values for the DeliveryType property. + * @enum {String} + * @readonly + */ + exports.DeliveryTypeEnum = { + /** + * value: "Delivery" + * @const + */ + Delivery: "Delivery", + + /** + * value: "Pickup" + * @const + */ + Pickup: "Pickup" + }; + + + /** + * Allowed values for the Type property. + * @enum {String} + * @readonly + */ + exports.TypeEnum = { + /** + * value: "Open" + * @const + */ + Open: "Open", + + /** + * value: "Closed" + * @const + */ + Closed: "Closed", + + /** + * value: "ClosedAllowPreOrders" + * @const + */ + ClosedAllowPreOrders: "ClosedAllowPreOrders" + }; + + return exports; + +})); diff --git a/src/model/BusinessHoursOverrideBase.js b/src/model/BusinessHoursOverrideBase.js new file mode 100644 index 00000000..db361c65 --- /dev/null +++ b/src/model/BusinessHoursOverrideBase.js @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.BusinessHoursOverrideBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The BusinessHoursOverrideBase model module. + * @module model/BusinessHoursOverrideBase + * @version 1.0.0 + */ + + /** + * Constructs a new BusinessHoursOverrideBase. + * + * @alias module:model/BusinessHoursOverrideBase + * @class + * @param StartTime {Date} Date and time in ISO 8601 format. + * @param EndTime {Date} Date and time in ISO 8601 format. + */ + var exports = function(StartTime, EndTime) { + this.StartTime = StartTime; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.DeliveryType = undefined; + + /** + * Date and time in ISO 8601 format. + * @member {Date} StartTime + */ + exports.prototype.StartTime = undefined; + + /** + * Date and time in ISO 8601 format. + * @member {Date} EndTime + */ + exports.prototype.EndTime = undefined; + + /** + * Open, Closed or ClosedAllowPreOrders + * @member {module:model/BusinessHoursOverrideBase.TypeEnum} Type + */ + exports.prototype.Type = undefined; + + + + /** + * Allowed values for the DeliveryType property. + * @enum {String} + * @readonly + */ + exports.DeliveryTypeEnum = { + /** + * value: "Delivery" + * @const + */ + Delivery: "Delivery", + + /** + * value: "Pickup" + * @const + */ + Pickup: "Pickup" + }; + + + /** + * Allowed values for the Type property. + * @enum {String} + * @readonly + */ + exports.TypeEnum = { + /** + * value: "Open" + * @const + */ + Open: "Open", + + /** + * value: "Closed" + * @const + */ + Closed: "Closed", + + /** + * value: "ClosedAllowPreOrders" + * @const + */ + ClosedAllowPreOrders: "ClosedAllowPreOrders" + }; + + return exports; + +})); diff --git a/src/model/BusinessHoursPeriod.js b/src/model/BusinessHoursPeriod.js index fc577700..e49fcdab 100644 --- a/src/model/BusinessHoursPeriod.js +++ b/src/model/BusinessHoursPeriod.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Range) { 'use strict'; - - - /** * The BusinessHoursPeriod model module. * @module model/BusinessHoursPeriod @@ -46,16 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - }; /** @@ -68,75 +55,74 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'); - } - 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('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; } + /** + * Early + * @member {module:model/Range} Early + */ + exports.prototype.Early = undefined; + + /** + * Late + * @member {module:model/Range} Late + */ + exports.prototype.Late = undefined; + + /** + * Ranges + * @member {Array.} Ranges + */ + exports.prototype.Ranges = undefined; + /** * Day of week * @member {module:model/BusinessHoursPeriod.DayOfWeekEnum} DayOfWeek */ - exports.prototype['DayOfWeek'] = undefined; + exports.prototype.DayOfWeek = undefined; + /** * Start time * @member {String} StartTime */ - exports.prototype['StartTime'] = undefined; + exports.prototype.StartTime = undefined; + /** * Period * @member {String} Period */ - exports.prototype['Period'] = undefined; + exports.prototype.Period = undefined; + /** * Start time early * @member {String} StartTimeEarly */ - exports.prototype['StartTimeEarly'] = undefined; + exports.prototype.StartTimeEarly = undefined; + /** * Period early * @member {String} PeriodEarly */ - exports.prototype['PeriodEarly'] = undefined; - /** - * Early - * @member {module:model/Range} Early - */ - exports.prototype['Early'] = undefined; - /** - * Late - * @member {module:model/Range} Late - */ - exports.prototype['Late'] = undefined; - /** - * Ranges - * @member {Array.} Ranges - */ - exports.prototype['Ranges'] = undefined; + exports.prototype.PeriodEarly = undefined; + /** @@ -149,40 +135,45 @@ * value: "Sunday" * @const */ - "Sunday": "Sunday", + Sunday: "Sunday", + /** * value: "Monday" * @const */ - "Monday": "Monday", + Monday: "Monday", + /** * value: "Tuesday" * @const */ - "Tuesday": "Tuesday", + Tuesday: "Tuesday", + /** * value: "Wednesday" * @const */ - "Wednesday": "Wednesday", + Wednesday: "Wednesday", + /** * value: "Thursday" * @const */ - "Thursday": "Thursday", + Thursday: "Thursday", + /** * value: "Friday" * @const */ - "Friday": "Friday", + Friday: "Friday", + /** * value: "Saturday" * @const */ - "Saturday": "Saturday" }; - + Saturday: "Saturday" + }; return exports; -})); - +})); diff --git a/src/model/BusinessHoursPeriodBase.js b/src/model/BusinessHoursPeriodBase.js new file mode 100644 index 00000000..229b50b2 --- /dev/null +++ b/src/model/BusinessHoursPeriodBase.js @@ -0,0 +1,155 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.BusinessHoursPeriodBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The BusinessHoursPeriodBase model module. + * @module model/BusinessHoursPeriodBase + * @version 1.0.0 + */ + + /** + * Constructs a new BusinessHoursPeriodBase. + * Business hours period + * @alias module:model/BusinessHoursPeriodBase + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.DayOfWeek = undefined; + + /** + * Start time + * @member {String} StartTime + */ + exports.prototype.StartTime = undefined; + + /** + * Period + * @member {String} Period + */ + exports.prototype.Period = undefined; + + /** + * Start time early + * @member {String} StartTimeEarly + */ + exports.prototype.StartTimeEarly = undefined; + + /** + * Period early + * @member {String} PeriodEarly + */ + exports.prototype.PeriodEarly = undefined; + + + + /** + * Allowed values for the DayOfWeek property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/CampaignCreatedEvent.js b/src/model/CampaignCreatedEvent.js deleted file mode 100644 index 06699333..00000000 --- a/src/model/CampaignCreatedEvent.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Flipdish Open API v1.0 - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.Flipdish) { - root.Flipdish = {}; - } - root.Flipdish.CampaignCreatedEvent = factory(root.Flipdish.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The CampaignCreatedEvent model module. - * @module model/CampaignCreatedEvent - * @version 1.0.0 - */ - - /** - * Constructs a new CampaignCreatedEvent. - * - * @alias module:model/CampaignCreatedEvent - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - }; - - /** - * Constructs a CampaignCreatedEvent from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CampaignCreatedEvent} obj Optional instance to populate. - * @return {module:model/CampaignCreatedEvent} The populated CampaignCreatedEvent instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('EventName')) { - obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); - } - if (data.hasOwnProperty('CampaignId')) { - obj['CampaignId'] = ApiClient.convertToType(data['CampaignId'], 'Number'); - } - if (data.hasOwnProperty('VirtualRestaurantName')) { - obj['VirtualRestaurantName'] = ApiClient.convertToType(data['VirtualRestaurantName'], 'String'); - } - if (data.hasOwnProperty('VirtualRestaurantId')) { - obj['VirtualRestaurantId'] = ApiClient.convertToType(data['VirtualRestaurantId'], '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'); - } - } - return obj; - } - - /** - * The event name - * @member {String} EventName - */ - exports.prototype['EventName'] = undefined; - /** - * - * @member {Number} CampaignId - */ - exports.prototype['CampaignId'] = undefined; - /** - * - * @member {String} VirtualRestaurantName - */ - exports.prototype['VirtualRestaurantName'] = undefined; - /** - * - * @member {Number} VirtualRestaurantId - */ - exports.prototype['VirtualRestaurantId'] = undefined; - /** - * The identitfier of the event - * @member {String} FlipdishEventId - */ - exports.prototype['FlipdishEventId'] = undefined; - /** - * The time of creation of the event - * @member {Date} CreateTime - */ - exports.prototype['CreateTime'] = undefined; - /** - * Position - * @member {Number} Position - */ - exports.prototype['Position'] = undefined; - - - - return exports; -})); - - diff --git a/src/model/CampaignStatistics.js b/src/model/CampaignStatistics.js new file mode 100644 index 00000000..9f5b8637 --- /dev/null +++ b/src/model/CampaignStatistics.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CampaignStatistics = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The CampaignStatistics model module. + * @module model/CampaignStatistics + * @version 1.0.0 + */ + + /** + * Constructs a new CampaignStatistics. + * Campaign statistics + * @alias module:model/CampaignStatistics + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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; + } + + /** + * Number of issued vouchers + * @member {Number} VouchersIssued + */ + exports.prototype.VouchersIssued = undefined; + + /** + * Number of redeemed vouchers + * @member {Number} VouchersRedeemed + */ + exports.prototype.VouchersRedeemed = undefined; + + /** + * Conversion percentage of campaign (VouchersIssued / VouchersRedeemed) + * @member {Number} Conversion + */ + exports.prototype.Conversion = undefined; + + /** + * Sales generated by campaign (TotalAmount - FeeChargedToCustomer ie. the discounted sale value) + * @member {Number} SalesGenerated + */ + exports.prototype.SalesGenerated = undefined; + + /** + * Return of investment percentage of campaign (TotalAmount / DiscountAmount) + * @member {Number} ReturnOfInvestment + */ + exports.prototype.ReturnOfInvestment = undefined; + + + return exports; + +})); diff --git a/src/model/CertificateCreatedEvent.js b/src/model/CertificateCreatedEvent.js new file mode 100644 index 00000000..1604814e --- /dev/null +++ b/src/model/CertificateCreatedEvent.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CertificateCreatedEvent = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The CertificateCreatedEvent model module. + * @module model/CertificateCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new CertificateCreatedEvent. + * The DNS for the Hostname verified + * @alias module:model/CertificateCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Description + * @member {String} Hostname + */ + exports.prototype.Hostname = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/CertificateRenewedEvent.js b/src/model/CertificateRenewedEvent.js new file mode 100644 index 00000000..f09475d6 --- /dev/null +++ b/src/model/CertificateRenewedEvent.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CertificateRenewedEvent = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The CertificateRenewedEvent model module. + * @module model/CertificateRenewedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new CertificateRenewedEvent. + * The DNS for the Hostname verified + * @alias module:model/CertificateRenewedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Description + * @member {String} Hostname + */ + exports.prototype.Hostname = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/ChangePasswordModel.js b/src/model/ChangePasswordModel.js new file mode 100644 index 00000000..3dc6ae5b --- /dev/null +++ b/src/model/ChangePasswordModel.js @@ -0,0 +1,85 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.ChangePasswordModel = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The ChangePasswordModel model module. + * @module model/ChangePasswordModel + * @version 1.0.0 + */ + + /** + * Constructs a new ChangePasswordModel. + * Change password model + * @alias module:model/ChangePasswordModel + * @class + * @param OldPassword {String} Old password + * @param NewPassword {String} New password + */ + var exports = function(OldPassword, NewPassword) { + this.OldPassword = OldPassword; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.OldPassword = undefined; + + /** + * New password + * @member {String} NewPassword + */ + exports.prototype.NewPassword = undefined; + + + return exports; + +})); diff --git a/src/model/ChargebackDetails.js b/src/model/ChargebackDetails.js new file mode 100644 index 00000000..efee8306 --- /dev/null +++ b/src/model/ChargebackDetails.js @@ -0,0 +1,97 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.ChargebackDetails = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The ChargebackDetails model module. + * @module model/ChargebackDetails + * @version 1.0.0 + */ + + /** + * Constructs a new ChargebackDetails. + * Chargebacks breakdown + * @alias module:model/ChargebackDetails + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('ChargebackAmount')) + obj.ChargebackAmount = ApiClient.convertToType(data['ChargebackAmount'], '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 + */ + exports.prototype.ChargebackAmount = undefined; + + /** + * Chargeback refunded feeds + * @member {Number} ChargebackRefundedFees + */ + exports.prototype.ChargebackRefundedFees = undefined; + + /** + * Number of chargebacks + * @member {Number} ChargebacksCount + */ + exports.prototype.ChargebacksCount = undefined; + + /** + * Total amount + * @member {Number} TotalChargebackCost + */ + exports.prototype.TotalChargebackCost = undefined; + + + return exports; + +})); diff --git a/src/model/Coordinates.js b/src/model/Coordinates.js index 346b1b5d..e0b0f7d3 100644 --- a/src/model/Coordinates.js +++ b/src/model/Coordinates.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The Coordinates model module. * @module model/Coordinates @@ -46,10 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - }; /** @@ -62,13 +55,10 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('Latitude')) + obj.Latitude = ApiClient.convertToType(data['Latitude'], 'Number'); + if (data.hasOwnProperty('Longitude')) + obj.Longitude = ApiClient.convertToType(data['Longitude'], 'Number'); } return obj; } @@ -77,16 +67,15 @@ * Latitude * @member {Number} Latitude */ - exports.prototype['Latitude'] = undefined; + exports.prototype.Latitude = undefined; + /** * Longitude * @member {Number} Longitude */ - exports.prototype['Longitude'] = undefined; - + exports.prototype.Longitude = undefined; return exports; -})); - +})); diff --git a/src/model/CountryWithAccountFieldsDefinitions.js b/src/model/CountryWithAccountFieldsDefinitions.js new file mode 100644 index 00000000..0c2f483f --- /dev/null +++ b/src/model/CountryWithAccountFieldsDefinitions.js @@ -0,0 +1,97 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AccountFieldDefinition'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AccountFieldDefinition')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CountryWithAccountFieldsDefinitions = factory(root.Flipdish.ApiClient, root.Flipdish.AccountFieldDefinition); + } +}(this, function(ApiClient, AccountFieldDefinition) { + 'use strict'; + + /** + * The CountryWithAccountFieldsDefinitions model module. + * @module model/CountryWithAccountFieldsDefinitions + * @version 1.0.0 + */ + + /** + * Constructs a new CountryWithAccountFieldsDefinitions. + * List of field definitions per country + * @alias module:model/CountryWithAccountFieldsDefinitions + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.CountryCode = undefined; + + /** + * Display name of the country + * @member {String} DisplayName + */ + exports.prototype.DisplayName = undefined; + + /** + * Country support type (supported-by-stripe-cc, supported-by-flipdish,not-supported) + * @member {String} SupportType + */ + exports.prototype.SupportType = undefined; + + /** + * Bank Account field definitions + * @member {Array.} FieldDefinitions + */ + exports.prototype.FieldDefinitions = undefined; + + + return exports; + +})); diff --git a/src/model/CreateAccountModel.js b/src/model/CreateAccountModel.js new file mode 100644 index 00000000..a9d451ce --- /dev/null +++ b/src/model/CreateAccountModel.js @@ -0,0 +1,109 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CreateAccountModel = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The CreateAccountModel model module. + * @module model/CreateAccountModel + * @version 1.0.0 + */ + + /** + * Constructs a new CreateAccountModel. + * Create account model + * @alias module:model/CreateAccountModel + * @class + * @param Email {String} Email addres + * @param StoreName {String} Store name + */ + var exports = function(Email, StoreName) { + this.Email = Email; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Email addres + * @member {String} Email + */ + exports.prototype.Email = undefined; + + /** + * Store name + * @member {String} StoreName + */ + exports.prototype.StoreName = undefined; + + /** + * LanguageId + * @member {String} LanguageId + */ + exports.prototype.LanguageId = undefined; + + /** + * Referral ID + * @member {Number} Rid + */ + exports.prototype.Rid = undefined; + + /** + * Campaign ID + * @member {String} Cid + */ + exports.prototype.Cid = undefined; + + + return exports; + +})); diff --git a/src/model/CreateFullMenu.js b/src/model/CreateFullMenu.js new file mode 100644 index 00000000..5b738d1e --- /dev/null +++ b/src/model/CreateFullMenu.js @@ -0,0 +1,161 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CreateFullMenuSection', 'model/CreateMenuTaxRate'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./CreateFullMenuSection'), require('./CreateMenuTaxRate')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CreateFullMenu = factory(root.Flipdish.ApiClient, root.Flipdish.CreateFullMenuSection, root.Flipdish.CreateMenuTaxRate); + } +}(this, function(ApiClient, CreateFullMenuSection, CreateMenuTaxRate) { + 'use strict'; + + /** + * The CreateFullMenu model module. + * @module model/CreateFullMenu + * @version 1.0.0 + */ + + /** + * Constructs a new CreateFullMenu. + * Create menu object + * @alias module:model/CreateFullMenu + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Name of Menu, only shown in portal + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Image url + * @member {String} ImageUrl + */ + exports.prototype.ImageUrl = undefined; + + /** + * Menu sections (startes, main etc) + * @member {Array.} MenuSections + */ + exports.prototype.MenuSections = undefined; + + /** + * Menu tax rates + * @member {Array.} TaxRates + */ + exports.prototype.TaxRates = undefined; + + /** + * Display menu section link on UI + * @member {Boolean} DisplaySectionLinks + */ + exports.prototype.DisplaySectionLinks = undefined; + + /** + * Menu section behaviour + * @member {module:model/CreateFullMenu.MenuSectionBehaviourEnum} MenuSectionBehaviour + */ + exports.prototype.MenuSectionBehaviour = undefined; + + /** + * Tax type + * @member {module:model/CreateFullMenu.TaxTypeEnum} TaxType + */ + exports.prototype.TaxType = undefined; + + + + /** + * Allowed values for the MenuSectionBehaviour property. + * @enum {String} + * @readonly + */ + exports.MenuSectionBehaviourEnum = { + /** + * value: "ExpandSingle" + * @const + */ + ExpandSingle: "ExpandSingle", + + /** + * value: "ExpandMultiple" + * @const + */ + ExpandMultiple: "ExpandMultiple" + }; + + + /** + * Allowed values for the TaxType property. + * @enum {String} + * @readonly + */ + exports.TaxTypeEnum = { + /** + * value: "IncludedInBasePrice" + * @const + */ + IncludedInBasePrice: "IncludedInBasePrice", + + /** + * value: "ExcludedFromBasePrice" + * @const + */ + ExcludedFromBasePrice: "ExcludedFromBasePrice" + }; + + return exports; + +})); diff --git a/src/model/CreateFullMenuItemOptionSet.js b/src/model/CreateFullMenuItemOptionSet.js new file mode 100644 index 00000000..e6d5affa --- /dev/null +++ b/src/model/CreateFullMenuItemOptionSet.js @@ -0,0 +1,153 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CreateFullMenuItemOptionSetItem'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./CreateFullMenuItemOptionSetItem')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CreateFullMenuItemOptionSet = factory(root.Flipdish.ApiClient, root.Flipdish.CreateFullMenuItemOptionSetItem); + } +}(this, function(ApiClient, CreateFullMenuItemOptionSetItem) { + 'use strict'; + + /** + * The CreateFullMenuItemOptionSet model module. + * @module model/CreateFullMenuItemOptionSet + * @version 1.0.0 + */ + + /** + * Constructs a new CreateFullMenuItemOptionSet. + * Create menu item option set + * @alias module:model/CreateFullMenuItemOptionSet + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Option set items + * @member {Array.} MenuItemOptionSetItems + */ + exports.prototype.MenuItemOptionSetItems = undefined; + + /** + * Menu item option set name + * @member {String} Name + */ + exports.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 + */ + exports.prototype.IsMasterOptionSet = undefined; + + /** + * Display order. Displayed in ascending order. + * @member {Number} DisplayOrder + */ + exports.prototype.DisplayOrder = undefined; + + /** + * Minimum items must be selected + * @member {Number} MinSelectCount + */ + exports.prototype.MinSelectCount = undefined; + + /** + * Maximum number of items can be selected + * @member {Number} MaxSelectCount + */ + exports.prototype.MaxSelectCount = undefined; + + /** + * Small | Medium | Large Affects the layout of the menu. + * @member {module:model/CreateFullMenuItemOptionSet.CellLayoutTypeEnum} CellLayoutType + */ + exports.prototype.CellLayoutType = undefined; + + + + /** + * Allowed values for the CellLayoutType property. + * @enum {String} + * @readonly + */ + exports.CellLayoutTypeEnum = { + /** + * value: "Small" + * @const + */ + Small: "Small", + + /** + * value: "Medium" + * @const + */ + Medium: "Medium", + + /** + * value: "Large" + * @const + */ + Large: "Large", + + /** + * value: "HiddenImage" + * @const + */ + HiddenImage: "HiddenImage" + }; + + return exports; + +})); diff --git a/src/model/CreateFullMenuItemOptionSetItem.js b/src/model/CreateFullMenuItemOptionSetItem.js new file mode 100644 index 00000000..fd8cf83c --- /dev/null +++ b/src/model/CreateFullMenuItemOptionSetItem.js @@ -0,0 +1,161 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CreateMetadata'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./CreateMetadata')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CreateFullMenuItemOptionSetItem = factory(root.Flipdish.ApiClient, root.Flipdish.CreateMetadata); + } +}(this, function(ApiClient, CreateMetadata) { + 'use strict'; + + /** + * The CreateFullMenuItemOptionSetItem model module. + * @module model/CreateFullMenuItemOptionSetItem + * @version 1.0.0 + */ + + /** + * Constructs a new CreateFullMenuItemOptionSetItem. + * Create menu item option set item + * @alias module:model/CreateFullMenuItemOptionSetItem + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('Price')) + obj.Price = ApiClient.convertToType(data['Price'], '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; + } + + /** + * List of metadata + * @member {Array.} Metadata + */ + exports.prototype.Metadata = undefined; + + /** + * Tax rate name + * @member {String} TaxRateName + */ + exports.prototype.TaxRateName = undefined; + + /** + * Name + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Price + * @member {Number} Price + */ + exports.prototype.Price = undefined; + + /** + * Is available + * @member {Boolean} IsAvailable + */ + exports.prototype.IsAvailable = undefined; + + /** + * Display order. Displayed in ascending order. + * @member {Number} DisplayOrder + */ + exports.prototype.DisplayOrder = undefined; + + /** + * Small | Medium | Large Affects the layout of the menu. + * @member {module:model/CreateFullMenuItemOptionSetItem.CellLayoutTypeEnum} CellLayoutType + */ + exports.prototype.CellLayoutType = undefined; + + /** + * Image url + * @member {String} ImageUrl + */ + exports.prototype.ImageUrl = undefined; + + + + /** + * Allowed values for the CellLayoutType property. + * @enum {String} + * @readonly + */ + exports.CellLayoutTypeEnum = { + /** + * value: "Small" + * @const + */ + Small: "Small", + + /** + * value: "Medium" + * @const + */ + Medium: "Medium", + + /** + * value: "Large" + * @const + */ + Large: "Large", + + /** + * value: "HiddenImage" + * @const + */ + HiddenImage: "HiddenImage" + }; + + return exports; + +})); diff --git a/src/model/CreateFullMenuSection.js b/src/model/CreateFullMenuSection.js new file mode 100644 index 00000000..0a0548bc --- /dev/null +++ b/src/model/CreateFullMenuSection.js @@ -0,0 +1,129 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CreateFullMenuSectionItem', 'model/MenuSectionAvailability'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./CreateFullMenuSectionItem'), require('./MenuSectionAvailability')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CreateFullMenuSection = factory(root.Flipdish.ApiClient, root.Flipdish.CreateFullMenuSectionItem, root.Flipdish.MenuSectionAvailability); + } +}(this, function(ApiClient, CreateFullMenuSectionItem, MenuSectionAvailability) { + 'use strict'; + + /** + * The CreateFullMenuSection model module. + * @module model/CreateFullMenuSection + * @version 1.0.0 + */ + + /** + * Constructs a new CreateFullMenuSection. + * Create menu section + * @alias module:model/CreateFullMenuSection + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Menu section availability + * @member {module:model/MenuSectionAvailability} MenuSectionAvailability + */ + exports.prototype.MenuSectionAvailability = undefined; + + /** + * Menu items + * @member {Array.} MenuItems + */ + exports.prototype.MenuItems = undefined; + + /** + * Name + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Display order + * @member {Number} DisplayOrder + */ + exports.prototype.DisplayOrder = undefined; + + /** + * Is available + * @member {Boolean} IsAvailable + */ + exports.prototype.IsAvailable = undefined; + + /** + * Is hidden from customer. Perhaps when the item is out of stock. + * @member {Boolean} IsHiddenFromCustomers + */ + exports.prototype.IsHiddenFromCustomers = undefined; + + /** + * Image url + * @member {String} ImageUrl + */ + exports.prototype.ImageUrl = undefined; + + + return exports; + +})); diff --git a/src/model/CreateFullMenuSectionItem.js b/src/model/CreateFullMenuSectionItem.js new file mode 100644 index 00000000..af4bfc96 --- /dev/null +++ b/src/model/CreateFullMenuSectionItem.js @@ -0,0 +1,233 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CreateFullMenuItemOptionSet', 'model/CreateMetadata'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./CreateFullMenuItemOptionSet'), require('./CreateMetadata')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CreateFullMenuSectionItem = factory(root.Flipdish.ApiClient, root.Flipdish.CreateFullMenuItemOptionSet, root.Flipdish.CreateMetadata); + } +}(this, function(ApiClient, CreateFullMenuItemOptionSet, CreateMetadata) { + 'use strict'; + + /** + * The CreateFullMenuSectionItem model module. + * @module model/CreateFullMenuSectionItem + * @version 1.0.0 + */ + + /** + * Constructs a new CreateFullMenuSectionItem. + * Create menu section item + * @alias module:model/CreateFullMenuSectionItem + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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('ImageUrl')) + obj.ImageUrl = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + return obj; + } + + /** + * Menu item option sets + * @member {Array.} MenuItemOptionSets + */ + exports.prototype.MenuItemOptionSets = undefined; + + /** + * List of metadata + * @member {Array.} Metadata + */ + exports.prototype.Metadata = undefined; + + /** + * Tax rate name + * @member {String} TaxRateName + */ + exports.prototype.TaxRateName = undefined; + + /** + * Menu item name (like \"Korma\") + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Description (like \"A lovely dish from the east\") + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Spiciness rating + * @member {module:model/CreateFullMenuSectionItem.SpicinessRatingEnum} SpicinessRating + */ + exports.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 + */ + exports.prototype.Price = undefined; + + /** + * Display order + * @member {Number} DisplayOrder + */ + exports.prototype.DisplayOrder = undefined; + + /** + * To be set true if the item or an option of the item contains an alcoholic drink. + * @member {Boolean} Alcohol + */ + exports.prototype.Alcohol = undefined; + + /** + * True if we accept orders for this item still + * @member {Boolean} IsAvailable + */ + exports.prototype.IsAvailable = undefined; + + /** + * Small | Medium | Large Affects the layout of the menu. + * @member {module:model/CreateFullMenuSectionItem.CellLayoutTypeEnum} CellLayoutType + */ + exports.prototype.CellLayoutType = undefined; + + /** + * If true, then vouchers won't be applied for this item + * @member {Boolean} DisableVouchers + */ + exports.prototype.DisableVouchers = undefined; + + /** + * Image url + * @member {String} ImageUrl + */ + exports.prototype.ImageUrl = undefined; + + + + /** + * Allowed values for the SpicinessRating property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.CellLayoutTypeEnum = { + /** + * value: "Small" + * @const + */ + Small: "Small", + + /** + * value: "Medium" + * @const + */ + Medium: "Medium", + + /** + * value: "Large" + * @const + */ + Large: "Large", + + /** + * value: "HiddenImage" + * @const + */ + HiddenImage: "HiddenImage" + }; + + return exports; + +})); diff --git a/src/model/CreateMenuTaxRate.js b/src/model/CreateMenuTaxRate.js new file mode 100644 index 00000000..6cd1e8c3 --- /dev/null +++ b/src/model/CreateMenuTaxRate.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CreateMenuTaxRate = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The CreateMenuTaxRate model module. + * @module model/CreateMenuTaxRate + * @version 1.0.0 + */ + + /** + * Constructs a new CreateMenuTaxRate. + * Tax Rates Associated with a Menu + * @alias module:model/CreateMenuTaxRate + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Name = undefined; + + /** + * In Percentage + * @member {Number} Rate + */ + exports.prototype.Rate = undefined; + + + return exports; + +})); diff --git a/src/model/CreateMetadata.js b/src/model/CreateMetadata.js new file mode 100644 index 00000000..29b53df9 --- /dev/null +++ b/src/model/CreateMetadata.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CreateMetadata = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The CreateMetadata model module. + * @module model/CreateMetadata + * @version 1.0.0 + */ + + /** + * Constructs a new CreateMetadata. + * Create metadata + * @alias module:model/CreateMetadata + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.StoreId = undefined; + + /** + * Metadata key (Unique identifier) + * @member {String} Key + */ + exports.prototype.Key = undefined; + + /** + * Metadata value + * @member {String} Value + */ + exports.prototype.Value = undefined; + + + return exports; + +})); diff --git a/src/model/CreateTeammate.js b/src/model/CreateTeammate.js new file mode 100644 index 00000000..a674db73 --- /dev/null +++ b/src/model/CreateTeammate.js @@ -0,0 +1,153 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CreateTeammate = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The CreateTeammate model module. + * @module model/CreateTeammate + * @version 1.0.0 + */ + + /** + * Constructs a new CreateTeammate. + * + * @alias module:model/CreateTeammate + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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']); + } + return obj; + } + + /** + * Email address + * @member {String} Email + */ + exports.prototype.Email = undefined; + + /** + * App access level + * @member {module:model/CreateTeammate.AppAccessLevelEnum} AppAccessLevel + */ + exports.prototype.AppAccessLevel = undefined; + + /** + * The user has access to all stores for the app (including new stores that added later) + * @member {Boolean} HasAccessToAllStores + */ + exports.prototype.HasAccessToAllStores = undefined; + + /** + * Store IDs the user has access to (if HasAccessToAllStores is false) + * @member {Array.} StoreIds + */ + exports.prototype.StoreIds = undefined; + + + + /** + * Allowed values for the AppAccessLevel property. + * @enum {String} + * @readonly + */ + exports.AppAccessLevelEnum = { + /** + * value: "None" + * @const + */ + None: "None", + + /** + * value: "Owner" + * @const + */ + Owner: "Owner", + + /** + * value: "StoreOwner" + * @const + */ + StoreOwner: "StoreOwner", + + /** + * value: "ManagedOwner" + * @const + */ + ManagedOwner: "ManagedOwner", + + /** + * value: "StoreManager" + * @const + */ + StoreManager: "StoreManager", + + /** + * value: "StoreStaff" + * @const + */ + StoreStaff: "StoreStaff", + + /** + * value: "StoreReadOnlyAccess" + * @const + */ + StoreReadOnlyAccess: "StoreReadOnlyAccess", + + /** + * value: "FinanceManger" + * @const + */ + FinanceManger: "FinanceManger" + }; + + return exports; + +})); diff --git a/src/model/CreateVoucher.js b/src/model/CreateVoucher.js new file mode 100644 index 00000000..c9e889c2 --- /dev/null +++ b/src/model/CreateVoucher.js @@ -0,0 +1,273 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AddItemDetails', 'model/CreditNoteDetails', 'model/LumpDiscountDetails', 'model/PercentDiscountDetails'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AddItemDetails'), require('./CreditNoteDetails'), require('./LumpDiscountDetails'), require('./PercentDiscountDetails')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CreateVoucher = factory(root.Flipdish.ApiClient, root.Flipdish.AddItemDetails, root.Flipdish.CreditNoteDetails, root.Flipdish.LumpDiscountDetails, root.Flipdish.PercentDiscountDetails); + } +}(this, function(ApiClient, AddItemDetails, CreditNoteDetails, LumpDiscountDetails, PercentDiscountDetails) { + 'use strict'; + + /** + * The CreateVoucher model module. + * @module model/CreateVoucher + * @version 1.0.0 + */ + + /** + * Constructs a new CreateVoucher. + * Voucher + * @alias module:model/CreateVoucher + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('VoucherType')) + obj.VoucherType = ApiClient.convertToType(data['VoucherType'], 'String'); + if (data.hasOwnProperty('Stores')) + obj.Stores = ApiClient.convertToType(data['Stores'], ['Number']); + if (data.hasOwnProperty('AddItemDetails')) + obj.AddItemDetails = AddItemDetails.constructFromObject(data['AddItemDetails']); + 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('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('StartDate')) + obj.StartDate = ApiClient.convertToType(data['StartDate'], 'Date'); + if (data.hasOwnProperty('ExpiryDate')) + obj.ExpiryDate = ApiClient.convertToType(data['ExpiryDate'], 'Date'); + } + return obj; + } + + /** + * Voucher Type + * @member {module:model/CreateVoucher.VoucherTypeEnum} VoucherType + */ + exports.prototype.VoucherType = undefined; + + /** + * Stores that this voucher applies to + * @member {Array.} Stores + */ + exports.prototype.Stores = undefined; + + /** + * Add item details + * @member {module:model/AddItemDetails} AddItemDetails + */ + exports.prototype.AddItemDetails = undefined; + + /** + * Credit note details + * @member {module:model/CreditNoteDetails} CreditNoteDetails + */ + exports.prototype.CreditNoteDetails = undefined; + + /** + * Lump discount details + * @member {module:model/LumpDiscountDetails} LumpDiscountDetails + */ + exports.prototype.LumpDiscountDetails = undefined; + + /** + * Percent discount details + * @member {module:model/PercentDiscountDetails} PercentDiscountDetails + */ + exports.prototype.PercentDiscountDetails = undefined; + + /** + * Voucher Code + * @member {String} Code + */ + exports.prototype.Code = undefined; + + /** + * Voucher Description (Visible on printout) + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Valid on orders on or above + * @member {Number} ValidOnOrdersOver + */ + exports.prototype.ValidOnOrdersOver = undefined; + + /** + * Takes priority + * @member {Boolean} TakesPriority + */ + exports.prototype.TakesPriority = undefined; + + /** + * Is voucher enabled + * @member {Boolean} IsEnabled + */ + exports.prototype.IsEnabled = undefined; + + /** + * Is voucher automatically applied + * @member {Boolean} IsAutomaticallyApplied + */ + exports.prototype.IsAutomaticallyApplied = undefined; + + /** + * Include delivery fees + * @member {Boolean} IncludeDeliveryFee + */ + exports.prototype.IncludeDeliveryFee = undefined; + + /** + * Valid for delivery orders + * @member {Boolean} IsValidForDeliveryOrders + */ + exports.prototype.IsValidForDeliveryOrders = undefined; + + /** + * Valid for pickup orders + * @member {Boolean} IsValidForPickupOrders + */ + exports.prototype.IsValidForPickupOrders = undefined; + + /** + * Valid for orders payed online + * @member {Boolean} IsValidForOrdersPayedOnline + */ + exports.prototype.IsValidForOrdersPayedOnline = undefined; + + /** + * Valid for orders payed in cash + * @member {Boolean} IsValidForOrdersPayedByCash + */ + exports.prototype.IsValidForOrdersPayedByCash = undefined; + + /** + * Valid only on the first order by the customer + * @member {Boolean} IsValidForFirstOrderOnly + */ + exports.prototype.IsValidForFirstOrderOnly = undefined; + + /** + * Valid once per customer + * @member {Boolean} IsValidOncePerCustomer + */ + exports.prototype.IsValidOncePerCustomer = undefined; + + /** + * Valid only once, by any customer (once used cannot be used again by any other customer) + * @member {Boolean} IsValidOnlyOnce + */ + exports.prototype.IsValidOnlyOnce = undefined; + + /** + * Voucher Starts On (Time in UTC) + * @member {Date} StartDate + */ + exports.prototype.StartDate = undefined; + + /** + * Voucher Expires On (Time in UTC) + * @member {Date} ExpiryDate + */ + exports.prototype.ExpiryDate = undefined; + + + + /** + * Allowed values for the VoucherType property. + * @enum {String} + * @readonly + */ + exports.VoucherTypeEnum = { + /** + * value: "PercentageDiscount" + * @const + */ + PercentageDiscount: "PercentageDiscount", + + /** + * value: "LumpDiscount" + * @const + */ + LumpDiscount: "LumpDiscount", + + /** + * value: "AddItem" + * @const + */ + AddItem: "AddItem", + + /** + * value: "CreditNote" + * @const + */ + CreditNote: "CreditNote" + }; + + return exports; + +})); diff --git a/src/model/CreditNoteDetails.js b/src/model/CreditNoteDetails.js new file mode 100644 index 00000000..bca2ed0b --- /dev/null +++ b/src/model/CreditNoteDetails.js @@ -0,0 +1,73 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CreditNoteDetails = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The CreditNoteDetails model module. + * @module model/CreditNoteDetails + * @version 1.0.0 + */ + + /** + * Constructs a new CreditNoteDetails. + * Credit note details + * @alias module:model/CreditNoteDetails + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('RemainingCredit')) + obj.RemainingCredit = ApiClient.convertToType(data['RemainingCredit'], 'Number'); + } + return obj; + } + + /** + * Remaining credit + * @member {Number} RemainingCredit + */ + exports.prototype.RemainingCredit = undefined; + + + return exports; + +})); diff --git a/src/model/CspReport.js b/src/model/CspReport.js new file mode 100644 index 00000000..92aef1be --- /dev/null +++ b/src/model/CspReport.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CspReport = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The CspReport model module. + * @module model/CspReport + * @version 1.0.0 + */ + + /** + * Constructs a new CspReport. + * @alias module:model/CspReport + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Document_uri = undefined; + + /** + * @member {String} Referrer + */ + exports.prototype.Referrer = undefined; + + /** + * @member {String} Violated_directive + */ + exports.prototype.Violated_directive = undefined; + + /** + * @member {String} Effective_directive + */ + exports.prototype.Effective_directive = undefined; + + /** + * @member {String} Original_policy + */ + exports.prototype.Original_policy = undefined; + + /** + * @member {String} Blocked_uri + */ + exports.prototype.Blocked_uri = undefined; + + /** + * @member {Number} Status_code + */ + exports.prototype.Status_code = undefined; + + + return exports; + +})); diff --git a/src/model/CspReportRequest.js b/src/model/CspReportRequest.js new file mode 100644 index 00000000..8b9cf54d --- /dev/null +++ b/src/model/CspReportRequest.js @@ -0,0 +1,71 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CspReport'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./CspReport')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CspReportRequest = factory(root.Flipdish.ApiClient, root.Flipdish.CspReport); + } +}(this, function(ApiClient, CspReport) { + 'use strict'; + + /** + * The CspReportRequest model module. + * @module model/CspReportRequest + * @version 1.0.0 + */ + + /** + * Constructs a new CspReportRequest. + * @alias module:model/CspReportRequest + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Csp-report')) + obj.Csp_report = CspReport.constructFromObject(data['Csp-report']); + } + return obj; + } + + /** + * @member {module:model/CspReport} Csp_report + */ + exports.prototype.Csp_report = undefined; + + + return exports; + +})); diff --git a/src/model/CurrencyData.js b/src/model/CurrencyData.js new file mode 100644 index 00000000..9791eec8 --- /dev/null +++ b/src/model/CurrencyData.js @@ -0,0 +1,767 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CurrencyData = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The CurrencyData model module. + * @module model/CurrencyData + * @version 1.0.0 + */ + + /** + * Constructs a new CurrencyData. + * A single currency data piece, with no date + * @alias module:model/CurrencyData + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Currency = undefined; + + /** + * Value + * @member {Number} Value + */ + exports.prototype.Value = undefined; + + + + /** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/Customer.js b/src/model/Customer.js new file mode 100644 index 00000000..3c12e41b --- /dev/null +++ b/src/model/Customer.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.Customer = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The Customer model module. + * @module model/Customer + * @version 1.0.0 + */ + + /** + * Constructs a new Customer. + * Defines a customer + * @alias module:model/Customer + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('CustomerId')) + obj.CustomerId = ApiClient.convertToType(data['CustomerId'], 'Number'); + if (data.hasOwnProperty('RegistrationDate')) + obj.RegistrationDate = ApiClient.convertToType(data['RegistrationDate'], 'Date'); + 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 + */ + exports.prototype.CustomerId = undefined; + + /** + * Customer registration date + * @member {Date} RegistrationDate + */ + exports.prototype.RegistrationDate = undefined; + + /** + * Customer can place cash orders + * @member {Boolean} CashOrdersEnabled + */ + exports.prototype.CashOrdersEnabled = undefined; + + /** + * Customer can place card orders + * @member {Boolean} CardOrdersEnabled + */ + exports.prototype.CardOrdersEnabled = undefined; + + /** + * Customer can receive marketing + * @member {Boolean} MarketingEnabled + */ + exports.prototype.MarketingEnabled = undefined; + + + return exports; + +})); diff --git a/src/model/CustomerConsentUpdatedEvent.js b/src/model/CustomerConsentUpdatedEvent.js index b169b94a..76253362 100644 --- a/src/model/CustomerConsentUpdatedEvent.js +++ b/src/model/CustomerConsentUpdatedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, UserEventInfo) { 'use strict'; - - - /** * The CustomerConsentUpdatedEvent model module. * @module model/CustomerConsentUpdatedEvent @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,22 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('EventName')) { - obj['EventName'] = ApiClient.convertToType(data['EventName'], '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('EventName')) + obj.EventName = ApiClient.convertToType(data['EventName'], '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'); } return obj; } @@ -97,41 +79,51 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Enabled * @member {Boolean} Enabled */ - exports.prototype['Enabled'] = undefined; + exports.prototype.Enabled = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * Customer User info * @member {module:model/UserEventInfo} User */ - exports.prototype['User'] = undefined; + exports.prototype.User = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/CustomerCreatedEvent.js b/src/model/CustomerCreatedEvent.js index 7afc0c02..3016203d 100644 --- a/src/model/CustomerCreatedEvent.js +++ b/src/model/CustomerCreatedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, UserEventInfo) { 'use strict'; - - - /** * The CustomerCreatedEvent model module. * @module model/CustomerCreatedEvent @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,20 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('EventName')) { - obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); - } - if (data.hasOwnProperty('WhiteLabelId')) { - obj['WhiteLabelId'] = ApiClient.convertToType(data['WhiteLabelId'], '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('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'); } return obj; } @@ -97,41 +77,45 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; - /** - * White label identifier - * @member {Number} WhiteLabelId - */ - exports.prototype['WhiteLabelId'] = undefined; + exports.prototype.EventName = undefined; + /** * Customer User info * @member {module:model/UserEventInfo} User */ - exports.prototype['User'] = undefined; + exports.prototype.User = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/CustomerDeliveryTrackingOrder.js b/src/model/CustomerDeliveryTrackingOrder.js new file mode 100644 index 00000000..d627b517 --- /dev/null +++ b/src/model/CustomerDeliveryTrackingOrder.js @@ -0,0 +1,903 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CustomerDeliveryTrackingOrderLine'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./CustomerDeliveryTrackingOrderLine')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CustomerDeliveryTrackingOrder = factory(root.Flipdish.ApiClient, root.Flipdish.CustomerDeliveryTrackingOrderLine); + } +}(this, function(ApiClient, CustomerDeliveryTrackingOrderLine) { + 'use strict'; + + /** + * The CustomerDeliveryTrackingOrder model module. + * @module model/CustomerDeliveryTrackingOrder + * @version 1.0.0 + */ + + /** + * Constructs a new CustomerDeliveryTrackingOrder. + * Defines the order data required for customer driver tracking + * @alias module:model/CustomerDeliveryTrackingOrder + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.OrderId = undefined; + + /** + * Pretified address string in country format + * @member {String} Address + */ + exports.prototype.Address = undefined; + + /** + * Delivery Notes + * @member {String} DeliveryNotes + */ + exports.prototype.DeliveryNotes = undefined; + + /** + * Phone number of the store + * @member {String} StorePhoneNumber + */ + exports.prototype.StorePhoneNumber = undefined; + + /** + * App Icon of the store + * @member {String} AppIconUrl + */ + exports.prototype.AppIconUrl = undefined; + + /** + * Order Tracking Code + * @member {String} OrderTrackingCode + */ + exports.prototype.OrderTrackingCode = undefined; + + /** + * Payment method description i.e Cash/Card/iDeal/Paypal + * @member {String} PaymentMethodDescription + */ + exports.prototype.PaymentMethodDescription = undefined; + + /** + * Last 4 digits of the card if applicable otherwise null + * @member {String} LastFourDigits + */ + exports.prototype.LastFourDigits = undefined; + + /** + * Order lines of the order + * @member {Array.} OrderLines + */ + exports.prototype.OrderLines = undefined; + + /** + * Total amount for the order including tax + * @member {Number} TotalAmount + */ + exports.prototype.TotalAmount = undefined; + + /** + * Currency + * @member {module:model/CustomerDeliveryTrackingOrder.CurrencyEnum} Currency + */ + exports.prototype.Currency = undefined; + + /** + * Customer Location Latitude + * @member {Number} Latitude + */ + exports.prototype.Latitude = undefined; + + /** + * Customer Location Longitude + * @member {Number} Longitude + */ + exports.prototype.Longitude = undefined; + + /** + * Order placed time + * @member {Date} Placed + */ + exports.prototype.Placed = undefined; + + /** + * Order requested for + * @member {Date} RequestedFor + */ + exports.prototype.RequestedFor = undefined; + + /** + * Driver Id + * @member {Number} DriverId + */ + exports.prototype.DriverId = undefined; + + /** + * Driver Name + * @member {String} DriverName + */ + exports.prototype.DriverName = undefined; + + /** + * Driver Image + * @member {String} DriverImage + */ + exports.prototype.DriverImage = undefined; + + /** + * + * @member {Number} EstimatedMinutesForDelivery + */ + exports.prototype.EstimatedMinutesForDelivery = undefined; + + + + /** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/CustomerDeliveryTrackingOrderLine.js b/src/model/CustomerDeliveryTrackingOrderLine.js new file mode 100644 index 00000000..90bf3c83 --- /dev/null +++ b/src/model/CustomerDeliveryTrackingOrderLine.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CustomerDeliveryTrackingOrderLine = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The CustomerDeliveryTrackingOrderLine model module. + * @module model/CustomerDeliveryTrackingOrderLine + * @version 1.0.0 + */ + + /** + * Constructs a new CustomerDeliveryTrackingOrderLine. + * Defines an order line for driver tracking + * @alias module:model/CustomerDeliveryTrackingOrderLine + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.ItemName = undefined; + + /** + * Selected option names + * @member {Array.} SelectedOptions + */ + exports.prototype.SelectedOptions = undefined; + + + return exports; + +})); diff --git a/src/model/CustomerSummary.js b/src/model/CustomerSummary.js index 10de3d47..e6547723 100644 --- a/src/model/CustomerSummary.js +++ b/src/model/CustomerSummary.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The CustomerSummary model module. * @module model/CustomerSummary @@ -46,13 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - }; /** @@ -65,22 +55,16 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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'); } return obj; } @@ -89,31 +73,33 @@ * Customer identifier * @member {Number} Id */ - exports.prototype['Id'] = undefined; + exports.prototype.Id = undefined; + /** * Customer name * @member {String} Name */ - exports.prototype['Name'] = undefined; + exports.prototype.Name = undefined; + /** * Customer email address * @member {String} EmailAddress */ - exports.prototype['EmailAddress'] = undefined; + exports.prototype.EmailAddress = undefined; + /** * Customer local phone number * @member {String} PhoneNumberLocalFormat */ - exports.prototype['PhoneNumberLocalFormat'] = undefined; + exports.prototype.PhoneNumberLocalFormat = undefined; + /** * Customer phone number * @member {String} PhoneNumber */ - exports.prototype['PhoneNumber'] = undefined; - + exports.prototype.PhoneNumber = undefined; return exports; -})); - +})); diff --git a/src/model/CustomerUpdateModel.js b/src/model/CustomerUpdateModel.js new file mode 100644 index 00000000..b1888920 --- /dev/null +++ b/src/model/CustomerUpdateModel.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.CustomerUpdateModel = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The CustomerUpdateModel model module. + * @module model/CustomerUpdateModel + * @version 1.0.0 + */ + + /** + * Constructs a new CustomerUpdateModel. + * Defines a customer update model + * @alias module:model/CustomerUpdateModel + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.CashOrdersEnabled = undefined; + + /** + * Customer can place card orders + * @member {Boolean} CardOrdersEnabled + */ + exports.prototype.CardOrdersEnabled = undefined; + + /** + * Customer can receive marketing + * @member {Boolean} MarketingEnabled + */ + exports.prototype.MarketingEnabled = undefined; + + + return exports; + +})); diff --git a/src/model/CustomerUpdatedEvent.js b/src/model/CustomerUpdatedEvent.js index 2d5d9a31..85a15a80 100644 --- a/src/model/CustomerUpdatedEvent.js +++ b/src/model/CustomerUpdatedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, UserEventInfo) { 'use strict'; - - - /** * The CustomerUpdatedEvent model module. * @module model/CustomerUpdatedEvent @@ -46,14 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - }; /** @@ -66,25 +55,20 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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'); } return obj; } @@ -93,36 +77,45 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Customer User info * @member {module:model/UserEventInfo} User */ - exports.prototype['User'] = undefined; + exports.prototype.User = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/DeliveryLocation.js b/src/model/DeliveryLocation.js index 9d70e2c8..fb68e5b3 100644 --- a/src/model/DeliveryLocation.js +++ b/src/model/DeliveryLocation.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Coordinates) { 'use strict'; - - - /** * The DeliveryLocation model module. * @module model/DeliveryLocation @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,20 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'); - } + 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; } @@ -97,41 +77,45 @@ * Geo cordinate * @member {module:model/Coordinates} Coordinates */ - exports.prototype['Coordinates'] = undefined; + exports.prototype.Coordinates = undefined; + /** * Building * @member {String} Building */ - exports.prototype['Building'] = undefined; + exports.prototype.Building = undefined; + /** * Street * @member {String} Street */ - exports.prototype['Street'] = undefined; + exports.prototype.Street = undefined; + /** * Town * @member {String} Town */ - exports.prototype['Town'] = undefined; + exports.prototype.Town = undefined; + /** * Post code * @member {String} PostCode */ - exports.prototype['PostCode'] = undefined; + exports.prototype.PostCode = undefined; + /** * Delivery instructions * @member {String} DeliveryInstructions */ - exports.prototype['DeliveryInstructions'] = undefined; + exports.prototype.DeliveryInstructions = undefined; + /** * Formatted, pretty address string * @member {String} PrettyAddressString */ - exports.prototype['PrettyAddressString'] = undefined; - + exports.prototype.PrettyAddressString = undefined; return exports; -})); - +})); diff --git a/src/model/DeliveryZone.js b/src/model/DeliveryZone.js new file mode 100644 index 00000000..b5878b78 --- /dev/null +++ b/src/model/DeliveryZone.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DeliveryZone = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The DeliveryZone model module. + * @module model/DeliveryZone + * @version 1.0.0 + */ + + /** + * Constructs a new DeliveryZone. + * Delivery Zone + * @alias module:model/DeliveryZone + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Id')) + obj.Id = ApiClient.convertToType(data['Id'], '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 + */ + exports.prototype.Id = undefined; + + /** + * Delivery fee (will not be set below 0) + * @member {Number} DeliveryFee + */ + exports.prototype.DeliveryFee = undefined; + + /** + * Minimum delivery order amount (will not be set below 0) + * @member {Number} MinimumDeliveryOrderAmount + */ + exports.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 + */ + exports.prototype.WellKnownText = undefined; + + /** + * Is delivery zone enabled + * @member {Boolean} IsEnabled + */ + exports.prototype.IsEnabled = undefined; + + + return exports; + +})); diff --git a/src/model/DeliveryZoneBase.js b/src/model/DeliveryZoneBase.js new file mode 100644 index 00000000..106f836a --- /dev/null +++ b/src/model/DeliveryZoneBase.js @@ -0,0 +1,97 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DeliveryZoneBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The DeliveryZoneBase model module. + * @module model/DeliveryZoneBase + * @version 1.0.0 + */ + + /** + * Constructs a new DeliveryZoneBase. + * Delivery Zone Base + * @alias module:model/DeliveryZoneBase + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.DeliveryFee = undefined; + + /** + * Minimum delivery order amount (will not be set below 0) + * @member {Number} MinimumDeliveryOrderAmount + */ + exports.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 + */ + exports.prototype.WellKnownText = undefined; + + /** + * Is delivery zone enabled + * @member {Boolean} IsEnabled + */ + exports.prototype.IsEnabled = undefined; + + + return exports; + +})); diff --git a/src/model/DeliveryZoneCreatedEvent.js b/src/model/DeliveryZoneCreatedEvent.js new file mode 100644 index 00000000..6a5d8b60 --- /dev/null +++ b/src/model/DeliveryZoneCreatedEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/DeliveryZone', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./DeliveryZone'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DeliveryZoneCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.DeliveryZone, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, DeliveryZone, UserEventInfo) { + 'use strict'; + + /** + * The DeliveryZoneCreatedEvent model module. + * @module model/DeliveryZoneCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new DeliveryZoneCreatedEvent. + * Delivery Zone Created Event + * @alias module:model/DeliveryZoneCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which created delivery zone for this store + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Created Delivery Zone + * @member {module:model/DeliveryZone} DeliveryZone + */ + exports.prototype.DeliveryZone = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/DeliveryZoneDeletedEvent.js b/src/model/DeliveryZoneDeletedEvent.js new file mode 100644 index 00000000..6dc7c81b --- /dev/null +++ b/src/model/DeliveryZoneDeletedEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/DeliveryZone', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./DeliveryZone'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DeliveryZoneDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.DeliveryZone, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, DeliveryZone, UserEventInfo) { + 'use strict'; + + /** + * The DeliveryZoneDeletedEvent model module. + * @module model/DeliveryZoneDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new DeliveryZoneDeletedEvent. + * Delivery Zone Deleted Event + * @alias module:model/DeliveryZoneDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which deleted delivery zone for this store + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Deleted Delivery Zone + * @member {module:model/DeliveryZone} DeliveryZone + */ + exports.prototype.DeliveryZone = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/DeliveryZoneUpdatedEvent.js b/src/model/DeliveryZoneUpdatedEvent.js new file mode 100644 index 00000000..6426e74b --- /dev/null +++ b/src/model/DeliveryZoneUpdatedEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/DeliveryZone', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./DeliveryZone'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DeliveryZoneUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.DeliveryZone, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, DeliveryZone, UserEventInfo) { + 'use strict'; + + /** + * The DeliveryZoneUpdatedEvent model module. + * @module model/DeliveryZoneUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new DeliveryZoneUpdatedEvent. + * Delivery Zone Updated Event + * @alias module:model/DeliveryZoneUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which updated delivery zone for this store + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Updated Delivery Zone + * @member {module:model/DeliveryZone} DeliveryZone + */ + exports.prototype.DeliveryZone = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/DeviceSettings.js b/src/model/DeviceSettings.js new file mode 100644 index 00000000..7482eba7 --- /dev/null +++ b/src/model/DeviceSettings.js @@ -0,0 +1,95 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DeviceSettings = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The DeviceSettings model module. + * @module model/DeviceSettings + * @version 1.0.0 + */ + + /** + * Constructs a new DeviceSettings. + * Device settings for Hydra + * @alias module:model/DeviceSettings + * @class + * @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 + */ + var exports = function(Volume, FontSize, Brightness) { + this.Volume = Volume; + this.FontSize = FontSize; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Volume = undefined; + + /** + * Gets or sets the font size used on the device + * @member {Number} FontSize + */ + exports.prototype.FontSize = undefined; + + /** + * Gets or sets the display brightness on the device + * @member {Number} Brightness + */ + exports.prototype.Brightness = undefined; + + + return exports; + +})); diff --git a/src/model/DnsRecordInformation.js b/src/model/DnsRecordInformation.js new file mode 100644 index 00000000..5d5d48c2 --- /dev/null +++ b/src/model/DnsRecordInformation.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DnsRecordInformation = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The DnsRecordInformation model module. + * @module model/DnsRecordInformation + * @version 1.0.0 + */ + + /** + * Constructs a new DnsRecordInformation. + * Holds the information for the A and CNAME Records of a domain. + * @alias module:model/DnsRecordInformation + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.IsCNameReady = undefined; + + /** + * indicates whether the A record is ready or not. + * @member {Boolean} IsAReady + */ + exports.prototype.IsAReady = undefined; + + /** + * indicates whether the API CNAME record is ready or not. + * @member {Boolean} IsApiCNameReady + */ + exports.prototype.IsApiCNameReady = undefined; + + + return exports; + +})); diff --git a/src/model/DnsVerifiedEvent.js b/src/model/DnsVerifiedEvent.js new file mode 100644 index 00000000..6c0c8e44 --- /dev/null +++ b/src/model/DnsVerifiedEvent.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DnsVerifiedEvent = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The DnsVerifiedEvent model module. + * @module model/DnsVerifiedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new DnsVerifiedEvent. + * The DNS for the Hostname verified + * @alias module:model/DnsVerifiedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Description + * @member {String} Hostname + */ + exports.prototype.Hostname = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/Driver.js b/src/model/Driver.js new file mode 100644 index 00000000..60f20f1a --- /dev/null +++ b/src/model/Driver.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/DriverStore'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./DriverStore')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.Driver = factory(root.Flipdish.ApiClient, root.Flipdish.DriverStore); + } +}(this, function(ApiClient, DriverStore) { + 'use strict'; + + /** + * The Driver model module. + * @module model/Driver + * @version 1.0.0 + */ + + /** + * Constructs a new Driver. + * + * @alias module:model/Driver + * @class + */ + var exports = function() { + }; + + /** + * Constructs a Driver from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Driver} obj Optional instance to populate. + * @return {module:model/Driver} The populated Driver instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('Stores')) + obj.Stores = ApiClient.convertToType(data['Stores'], [DriverStore]); + if (data.hasOwnProperty('ProfileImageUrl')) + obj.ProfileImageUrl = ApiClient.convertToType(data['ProfileImageUrl'], 'String'); + if (data.hasOwnProperty('DriverKey')) + obj.DriverKey = ApiClient.convertToType(data['DriverKey'], 'String'); + } + return obj; + } + + /** + * User Id + * @member {Number} UserId + */ + exports.prototype.UserId = undefined; + + /** + * User Name + * @member {String} UserName + */ + exports.prototype.UserName = undefined; + + /** + * User Phone Number + * @member {String} UserPhoneNumber + */ + exports.prototype.UserPhoneNumber = undefined; + + /** + * + * @member {Array.} Stores + */ + exports.prototype.Stores = undefined; + + /** + * Profile image url + * @member {String} ProfileImageUrl + */ + exports.prototype.ProfileImageUrl = undefined; + + /** + * Driver Key + * @member {String} DriverKey + */ + exports.prototype.DriverKey = undefined; + + + return exports; + +})); diff --git a/src/model/DriverInvitation.js b/src/model/DriverInvitation.js new file mode 100644 index 00000000..6641bb97 --- /dev/null +++ b/src/model/DriverInvitation.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DriverInvitation = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The DriverInvitation model module. + * @module model/DriverInvitation + * @version 1.0.0 + */ + + /** + * Constructs a new DriverInvitation. + * + * @alias module:model/DriverInvitation + * @class + */ + var exports = function() { + }; + + /** + * Constructs a DriverInvitation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DriverInvitation} obj Optional instance to populate. + * @return {module:model/DriverInvitation} The populated DriverInvitation instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('PhoneNumber')) + obj.PhoneNumber = ApiClient.convertToType(data['PhoneNumber'], 'String'); + if (data.hasOwnProperty('Name')) + obj.Name = ApiClient.convertToType(data['Name'], 'String'); + if (data.hasOwnProperty('StoreIds')) + obj.StoreIds = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + return obj; + } + + /** + * Phone number + * @member {String} PhoneNumber + */ + exports.prototype.PhoneNumber = undefined; + + /** + * Driver's name + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Assigned store IDs + * @member {Array.} StoreIds + */ + exports.prototype.StoreIds = undefined; + + + return exports; + +})); diff --git a/src/model/DriverLoginModel.js b/src/model/DriverLoginModel.js new file mode 100644 index 00000000..75616eef --- /dev/null +++ b/src/model/DriverLoginModel.js @@ -0,0 +1,85 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DriverLoginModel = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The DriverLoginModel model module. + * @module model/DriverLoginModel + * @version 1.0.0 + */ + + /** + * Constructs a new DriverLoginModel. + * Driver Login model + * @alias module:model/DriverLoginModel + * @class + * @param PhoneNumber {String} Phone number + * @param Code {String} Code + */ + var exports = function(PhoneNumber, Code) { + this.PhoneNumber = PhoneNumber; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.PhoneNumber = undefined; + + /** + * Code + * @member {String} Code + */ + exports.prototype.Code = undefined; + + + return exports; + +})); diff --git a/src/model/DriverRequestLoginPinModel.js b/src/model/DriverRequestLoginPinModel.js new file mode 100644 index 00000000..2af683c2 --- /dev/null +++ b/src/model/DriverRequestLoginPinModel.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DriverRequestLoginPinModel = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The DriverRequestLoginPinModel model module. + * @module model/DriverRequestLoginPinModel + * @version 1.0.0 + */ + + /** + * Constructs a new DriverRequestLoginPinModel. + * Driver Request Login Pin model + * @alias module:model/DriverRequestLoginPinModel + * @class + * @param PhoneNumber {String} Email address + */ + var exports = function(PhoneNumber) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('PhoneNumber')) + obj.PhoneNumber = ApiClient.convertToType(data['PhoneNumber'], 'String'); + } + return obj; + } + + /** + * Email address + * @member {String} PhoneNumber + */ + exports.prototype.PhoneNumber = undefined; + + + return exports; + +})); diff --git a/src/model/DriverStore.js b/src/model/DriverStore.js new file mode 100644 index 00000000..8be9fcda --- /dev/null +++ b/src/model/DriverStore.js @@ -0,0 +1,109 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.DriverStore = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The DriverStore model module. + * @module model/DriverStore + * @version 1.0.0 + */ + + /** + * Constructs a new DriverStore. + * + * @alias module:model/DriverStore + * @class + */ + var exports = function() { + }; + + /** + * Constructs a DriverStore from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DriverStore} obj Optional instance to populate. + * @return {module:model/DriverStore} The populated DriverStore instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('Presence')) + obj.Presence = ApiClient.convertToType(data['Presence'], 'String'); + } + return obj; + } + + /** + * Store identifier + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store name + * @member {String} StoreName + */ + exports.prototype.StoreName = undefined; + + /** + * Presence + * @member {module:model/DriverStore.PresenceEnum} Presence + */ + exports.prototype.Presence = undefined; + + + + /** + * Allowed values for the Presence property. + * @enum {String} + * @readonly + */ + exports.PresenceEnum = { + /** + * value: "Offline" + * @const + */ + Offline: "Offline", + + /** + * value: "Online" + * @const + */ + Online: "Online" + }; + + return exports; + +})); diff --git a/src/model/EmvNotificationEvent.js b/src/model/EmvNotificationEvent.js new file mode 100644 index 00000000..5fad2fe8 --- /dev/null +++ b/src/model/EmvNotificationEvent.js @@ -0,0 +1,185 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Order'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Order')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.EmvNotificationEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Order); + } +}(this, function(ApiClient, Order) { + 'use strict'; + + /** + * The EmvNotificationEvent model module. + * @module model/EmvNotificationEvent + * @version 1.0.0 + */ + + /** + * Constructs a new EmvNotificationEvent. + * Order Terminal Notification + * @alias module:model/EmvNotificationEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Notification Sent + * @member {String} Notification + */ + exports.prototype.Notification = undefined; + + /** + * Order + * @member {module:model/Order} Order + */ + exports.prototype.Order = undefined; + + /** + * TerminalId + * @member {String} TerminalId + */ + exports.prototype.TerminalId = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Expirey Date + * @member {String} ExpDate + */ + exports.prototype.ExpDate = undefined; + + /** + * Card Type + * @member {String} CardType + */ + exports.prototype.CardType = undefined; + + /** + * Payment Method + * @member {String} PaymentMethod + */ + exports.prototype.PaymentMethod = undefined; + + /** + * Masked Account Number + * @member {String} AccountNumber + */ + exports.prototype.AccountNumber = undefined; + + /** + * Auth Code + * @member {String} AuthCode + */ + exports.prototype.AuthCode = undefined; + + /** + * Payment Provider Message + * @member {String} ProviderMessage + */ + exports.prototype.ProviderMessage = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/EmvTerminal.js b/src/model/EmvTerminal.js new file mode 100644 index 00000000..175d11d2 --- /dev/null +++ b/src/model/EmvTerminal.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.EmvTerminal = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The EmvTerminal model module. + * @module model/EmvTerminal + * @version 1.0.0 + */ + + /** + * Constructs a new EmvTerminal. + * EMV Payment Terminal + * @alias module:model/EmvTerminal + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.EmvTerminalId = undefined; + + /** + * External Identifier of Terminal + * @member {String} TerminalId + */ + exports.prototype.TerminalId = undefined; + + /** + * URL at which terminal can be accessed + * @member {String} Url + */ + exports.prototype.Url = undefined; + + /** + * TOKEN required to access terminal + * @member {String} Token + */ + exports.prototype.Token = undefined; + + /** + * Identifies us to Provider + * @member {String} SoftwareHouseId + */ + exports.prototype.SoftwareHouseId = undefined; + + /** + * Identifies installer of terminal + * @member {String} InstallerId + */ + exports.prototype.InstallerId = undefined; + + + return exports; + +})); diff --git a/src/model/EmvTerminalWithAssignments.js b/src/model/EmvTerminalWithAssignments.js new file mode 100644 index 00000000..634c99cc --- /dev/null +++ b/src/model/EmvTerminalWithAssignments.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.EmvTerminalWithAssignments = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The EmvTerminalWithAssignments model module. + * @module model/EmvTerminalWithAssignments + * @version 1.0.0 + */ + + /** + * Constructs a new EmvTerminalWithAssignments. + * EMV Payment Terminal + * @alias module:model/EmvTerminalWithAssignments + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.EmvTerminalId = undefined; + + /** + * External Identifier of the Terminal + * @member {String} TerminalId + */ + exports.prototype.TerminalId = undefined; + + /** + * true if the terminal is assigned to a hydra device (e.g. a kiosk) + * @member {Boolean} IsAssignedToHydraDevice + */ + exports.prototype.IsAssignedToHydraDevice = undefined; + + /** + * hydra device id (null if the terminal is not assigned to any hydra device) + * @member {Number} HydraConfigId + */ + exports.prototype.HydraConfigId = undefined; + + /** + * external hydra device id (null if the terminal is not assigned to any hydra device) + * @member {String} HydraDeviceId + */ + exports.prototype.HydraDeviceId = undefined; + + /** + * hydra device name (null if the terminal is not assigned to any hydra device) + * @member {String} HydraName + */ + exports.prototype.HydraName = undefined; + + + return exports; + +})); diff --git a/src/model/EventSearchResult.js b/src/model/EventSearchResult.js index cd80561e..39aecddd 100644 --- a/src/model/EventSearchResult.js +++ b/src/model/EventSearchResult.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,23 +16,20 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/CampaignCreatedEvent', 'model/CustomerConsentUpdatedEvent', 'model/CustomerCreatedEvent', 'model/CustomerUpdatedEvent', 'model/MenuCreatedEvent', 'model/MenuUpdatedEvent', 'model/OrderAcceptedEvent', 'model/OrderCreatedEvent', 'model/OrderRatingUpdatedEvent', 'model/OrderRefundedEvent', 'model/OrderRejectedEvent', 'model/OrderTipUpdatedEvent', 'model/StoreCreatedEvent', 'model/StoreDeletedEvent', 'model/StoreDeliveryZoneUpdatedEvent', 'model/StoreOpeningHoursUpdatedEvent', 'model/StoreUpdatedEvent', 'model/WebhookSubscriptionCreatedEvent', 'model/WebhookSubscriptionDeletedEvent', 'model/WebhookSubscriptionUpdatedEvent'], factory); + define(['ApiClient', 'model/AnalyticsClientEvent', 'model/AppCreatedEvent', 'model/AppUpdatedEvent', 'model/BankAccountCreatedEvent', 'model/BankAccountDeletedEvent', 'model/BankAccountUpdatedEvent', 'model/CertificateCreatedEvent', 'model/CertificateRenewedEvent', 'model/CustomerConsentUpdatedEvent', 'model/CustomerCreatedEvent', 'model/CustomerUpdatedEvent', 'model/DeliveryZoneCreatedEvent', 'model/DeliveryZoneDeletedEvent', 'model/DeliveryZoneUpdatedEvent', 'model/DnsVerifiedEvent', 'model/EmvNotificationEvent', 'model/HydraAssignedEvent', 'model/HydraConnectionStatusChangedEvent', 'model/HydraRequestResetEvent', 'model/HydraSettingChangedEvent', 'model/HydraStoreAssignedEvent', 'model/HydraStoreUnassignedEvent', 'model/HydraUnAssignedEvent', 'model/KioskBluetoothInstallUpdateInitiateEvent', 'model/KioskBluetoothPairingModeEvent', 'model/KioskBluetoothTerminalInitiateUpdateCheckEvent', 'model/KioskBluetoothTerminalUpdatedEvent', 'model/KioskBluetoothUnpairingModeEvent', 'model/LoyaltyCampaignCreatedEvent', 'model/LoyaltyCampaignDeletedEvent', 'model/LoyaltyCampaignUpdatedEvent', 'model/MenuCheckpointCreatedEvent', 'model/MenuCreatedEvent', 'model/MenuItemOptionSetCreatedEvent', 'model/MenuItemOptionSetDeletedEvent', 'model/MenuItemOptionSetItemCreatedEvent', 'model/MenuItemOptionSetItemDeletedEvent', 'model/MenuItemOptionSetItemUpdatedEvent', 'model/MenuItemOptionSetUpdatedEvent', 'model/MenuSectionCreatedEvent', 'model/MenuSectionDeletedEvent', 'model/MenuSectionItemCreatedEvent', 'model/MenuSectionItemDeletedEvent', 'model/MenuSectionItemUpdatedEvent', 'model/MenuSectionUpdatedEvent', 'model/MenuUpdatedEvent', 'model/MenuUploadedEvent', 'model/OrderAcceptedEvent', 'model/OrderCapacityConfigUpdatedEvent', 'model/OrderCreatedEvent', 'model/OrderCustomerTrackingCreatedEvent', 'model/OrderDeliveryTrackingStatusUpdatedEvent', 'model/OrderDispatchedEvent', 'model/OrderRatingUpdatedEvent', 'model/OrderRefundedEvent', 'model/OrderRejectedEvent', 'model/OrderTipUpdatedEvent', 'model/PhoneCallEndedEvent', 'model/PhoneCallStartedEvent', 'model/PrinterAssignedToStoreEvent', 'model/PrinterTurnedOffEvent', 'model/PrinterTurnedOnEvent', 'model/PrinterUnassignedFromStoreEvent', 'model/PushNotificationDeletedEvent', 'model/PushNotificationScheduledEvent', 'model/PushNotificationSentEvent', 'model/RetentionCampaignCreatedEvent', 'model/RetentionCampaignDeletedEvent', 'model/RetentionCampaignUpdatedEvent', 'model/SmsReceivedEvent', 'model/StoreAddressUpdatedEvent', 'model/StoreArchivedEvent', 'model/StoreBusinessHoursOverrideCreatedEvent', 'model/StoreBusinessHoursOverrideDeletedEvent', 'model/StoreCreatedEvent', 'model/StoreDeletedEvent', 'model/StoreGroupCreatedEvent', 'model/StoreGroupDeletedEvent', 'model/StoreGroupUpdatedEvent', 'model/StoreKioskSettingUpdatedEvent', 'model/StoreLogoCreatedEvent', 'model/StoreLogoDeletedEvent', 'model/StoreLogoUpdatedEvent', 'model/StoreMenuAssignedEvent', 'model/StoreOpeningHoursUpdatedEvent', 'model/StorePreOrderConfigUpdatedEvent', 'model/StorePublishedEvent', 'model/StoreUnarchivedEvent', 'model/StoreUnpublishedEvent', 'model/StoreUpdatedEvent', 'model/TeammateDeletedEvent', 'model/TeammateInviteAcceptedEvent', 'model/TeammateInviteSentEvent', 'model/TeammateUpdatedEvent', 'model/UserAnsweredSignupQuestionsEvent', 'model/UserCreatedEvent', 'model/UserDeletedEvent', 'model/UserLoginEvent', 'model/UserPasswordCreatedEvent', 'model/UserUpdatedEvent', 'model/VoucherCreatedEvent', 'model/VoucherDeletedEvent', 'model/VoucherUpdatedEvent', 'model/WebhookSubscriptionCreatedEvent', 'model/WebhookSubscriptionDeletedEvent', 'model/WebhookSubscriptionUpdatedEvent', 'model/WebsiteUpdatedEvent', 'model/WebsiteVanityUrlUpdatedEvent'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./CampaignCreatedEvent'), require('./CustomerConsentUpdatedEvent'), require('./CustomerCreatedEvent'), require('./CustomerUpdatedEvent'), require('./MenuCreatedEvent'), require('./MenuUpdatedEvent'), require('./OrderAcceptedEvent'), require('./OrderCreatedEvent'), require('./OrderRatingUpdatedEvent'), require('./OrderRefundedEvent'), require('./OrderRejectedEvent'), require('./OrderTipUpdatedEvent'), require('./StoreCreatedEvent'), require('./StoreDeletedEvent'), require('./StoreDeliveryZoneUpdatedEvent'), require('./StoreOpeningHoursUpdatedEvent'), require('./StoreUpdatedEvent'), require('./WebhookSubscriptionCreatedEvent'), require('./WebhookSubscriptionDeletedEvent'), require('./WebhookSubscriptionUpdatedEvent')); + module.exports = factory(require('../ApiClient'), require('./AnalyticsClientEvent'), require('./AppCreatedEvent'), require('./AppUpdatedEvent'), require('./BankAccountCreatedEvent'), require('./BankAccountDeletedEvent'), require('./BankAccountUpdatedEvent'), require('./CertificateCreatedEvent'), require('./CertificateRenewedEvent'), require('./CustomerConsentUpdatedEvent'), require('./CustomerCreatedEvent'), require('./CustomerUpdatedEvent'), require('./DeliveryZoneCreatedEvent'), require('./DeliveryZoneDeletedEvent'), require('./DeliveryZoneUpdatedEvent'), require('./DnsVerifiedEvent'), require('./EmvNotificationEvent'), require('./HydraAssignedEvent'), require('./HydraConnectionStatusChangedEvent'), require('./HydraRequestResetEvent'), require('./HydraSettingChangedEvent'), require('./HydraStoreAssignedEvent'), require('./HydraStoreUnassignedEvent'), require('./HydraUnAssignedEvent'), require('./KioskBluetoothInstallUpdateInitiateEvent'), require('./KioskBluetoothPairingModeEvent'), require('./KioskBluetoothTerminalInitiateUpdateCheckEvent'), require('./KioskBluetoothTerminalUpdatedEvent'), require('./KioskBluetoothUnpairingModeEvent'), require('./LoyaltyCampaignCreatedEvent'), require('./LoyaltyCampaignDeletedEvent'), require('./LoyaltyCampaignUpdatedEvent'), require('./MenuCheckpointCreatedEvent'), require('./MenuCreatedEvent'), require('./MenuItemOptionSetCreatedEvent'), require('./MenuItemOptionSetDeletedEvent'), require('./MenuItemOptionSetItemCreatedEvent'), require('./MenuItemOptionSetItemDeletedEvent'), require('./MenuItemOptionSetItemUpdatedEvent'), require('./MenuItemOptionSetUpdatedEvent'), require('./MenuSectionCreatedEvent'), require('./MenuSectionDeletedEvent'), require('./MenuSectionItemCreatedEvent'), require('./MenuSectionItemDeletedEvent'), require('./MenuSectionItemUpdatedEvent'), require('./MenuSectionUpdatedEvent'), require('./MenuUpdatedEvent'), require('./MenuUploadedEvent'), require('./OrderAcceptedEvent'), require('./OrderCapacityConfigUpdatedEvent'), require('./OrderCreatedEvent'), require('./OrderCustomerTrackingCreatedEvent'), require('./OrderDeliveryTrackingStatusUpdatedEvent'), require('./OrderDispatchedEvent'), require('./OrderRatingUpdatedEvent'), require('./OrderRefundedEvent'), require('./OrderRejectedEvent'), require('./OrderTipUpdatedEvent'), require('./PhoneCallEndedEvent'), require('./PhoneCallStartedEvent'), require('./PrinterAssignedToStoreEvent'), require('./PrinterTurnedOffEvent'), require('./PrinterTurnedOnEvent'), require('./PrinterUnassignedFromStoreEvent'), require('./PushNotificationDeletedEvent'), require('./PushNotificationScheduledEvent'), require('./PushNotificationSentEvent'), require('./RetentionCampaignCreatedEvent'), require('./RetentionCampaignDeletedEvent'), require('./RetentionCampaignUpdatedEvent'), require('./SmsReceivedEvent'), require('./StoreAddressUpdatedEvent'), require('./StoreArchivedEvent'), require('./StoreBusinessHoursOverrideCreatedEvent'), require('./StoreBusinessHoursOverrideDeletedEvent'), require('./StoreCreatedEvent'), require('./StoreDeletedEvent'), require('./StoreGroupCreatedEvent'), require('./StoreGroupDeletedEvent'), require('./StoreGroupUpdatedEvent'), require('./StoreKioskSettingUpdatedEvent'), require('./StoreLogoCreatedEvent'), require('./StoreLogoDeletedEvent'), require('./StoreLogoUpdatedEvent'), require('./StoreMenuAssignedEvent'), require('./StoreOpeningHoursUpdatedEvent'), require('./StorePreOrderConfigUpdatedEvent'), require('./StorePublishedEvent'), require('./StoreUnarchivedEvent'), require('./StoreUnpublishedEvent'), require('./StoreUpdatedEvent'), require('./TeammateDeletedEvent'), require('./TeammateInviteAcceptedEvent'), require('./TeammateInviteSentEvent'), require('./TeammateUpdatedEvent'), require('./UserAnsweredSignupQuestionsEvent'), require('./UserCreatedEvent'), require('./UserDeletedEvent'), require('./UserLoginEvent'), require('./UserPasswordCreatedEvent'), require('./UserUpdatedEvent'), require('./VoucherCreatedEvent'), require('./VoucherDeletedEvent'), require('./VoucherUpdatedEvent'), require('./WebhookSubscriptionCreatedEvent'), require('./WebhookSubscriptionDeletedEvent'), require('./WebhookSubscriptionUpdatedEvent'), require('./WebsiteUpdatedEvent'), require('./WebsiteVanityUrlUpdatedEvent')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.EventSearchResult = factory(root.Flipdish.ApiClient, root.Flipdish.CampaignCreatedEvent, root.Flipdish.CustomerConsentUpdatedEvent, root.Flipdish.CustomerCreatedEvent, root.Flipdish.CustomerUpdatedEvent, root.Flipdish.MenuCreatedEvent, root.Flipdish.MenuUpdatedEvent, root.Flipdish.OrderAcceptedEvent, root.Flipdish.OrderCreatedEvent, root.Flipdish.OrderRatingUpdatedEvent, root.Flipdish.OrderRefundedEvent, root.Flipdish.OrderRejectedEvent, root.Flipdish.OrderTipUpdatedEvent, root.Flipdish.StoreCreatedEvent, root.Flipdish.StoreDeletedEvent, root.Flipdish.StoreDeliveryZoneUpdatedEvent, root.Flipdish.StoreOpeningHoursUpdatedEvent, root.Flipdish.StoreUpdatedEvent, root.Flipdish.WebhookSubscriptionCreatedEvent, root.Flipdish.WebhookSubscriptionDeletedEvent, root.Flipdish.WebhookSubscriptionUpdatedEvent); + root.Flipdish.EventSearchResult = factory(root.Flipdish.ApiClient, root.Flipdish.AnalyticsClientEvent, root.Flipdish.AppCreatedEvent, root.Flipdish.AppUpdatedEvent, root.Flipdish.BankAccountCreatedEvent, root.Flipdish.BankAccountDeletedEvent, root.Flipdish.BankAccountUpdatedEvent, root.Flipdish.CertificateCreatedEvent, root.Flipdish.CertificateRenewedEvent, root.Flipdish.CustomerConsentUpdatedEvent, root.Flipdish.CustomerCreatedEvent, root.Flipdish.CustomerUpdatedEvent, root.Flipdish.DeliveryZoneCreatedEvent, root.Flipdish.DeliveryZoneDeletedEvent, root.Flipdish.DeliveryZoneUpdatedEvent, root.Flipdish.DnsVerifiedEvent, root.Flipdish.EmvNotificationEvent, root.Flipdish.HydraAssignedEvent, root.Flipdish.HydraConnectionStatusChangedEvent, root.Flipdish.HydraRequestResetEvent, root.Flipdish.HydraSettingChangedEvent, root.Flipdish.HydraStoreAssignedEvent, root.Flipdish.HydraStoreUnassignedEvent, root.Flipdish.HydraUnAssignedEvent, root.Flipdish.KioskBluetoothInstallUpdateInitiateEvent, root.Flipdish.KioskBluetoothPairingModeEvent, root.Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent, root.Flipdish.KioskBluetoothTerminalUpdatedEvent, root.Flipdish.KioskBluetoothUnpairingModeEvent, root.Flipdish.LoyaltyCampaignCreatedEvent, root.Flipdish.LoyaltyCampaignDeletedEvent, root.Flipdish.LoyaltyCampaignUpdatedEvent, root.Flipdish.MenuCheckpointCreatedEvent, root.Flipdish.MenuCreatedEvent, root.Flipdish.MenuItemOptionSetCreatedEvent, root.Flipdish.MenuItemOptionSetDeletedEvent, root.Flipdish.MenuItemOptionSetItemCreatedEvent, root.Flipdish.MenuItemOptionSetItemDeletedEvent, root.Flipdish.MenuItemOptionSetItemUpdatedEvent, root.Flipdish.MenuItemOptionSetUpdatedEvent, root.Flipdish.MenuSectionCreatedEvent, root.Flipdish.MenuSectionDeletedEvent, root.Flipdish.MenuSectionItemCreatedEvent, root.Flipdish.MenuSectionItemDeletedEvent, root.Flipdish.MenuSectionItemUpdatedEvent, root.Flipdish.MenuSectionUpdatedEvent, root.Flipdish.MenuUpdatedEvent, root.Flipdish.MenuUploadedEvent, root.Flipdish.OrderAcceptedEvent, root.Flipdish.OrderCapacityConfigUpdatedEvent, root.Flipdish.OrderCreatedEvent, root.Flipdish.OrderCustomerTrackingCreatedEvent, root.Flipdish.OrderDeliveryTrackingStatusUpdatedEvent, root.Flipdish.OrderDispatchedEvent, root.Flipdish.OrderRatingUpdatedEvent, root.Flipdish.OrderRefundedEvent, root.Flipdish.OrderRejectedEvent, root.Flipdish.OrderTipUpdatedEvent, root.Flipdish.PhoneCallEndedEvent, root.Flipdish.PhoneCallStartedEvent, root.Flipdish.PrinterAssignedToStoreEvent, root.Flipdish.PrinterTurnedOffEvent, root.Flipdish.PrinterTurnedOnEvent, root.Flipdish.PrinterUnassignedFromStoreEvent, root.Flipdish.PushNotificationDeletedEvent, root.Flipdish.PushNotificationScheduledEvent, root.Flipdish.PushNotificationSentEvent, root.Flipdish.RetentionCampaignCreatedEvent, root.Flipdish.RetentionCampaignDeletedEvent, root.Flipdish.RetentionCampaignUpdatedEvent, root.Flipdish.SmsReceivedEvent, root.Flipdish.StoreAddressUpdatedEvent, root.Flipdish.StoreArchivedEvent, root.Flipdish.StoreBusinessHoursOverrideCreatedEvent, root.Flipdish.StoreBusinessHoursOverrideDeletedEvent, root.Flipdish.StoreCreatedEvent, root.Flipdish.StoreDeletedEvent, root.Flipdish.StoreGroupCreatedEvent, root.Flipdish.StoreGroupDeletedEvent, root.Flipdish.StoreGroupUpdatedEvent, root.Flipdish.StoreKioskSettingUpdatedEvent, root.Flipdish.StoreLogoCreatedEvent, root.Flipdish.StoreLogoDeletedEvent, root.Flipdish.StoreLogoUpdatedEvent, root.Flipdish.StoreMenuAssignedEvent, root.Flipdish.StoreOpeningHoursUpdatedEvent, root.Flipdish.StorePreOrderConfigUpdatedEvent, root.Flipdish.StorePublishedEvent, root.Flipdish.StoreUnarchivedEvent, root.Flipdish.StoreUnpublishedEvent, root.Flipdish.StoreUpdatedEvent, root.Flipdish.TeammateDeletedEvent, root.Flipdish.TeammateInviteAcceptedEvent, root.Flipdish.TeammateInviteSentEvent, root.Flipdish.TeammateUpdatedEvent, root.Flipdish.UserAnsweredSignupQuestionsEvent, root.Flipdish.UserCreatedEvent, root.Flipdish.UserDeletedEvent, root.Flipdish.UserLoginEvent, root.Flipdish.UserPasswordCreatedEvent, root.Flipdish.UserUpdatedEvent, root.Flipdish.VoucherCreatedEvent, root.Flipdish.VoucherDeletedEvent, root.Flipdish.VoucherUpdatedEvent, root.Flipdish.WebhookSubscriptionCreatedEvent, root.Flipdish.WebhookSubscriptionDeletedEvent, root.Flipdish.WebhookSubscriptionUpdatedEvent, root.Flipdish.WebsiteUpdatedEvent, root.Flipdish.WebsiteVanityUrlUpdatedEvent); } -}(this, function(ApiClient, CampaignCreatedEvent, CustomerConsentUpdatedEvent, CustomerCreatedEvent, CustomerUpdatedEvent, MenuCreatedEvent, MenuUpdatedEvent, OrderAcceptedEvent, OrderCreatedEvent, OrderRatingUpdatedEvent, OrderRefundedEvent, OrderRejectedEvent, OrderTipUpdatedEvent, StoreCreatedEvent, StoreDeletedEvent, StoreDeliveryZoneUpdatedEvent, StoreOpeningHoursUpdatedEvent, StoreUpdatedEvent, WebhookSubscriptionCreatedEvent, WebhookSubscriptionDeletedEvent, WebhookSubscriptionUpdatedEvent) { +}(this, function(ApiClient, AnalyticsClientEvent, AppCreatedEvent, AppUpdatedEvent, BankAccountCreatedEvent, BankAccountDeletedEvent, BankAccountUpdatedEvent, CertificateCreatedEvent, CertificateRenewedEvent, CustomerConsentUpdatedEvent, CustomerCreatedEvent, CustomerUpdatedEvent, DeliveryZoneCreatedEvent, DeliveryZoneDeletedEvent, DeliveryZoneUpdatedEvent, DnsVerifiedEvent, EmvNotificationEvent, HydraAssignedEvent, HydraConnectionStatusChangedEvent, HydraRequestResetEvent, HydraSettingChangedEvent, HydraStoreAssignedEvent, HydraStoreUnassignedEvent, HydraUnAssignedEvent, KioskBluetoothInstallUpdateInitiateEvent, KioskBluetoothPairingModeEvent, KioskBluetoothTerminalInitiateUpdateCheckEvent, KioskBluetoothTerminalUpdatedEvent, KioskBluetoothUnpairingModeEvent, LoyaltyCampaignCreatedEvent, LoyaltyCampaignDeletedEvent, LoyaltyCampaignUpdatedEvent, MenuCheckpointCreatedEvent, MenuCreatedEvent, MenuItemOptionSetCreatedEvent, MenuItemOptionSetDeletedEvent, MenuItemOptionSetItemCreatedEvent, MenuItemOptionSetItemDeletedEvent, MenuItemOptionSetItemUpdatedEvent, MenuItemOptionSetUpdatedEvent, MenuSectionCreatedEvent, MenuSectionDeletedEvent, MenuSectionItemCreatedEvent, MenuSectionItemDeletedEvent, MenuSectionItemUpdatedEvent, MenuSectionUpdatedEvent, MenuUpdatedEvent, MenuUploadedEvent, OrderAcceptedEvent, OrderCapacityConfigUpdatedEvent, OrderCreatedEvent, OrderCustomerTrackingCreatedEvent, OrderDeliveryTrackingStatusUpdatedEvent, OrderDispatchedEvent, OrderRatingUpdatedEvent, OrderRefundedEvent, OrderRejectedEvent, OrderTipUpdatedEvent, PhoneCallEndedEvent, PhoneCallStartedEvent, PrinterAssignedToStoreEvent, PrinterTurnedOffEvent, PrinterTurnedOnEvent, PrinterUnassignedFromStoreEvent, PushNotificationDeletedEvent, PushNotificationScheduledEvent, PushNotificationSentEvent, RetentionCampaignCreatedEvent, RetentionCampaignDeletedEvent, RetentionCampaignUpdatedEvent, SmsReceivedEvent, StoreAddressUpdatedEvent, StoreArchivedEvent, StoreBusinessHoursOverrideCreatedEvent, StoreBusinessHoursOverrideDeletedEvent, StoreCreatedEvent, StoreDeletedEvent, StoreGroupCreatedEvent, StoreGroupDeletedEvent, StoreGroupUpdatedEvent, StoreKioskSettingUpdatedEvent, StoreLogoCreatedEvent, StoreLogoDeletedEvent, StoreLogoUpdatedEvent, StoreMenuAssignedEvent, StoreOpeningHoursUpdatedEvent, StorePreOrderConfigUpdatedEvent, StorePublishedEvent, StoreUnarchivedEvent, StoreUnpublishedEvent, StoreUpdatedEvent, TeammateDeletedEvent, TeammateInviteAcceptedEvent, TeammateInviteSentEvent, TeammateUpdatedEvent, UserAnsweredSignupQuestionsEvent, UserCreatedEvent, UserDeletedEvent, UserLoginEvent, UserPasswordCreatedEvent, UserUpdatedEvent, VoucherCreatedEvent, VoucherDeletedEvent, VoucherUpdatedEvent, WebhookSubscriptionCreatedEvent, WebhookSubscriptionDeletedEvent, WebhookSubscriptionUpdatedEvent, WebsiteUpdatedEvent, WebsiteVanityUrlUpdatedEvent) { 'use strict'; - - - /** * The EventSearchResult model module. * @module model/EventSearchResult @@ -46,28 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - - - - - - - - - - - - - }; /** @@ -80,175 +55,875 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('OrderAcceptedEvent')) { - obj['OrderAcceptedEvent'] = ApiClient.convertToType(data['OrderAcceptedEvent'], [OrderAcceptedEvent]); - } - 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('StoreCreatedEvent')) { - obj['StoreCreatedEvent'] = ApiClient.convertToType(data['StoreCreatedEvent'], [StoreCreatedEvent]); - } - if (data.hasOwnProperty('StoreDeletedEvent')) { - obj['StoreDeletedEvent'] = ApiClient.convertToType(data['StoreDeletedEvent'], [StoreDeletedEvent]); - } - if (data.hasOwnProperty('StoreDeliveryZoneUpdatedEvent')) { - obj['StoreDeliveryZoneUpdatedEvent'] = ApiClient.convertToType(data['StoreDeliveryZoneUpdatedEvent'], [StoreDeliveryZoneUpdatedEvent]); - } - if (data.hasOwnProperty('StoreOpeningHoursUpdatedEvent')) { - obj['StoreOpeningHoursUpdatedEvent'] = ApiClient.convertToType(data['StoreOpeningHoursUpdatedEvent'], [StoreOpeningHoursUpdatedEvent]); - } - if (data.hasOwnProperty('StoreUpdatedEvent')) { - obj['StoreUpdatedEvent'] = ApiClient.convertToType(data['StoreUpdatedEvent'], [StoreUpdatedEvent]); - } - if (data.hasOwnProperty('MenuCreatedEvent')) { - obj['MenuCreatedEvent'] = ApiClient.convertToType(data['MenuCreatedEvent'], [MenuCreatedEvent]); - } - if (data.hasOwnProperty('MenuUpdatedEvent')) { - obj['MenuUpdatedEvent'] = ApiClient.convertToType(data['MenuUpdatedEvent'], [MenuUpdatedEvent]); - } - 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('CampaignCreatedEvent')) { - obj['CampaignCreatedEvent'] = ApiClient.convertToType(data['CampaignCreatedEvent'], [CampaignCreatedEvent]); - } - 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('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('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('MenuUpdatedEvent')) + obj.MenuUpdatedEvent = ApiClient.convertToType(data['MenuUpdatedEvent'], [MenuUpdatedEvent]); + if (data.hasOwnProperty('MenuUploadedEvent')) + obj.MenuUploadedEvent = ApiClient.convertToType(data['MenuUploadedEvent'], [MenuUploadedEvent]); + 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('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('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('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('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('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]); } return obj; } + /** + * App Created Event + * @member {Array.} AppCreatedEvent + */ + exports.prototype.AppCreatedEvent = undefined; + + /** + * App Updated Event + * @member {Array.} AppUpdatedEvent + */ + exports.prototype.AppUpdatedEvent = undefined; + + /** + * Client Analytics events + * @member {Array.} AnalyticsClientEvent + */ + exports.prototype.AnalyticsClientEvent = undefined; + /** * Order accepted events * @member {Array.} OrderAcceptedEvent */ - exports.prototype['OrderAcceptedEvent'] = undefined; + exports.prototype.OrderAcceptedEvent = undefined; + + /** + * Order dispatched events + * @member {Array.} OrderDispatchedEvent + */ + exports.prototype.OrderDispatchedEvent = undefined; + + /** + * Order delivery tracking created events + * @member {Array.} OrderCustomerTrackingCreatedEvent + */ + exports.prototype.OrderCustomerTrackingCreatedEvent = undefined; + + /** + * Order delivery tracking updated events + * @member {Array.} OrderDeliveryTrackingStatusUpdatedEvent + */ + exports.prototype.OrderDeliveryTrackingStatusUpdatedEvent = undefined; + /** * Order created events * @member {Array.} OrderCreatedEvent */ - exports.prototype['OrderCreatedEvent'] = undefined; + exports.prototype.OrderCreatedEvent = undefined; + /** * Order rating updated events * @member {Array.} OrderRatingUpdatedEvent */ - exports.prototype['OrderRatingUpdatedEvent'] = undefined; + exports.prototype.OrderRatingUpdatedEvent = undefined; + /** * Order refunded events * @member {Array.} OrderRefundedEvent */ - exports.prototype['OrderRefundedEvent'] = undefined; + exports.prototype.OrderRefundedEvent = undefined; + /** * Order rejected events * @member {Array.} OrderRejectedEvent */ - exports.prototype['OrderRejectedEvent'] = undefined; + exports.prototype.OrderRejectedEvent = undefined; + /** * Order tip updated events * @member {Array.} OrderTipUpdatedEvent */ - exports.prototype['OrderTipUpdatedEvent'] = undefined; + exports.prototype.OrderTipUpdatedEvent = undefined; + + /** + * Order Terminal Notification events + * @member {Array.} OrderTerminalNotifications + */ + exports.prototype.OrderTerminalNotifications = undefined; + /** * Store created events * @member {Array.} StoreCreatedEvent */ - exports.prototype['StoreCreatedEvent'] = undefined; + exports.prototype.StoreCreatedEvent = undefined; + /** * Store deleted events * @member {Array.} StoreDeletedEvent */ - exports.prototype['StoreDeletedEvent'] = undefined; + exports.prototype.StoreDeletedEvent = undefined; + + /** + * Store address updated events + * @member {Array.} StoreAddressUpdatedEvent + */ + exports.prototype.StoreAddressUpdatedEvent = undefined; + + /** + * Store kiosk setting updated events + * @member {Array.} StoreKioskSettingUpdatedEvent + */ + exports.prototype.StoreKioskSettingUpdatedEvent = undefined; + + /** + * Store delivery zone created events + * @member {Array.} DeliveryZoneCreatedEvent + */ + exports.prototype.DeliveryZoneCreatedEvent = undefined; + /** * Store delivery zone updated events - * @member {Array.} StoreDeliveryZoneUpdatedEvent + * @member {Array.} DeliveryZoneUpdatedEvent + */ + exports.prototype.DeliveryZoneUpdatedEvent = undefined; + + /** + * Store delivery zone deleted events + * @member {Array.} DeliveryZoneDeletedEvent */ - exports.prototype['StoreDeliveryZoneUpdatedEvent'] = undefined; + exports.prototype.DeliveryZoneDeletedEvent = undefined; + /** * Store opening hours updated events * @member {Array.} StoreOpeningHoursUpdatedEvent */ - exports.prototype['StoreOpeningHoursUpdatedEvent'] = undefined; + exports.prototype.StoreOpeningHoursUpdatedEvent = undefined; + + /** + * Store opening hours updated events + * @member {Array.} StoreMenuAssignedEvent + */ + exports.prototype.StoreMenuAssignedEvent = undefined; + + /** + * Store business hours override created events + * @member {Array.} StoreBusinessHoursOverrideCreatedEvent + */ + exports.prototype.StoreBusinessHoursOverrideCreatedEvent = undefined; + + /** + * Store business hours override deleted events + * @member {Array.} StoreBusinessHoursOverrideDeletedEvent + */ + exports.prototype.StoreBusinessHoursOverrideDeletedEvent = undefined; + + /** + * Store archived events + * @member {Array.} StoreArchivedEvent + */ + exports.prototype.StoreArchivedEvent = undefined; + + /** + * Store unarchived events + * @member {Array.} StoreUnarchivedEvent + */ + exports.prototype.StoreUnarchivedEvent = undefined; + + /** + * Store published events + * @member {Array.} StorePublishedEvent + */ + exports.prototype.StorePublishedEvent = undefined; + + /** + * Store unpublished events + * @member {Array.} StoreUnpublishedEvent + */ + exports.prototype.StoreUnpublishedEvent = undefined; + /** * Store updated events * @member {Array.} StoreUpdatedEvent */ - exports.prototype['StoreUpdatedEvent'] = undefined; + exports.prototype.StoreUpdatedEvent = undefined; + + /** + * Store updated events + * @member {Array.} StorePreOrderConfigUpdatedEvent + */ + exports.prototype.StorePreOrderConfigUpdatedEvent = undefined; + + /** + * Store logo created events + * @member {Array.} StoreLogoCreatedEvent + */ + exports.prototype.StoreLogoCreatedEvent = undefined; + + /** + * Store logo updated events + * @member {Array.} StoreLogoUpdatedEvent + */ + exports.prototype.StoreLogoUpdatedEvent = undefined; + + /** + * Store logo deleted events + * @member {Array.} StoreLogoDeletedEvent + */ + exports.prototype.StoreLogoDeletedEvent = undefined; + /** * Menu created events * @member {Array.} MenuCreatedEvent */ - exports.prototype['MenuCreatedEvent'] = undefined; + exports.prototype.MenuCreatedEvent = undefined; + /** * Menu updated events * @member {Array.} MenuUpdatedEvent */ - exports.prototype['MenuUpdatedEvent'] = undefined; + exports.prototype.MenuUpdatedEvent = undefined; + + /** + * Menu uploaded events + * @member {Array.} MenuUploadedEvent + */ + exports.prototype.MenuUploadedEvent = undefined; + + /** + * Menu section created events + * @member {Array.} MenuSectionCreatedEvent + */ + exports.prototype.MenuSectionCreatedEvent = undefined; + + /** + * Menu section updated events + * @member {Array.} MenuSectionUpdatedEvent + */ + exports.prototype.MenuSectionUpdatedEvent = undefined; + + /** + * Menu section deleted events + * @member {Array.} MenuSectionDeletedEvent + */ + exports.prototype.MenuSectionDeletedEvent = undefined; + + /** + * Menu section item created events + * @member {Array.} MenuSectionItemCreatedEvent + */ + exports.prototype.MenuSectionItemCreatedEvent = undefined; + + /** + * Menu section item updated events + * @member {Array.} MenuSectionItemUpdatedEvent + */ + exports.prototype.MenuSectionItemUpdatedEvent = undefined; + + /** + * Menu section item deleted events + * @member {Array.} MenuSectionItemDeletedEvent + */ + exports.prototype.MenuSectionItemDeletedEvent = undefined; + + /** + * Menu item option set created events + * @member {Array.} MenuItemOptionSetCreatedEvent + */ + exports.prototype.MenuItemOptionSetCreatedEvent = undefined; + + /** + * Menu item option set updated events + * @member {Array.} MenuItemOptionSetUpdatedEvent + */ + exports.prototype.MenuItemOptionSetUpdatedEvent = undefined; + + /** + * Menu item option set deleted events + * @member {Array.} MenuItemOptionSetDeletedEvent + */ + exports.prototype.MenuItemOptionSetDeletedEvent = undefined; + + /** + * Menu item option set item created events + * @member {Array.} MenuItemOptionSetItemCreatedEvent + */ + exports.prototype.MenuItemOptionSetItemCreatedEvent = undefined; + + /** + * Menu item option set item updated events + * @member {Array.} MenuItemOptionSetItemUpdatedEvent + */ + exports.prototype.MenuItemOptionSetItemUpdatedEvent = undefined; + + /** + * Menu item option set item deleted events + * @member {Array.} MenuItemOptionSetItemDeletedEvent + */ + exports.prototype.MenuItemOptionSetItemDeletedEvent = undefined; + + /** + * Menu checkpoint created event + * @member {Array.} MenuCheckpointCreatedEvent + */ + exports.prototype.MenuCheckpointCreatedEvent = undefined; + + /** + * Store group created events + * @member {Array.} StoreGroupCreatedEvent + */ + exports.prototype.StoreGroupCreatedEvent = undefined; + + /** + * Store group updated events + * @member {Array.} StoreGroupUpdatedEvent + */ + exports.prototype.StoreGroupUpdatedEvent = undefined; + + /** + * Store group deleted events + * @member {Array.} StoreGroupDeletedEvent + */ + exports.prototype.StoreGroupDeletedEvent = undefined; + /** * Customer created events * @member {Array.} CustomerCreatedEvent */ - exports.prototype['CustomerCreatedEvent'] = undefined; + exports.prototype.CustomerCreatedEvent = undefined; + /** * Customer updated events * @member {Array.} CustomerUpdatedEvent */ - exports.prototype['CustomerUpdatedEvent'] = undefined; + exports.prototype.CustomerUpdatedEvent = undefined; + /** * Customer consent updated events * @member {Array.} CustomerConsentUpdatedEvent */ - exports.prototype['CustomerConsentUpdatedEvent'] = undefined; - /** - * Campaign created events - * @member {Array.} CampaignCreatedEvent - */ - exports.prototype['CampaignCreatedEvent'] = undefined; + exports.prototype.CustomerConsentUpdatedEvent = undefined; + /** * Webhook subscription created events * @member {Array.} WebhookSubscriptionCreatedEvent */ - exports.prototype['WebhookSubscriptionCreatedEvent'] = undefined; + exports.prototype.WebhookSubscriptionCreatedEvent = undefined; + /** * Webhook subscription updated events * @member {Array.} WebhookSubscriptionUpdatedEvent */ - exports.prototype['WebhookSubscriptionUpdatedEvent'] = undefined; + exports.prototype.WebhookSubscriptionUpdatedEvent = undefined; + /** * Webhook subscription deleted events * @member {Array.} WebhookSubscriptionDeletedEvent */ - exports.prototype['WebhookSubscriptionDeletedEvent'] = undefined; + exports.prototype.WebhookSubscriptionDeletedEvent = undefined; + + /** + * Printer turned ON event + * @member {Array.} PrinterTurnedOnEvent + */ + exports.prototype.PrinterTurnedOnEvent = undefined; + + /** + * Printer turned OFF event + * @member {Array.} PrinterTurnedOffEvent + */ + exports.prototype.PrinterTurnedOffEvent = undefined; + /** + * Printer assigned to store event + * @member {Array.} PrinterAssignedToStoreEvent + */ + exports.prototype.PrinterAssignedToStoreEvent = undefined; + /** + * Printer unassigned from store event + * @member {Array.} PrinterUnassignedFromStoreEvent + */ + exports.prototype.PrinterUnassignedFromStoreEvent = undefined; - return exports; -})); + /** + * Phone call started event + * @member {Array.} PhoneCallStartedEvent + */ + exports.prototype.PhoneCallStartedEvent = undefined; + + /** + * Phone call ended event + * @member {Array.} PhoneCallEndedEvent + */ + exports.prototype.PhoneCallEndedEvent = undefined; + + /** + * Loyalty campaign created event + * @member {Array.} LoyaltyCampaignCreatedEvent + */ + exports.prototype.LoyaltyCampaignCreatedEvent = undefined; + + /** + * Loyalty campaign deleted event + * @member {Array.} LoyaltyCampaignDeletedEvent + */ + exports.prototype.LoyaltyCampaignDeletedEvent = undefined; + + /** + * Loyalty campaign updated event + * @member {Array.} LoyaltyCampaignUpdatedEvent + */ + exports.prototype.LoyaltyCampaignUpdatedEvent = undefined; + + /** + * Retention campaign created event + * @member {Array.} RetentionCampaignCreatedEvent + */ + exports.prototype.RetentionCampaignCreatedEvent = undefined; + + /** + * Retention campaign deleted event + * @member {Array.} RetentionCampaignDeletedEvent + */ + exports.prototype.RetentionCampaignDeletedEvent = undefined; + + /** + * Retention campaign updated event + * @member {Array.} RetentionCampaignUpdatedEvent + */ + exports.prototype.RetentionCampaignUpdatedEvent = undefined; + + /** + * Sms received event + * @member {Array.} SmsReceivedEvent + */ + exports.prototype.SmsReceivedEvent = undefined; + + /** + * User login event + * @member {Array.} UserLoginEvent + */ + exports.prototype.UserLoginEvent = undefined; + + /** + * User created event + * @member {Array.} UserCreatedEvent + */ + exports.prototype.UserCreatedEvent = undefined; + + /** + * User updated event + * @member {Array.} UserUpdatedEvent + */ + exports.prototype.UserUpdatedEvent = undefined; + + /** + * User deleted event + * @member {Array.} UserDeletedEvent + */ + exports.prototype.UserDeletedEvent = undefined; + + /** + * User password created event + * @member {Array.} UserCreatedPasswordEvent + */ + exports.prototype.UserCreatedPasswordEvent = undefined; + + /** + * User answered signup questions event + * @member {Array.} UserAnsweredSignupQuestionsEvent + */ + exports.prototype.UserAnsweredSignupQuestionsEvent = undefined; + + /** + * Voucher created event + * @member {Array.} VoucherCreatedEvent + */ + exports.prototype.VoucherCreatedEvent = undefined; + + /** + * Voucher updated event + * @member {Array.} VoucherUpdatedEvent + */ + exports.prototype.VoucherUpdatedEvent = undefined; + + /** + * Voucher deleted event + * @member {Array.} VoucherDeletedEvent + */ + exports.prototype.VoucherDeletedEvent = undefined; + + /** + * Teammate invite sent event + * @member {Array.} TeammateInviteSentEvent + */ + exports.prototype.TeammateInviteSentEvent = undefined; + + /** + * Teammate invite accepted event + * @member {Array.} TeammateInviteAcceptedEvent + */ + exports.prototype.TeammateInviteAcceptedEvent = undefined; + + /** + * Teammate updated event + * @member {Array.} TeammateUpdatedEvent + */ + exports.prototype.TeammateUpdatedEvent = undefined; + + /** + * Teammate deleted event + * @member {Array.} TeammateDeletedEvent + */ + exports.prototype.TeammateDeletedEvent = undefined; + + /** + * Bank account created event + * @member {Array.} BankAccountCreatedEvent + */ + exports.prototype.BankAccountCreatedEvent = undefined; + + /** + * Bank account updated event + * @member {Array.} BankAccountUpdatedEvent + */ + exports.prototype.BankAccountUpdatedEvent = undefined; + + /** + * Bank account updated event + * @member {Array.} BankAccountDeletedEvent + */ + exports.prototype.BankAccountDeletedEvent = undefined; + + /** + * Hydra assigned event + * @member {Array.} HydraAssignedEvent + */ + exports.prototype.HydraAssignedEvent = undefined; + + /** + * Hydra reset requested event + * @member {Array.} HydraRequestResetEvent + */ + exports.prototype.HydraRequestResetEvent = undefined; + + /** + * Hydra store assigned event + * @member {Array.} HydraStoreAssignedEvent + */ + exports.prototype.HydraStoreAssignedEvent = undefined; + + /** + * Hydra store unassigned + * @member {Array.} HydraStoreUnassignedEvent + */ + exports.prototype.HydraStoreUnassignedEvent = undefined; + + /** + * Hydra settings changed event + * @member {Array.} HydraSettingChangedEvent + */ + exports.prototype.HydraSettingChangedEvent = undefined; + + /** + * Hydra un-assigned event + * @member {Array.} HydraUnAssignedEvent + */ + exports.prototype.HydraUnAssignedEvent = undefined; + + /** + * Hydra connection state change + * @member {Array.} HydraConnectionStatusChangedEvent + */ + exports.prototype.HydraConnectionStatusChangedEvent = undefined; + + /** + * Bluetooth Pairing Mode initiated + * @member {Array.} KioskBluetoothPairingModeEvent + */ + exports.prototype.KioskBluetoothPairingModeEvent = undefined; + /** + * Bluetooth Unpairing Mode initiated + * @member {Array.} KioskBluetoothUnpairingModeEvent + */ + exports.prototype.KioskBluetoothUnpairingModeEvent = undefined; + /** + * Bluetooth Terminal Updated + * @member {Array.} KioskBluetoothTerminalUpdatedEvent + */ + exports.prototype.KioskBluetoothTerminalUpdatedEvent = undefined; + + /** + * Trigger bluetooth payment terminal update checker + * @member {Array.} KioskBluetoothTerminalInitiateUpdateCheckEvent + */ + exports.prototype.KioskBluetoothTerminalInitiateUpdateCheckEvent = undefined; + + /** + * Bluetooth Terminal Initiate Update + * @member {Array.} KioskBluetoothInstallUpdateInitiateEvent + */ + exports.prototype.KioskBluetoothInstallUpdateInitiateEvent = undefined; + + /** + * Push notification scheduled event + * @member {Array.} PushNotificationScheduledEvent + */ + exports.prototype.PushNotificationScheduledEvent = undefined; + + /** + * Push notification sent event + * @member {Array.} PushNotificationSentEvent + */ + exports.prototype.PushNotificationSentEvent = undefined; + + /** + * Push notification deleted event + * @member {Array.} PushNotificationDeletedEvent + */ + exports.prototype.PushNotificationDeletedEvent = undefined; + + /** + * DNS Verified + * @member {Array.} DnsVerifiedEvent + */ + exports.prototype.DnsVerifiedEvent = undefined; + + /** + * Certificate created + * @member {Array.} CertificateCreatedEvent + */ + exports.prototype.CertificateCreatedEvent = undefined; + + /** + * Certificate renewed + * @member {Array.} CertificateRenewedEvent + */ + exports.prototype.CertificateRenewedEvent = undefined; + + /** + * Panacea vanity url updated + * @member {Array.} WebsiteVanityUrlUpdatedEvent + */ + exports.prototype.WebsiteVanityUrlUpdatedEvent = undefined; + + /** + * Website updated + * @member {Array.} WebsiteUpdatedEvent + */ + exports.prototype.WebsiteUpdatedEvent = undefined; + + /** + * Order capacity config updated + * @member {Array.} OrderCapacityUpdatedEvent + */ + exports.prototype.OrderCapacityUpdatedEvent = undefined; + + + return exports; + +})); diff --git a/src/model/FeeSummary.js b/src/model/FeeSummary.js index f88a7517..b00bb9ba 100644 --- a/src/model/FeeSummary.js +++ b/src/model/FeeSummary.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The FeeSummary model module. * @module model/FeeSummary @@ -46,11 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - }; /** @@ -63,16 +55,12 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'); - } + 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; } @@ -81,21 +69,21 @@ * Fee amount * @member {Number} FeeAmount */ - exports.prototype['FeeAmount'] = undefined; + exports.prototype.FeeAmount = undefined; + /** * Percentage rate * @member {Number} PercentageRate */ - exports.prototype['PercentageRate'] = undefined; + exports.prototype.PercentageRate = undefined; + /** * Per transaction fee * @member {Number} PerTransactionFee */ - exports.prototype['PerTransactionFee'] = undefined; - + exports.prototype.PerTransactionFee = undefined; return exports; -})); - +})); diff --git a/src/model/FlipdishEventBase.js b/src/model/FlipdishEventBase.js new file mode 100644 index 00000000..20f100b0 --- /dev/null +++ b/src/model/FlipdishEventBase.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.FlipdishEventBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The FlipdishEventBase model module. + * @module model/FlipdishEventBase + * @version 1.0.0 + */ + + /** + * Constructs a new FlipdishEventBase. + * Base Event + * @alias module:model/FlipdishEventBase + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/FlipdishFeesDetails.js b/src/model/FlipdishFeesDetails.js new file mode 100644 index 00000000..fb7ae0c2 --- /dev/null +++ b/src/model/FlipdishFeesDetails.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.FlipdishFeesDetails = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The FlipdishFeesDetails model module. + * @module model/FlipdishFeesDetails + * @version 1.0.0 + */ + + /** + * Constructs a new FlipdishFeesDetails. + * Fees breakdown + * @alias module:model/FlipdishFeesDetails + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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('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 + */ + exports.prototype.OnlineSalesFees = undefined; + + /** + * Fees on cash sales + * @member {Number} CashSalesFees + */ + exports.prototype.CashSalesFees = undefined; + + /** + * Total online and cash sales + * @member {Number} TotalSalesFees + */ + exports.prototype.TotalSalesFees = undefined; + + /** + * Fees on refunds for online sales + * @member {Number} OnlineSalesRefundedFees + */ + exports.prototype.OnlineSalesRefundedFees = undefined; + + /** + * Fees on refunds for cash sales + * @member {Number} CashSalesRefundedFees + */ + exports.prototype.CashSalesRefundedFees = undefined; + + /** + * VAT on sales fees + * @member {Number} SalesFeesVat + */ + exports.prototype.SalesFeesVat = undefined; + + /** + * Total fees + * @member {Number} TotalFees + */ + exports.prototype.TotalFees = undefined; + + + return exports; + +})); diff --git a/src/model/GroupedCoordinates.js b/src/model/GroupedCoordinates.js new file mode 100644 index 00000000..685095cc --- /dev/null +++ b/src/model/GroupedCoordinates.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.GroupedCoordinates = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The GroupedCoordinates model module. + * @module model/GroupedCoordinates + * @version 1.0.0 + */ + + /** + * Constructs a new GroupedCoordinates. + * Describes coordinates that have a group + * @alias module:model/GroupedCoordinates + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Latitude = undefined; + + /** + * Longitude of this coordinate + * @member {Number} Longitude + */ + exports.prototype.Longitude = undefined; + + /** + * Count of members in the group + * @member {Number} Count + */ + exports.prototype.Count = undefined; + + + return exports; + +})); diff --git a/src/model/HomeAction.js b/src/model/HomeAction.js new file mode 100644 index 00000000..a5ff7398 --- /dev/null +++ b/src/model/HomeAction.js @@ -0,0 +1,149 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HomeAction = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The HomeAction model module. + * @module model/HomeAction + * @version 1.0.0 + */ + + /** + * Constructs a new HomeAction. + * + * @alias module:model/HomeAction + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.HomeActionId = undefined; + + /** + * Type of Action + * @member {module:model/HomeAction.HomeActionTypeEnum} HomeActionType + */ + exports.prototype.HomeActionType = undefined; + + /** + * + * @member {Number} Order + */ + exports.prototype.Order = undefined; + + /** + * + * @member {String} TitleKey + */ + exports.prototype.TitleKey = undefined; + + /** + * + * @member {String} ActionKey + */ + exports.prototype.ActionKey = undefined; + + /** + * + * @member {String} DescriptionKey + */ + exports.prototype.DescriptionKey = undefined; + + /** + * + * @member {String} Action + */ + exports.prototype.Action = undefined; + + /** + * + * @member {Boolean} Dismissible + */ + exports.prototype.Dismissible = undefined; + + + + /** + * Allowed values for the HomeActionType property. + * @enum {String} + * @readonly + */ + exports.HomeActionTypeEnum = { + /** + * value: "Portal" + * @const + */ + Portal: "Portal", + + /** + * value: "External" + * @const + */ + External: "External" + }; + + return exports; + +})); diff --git a/src/model/HomeStatistics.js b/src/model/HomeStatistics.js new file mode 100644 index 00000000..4f515f4c --- /dev/null +++ b/src/model/HomeStatistics.js @@ -0,0 +1,73 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CurrencyData'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./CurrencyData')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HomeStatistics = factory(root.Flipdish.ApiClient, root.Flipdish.CurrencyData); + } +}(this, function(ApiClient, CurrencyData) { + 'use strict'; + + /** + * The HomeStatistics model module. + * @module model/HomeStatistics + * @version 1.0.0 + */ + + /** + * Constructs a new HomeStatistics. + * Home statitstics + * @alias module:model/HomeStatistics + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('TotalMoneySaved')) + obj.TotalMoneySaved = ApiClient.convertToType(data['TotalMoneySaved'], [CurrencyData]); + } + return obj; + } + + /** + * Money saved + * @member {Array.} TotalMoneySaved + */ + exports.prototype.TotalMoneySaved = undefined; + + + return exports; + +})); diff --git a/src/model/HttpRequestAndResponseLog.js b/src/model/HttpRequestAndResponseLog.js index d9b53752..dee183f4 100644 --- a/src/model/HttpRequestAndResponseLog.js +++ b/src/model/HttpRequestAndResponseLog.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The HttpRequestAndResponseLog model module. * @module model/HttpRequestAndResponseLog @@ -46,22 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - - - - - - - }; /** @@ -74,127 +55,131 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Verb')) { - obj['Verb'] = ApiClient.convertToType(data['Verb'], 'String'); - } - if (data.hasOwnProperty('RequestUri')) { - obj['RequestUri'] = ApiClient.convertToType(data['RequestUri'], 'String'); - } - if (data.hasOwnProperty('StatusCode')) { - obj['StatusCode'] = ApiClient.convertToType(data['StatusCode'], 'Number'); - } - if (data.hasOwnProperty('ReasonPhrase')) { - obj['ReasonPhrase'] = ApiClient.convertToType(data['ReasonPhrase'], 'String'); - } - if (data.hasOwnProperty('CallDurationInMilliseconds')) { - obj['CallDurationInMilliseconds'] = ApiClient.convertToType(data['CallDurationInMilliseconds'], 'Number'); - } - if (data.hasOwnProperty('UserId')) { - obj['UserId'] = ApiClient.convertToType(data['UserId'], 'String'); - } - if (data.hasOwnProperty('IpAddress')) { - obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); - } - if (data.hasOwnProperty('CreatedDateTime')) { - obj['CreatedDateTime'] = ApiClient.convertToType(data['CreatedDateTime'], 'String'); - } - if (data.hasOwnProperty('RequestHeaders')) { - obj['RequestHeaders'] = ApiClient.convertToType(data['RequestHeaders'], {'String': 'String'}); - } - if (data.hasOwnProperty('RequestBody')) { - obj['RequestBody'] = ApiClient.convertToType(data['RequestBody'], 'String'); - } - if (data.hasOwnProperty('RequestLength')) { - obj['RequestLength'] = ApiClient.convertToType(data['RequestLength'], 'Number'); - } - if (data.hasOwnProperty('ResponseHeaders')) { - obj['ResponseHeaders'] = ApiClient.convertToType(data['ResponseHeaders'], {'String': 'String'}); - } - if (data.hasOwnProperty('ResponseBody')) { - obj['ResponseBody'] = ApiClient.convertToType(data['ResponseBody'], 'String'); - } - if (data.hasOwnProperty('ResponseLength')) { - obj['ResponseLength'] = ApiClient.convertToType(data['ResponseLength'], 'Number'); - } + if (data.hasOwnProperty('Guid')) + obj.Guid = ApiClient.convertToType(data['Guid'], 'String'); + if (data.hasOwnProperty('Verb')) + obj.Verb = ApiClient.convertToType(data['Verb'], 'String'); + if (data.hasOwnProperty('RequestUri')) + obj.RequestUri = ApiClient.convertToType(data['RequestUri'], 'String'); + if (data.hasOwnProperty('StatusCode')) + obj.StatusCode = ApiClient.convertToType(data['StatusCode'], 'Number'); + if (data.hasOwnProperty('ReasonPhrase')) + obj.ReasonPhrase = ApiClient.convertToType(data['ReasonPhrase'], 'String'); + if (data.hasOwnProperty('CallDurationInMilliseconds')) + obj.CallDurationInMilliseconds = ApiClient.convertToType(data['CallDurationInMilliseconds'], 'Number'); + if (data.hasOwnProperty('UserId')) + obj.UserId = ApiClient.convertToType(data['UserId'], 'String'); + if (data.hasOwnProperty('IpAddress')) + obj.IpAddress = ApiClient.convertToType(data['IpAddress'], 'String'); + if (data.hasOwnProperty('CreatedDateTime')) + obj.CreatedDateTime = ApiClient.convertToType(data['CreatedDateTime'], 'String'); + if (data.hasOwnProperty('RequestHeaders')) + obj.RequestHeaders = ApiClient.convertToType(data['RequestHeaders'], {'String': 'String'}); + if (data.hasOwnProperty('RequestBody')) + obj.RequestBody = ApiClient.convertToType(data['RequestBody'], 'String'); + if (data.hasOwnProperty('RequestLength')) + obj.RequestLength = ApiClient.convertToType(data['RequestLength'], 'Number'); + if (data.hasOwnProperty('ResponseHeaders')) + obj.ResponseHeaders = ApiClient.convertToType(data['ResponseHeaders'], {'String': 'String'}); + if (data.hasOwnProperty('ResponseBody')) + obj.ResponseBody = ApiClient.convertToType(data['ResponseBody'], 'String'); + if (data.hasOwnProperty('ResponseLength')) + obj.ResponseLength = ApiClient.convertToType(data['ResponseLength'], 'Number'); } return obj; } + /** + * Id of the log + * @member {String} Guid + */ + exports.prototype.Guid = undefined; + /** * Verb associated with the HTTP call. * @member {String} Verb */ - exports.prototype['Verb'] = undefined; + exports.prototype.Verb = undefined; + /** * Http request URI. * @member {String} RequestUri */ - exports.prototype['RequestUri'] = undefined; + exports.prototype.RequestUri = undefined; + /** * Http response status code. * @member {Number} StatusCode */ - exports.prototype['StatusCode'] = undefined; + exports.prototype.StatusCode = undefined; + /** * Http response status line. * @member {String} ReasonPhrase */ - exports.prototype['ReasonPhrase'] = undefined; + exports.prototype.ReasonPhrase = undefined; + /** * Call duration representing the duration of the HTTP call in milliseconds. * @member {Number} CallDurationInMilliseconds */ - exports.prototype['CallDurationInMilliseconds'] = undefined; + exports.prototype.CallDurationInMilliseconds = undefined; + /** * Identity of the caller. * @member {String} UserId */ - exports.prototype['UserId'] = undefined; + exports.prototype.UserId = undefined; + /** * Ip address of the caller * @member {String} IpAddress */ - exports.prototype['IpAddress'] = undefined; + exports.prototype.IpAddress = undefined; + /** * Timestamp at which the HTTP call took place. * @member {String} CreatedDateTime */ - exports.prototype['CreatedDateTime'] = undefined; + exports.prototype.CreatedDateTime = undefined; + /** * Http request headers. * @member {Object.} RequestHeaders */ - exports.prototype['RequestHeaders'] = undefined; + exports.prototype.RequestHeaders = undefined; + /** * Http request body, if any. * @member {String} RequestBody */ - exports.prototype['RequestBody'] = undefined; + exports.prototype.RequestBody = undefined; + /** * Http request content-length * @member {Number} RequestLength */ - exports.prototype['RequestLength'] = undefined; + exports.prototype.RequestLength = undefined; + /** * Http response headers. * @member {Object.} ResponseHeaders */ - exports.prototype['ResponseHeaders'] = undefined; + exports.prototype.ResponseHeaders = undefined; + /** * Http response body. * @member {String} ResponseBody */ - exports.prototype['ResponseBody'] = undefined; + exports.prototype.ResponseBody = undefined; + /** * Http response content-length * @member {Number} ResponseLength */ - exports.prototype['ResponseLength'] = undefined; - + exports.prototype.ResponseLength = undefined; return exports; -})); - +})); diff --git a/src/model/HydraAssignedEvent.js b/src/model/HydraAssignedEvent.js new file mode 100644 index 00000000..6ac38fd0 --- /dev/null +++ b/src/model/HydraAssignedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/HydraStatus', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./HydraStatus'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HydraAssignedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.HydraStatus, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, HydraStatus, UserEventInfo) { + 'use strict'; + + /** + * The HydraAssignedEvent model module. + * @module model/HydraAssignedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new HydraAssignedEvent. + * Hydra assigned event + * @alias module:model/HydraAssignedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * User who made the change + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Status of Hydra + * @member {module:model/HydraStatus} HydraStatus + */ + exports.prototype.HydraStatus = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/HydraConfig.js b/src/model/HydraConfig.js new file mode 100644 index 00000000..c229009a --- /dev/null +++ b/src/model/HydraConfig.js @@ -0,0 +1,153 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/DeviceSettings'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./DeviceSettings')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HydraConfig = factory(root.Flipdish.ApiClient, root.Flipdish.DeviceSettings); + } +}(this, function(ApiClient, DeviceSettings) { + 'use strict'; + + /** + * The HydraConfig model module. + * @module model/HydraConfig + * @version 1.0.0 + */ + + /** + * Constructs a new HydraConfig. + * Hydra configuration + * @alias module:model/HydraConfig + * @class + * @param MinimumVersion {String} Minimum version + * @param PaymentOptions {Array.} Payment options + * @param DeviceSettings {module:model/DeviceSettings} Device settings + */ + var exports = function(MinimumVersion, PaymentOptions, DeviceSettings) { + this.MinimumVersion = MinimumVersion; + this.PaymentOptions = PaymentOptions; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.MinimumVersion = undefined; + + /** + * Payment options + * @member {Array.} PaymentOptions + */ + exports.prototype.PaymentOptions = undefined; + + /** + * Device settings + * @member {module:model/DeviceSettings} DeviceSettings + */ + exports.prototype.DeviceSettings = undefined; + + /** + * Version of the device + * @member {String} Version + */ + exports.prototype.Version = undefined; + + /** + * Build number of the device + * @member {String} BuildNumber + */ + exports.prototype.BuildNumber = undefined; + + /** + * SHA of the commit + * @member {String} GitSha + */ + exports.prototype.GitSha = undefined; + + /** + * Build branch + * @member {String} GitBranch + */ + exports.prototype.GitBranch = undefined; + + + + /** + * Allowed values for the PaymentOptions property. + * @enum {String} + * @readonly + */ + exports.PaymentOptionsEnum = { + /** + * value: "Online" + * @const + */ + Online: "Online", + + /** + * value: "Emv" + * @const + */ + Emv: "Emv", + + /** + * value: "Counter" + * @const + */ + Counter: "Counter" + }; + + return exports; + +})); diff --git a/src/model/HydraConnectionStatusChangedEvent.js b/src/model/HydraConnectionStatusChangedEvent.js new file mode 100644 index 00000000..d31ff15c --- /dev/null +++ b/src/model/HydraConnectionStatusChangedEvent.js @@ -0,0 +1,155 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HydraConnectionStatusChangedEvent = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The HydraConnectionStatusChangedEvent model module. + * @module model/HydraConnectionStatusChangedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new HydraConnectionStatusChangedEvent. + * Hydra Connection Status Changed Event + * @alias module:model/HydraConnectionStatusChangedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Hydra Device Id + * @member {String} DeviceId + */ + exports.prototype.DeviceId = undefined; + + /** + * Hydra Device Status + * @member {module:model/HydraConnectionStatusChangedEvent.HydraDeviceStatusEnum} HydraDeviceStatus + */ + exports.prototype.HydraDeviceStatus = undefined; + + /** + * Hydra Last Poll Time + * @member {Date} PollTime + */ + exports.prototype.PollTime = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + + /** + * Allowed values for the HydraDeviceStatus property. + * @enum {String} + * @readonly + */ + exports.HydraDeviceStatusEnum = { + /** + * value: "Online" + * @const + */ + Online: "Online", + + /** + * value: "PossiblyOffline" + * @const + */ + PossiblyOffline: "PossiblyOffline", + + /** + * value: "Offline" + * @const + */ + Offline: "Offline" + }; + + return exports; + +})); diff --git a/src/model/HydraDeviceDetails.js b/src/model/HydraDeviceDetails.js new file mode 100644 index 00000000..3ff0e734 --- /dev/null +++ b/src/model/HydraDeviceDetails.js @@ -0,0 +1,205 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/HydraStoreData'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./HydraStoreData')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HydraDeviceDetails = factory(root.Flipdish.ApiClient, root.Flipdish.HydraStoreData); + } +}(this, function(ApiClient, HydraStoreData) { + 'use strict'; + + /** + * The HydraDeviceDetails model module. + * @module model/HydraDeviceDetails + * @version 1.0.0 + */ + + /** + * Constructs a new HydraDeviceDetails. + * Hydra device details + * @alias module:model/HydraDeviceDetails + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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 + */ + exports.prototype.HydraConfigId = undefined; + + /** + * Device Id or Serial Number + * @member {String} DeviceId + */ + exports.prototype.DeviceId = undefined; + + /** + * Type of the device + * @member {module:model/HydraDeviceDetails.DeviceTypeEnum} DeviceType + */ + exports.prototype.DeviceType = undefined; + + /** + * Status of the device + * @member {module:model/HydraDeviceDetails.StatusEnum} Status + */ + exports.prototype.Status = undefined; + + /** + * Device Name + * @member {String} DeviceName + */ + exports.prototype.DeviceName = undefined; + + /** + * Store Names + * @member {Array.} StoreNames + */ + exports.prototype.StoreNames = undefined; + + /** + * Last poll time in UTC + * @member {Date} LastPollUtc + */ + exports.prototype.LastPollUtc = undefined; + + /** + * Version of the device + * @member {String} Version + */ + exports.prototype.Version = undefined; + + /** + * Build number of the device + * @member {String} BuildNumber + */ + exports.prototype.BuildNumber = undefined; + + /** + * SHA of the commit + * @member {String} GitSha + */ + exports.prototype.GitSha = undefined; + + /** + * Build branch + * @member {String} GitBranch + */ + exports.prototype.GitBranch = undefined; + + + + /** + * Allowed values for the DeviceType property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.StatusEnum = { + /** + * value: "Online" + * @const + */ + Online: "Online", + + /** + * value: "PossiblyOffline" + * @const + */ + PossiblyOffline: "PossiblyOffline", + + /** + * value: "Offline" + * @const + */ + Offline: "Offline" + }; + + return exports; + +})); diff --git a/src/model/HydraRegistrationRequest.js b/src/model/HydraRegistrationRequest.js new file mode 100644 index 00000000..0e515c87 --- /dev/null +++ b/src/model/HydraRegistrationRequest.js @@ -0,0 +1,93 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HydraRegistrationRequest = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The HydraRegistrationRequest model module. + * @module model/HydraRegistrationRequest + * @version 1.0.0 + */ + + /** + * Constructs a new HydraRegistrationRequest. + * Hydra registration result + * @alias module:model/HydraRegistrationRequest + * @class + * @param StoreIds {Array.} Stores to assign the hydra + * @param DeviceName {String} Hydra device name + */ + var exports = function(StoreIds, DeviceName) { + this.StoreIds = StoreIds; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.StoreIds = undefined; + + /** + * Hydra device name + * @member {String} DeviceName + */ + exports.prototype.DeviceName = undefined; + + /** + * 6 digit PIN code (not starting with zero). + * @member {Number} PinCode + */ + exports.prototype.PinCode = undefined; + + + return exports; + +})); diff --git a/src/model/HydraRequestResetEvent.js b/src/model/HydraRequestResetEvent.js new file mode 100644 index 00000000..7dd5d094 --- /dev/null +++ b/src/model/HydraRequestResetEvent.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HydraRequestResetEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The HydraRequestResetEvent model module. + * @module model/HydraRequestResetEvent + * @version 1.0.0 + */ + + /** + * Constructs a new HydraRequestResetEvent. + * Hydra request reset event + * @alias module:model/HydraRequestResetEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * User who initiated the change + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/HydraSettingChangedEvent.js b/src/model/HydraSettingChangedEvent.js new file mode 100644 index 00000000..b0604cc6 --- /dev/null +++ b/src/model/HydraSettingChangedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/HydraConfig', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./HydraConfig'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HydraSettingChangedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.HydraConfig, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, HydraConfig, UserEventInfo) { + 'use strict'; + + /** + * The HydraSettingChangedEvent model module. + * @module model/HydraSettingChangedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new HydraSettingChangedEvent. + * Hydra settings changed + * @alias module:model/HydraSettingChangedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * User who made the change + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Hydra configuration + * @member {module:model/HydraConfig} HydraConfig + */ + exports.prototype.HydraConfig = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/HydraStatus.js b/src/model/HydraStatus.js new file mode 100644 index 00000000..71c3b0db --- /dev/null +++ b/src/model/HydraStatus.js @@ -0,0 +1,143 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HydraStatus = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The HydraStatus model module. + * @module model/HydraStatus + * @version 1.0.0 + */ + + /** + * Constructs a new HydraStatus. + * Hydra status + * @alias module:model/HydraStatus + * @class + * @param AppId {String} + * @param IsRegistered {Boolean} The device has been already registered + */ + var exports = function(AppId, IsRegistered) { + this.AppId = AppId; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.AppId = undefined; + + /** + * Store to assign the hydra + * @member {Array.} StoreIds + */ + exports.prototype.StoreIds = undefined; + + /** + * The device has been already registered + * @member {Boolean} IsRegistered + */ + exports.prototype.IsRegistered = undefined; + + /** + * 6 digit PIN code (not starting with zero). + * @member {Number} PinCode + */ + exports.prototype.PinCode = undefined; + + /** + * Hydra images (covers) + * @member {Array.} Images + */ + exports.prototype.Images = undefined; + + /** + * Hydra User Type + * @member {module:model/HydraStatus.UserTypeEnum} UserType + */ + exports.prototype.UserType = undefined; + + + + /** + * Allowed values for the UserType property. + * @enum {String} + * @readonly + */ + exports.UserTypeEnum = { + /** + * value: "Kiosk" + * @const + */ + Kiosk: "Kiosk", + + /** + * value: "Terminal" + * @const + */ + Terminal: "Terminal", + + /** + * value: "LegacyPrinter" + * @const + */ + LegacyPrinter: "LegacyPrinter" + }; + + return exports; + +})); diff --git a/src/model/HydraStoreAssignedEvent.js b/src/model/HydraStoreAssignedEvent.js new file mode 100644 index 00000000..c60b5151 --- /dev/null +++ b/src/model/HydraStoreAssignedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HydraStoreAssignedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The HydraStoreAssignedEvent model module. + * @module model/HydraStoreAssignedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new HydraStoreAssignedEvent. + * Hydra store\\s assigned event + * @alias module:model/HydraStoreAssignedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * User who made the change + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Store\\s to assign hydra to + * @member {Array.} StoreIds + */ + exports.prototype.StoreIds = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/HydraStoreData.js b/src/model/HydraStoreData.js new file mode 100644 index 00000000..da9d77cf --- /dev/null +++ b/src/model/HydraStoreData.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HydraStoreData = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The HydraStoreData model module. + * @module model/HydraStoreData + * @version 1.0.0 + */ + + /** + * Constructs a new HydraStoreData. + * Store Data + * @alias module:model/HydraStoreData + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.StoreId = undefined; + + /** + * Name of the store + * @member {String} StoreName + */ + exports.prototype.StoreName = undefined; + + + return exports; + +})); diff --git a/src/model/HydraStoreUnassignedEvent.js b/src/model/HydraStoreUnassignedEvent.js new file mode 100644 index 00000000..d3a0d7a2 --- /dev/null +++ b/src/model/HydraStoreUnassignedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HydraStoreUnassignedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The HydraStoreUnassignedEvent model module. + * @module model/HydraStoreUnassignedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new HydraStoreUnassignedEvent. + * Hydra store\\s unassigned event + * @alias module:model/HydraStoreUnassignedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * User who made the change + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Store\\s to unassign hydra from + * @member {Array.} StoreIds + */ + exports.prototype.StoreIds = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/HydraUnAssignedEvent.js b/src/model/HydraUnAssignedEvent.js new file mode 100644 index 00000000..efd6af89 --- /dev/null +++ b/src/model/HydraUnAssignedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/HydraStatus', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./HydraStatus'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.HydraUnAssignedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.HydraStatus, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, HydraStatus, UserEventInfo) { + 'use strict'; + + /** + * The HydraUnAssignedEvent model module. + * @module model/HydraUnAssignedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new HydraUnAssignedEvent. + * Hydra unassigned event + * @alias module:model/HydraUnAssignedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * User who made the change + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Status of Hydra + * @member {module:model/HydraStatus} HydraStatus + */ + exports.prototype.HydraStatus = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/IndexPage.js b/src/model/IndexPage.js new file mode 100644 index 00000000..9b6166a4 --- /dev/null +++ b/src/model/IndexPage.js @@ -0,0 +1,193 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/WebsiteImage', 'model/WebsiteTestimonial'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./WebsiteImage'), require('./WebsiteTestimonial')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.IndexPage = factory(root.Flipdish.ApiClient, root.Flipdish.WebsiteImage, root.Flipdish.WebsiteTestimonial); + } +}(this, function(ApiClient, WebsiteImage, WebsiteTestimonial) { + 'use strict'; + + /** + * The IndexPage model module. + * @module model/IndexPage + * @version 1.0.0 + */ + + /** + * Constructs a new IndexPage. + * Index Page + * @alias module:model/IndexPage + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Testimonials = undefined; + + /** + * Images + * @member {Array.} Images + */ + exports.prototype.Images = undefined; + + /** + * About section enabled + * @member {Boolean} AboutSectionEnabled + */ + exports.prototype.AboutSectionEnabled = undefined; + + /** + * About section title + * @member {String} AboutSectionTitle + */ + exports.prototype.AboutSectionTitle = undefined; + + /** + * About section sub-title + * @member {String} AboutSectionSubtitle + */ + exports.prototype.AboutSectionSubtitle = undefined; + + /** + * About section title left + * @member {String} AboutSectionLeftTitle + */ + exports.prototype.AboutSectionLeftTitle = undefined; + + /** + * About section text left + * @member {String} AboutSectionLeftBody + */ + exports.prototype.AboutSectionLeftBody = undefined; + + /** + * About section title right + * @member {String} AboutSectionRightTitle + */ + exports.prototype.AboutSectionRightTitle = undefined; + + /** + * About section text right + * @member {String} AboutSectionRightBody + */ + exports.prototype.AboutSectionRightBody = undefined; + + /** + * Opening hours section Enabled + * @member {Boolean} OpeningHoursEnabled + */ + exports.prototype.OpeningHoursEnabled = undefined; + + /** + * Menu Preview section Enabled + * @member {Boolean} MenuPreviewEnabled + */ + exports.prototype.MenuPreviewEnabled = undefined; + + /** + * Gallery section enabled + * @member {Boolean} GalleryEnabled + */ + exports.prototype.GalleryEnabled = undefined; + + /** + * Testimonials section Enabled + * @member {Boolean} TestimonialsEnabled + */ + exports.prototype.TestimonialsEnabled = undefined; + + /** + * Contact Form section Enabled + * @member {Boolean} ContactFormEnabled + */ + exports.prototype.ContactFormEnabled = undefined; + + /** + * Contact Form Email + * @member {String} ContactFormEmail + */ + exports.prototype.ContactFormEmail = undefined; + + /** + * Map section Enabled + * @member {Boolean} MapEnabled + */ + exports.prototype.MapEnabled = undefined; + + + return exports; + +})); diff --git a/src/model/IndexPageBase.js b/src/model/IndexPageBase.js new file mode 100644 index 00000000..13bcff9d --- /dev/null +++ b/src/model/IndexPageBase.js @@ -0,0 +1,177 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.IndexPageBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The IndexPageBase model module. + * @module model/IndexPageBase + * @version 1.0.0 + */ + + /** + * Constructs a new IndexPageBase. + * Base of Index Page + * @alias module:model/IndexPageBase + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.AboutSectionEnabled = undefined; + + /** + * About section title + * @member {String} AboutSectionTitle + */ + exports.prototype.AboutSectionTitle = undefined; + + /** + * About section sub-title + * @member {String} AboutSectionSubtitle + */ + exports.prototype.AboutSectionSubtitle = undefined; + + /** + * About section title left + * @member {String} AboutSectionLeftTitle + */ + exports.prototype.AboutSectionLeftTitle = undefined; + + /** + * About section text left + * @member {String} AboutSectionLeftBody + */ + exports.prototype.AboutSectionLeftBody = undefined; + + /** + * About section title right + * @member {String} AboutSectionRightTitle + */ + exports.prototype.AboutSectionRightTitle = undefined; + + /** + * About section text right + * @member {String} AboutSectionRightBody + */ + exports.prototype.AboutSectionRightBody = undefined; + + /** + * Opening hours section Enabled + * @member {Boolean} OpeningHoursEnabled + */ + exports.prototype.OpeningHoursEnabled = undefined; + + /** + * Menu Preview section Enabled + * @member {Boolean} MenuPreviewEnabled + */ + exports.prototype.MenuPreviewEnabled = undefined; + + /** + * Gallery section enabled + * @member {Boolean} GalleryEnabled + */ + exports.prototype.GalleryEnabled = undefined; + + /** + * Testimonials section Enabled + * @member {Boolean} TestimonialsEnabled + */ + exports.prototype.TestimonialsEnabled = undefined; + + /** + * Contact Form section Enabled + * @member {Boolean} ContactFormEnabled + */ + exports.prototype.ContactFormEnabled = undefined; + + /** + * Contact Form Email + * @member {String} ContactFormEmail + */ + exports.prototype.ContactFormEmail = undefined; + + /** + * Map section Enabled + * @member {Boolean} MapEnabled + */ + exports.prototype.MapEnabled = undefined; + + + return exports; + +})); diff --git a/src/model/JobAddress.js b/src/model/JobAddress.js new file mode 100644 index 00000000..1940e0f5 --- /dev/null +++ b/src/model/JobAddress.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.JobAddress = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The JobAddress model module. + * @module model/JobAddress + * @version 1.0.0 + */ + + /** + * Constructs a new JobAddress. + * Job Address + * @alias module:model/JobAddress + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Street = undefined; + + /** + * Postcode + * @member {String} Postcode + */ + exports.prototype.Postcode = undefined; + + /** + * City + * @member {String} City + */ + exports.prototype.City = undefined; + + /** + * Country + * @member {String} Country + */ + exports.prototype.Country = undefined; + + /** + * Zone + * @member {String} Zone + */ + exports.prototype.Zone = undefined; + + /** + * Formatted Address + * @member {String} FormattedAddress + */ + exports.prototype.FormattedAddress = undefined; + + + return exports; + +})); diff --git a/src/model/DeliveryFeeArea.js b/src/model/JobCancellation.js similarity index 55% rename from src/model/DeliveryFeeArea.js rename to src/model/JobCancellation.js index 94861258..5a0d543c 100644 --- a/src/model/DeliveryFeeArea.js +++ b/src/model/JobCancellation.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -25,68 +25,65 @@ if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.DeliveryFeeArea = factory(root.Flipdish.ApiClient); + root.Flipdish.JobCancellation = factory(root.Flipdish.ApiClient); } }(this, function(ApiClient) { 'use strict'; - - - /** - * The DeliveryFeeArea model module. - * @module model/DeliveryFeeArea + * The JobCancellation model module. + * @module model/JobCancellation * @version 1.0.0 */ /** - * Constructs a new DeliveryFeeArea. - * Delivery fee area - * @alias module:model/DeliveryFeeArea + * Constructs a new JobCancellation. + * Job Cancellation + * @alias module:model/JobCancellation * @class */ var exports = function() { - var _this = this; - - - }; /** - * Constructs a DeliveryFeeArea from a plain JavaScript object, optionally creating a new instance. + * 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/DeliveryFeeArea} obj Optional instance to populate. - * @return {module:model/DeliveryFeeArea} The populated DeliveryFeeArea instance. + * @param {module:model/JobCancellation} obj Optional instance to populate. + * @return {module:model/JobCancellation} The populated JobCancellation instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('DeliveryFee')) { - obj['DeliveryFee'] = ApiClient.convertToType(data['DeliveryFee'], 'Number'); - } - if (data.hasOwnProperty('MinimumDeliveryOrder')) { - obj['MinimumDeliveryOrder'] = ApiClient.convertToType(data['MinimumDeliveryOrder'], 'Number'); - } + 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; } /** - * Delivery fee - * @member {Number} DeliveryFee + * Canceled By + * @member {String} CanceledBy */ - exports.prototype['DeliveryFee'] = undefined; + exports.prototype.CanceledBy = undefined; + /** - * Minimum delivery order amount - * @member {Number} MinimumDeliveryOrder + * Reason Key + * @member {String} ReasonKey */ - exports.prototype['MinimumDeliveryOrder'] = undefined; + exports.prototype.ReasonKey = undefined; + /** + * Comment + * @member {String} Comment + */ + exports.prototype.Comment = undefined; return exports; -})); - +})); diff --git a/src/model/JobContact.js b/src/model/JobContact.js new file mode 100644 index 00000000..aa71eeff --- /dev/null +++ b/src/model/JobContact.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.JobContact = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The JobContact model module. + * @module model/JobContact + * @version 1.0.0 + */ + + /** + * Constructs a new JobContact. + * Job Contact + * @alias module:model/JobContact + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Firstname = undefined; + + /** + * Lastname + * @member {String} Lastname + */ + exports.prototype.Lastname = undefined; + + /** + * Phone + * @member {String} Phone + */ + exports.prototype.Phone = undefined; + + /** + * Email + * @member {String} Email + */ + exports.prototype.Email = undefined; + + /** + * Company + * @member {String} Company + */ + exports.prototype.Company = undefined; + + /** + * Company Name + * @member {String} CompanyName + */ + exports.prototype.CompanyName = undefined; + + + return exports; + +})); diff --git a/src/model/JobDelivery.js b/src/model/JobDelivery.js new file mode 100644 index 00000000..1f7b9a14 --- /dev/null +++ b/src/model/JobDelivery.js @@ -0,0 +1,169 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/JobCancellation', 'model/JobDeliveryDetail', 'model/JobEta', 'model/JobProof'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./JobCancellation'), require('./JobDeliveryDetail'), require('./JobEta'), require('./JobProof')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.JobDelivery = factory(root.Flipdish.ApiClient, root.Flipdish.JobCancellation, root.Flipdish.JobDeliveryDetail, root.Flipdish.JobEta, root.Flipdish.JobProof); + } +}(this, function(ApiClient, JobCancellation, JobDeliveryDetail, JobEta, JobProof) { + 'use strict'; + + /** + * The JobDelivery model module. + * @module model/JobDelivery + * @version 1.0.0 + */ + + /** + * Constructs a new JobDelivery. + * Job Delivery + * @alias module:model/JobDelivery + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Id = undefined; + + /** + * Status + * @member {String} Status + */ + exports.prototype.Status = undefined; + + /** + * Picked At + * @member {String} PickedAt + */ + exports.prototype.PickedAt = undefined; + + /** + * Delivered At + * @member {String} DeliveredAt + */ + exports.prototype.DeliveredAt = undefined; + + /** + * Tracking Url + * @member {String} TrackingUrl + */ + exports.prototype.TrackingUrl = undefined; + + /** + * Client Reference + * @member {String} ClientReference + */ + exports.prototype.ClientReference = undefined; + + /** + * Package Description + * @member {String} PackageDescription + */ + exports.prototype.PackageDescription = undefined; + + /** + * Package Type + * @member {String} PackageType + */ + exports.prototype.PackageType = undefined; + + /** + * Pickup + * @member {module:model/JobDeliveryDetail} Pickup + */ + exports.prototype.Pickup = undefined; + + /** + * Dropoff + * @member {module:model/JobDeliveryDetail} Dropoff + */ + exports.prototype.Dropoff = undefined; + + /** + * Eta + * @member {module:model/JobEta} Eta + */ + exports.prototype.Eta = undefined; + + /** + * Cancellation + * @member {module:model/JobCancellation} Cancellation + */ + exports.prototype.Cancellation = undefined; + + /** + * Proof + * @member {module:model/JobProof} Proof + */ + exports.prototype.Proof = undefined; + + + return exports; + +})); diff --git a/src/model/JobDeliveryDetail.js b/src/model/JobDeliveryDetail.js new file mode 100644 index 00000000..1e7b7e18 --- /dev/null +++ b/src/model/JobDeliveryDetail.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/JobAddress', 'model/JobContact'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./JobAddress'), require('./JobContact')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.JobDeliveryDetail = factory(root.Flipdish.ApiClient, root.Flipdish.JobAddress, root.Flipdish.JobContact); + } +}(this, function(ApiClient, JobAddress, JobContact) { + 'use strict'; + + /** + * The JobDeliveryDetail model module. + * @module model/JobDeliveryDetail + * @version 1.0.0 + */ + + /** + * Constructs a new JobDeliveryDetail. + * Job Delivery Detail + * @alias module:model/JobDeliveryDetail + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Id = undefined; + + /** + * Latitude + * @member {Number} Latitude + */ + exports.prototype.Latitude = undefined; + + /** + * Longitude + * @member {Number} Longitude + */ + exports.prototype.Longitude = undefined; + + /** + * Comment + * @member {String} Comment + */ + exports.prototype.Comment = undefined; + + /** + * Address + * @member {module:model/JobAddress} Address + */ + exports.prototype.Address = undefined; + + /** + * Contact + * @member {module:model/JobContact} Contact + */ + exports.prototype.Contact = undefined; + + + return exports; + +})); diff --git a/src/model/JobDriver.js b/src/model/JobDriver.js new file mode 100644 index 00000000..1877dc4a --- /dev/null +++ b/src/model/JobDriver.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.JobDriver = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The JobDriver model module. + * @module model/JobDriver + * @version 1.0.0 + */ + + /** + * Constructs a new JobDriver. + * Job Driver + * @alias module:model/JobDriver + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Id = undefined; + + /** + * Display Name + * @member {String} DisplayName + */ + exports.prototype.DisplayName = undefined; + + /** + * Phone + * @member {String} Phone + */ + exports.prototype.Phone = undefined; + + /** + * Picture Url + * @member {String} PictureUrl + */ + exports.prototype.PictureUrl = undefined; + + /** + * Transport Type + * @member {String} TransportType + */ + exports.prototype.TransportType = undefined; + + /** + * Latitude + * @member {Number} Latitude + */ + exports.prototype.Latitude = undefined; + + /** + * Longitude + * @member {Number} Longitude + */ + exports.prototype.Longitude = undefined; + + + return exports; + +})); diff --git a/src/model/JobEta.js b/src/model/JobEta.js new file mode 100644 index 00000000..a6f2955c --- /dev/null +++ b/src/model/JobEta.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.JobEta = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The JobEta model module. + * @module model/JobEta + * @version 1.0.0 + */ + + /** + * Constructs a new JobEta. + * Job Eta + * @alias module:model/JobEta + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Pickup = undefined; + + /** + * Dropoff + * @member {String} Dropoff + */ + exports.prototype.Dropoff = undefined; + + + return exports; + +})); diff --git a/src/model/JobPricing.js b/src/model/JobPricing.js new file mode 100644 index 00000000..b7925bf3 --- /dev/null +++ b/src/model/JobPricing.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.JobPricing = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The JobPricing model module. + * @module model/JobPricing + * @version 1.0.0 + */ + + /** + * Constructs a new JobPricing. + * Job Pricing + * @alias module:model/JobPricing + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Currency = undefined; + + /** + * Tax Percentage + * @member {Number} TaxPercentage + */ + exports.prototype.TaxPercentage = undefined; + + /** + * Price Tax Included + * @member {Number} PriceTaxIncluded + */ + exports.prototype.PriceTaxIncluded = undefined; + + /** + * Price Tax Excluded + * @member {Number} PriceTaxExcluded + */ + exports.prototype.PriceTaxExcluded = undefined; + + /** + * Tax Amount + * @member {Number} TaxAmount + */ + exports.prototype.TaxAmount = undefined; + + /** + * Invoice Url + * @member {String} InvoiceUrl + */ + exports.prototype.InvoiceUrl = undefined; + + + return exports; + +})); diff --git a/src/model/JobProof.js b/src/model/JobProof.js new file mode 100644 index 00000000..46c20ffd --- /dev/null +++ b/src/model/JobProof.js @@ -0,0 +1,73 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.JobProof = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The JobProof model module. + * @module model/JobProof + * @version 1.0.0 + */ + + /** + * Constructs a new JobProof. + * Job Proof + * @alias module:model/JobProof + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('SignatureUrl')) + obj.SignatureUrl = ApiClient.convertToType(data['SignatureUrl'], 'String'); + } + return obj; + } + + /** + * Signature Url + * @member {String} SignatureUrl + */ + exports.prototype.SignatureUrl = undefined; + + + return exports; + +})); diff --git a/src/model/JobResponse.js b/src/model/JobResponse.js new file mode 100644 index 00000000..8e8e14ed --- /dev/null +++ b/src/model/JobResponse.js @@ -0,0 +1,177 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/JobDelivery', 'model/JobDriver', 'model/JobPricing'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./JobDelivery'), require('./JobDriver'), require('./JobPricing')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.JobResponse = factory(root.Flipdish.ApiClient, root.Flipdish.JobDelivery, root.Flipdish.JobDriver, root.Flipdish.JobPricing); + } +}(this, function(ApiClient, JobDelivery, JobDriver, JobPricing) { + 'use strict'; + + /** + * The JobResponse model module. + * @module model/JobResponse + * @version 1.0.0 + */ + + /** + * Constructs a new JobResponse. + * Job Response + * @alias module:model/JobResponse + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Id = undefined; + + /** + * Created At + * @member {Date} CreatedAt + */ + exports.prototype.CreatedAt = undefined; + + /** + * Status + * @member {String} Status + */ + exports.prototype.Status = undefined; + + /** + * Package Type + * @member {String} PackageType + */ + exports.prototype.PackageType = undefined; + + /** + * Transport Type + * @member {String} TransportType + */ + exports.prototype.TransportType = undefined; + + /** + * Assignment Code + * @member {String} AssignmentCode + */ + exports.prototype.AssignmentCode = undefined; + + /** + * Pickup At + * @member {String} PickupAt + */ + exports.prototype.PickupAt = undefined; + + /** + * Dropoff At + * @member {String} DropoffAt + */ + exports.prototype.DropoffAt = undefined; + + /** + * Comment + * @member {String} Comment + */ + exports.prototype.Comment = undefined; + + /** + * Distance + * @member {Number} Distance + */ + exports.prototype.Distance = undefined; + + /** + * Duration + * @member {Number} Duration + */ + exports.prototype.Duration = undefined; + + /** + * Deliveries + * @member {Array.} Deliveries + */ + exports.prototype.Deliveries = undefined; + + /** + * Pricing + * @member {module:model/JobPricing} Pricing + */ + exports.prototype.Pricing = undefined; + + /** + * Driver + * @member {module:model/JobDriver} Driver + */ + exports.prototype.Driver = undefined; + + + return exports; + +})); diff --git a/src/model/KioskBluetoothInstallUpdateInitiateEvent.js b/src/model/KioskBluetoothInstallUpdateInitiateEvent.js new file mode 100644 index 00000000..3de6171f --- /dev/null +++ b/src/model/KioskBluetoothInstallUpdateInitiateEvent.js @@ -0,0 +1,161 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.KioskBluetoothInstallUpdateInitiateEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The KioskBluetoothInstallUpdateInitiateEvent model module. + * @module model/KioskBluetoothInstallUpdateInitiateEvent + * @version 1.0.0 + */ + + /** + * Constructs a new KioskBluetoothInstallUpdateInitiateEvent. + * Kiosk bluetooth Initiate Install Update Event + * @alias module:model/KioskBluetoothInstallUpdateInitiateEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Device Id of the Kiosk + * @member {String} DeviceId + */ + exports.prototype.DeviceId = undefined; + + /** + * Terminal Type + * @member {module:model/KioskBluetoothInstallUpdateInitiateEvent.BluetoothTerminalTypeEnum} BluetoothTerminalType + */ + exports.prototype.BluetoothTerminalType = undefined; + + /** + * User who made the change + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + + /** + * Allowed values for the BluetoothTerminalType property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/KioskBluetoothPairingModeEvent.js b/src/model/KioskBluetoothPairingModeEvent.js new file mode 100644 index 00000000..3b1bc5ff --- /dev/null +++ b/src/model/KioskBluetoothPairingModeEvent.js @@ -0,0 +1,161 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.KioskBluetoothPairingModeEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The KioskBluetoothPairingModeEvent model module. + * @module model/KioskBluetoothPairingModeEvent + * @version 1.0.0 + */ + + /** + * Constructs a new KioskBluetoothPairingModeEvent. + * Kiosk Bluetooth Pairing mode initiated + * @alias module:model/KioskBluetoothPairingModeEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Device Id of the Kiosk + * @member {String} DeviceId + */ + exports.prototype.DeviceId = undefined; + + /** + * Terminal Type + * @member {module:model/KioskBluetoothPairingModeEvent.BluetoothTerminalTypeEnum} BluetoothTerminalType + */ + exports.prototype.BluetoothTerminalType = undefined; + + /** + * User who made the change + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + + /** + * Allowed values for the BluetoothTerminalType property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/KioskBluetoothTerminalInitiateUpdateCheckEvent.js b/src/model/KioskBluetoothTerminalInitiateUpdateCheckEvent.js new file mode 100644 index 00000000..4c333073 --- /dev/null +++ b/src/model/KioskBluetoothTerminalInitiateUpdateCheckEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The KioskBluetoothTerminalInitiateUpdateCheckEvent model module. + * @module model/KioskBluetoothTerminalInitiateUpdateCheckEvent + * @version 1.0.0 + */ + + /** + * Constructs a new KioskBluetoothTerminalInitiateUpdateCheckEvent. + * Kiosk bluetooth trigger update check event + * @alias module:model/KioskBluetoothTerminalInitiateUpdateCheckEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Device Id of the Kiosk + * @member {String} DeviceId + */ + exports.prototype.DeviceId = undefined; + + /** + * User who made the change + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/KioskBluetoothTerminalUpdatedEvent.js b/src/model/KioskBluetoothTerminalUpdatedEvent.js new file mode 100644 index 00000000..5e2df7f9 --- /dev/null +++ b/src/model/KioskBluetoothTerminalUpdatedEvent.js @@ -0,0 +1,177 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BluetoothTerminalStatus', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./BluetoothTerminalStatus'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.KioskBluetoothTerminalUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.BluetoothTerminalStatus, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, BluetoothTerminalStatus, UserEventInfo) { + 'use strict'; + + /** + * The KioskBluetoothTerminalUpdatedEvent model module. + * @module model/KioskBluetoothTerminalUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new KioskBluetoothTerminalUpdatedEvent. + * Kiosk bluetooth terminal unpaired + * @alias module:model/KioskBluetoothTerminalUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Device Id of the Kiosk + * @member {String} DeviceId + */ + exports.prototype.DeviceId = undefined; + + /** + * Terminal Type + * @member {module:model/KioskBluetoothTerminalUpdatedEvent.BluetoothTerminalTypeEnum} BluetoothTerminalType + */ + exports.prototype.BluetoothTerminalType = undefined; + + /** + * Serial number of the terminal + * @member {String} BluetoothTerminalSerialNumber + */ + exports.prototype.BluetoothTerminalSerialNumber = undefined; + + /** + * Status of the connected terminal + * @member {module:model/BluetoothTerminalStatus} BluetoothTerminalStatus + */ + exports.prototype.BluetoothTerminalStatus = undefined; + + /** + * User who made the change + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + + /** + * Allowed values for the BluetoothTerminalType property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/KioskBluetoothUnpairingModeEvent.js b/src/model/KioskBluetoothUnpairingModeEvent.js new file mode 100644 index 00000000..89201990 --- /dev/null +++ b/src/model/KioskBluetoothUnpairingModeEvent.js @@ -0,0 +1,161 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.KioskBluetoothUnpairingModeEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The KioskBluetoothUnpairingModeEvent model module. + * @module model/KioskBluetoothUnpairingModeEvent + * @version 1.0.0 + */ + + /** + * Constructs a new KioskBluetoothUnpairingModeEvent. + * Kiosk Bluetooth Unpairing mode initiated + * @alias module:model/KioskBluetoothUnpairingModeEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Device Id of the Kiosk + * @member {String} DeviceId + */ + exports.prototype.DeviceId = undefined; + + /** + * Terminal Type + * @member {module:model/KioskBluetoothUnpairingModeEvent.BluetoothTerminalTypeEnum} BluetoothTerminalType + */ + exports.prototype.BluetoothTerminalType = undefined; + + /** + * User who made the change + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + + /** + * Allowed values for the BluetoothTerminalType property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/Language.js b/src/model/Language.js new file mode 100644 index 00000000..85adf776 --- /dev/null +++ b/src/model/Language.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.Language = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The Language model module. + * @module model/Language + * @version 1.0.0 + */ + + /** + * Constructs a new Language. + * Sorted Language + * @alias module:model/Language + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * ISO 639-1 Language Code + * @member {String} LanguageId + */ + exports.prototype.LanguageId = undefined; + + /** + * Display Order + * @member {Number} DisplayOrder + */ + exports.prototype.DisplayOrder = undefined; + + /** + * Language Name + * @member {String} Name + */ + exports.prototype.Name = undefined; + + + return exports; + +})); diff --git a/src/model/LightspeedSettings.js b/src/model/LightspeedSettings.js new file mode 100644 index 00000000..ceace925 --- /dev/null +++ b/src/model/LightspeedSettings.js @@ -0,0 +1,235 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.LightspeedSettings = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The LightspeedSettings model module. + * @module model/LightspeedSettings + * @version 1.0.0 + */ + + /** + * Constructs a new LightspeedSettings. + * Ligthspeed store settings + * @alias module:model/LightspeedSettings + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Company Id + * @member {String} CompanyId + */ + exports.prototype.CompanyId = undefined; + + /** + * Use OAuth for authentication + * @member {Boolean} UseOAuth + */ + exports.prototype.UseOAuth = undefined; + + /** + * Enabled + * @member {Boolean} Enabled + */ + exports.prototype.Enabled = undefined; + + /** + * Estimated minutes for delivery + * @member {Number} EstimatedMinutesForDelivery + */ + exports.prototype.EstimatedMinutesForDelivery = undefined; + + /** + * Estimated minutes for collection + * @member {Number} EstimatedMinutesForCollection + */ + exports.prototype.EstimatedMinutesForCollection = undefined; + + /** + * Geographic location (euc1, nae1, euw2, ....)) + * @member {String} GeographicLocation + */ + exports.prototype.GeographicLocation = undefined; + + /** + * Is the CompanyId an establishment (kind of the store of a group of store) + * @member {Boolean} Establishment + */ + exports.prototype.Establishment = undefined; + + /** + * The Lightspeed voucher identifier to map with our + * @member {String} VoucherId + */ + exports.prototype.VoucherId = undefined; + + /** + * The Lightspeed delivery fee identifier to map with our + * @member {String} DeliveryFeeId + */ + exports.prototype.DeliveryFeeId = undefined; + + /** + * The Lightspeed processing fee identifier to map with our + * @member {String} ProcessingFeeId + */ + exports.prototype.ProcessingFeeId = undefined; + + /** + * Which price to choose from Lightspeed menu + * @member {module:model/LightspeedSettings.PriceTypeEnum} PriceType + */ + exports.prototype.PriceType = undefined; + + /** + * The menu id of the store + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Collection Table ID to send orders + * @member {Number} CollectionTableId + */ + exports.prototype.CollectionTableId = undefined; + + /** + * Delivery Table ID to send orders + * @member {Number} DeliveryTableId + */ + exports.prototype.DeliveryTableId = undefined; + + /** + * Collection Table IDs to send orders to + * @member {Object.} CollectionTableIds + */ + exports.prototype.CollectionTableIds = undefined; + + /** + * Delivery Table IDs to send orders to + * @member {Object.} DeliveryTableIds + */ + exports.prototype.DeliveryTableIds = undefined; + + /** + * Exclude tax + * @member {Boolean} UseTaxInclusivePrices + */ + exports.prototype.UseTaxInclusivePrices = undefined; + + /** + * WARNING: only use this option if the Liteserver is not synchronizing within max 5 minutes with Lightspeed cloud! + * @member {Boolean} SkipStatusCheckAndAcceptOrderAfterSending + */ + exports.prototype.SkipStatusCheckAndAcceptOrderAfterSending = undefined; + + + + /** + * Allowed values for the PriceType property. + * @enum {String} + * @readonly + */ + exports.PriceTypeEnum = { + /** + * value: "Default" + * @const + */ + _Default: "Default", + + /** + * value: "Takeaway" + * @const + */ + Takeaway: "Takeaway", + + /** + * value: "Delivery" + * @const + */ + Delivery: "Delivery" + }; + + return exports; + +})); diff --git a/src/model/LocalisedTimeZone.js b/src/model/LocalisedTimeZone.js new file mode 100644 index 00000000..aa13e1bf --- /dev/null +++ b/src/model/LocalisedTimeZone.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.LocalisedTimeZone = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The LocalisedTimeZone model module. + * @module model/LocalisedTimeZone + * @version 1.0.0 + */ + + /** + * Constructs a new LocalisedTimeZone. + * Represents a localised time zone + * @alias module:model/LocalisedTimeZone + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.TimeZoneId = undefined; + + /** + * Iana Time Zone Id + * @member {String} IanaTimeZoneId + */ + exports.prototype.IanaTimeZoneId = undefined; + + /** + * Display name in users language + * @member {String} DisplayName + */ + exports.prototype.DisplayName = undefined; + + + return exports; + +})); diff --git a/src/model/LoginModel.js b/src/model/LoginModel.js new file mode 100644 index 00000000..400eda7d --- /dev/null +++ b/src/model/LoginModel.js @@ -0,0 +1,85 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.LoginModel = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The LoginModel model module. + * @module model/LoginModel + * @version 1.0.0 + */ + + /** + * Constructs a new LoginModel. + * Login model + * @alias module:model/LoginModel + * @class + * @param Email {String} Email address + * @param Password {String} Password + */ + var exports = function(Email, Password) { + this.Email = Email; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Email = undefined; + + /** + * Password + * @member {String} Password + */ + exports.prototype.Password = undefined; + + + return exports; + +})); diff --git a/src/model/LoginWithPinModel.js b/src/model/LoginWithPinModel.js new file mode 100644 index 00000000..92206348 --- /dev/null +++ b/src/model/LoginWithPinModel.js @@ -0,0 +1,85 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.LoginWithPinModel = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The LoginWithPinModel model module. + * @module model/LoginWithPinModel + * @version 1.0.0 + */ + + /** + * Constructs a new LoginWithPinModel. + * Login with PIN model + * @alias module:model/LoginWithPinModel + * @class + * @param Email {String} Email addres + * @param Pin {Number} PIN code (received via email) + */ + var exports = function(Email, Pin) { + this.Email = Email; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Email = undefined; + + /** + * PIN code (received via email) + * @member {Number} Pin + */ + exports.prototype.Pin = undefined; + + + return exports; + +})); diff --git a/src/model/LoyaltyCampaign.js b/src/model/LoyaltyCampaign.js new file mode 100644 index 00000000..cdc1fb5e --- /dev/null +++ b/src/model/LoyaltyCampaign.js @@ -0,0 +1,153 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CampaignStatistics', 'model/StoreCampaignStartTime'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./CampaignStatistics'), require('./StoreCampaignStartTime')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.LoyaltyCampaign = factory(root.Flipdish.ApiClient, root.Flipdish.CampaignStatistics, root.Flipdish.StoreCampaignStartTime); + } +}(this, function(ApiClient, CampaignStatistics, StoreCampaignStartTime) { + 'use strict'; + + /** + * The LoyaltyCampaign model module. + * @module model/LoyaltyCampaign + * @version 1.0.0 + */ + + /** + * Constructs a new LoyaltyCampaign. + * Loyalty campaign + * @alias module:model/LoyaltyCampaign + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('OrdersBeforeReceivingVoucher')) + obj.OrdersBeforeReceivingVoucher = ApiClient.convertToType(data['OrdersBeforeReceivingVoucher'], 'Number'); + if (data.hasOwnProperty('PercentDiscountAmount')) + obj.PercentDiscountAmount = ApiClient.convertToType(data['PercentDiscountAmount'], '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']); + } + return obj; + } + + /** + * Id of campaign + * @member {Number} CampaignId + */ + exports.prototype.CampaignId = undefined; + + /** + * Statistics of campaign + * @member {module:model/CampaignStatistics} Statistics + */ + exports.prototype.Statistics = undefined; + + /** + * Stores this campaign applies to with campaign start time in Utc + * @member {Array.} Stores + */ + exports.prototype.Stores = undefined; + + /** + * Number of orders customer needs to make, before receiving voucher + * @member {Number} OrdersBeforeReceivingVoucher + */ + exports.prototype.OrdersBeforeReceivingVoucher = undefined; + + /** + * Discount amount in percents + * @member {Number} PercentDiscountAmount + */ + exports.prototype.PercentDiscountAmount = undefined; + + /** + * Number of days for which the voucher will be valid. + * @member {Number} VoucherValidPeriodDays + */ + exports.prototype.VoucherValidPeriodDays = undefined; + + /** + * Discount will include delivery fee + * @member {Boolean} IncludeDeliveryFee + */ + exports.prototype.IncludeDeliveryFee = undefined; + + /** + * Automatically apply resulting vouchers + * @member {Boolean} AutoApplyResultingVouchers + */ + exports.prototype.AutoApplyResultingVouchers = undefined; + + /** + * Campaign will apply to existing orders + * @member {Boolean} IncludeExistingOrders + */ + exports.prototype.IncludeExistingOrders = undefined; + + /** + * Is campaign enabled + * @member {Boolean} IsEnabled + */ + exports.prototype.IsEnabled = undefined; + + /** + * Ids of stores this campaign applies to + * @member {Array.} StoreIds + */ + exports.prototype.StoreIds = undefined; + + + return exports; + +})); diff --git a/src/model/LoyaltyCampaignBase.js b/src/model/LoyaltyCampaignBase.js new file mode 100644 index 00000000..1f258b96 --- /dev/null +++ b/src/model/LoyaltyCampaignBase.js @@ -0,0 +1,129 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.LoyaltyCampaignBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The LoyaltyCampaignBase model module. + * @module model/LoyaltyCampaignBase + * @version 1.0.0 + */ + + /** + * Constructs a new LoyaltyCampaignBase. + * Loyalty campaign base + * @alias module:model/LoyaltyCampaignBase + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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']); + } + return obj; + } + + /** + * Number of orders customer needs to make, before receiving voucher + * @member {Number} OrdersBeforeReceivingVoucher + */ + exports.prototype.OrdersBeforeReceivingVoucher = undefined; + + /** + * Discount amount in percents + * @member {Number} PercentDiscountAmount + */ + exports.prototype.PercentDiscountAmount = undefined; + + /** + * Number of days for which the voucher will be valid. + * @member {Number} VoucherValidPeriodDays + */ + exports.prototype.VoucherValidPeriodDays = undefined; + + /** + * Discount will include delivery fee + * @member {Boolean} IncludeDeliveryFee + */ + exports.prototype.IncludeDeliveryFee = undefined; + + /** + * Automatically apply resulting vouchers + * @member {Boolean} AutoApplyResultingVouchers + */ + exports.prototype.AutoApplyResultingVouchers = undefined; + + /** + * Campaign will apply to existing orders + * @member {Boolean} IncludeExistingOrders + */ + exports.prototype.IncludeExistingOrders = undefined; + + /** + * Is campaign enabled + * @member {Boolean} IsEnabled + */ + exports.prototype.IsEnabled = undefined; + + /** + * Ids of stores this campaign applies to + * @member {Array.} StoreIds + */ + exports.prototype.StoreIds = undefined; + + + return exports; + +})); diff --git a/src/model/LoyaltyCampaignCreatedEvent.js b/src/model/LoyaltyCampaignCreatedEvent.js new file mode 100644 index 00000000..5d81b108 --- /dev/null +++ b/src/model/LoyaltyCampaignCreatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/LoyaltyCampaign', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./LoyaltyCampaign'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.LoyaltyCampaignCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.LoyaltyCampaign, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, LoyaltyCampaign, UserEventInfo) { + 'use strict'; + + /** + * The LoyaltyCampaignCreatedEvent model module. + * @module model/LoyaltyCampaignCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new LoyaltyCampaignCreatedEvent. + * Loyalty campaign created event + * @alias module:model/LoyaltyCampaignCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Info User + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The loyalty campaign + * @member {module:model/LoyaltyCampaign} LoyaltyCampaign + */ + exports.prototype.LoyaltyCampaign = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/LoyaltyCampaignDeletedEvent.js b/src/model/LoyaltyCampaignDeletedEvent.js new file mode 100644 index 00000000..eb981d62 --- /dev/null +++ b/src/model/LoyaltyCampaignDeletedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/LoyaltyCampaign', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./LoyaltyCampaign'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.LoyaltyCampaignDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.LoyaltyCampaign, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, LoyaltyCampaign, UserEventInfo) { + 'use strict'; + + /** + * The LoyaltyCampaignDeletedEvent model module. + * @module model/LoyaltyCampaignDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new LoyaltyCampaignDeletedEvent. + * Loyalty campaign deleted event + * @alias module:model/LoyaltyCampaignDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Info User + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The loyalty campaign + * @member {module:model/LoyaltyCampaign} LoyaltyCampaign + */ + exports.prototype.LoyaltyCampaign = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/LoyaltyCampaignUpdatedEvent.js b/src/model/LoyaltyCampaignUpdatedEvent.js new file mode 100644 index 00000000..ef613e17 --- /dev/null +++ b/src/model/LoyaltyCampaignUpdatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/LoyaltyCampaign', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./LoyaltyCampaign'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.LoyaltyCampaignUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.LoyaltyCampaign, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, LoyaltyCampaign, UserEventInfo) { + 'use strict'; + + /** + * The LoyaltyCampaignUpdatedEvent model module. + * @module model/LoyaltyCampaignUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new LoyaltyCampaignUpdatedEvent. + * Loyalty campaign updated event + * @alias module:model/LoyaltyCampaignUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Info User + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The loyalty campaign + * @member {module:model/LoyaltyCampaign} LoyaltyCampaign + */ + exports.prototype.LoyaltyCampaign = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/LumpDiscountDetails.js b/src/model/LumpDiscountDetails.js new file mode 100644 index 00000000..20ffceaf --- /dev/null +++ b/src/model/LumpDiscountDetails.js @@ -0,0 +1,73 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.LumpDiscountDetails = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The LumpDiscountDetails model module. + * @module model/LumpDiscountDetails + * @version 1.0.0 + */ + + /** + * Constructs a new LumpDiscountDetails. + * Lump discount details + * @alias module:model/LumpDiscountDetails + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('DiscountAmount')) + obj.DiscountAmount = ApiClient.convertToType(data['DiscountAmount'], 'Number'); + } + return obj; + } + + /** + * Discount amount + * @member {Number} DiscountAmount + */ + exports.prototype.DiscountAmount = undefined; + + + return exports; + +})); diff --git a/src/model/MaskedPhoneNumber.js b/src/model/MaskedPhoneNumber.js new file mode 100644 index 00000000..1828a642 --- /dev/null +++ b/src/model/MaskedPhoneNumber.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MaskedPhoneNumber = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The MaskedPhoneNumber model module. + * @module model/MaskedPhoneNumber + * @version 1.0.0 + */ + + /** + * Constructs a new MaskedPhoneNumber. + * Represents a masked phone number + * @alias module:model/MaskedPhoneNumber + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.IsEnabled = undefined; + + /** + * Defines the phone number to call + * @member {String} PhoneNumber + */ + exports.prototype.PhoneNumber = undefined; + + /** + * Defines the code to enter + * @member {String} Code + */ + exports.prototype.Code = undefined; + + + return exports; + +})); diff --git a/src/model/Menu.js b/src/model/Menu.js index eead8e42..da9574ec 100644 --- a/src/model/Menu.js +++ b/src/model/Menu.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,23 +16,20 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/MenuSection'], factory); + define(['ApiClient', 'model/MenuSection', 'model/MenuTaxRate'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./MenuSection')); + module.exports = factory(require('../ApiClient'), require('./MenuSection'), require('./MenuTaxRate')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.Menu = factory(root.Flipdish.ApiClient, root.Flipdish.MenuSection); + root.Flipdish.Menu = factory(root.Flipdish.ApiClient, root.Flipdish.MenuSection, root.Flipdish.MenuTaxRate); } -}(this, function(ApiClient, MenuSection) { +}(this, function(ApiClient, MenuSection, MenuTaxRate) { 'use strict'; - - - /** * The Menu model module. * @module model/Menu @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,28 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('ImageUrl')) { - obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); - } - if (data.hasOwnProperty('MenuSections')) { - obj['MenuSections'] = ApiClient.convertToType(data['MenuSections'], [MenuSection]); - } - 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('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('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('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'); } return obj; } @@ -97,37 +85,68 @@ * Menu identifier * @member {Number} MenuId */ - exports.prototype['MenuId'] = undefined; + exports.prototype.MenuId = undefined; + /** * Last modified time * @member {Date} ModifiedTime */ - exports.prototype['ModifiedTime'] = undefined; + exports.prototype.ModifiedTime = undefined; + /** * Menu version * @member {Number} VersionNumber */ - exports.prototype['VersionNumber'] = undefined; + exports.prototype.VersionNumber = undefined; + /** * Image url * @member {String} ImageUrl */ - exports.prototype['ImageUrl'] = undefined; + exports.prototype.ImageUrl = undefined; + + /** + * Name of Menu, only shown in portal + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Locked: is menu locked against modifcation + * @member {Boolean} Locked + */ + exports.prototype.Locked = undefined; + /** * Menu sections (startes, main etc) * @member {Array.} MenuSections */ - exports.prototype['MenuSections'] = undefined; + exports.prototype.MenuSections = undefined; + + /** + * Menu tax rates + * @member {Array.} TaxRates + */ + exports.prototype.TaxRates = undefined; + /** * Display menu section link on UI * @member {Boolean} DisplaySectionLinks */ - exports.prototype['DisplaySectionLinks'] = undefined; + exports.prototype.DisplaySectionLinks = undefined; + /** * Menu section behaviour * @member {module:model/Menu.MenuSectionBehaviourEnum} MenuSectionBehaviour */ - exports.prototype['MenuSectionBehaviour'] = undefined; + exports.prototype.MenuSectionBehaviour = undefined; + + /** + * Tax type + * @member {module:model/Menu.TaxTypeEnum} TaxType + */ + exports.prototype.TaxType = undefined; + /** @@ -140,15 +159,35 @@ * value: "ExpandSingle" * @const */ - "ExpandSingle": "ExpandSingle", + ExpandSingle: "ExpandSingle", + /** * value: "ExpandMultiple" * @const */ - "ExpandMultiple": "ExpandMultiple" }; + ExpandMultiple: "ExpandMultiple" + }; - return exports; -})); + /** + * Allowed values for the TaxType property. + * @enum {String} + * @readonly + */ + exports.TaxTypeEnum = { + /** + * value: "IncludedInBasePrice" + * @const + */ + IncludedInBasePrice: "IncludedInBasePrice", + + /** + * value: "ExcludedFromBasePrice" + * @const + */ + ExcludedFromBasePrice: "ExcludedFromBasePrice" + }; + return exports; +})); diff --git a/src/model/MenuBase.js b/src/model/MenuBase.js index ea68faf8..639aa8d8 100644 --- a/src/model/MenuBase.js +++ b/src/model/MenuBase.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The MenuBase model module. * @module model/MenuBase @@ -46,10 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - }; /** @@ -62,13 +55,12 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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'); } return obj; } @@ -77,12 +69,20 @@ * Display menu section link on UI * @member {Boolean} DisplaySectionLinks */ - exports.prototype['DisplaySectionLinks'] = undefined; + exports.prototype.DisplaySectionLinks = undefined; + /** * Menu section behaviour * @member {module:model/MenuBase.MenuSectionBehaviourEnum} MenuSectionBehaviour */ - exports.prototype['MenuSectionBehaviour'] = undefined; + exports.prototype.MenuSectionBehaviour = undefined; + + /** + * Tax type + * @member {module:model/MenuBase.TaxTypeEnum} TaxType + */ + exports.prototype.TaxType = undefined; + /** @@ -95,15 +95,35 @@ * value: "ExpandSingle" * @const */ - "ExpandSingle": "ExpandSingle", + ExpandSingle: "ExpandSingle", + /** * value: "ExpandMultiple" * @const */ - "ExpandMultiple": "ExpandMultiple" }; + ExpandMultiple: "ExpandMultiple" + }; - return exports; -})); + /** + * Allowed values for the TaxType property. + * @enum {String} + * @readonly + */ + exports.TaxTypeEnum = { + /** + * value: "IncludedInBasePrice" + * @const + */ + IncludedInBasePrice: "IncludedInBasePrice", + /** + * value: "ExcludedFromBasePrice" + * @const + */ + ExcludedFromBasePrice: "ExcludedFromBasePrice" + }; + return exports; + +})); diff --git a/src/model/MenuCheckpoint.js b/src/model/MenuCheckpoint.js new file mode 100644 index 00000000..7f173585 --- /dev/null +++ b/src/model/MenuCheckpoint.js @@ -0,0 +1,97 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuCheckpoint = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The MenuCheckpoint model module. + * @module model/MenuCheckpoint + * @version 1.0.0 + */ + + /** + * Constructs a new MenuCheckpoint. + * Menu Checkpoint + * @alias module:model/MenuCheckpoint + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.MenuCheckpointId = undefined; + + /** + * Time of creation of checkpoint + * @member {Date} Time + */ + exports.prototype.Time = undefined; + + /** + * Name of checkpoint + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Url that points to Serialized Checkpoint + * @member {String} Url + */ + exports.prototype.Url = undefined; + + + return exports; + +})); diff --git a/src/model/MenuCheckpointCreatedEvent.js b/src/model/MenuCheckpointCreatedEvent.js new file mode 100644 index 00000000..fd48fde5 --- /dev/null +++ b/src/model/MenuCheckpointCreatedEvent.js @@ -0,0 +1,129 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Menu', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Menu'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuCheckpointCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Menu, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, Menu, UserEventInfo) { + 'use strict'; + + /** + * The MenuCheckpointCreatedEvent model module. + * @module model/MenuCheckpointCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new MenuCheckpointCreatedEvent. + * + * @alias module:model/MenuCheckpointCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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'); + } + return obj; + } + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who has created the menu + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Menu identifier + * @member {module:model/Menu} Menu + */ + exports.prototype.Menu = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/MenuCreatedEvent.js b/src/model/MenuCreatedEvent.js index d571a2da..81093f01 100644 --- a/src/model/MenuCreatedEvent.js +++ b/src/model/MenuCreatedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Menu, UserEventInfo) { 'use strict'; - - - /** * The MenuCreatedEvent model module. * @module model/MenuCreatedEvent @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,22 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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'); } return obj; } @@ -97,41 +79,51 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * User who has created the menu * @member {module:model/UserEventInfo} User */ - exports.prototype['User'] = undefined; + exports.prototype.User = undefined; + /** * The menu * @member {module:model/Menu} Menu */ - exports.prototype['Menu'] = undefined; + exports.prototype.Menu = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/MenuElementEditResponse.js b/src/model/MenuElementEditResponse.js new file mode 100644 index 00000000..1307449f --- /dev/null +++ b/src/model/MenuElementEditResponse.js @@ -0,0 +1,129 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuElementEditResponse = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The MenuElementEditResponse model module. + * @module model/MenuElementEditResponse + * @version 1.0.0 + */ + + /** + * Constructs a new MenuElementEditResponse. + * Response with any menu elements that had issues being hidden/shown + * @alias module:model/MenuElementEditResponse + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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; + } + + /** + * Holds the information for the A and CNAME Records of a domain. + * @member {Number} MenuElementId + */ + exports.prototype.MenuElementId = undefined; + + /** + * Type of menu element + * @member {module:model/MenuElementEditResponse.MenuElementTypeEnum} MenuElementType + */ + exports.prototype.MenuElementType = undefined; + + /** + * Validation message for menu element issue + * @member {module:model/MenuElementEditResponse.ValidationCodeEnum} ValidationCode + */ + exports.prototype.ValidationCode = undefined; + + + + /** + * Allowed values for the MenuElementType property. + * @enum {String} + * @readonly + */ + exports.MenuElementTypeEnum = { + /** + * value: "MenuItem" + * @const + */ + MenuItem: "MenuItem", + + /** + * value: "MenuOptionSetItem" + * @const + */ + MenuOptionSetItem: "MenuOptionSetItem" + }; + + + /** + * Allowed values for the ValidationCode property. + * @enum {String} + * @readonly + */ + exports.ValidationCodeEnum = { + /** + * value: "Success" + * @const + */ + Success: "Success", + + /** + * value: "MinimumCountViolation" + * @const + */ + MinimumCountViolation: "MinimumCountViolation" + }; + + return exports; + +})); diff --git a/src/model/MenuElementHide.js b/src/model/MenuElementHide.js new file mode 100644 index 00000000..823272d1 --- /dev/null +++ b/src/model/MenuElementHide.js @@ -0,0 +1,101 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuElementHide = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The MenuElementHide model module. + * @module model/MenuElementHide + * @version 1.0.0 + */ + + /** + * Constructs a new MenuElementHide. + * Menu element hide + * @alias module:model/MenuElementHide + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.MenuElementId = undefined; + + /** + * Type of menu element + * @member {module:model/MenuElementHide.MenuElementTypeEnum} MenuElementType + */ + exports.prototype.MenuElementType = undefined; + + + + /** + * Allowed values for the MenuElementType property. + * @enum {String} + * @readonly + */ + exports.MenuElementTypeEnum = { + /** + * value: "MenuItem" + * @const + */ + MenuItem: "MenuItem", + + /** + * value: "MenuOptionSetItem" + * @const + */ + MenuOptionSetItem: "MenuOptionSetItem" + }; + + return exports; + +})); diff --git a/src/model/MenuItemOptionSet.js b/src/model/MenuItemOptionSet.js index ad6909d6..846ec210 100644 --- a/src/model/MenuItemOptionSet.js +++ b/src/model/MenuItemOptionSet.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, MenuItemOptionSetItem) { 'use strict'; - - - /** * The MenuItemOptionSet model module. * @module model/MenuItemOptionSet @@ -46,17 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - - }; /** @@ -69,34 +55,26 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('MenuItemOptionSetId')) { - obj['MenuItemOptionSetId'] = ApiClient.convertToType(data['MenuItemOptionSetId'], 'Number'); - } - 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('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('MenuItemOptionSetId')) + obj.MenuItemOptionSetId = ApiClient.convertToType(data['MenuItemOptionSetId'], 'Number'); + 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('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; } @@ -105,47 +83,62 @@ * Menu item option set identifier * @member {Number} MenuItemOptionSetId */ - exports.prototype['MenuItemOptionSetId'] = undefined; + exports.prototype.MenuItemOptionSetId = undefined; + /** * Image url * @member {String} ImageUrl */ - exports.prototype['ImageUrl'] = undefined; + exports.prototype.ImageUrl = undefined; + /** * Option set items * @member {Array.} MenuItemOptionSetItems */ - exports.prototype['MenuItemOptionSetItems'] = undefined; + exports.prototype.MenuItemOptionSetItems = undefined; + + /** + * Permanent reference to the item. + * @member {String} PublicId + */ + exports.prototype.PublicId = undefined; + /** * Menu item option set name * @member {String} Name */ - exports.prototype['Name'] = undefined; + exports.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 */ - exports.prototype['IsMasterOptionSet'] = undefined; + exports.prototype.IsMasterOptionSet = undefined; + /** * Display order. Displayed in ascending order. * @member {Number} DisplayOrder */ - exports.prototype['DisplayOrder'] = undefined; + exports.prototype.DisplayOrder = undefined; + /** * Minimum items must be selected * @member {Number} MinSelectCount */ - exports.prototype['MinSelectCount'] = undefined; + exports.prototype.MinSelectCount = undefined; + /** * Maximum number of items can be selected * @member {Number} MaxSelectCount */ - exports.prototype['MaxSelectCount'] = undefined; + exports.prototype.MaxSelectCount = undefined; + /** * Small | Medium | Large Affects the layout of the menu. * @member {module:model/MenuItemOptionSet.CellLayoutTypeEnum} CellLayoutType */ - exports.prototype['CellLayoutType'] = undefined; + exports.prototype.CellLayoutType = undefined; + /** @@ -158,20 +151,27 @@ * value: "Small" * @const */ - "Small": "Small", + Small: "Small", + /** * value: "Medium" * @const */ - "Medium": "Medium", + Medium: "Medium", + /** * value: "Large" * @const */ - "Large": "Large" }; + Large: "Large", + /** + * value: "HiddenImage" + * @const + */ + HiddenImage: "HiddenImage" + }; return exports; -})); - +})); diff --git a/src/model/MenuItemOptionSetBase.js b/src/model/MenuItemOptionSetBase.js index bff31cd2..8c335edb 100644 --- a/src/model/MenuItemOptionSetBase.js +++ b/src/model/MenuItemOptionSetBase.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The MenuItemOptionSetBase model module. * @module model/MenuItemOptionSetBase @@ -46,14 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - }; /** @@ -66,25 +55,18 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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; } @@ -93,32 +75,38 @@ * Menu item option set name * @member {String} Name */ - exports.prototype['Name'] = undefined; + exports.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 */ - exports.prototype['IsMasterOptionSet'] = undefined; + exports.prototype.IsMasterOptionSet = undefined; + /** * Display order. Displayed in ascending order. * @member {Number} DisplayOrder */ - exports.prototype['DisplayOrder'] = undefined; + exports.prototype.DisplayOrder = undefined; + /** * Minimum items must be selected * @member {Number} MinSelectCount */ - exports.prototype['MinSelectCount'] = undefined; + exports.prototype.MinSelectCount = undefined; + /** * Maximum number of items can be selected * @member {Number} MaxSelectCount */ - exports.prototype['MaxSelectCount'] = undefined; + exports.prototype.MaxSelectCount = undefined; + /** * Small | Medium | Large Affects the layout of the menu. * @member {module:model/MenuItemOptionSetBase.CellLayoutTypeEnum} CellLayoutType */ - exports.prototype['CellLayoutType'] = undefined; + exports.prototype.CellLayoutType = undefined; + /** @@ -131,20 +119,27 @@ * value: "Small" * @const */ - "Small": "Small", + Small: "Small", + /** * value: "Medium" * @const */ - "Medium": "Medium", + Medium: "Medium", + /** * value: "Large" * @const */ - "Large": "Large" }; + Large: "Large", + /** + * value: "HiddenImage" + * @const + */ + HiddenImage: "HiddenImage" + }; return exports; -})); - +})); diff --git a/src/model/MenuItemOptionSetCreatedEvent.js b/src/model/MenuItemOptionSetCreatedEvent.js new file mode 100644 index 00000000..700a86e9 --- /dev/null +++ b/src/model/MenuItemOptionSetCreatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuItemOptionSet', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuItemOptionSet'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuItemOptionSetCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.MenuItemOptionSet, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, MenuItemOptionSet, UserEventInfo) { + 'use strict'; + + /** + * The MenuItemOptionSetCreatedEvent model module. + * @module model/MenuItemOptionSetCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new MenuItemOptionSetCreatedEvent. + * + * @alias module:model/MenuItemOptionSetCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Menu identifier + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who has created the menu + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Created menu item optionset + * @member {module:model/MenuItemOptionSet} MenuItemOptionSet + */ + exports.prototype.MenuItemOptionSet = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/MenuItemOptionSetDeletedEvent.js b/src/model/MenuItemOptionSetDeletedEvent.js new file mode 100644 index 00000000..5f81e1cc --- /dev/null +++ b/src/model/MenuItemOptionSetDeletedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuItemOptionSet', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuItemOptionSet'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuItemOptionSetDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.MenuItemOptionSet, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, MenuItemOptionSet, UserEventInfo) { + 'use strict'; + + /** + * The MenuItemOptionSetDeletedEvent model module. + * @module model/MenuItemOptionSetDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new MenuItemOptionSetDeletedEvent. + * + * @alias module:model/MenuItemOptionSetDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Menu identifier + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who has created the menu + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Deleted menu item optionset + * @member {module:model/MenuItemOptionSet} MenuItemOptionSet + */ + exports.prototype.MenuItemOptionSet = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/MenuItemOptionSetItem.js b/src/model/MenuItemOptionSetItem.js index 9bd8f677..9fedd5df 100644 --- a/src/model/MenuItemOptionSetItem.js +++ b/src/model/MenuItemOptionSetItem.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,23 +16,20 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient'], factory); + define(['ApiClient', 'model/CreateMetadata'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); + module.exports = factory(require('../ApiClient'), require('./CreateMetadata')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.MenuItemOptionSetItem = factory(root.Flipdish.ApiClient); + root.Flipdish.MenuItemOptionSetItem = factory(root.Flipdish.ApiClient, root.Flipdish.CreateMetadata); } -}(this, function(ApiClient) { +}(this, function(ApiClient, CreateMetadata) { 'use strict'; - - - /** * The MenuItemOptionSetItem model module. * @module model/MenuItemOptionSetItem @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,24 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('MenuItemOptionSetItemId')) { - obj['MenuItemOptionSetItemId'] = ApiClient.convertToType(data['MenuItemOptionSetItemId'], 'Number'); - } - 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('Price')) { - obj['Price'] = ApiClient.convertToType(data['Price'], '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('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('Name')) + obj.Name = ApiClient.convertToType(data['Name'], 'String'); + if (data.hasOwnProperty('Price')) + obj.Price = ApiClient.convertToType(data['Price'], '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; } @@ -97,37 +81,56 @@ * Menu item option set item identifier * @member {Number} MenuItemOptionSetItemId */ - exports.prototype['MenuItemOptionSetItemId'] = undefined; + exports.prototype.MenuItemOptionSetItemId = undefined; + /** - * Image url - * @member {String} ImageUrl + * Permanent reference to the item. + * @member {String} PublicId */ - exports.prototype['ImageUrl'] = undefined; + exports.prototype.PublicId = undefined; + + /** + * List of metadata + * @member {Array.} Metadata + */ + exports.prototype.Metadata = undefined; + /** * Name * @member {String} Name */ - exports.prototype['Name'] = undefined; + exports.prototype.Name = undefined; + /** * Price * @member {Number} Price */ - exports.prototype['Price'] = undefined; + exports.prototype.Price = undefined; + /** * Is available * @member {Boolean} IsAvailable */ - exports.prototype['IsAvailable'] = undefined; + exports.prototype.IsAvailable = undefined; + /** * Display order. Displayed in ascending order. * @member {Number} DisplayOrder */ - exports.prototype['DisplayOrder'] = undefined; + exports.prototype.DisplayOrder = undefined; + /** * Small | Medium | Large Affects the layout of the menu. * @member {module:model/MenuItemOptionSetItem.CellLayoutTypeEnum} CellLayoutType */ - exports.prototype['CellLayoutType'] = undefined; + exports.prototype.CellLayoutType = undefined; + + /** + * Image url + * @member {String} ImageUrl + */ + exports.prototype.ImageUrl = undefined; + /** @@ -140,20 +143,27 @@ * value: "Small" * @const */ - "Small": "Small", + Small: "Small", + /** * value: "Medium" * @const */ - "Medium": "Medium", + Medium: "Medium", + /** * value: "Large" * @const */ - "Large": "Large" }; + Large: "Large", + /** + * value: "HiddenImage" + * @const + */ + HiddenImage: "HiddenImage" + }; return exports; -})); - +})); diff --git a/src/model/MenuItemOptionSetItemBase.js b/src/model/MenuItemOptionSetItemBase.js index 143b53dc..e50b56cb 100644 --- a/src/model/MenuItemOptionSetItemBase.js +++ b/src/model/MenuItemOptionSetItemBase.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The MenuItemOptionSetItemBase model module. * @module model/MenuItemOptionSetItemBase @@ -46,13 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - }; /** @@ -65,22 +55,18 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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('Name')) + obj.Name = ApiClient.convertToType(data['Name'], 'String'); + if (data.hasOwnProperty('Price')) + obj.Price = ApiClient.convertToType(data['Price'], '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; } @@ -89,27 +75,38 @@ * Name * @member {String} Name */ - exports.prototype['Name'] = undefined; + exports.prototype.Name = undefined; + /** * Price * @member {Number} Price */ - exports.prototype['Price'] = undefined; + exports.prototype.Price = undefined; + /** * Is available * @member {Boolean} IsAvailable */ - exports.prototype['IsAvailable'] = undefined; + exports.prototype.IsAvailable = undefined; + /** * Display order. Displayed in ascending order. * @member {Number} DisplayOrder */ - exports.prototype['DisplayOrder'] = undefined; + exports.prototype.DisplayOrder = undefined; + /** * Small | Medium | Large Affects the layout of the menu. * @member {module:model/MenuItemOptionSetItemBase.CellLayoutTypeEnum} CellLayoutType */ - exports.prototype['CellLayoutType'] = undefined; + exports.prototype.CellLayoutType = undefined; + + /** + * Image url + * @member {String} ImageUrl + */ + exports.prototype.ImageUrl = undefined; + /** @@ -122,20 +119,27 @@ * value: "Small" * @const */ - "Small": "Small", + Small: "Small", + /** * value: "Medium" * @const */ - "Medium": "Medium", + Medium: "Medium", + /** * value: "Large" * @const */ - "Large": "Large" }; + Large: "Large", + /** + * value: "HiddenImage" + * @const + */ + HiddenImage: "HiddenImage" + }; return exports; -})); - +})); diff --git a/src/model/MenuItemOptionSetItemCreatedEvent.js b/src/model/MenuItemOptionSetItemCreatedEvent.js new file mode 100644 index 00000000..d5baabef --- /dev/null +++ b/src/model/MenuItemOptionSetItemCreatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuItemOptionSetItem', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuItemOptionSetItem'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuItemOptionSetItemCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.MenuItemOptionSetItem, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, MenuItemOptionSetItem, UserEventInfo) { + 'use strict'; + + /** + * The MenuItemOptionSetItemCreatedEvent model module. + * @module model/MenuItemOptionSetItemCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new MenuItemOptionSetItemCreatedEvent. + * + * @alias module:model/MenuItemOptionSetItemCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Menu identifier + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who has created the menu + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Created menu item optionset item + * @member {module:model/MenuItemOptionSetItem} MenuItemOptionSetItem + */ + exports.prototype.MenuItemOptionSetItem = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/MenuItemOptionSetItemDeletedEvent.js b/src/model/MenuItemOptionSetItemDeletedEvent.js new file mode 100644 index 00000000..da21ec19 --- /dev/null +++ b/src/model/MenuItemOptionSetItemDeletedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuItemOptionSetItem', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuItemOptionSetItem'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuItemOptionSetItemDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.MenuItemOptionSetItem, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, MenuItemOptionSetItem, UserEventInfo) { + 'use strict'; + + /** + * The MenuItemOptionSetItemDeletedEvent model module. + * @module model/MenuItemOptionSetItemDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new MenuItemOptionSetItemDeletedEvent. + * + * @alias module:model/MenuItemOptionSetItemDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Menu identifier + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who has created the menu + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Deleted menu item optionset item + * @member {module:model/MenuItemOptionSetItem} MenuItemOptionSetItem + */ + exports.prototype.MenuItemOptionSetItem = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/MenuItemOptionSetItemUpdatedEvent.js b/src/model/MenuItemOptionSetItemUpdatedEvent.js new file mode 100644 index 00000000..f215e27b --- /dev/null +++ b/src/model/MenuItemOptionSetItemUpdatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuItemOptionSetItem', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuItemOptionSetItem'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuItemOptionSetItemUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.MenuItemOptionSetItem, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, MenuItemOptionSetItem, UserEventInfo) { + 'use strict'; + + /** + * The MenuItemOptionSetItemUpdatedEvent model module. + * @module model/MenuItemOptionSetItemUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new MenuItemOptionSetItemUpdatedEvent. + * + * @alias module:model/MenuItemOptionSetItemUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Menu identifier + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who has created the menu + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Updated menu item optionset item + * @member {module:model/MenuItemOptionSetItem} MenuItemOptionSetItem + */ + exports.prototype.MenuItemOptionSetItem = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/MenuItemOptionSetUpdatedEvent.js b/src/model/MenuItemOptionSetUpdatedEvent.js new file mode 100644 index 00000000..5165d8a7 --- /dev/null +++ b/src/model/MenuItemOptionSetUpdatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuItemOptionSet', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuItemOptionSet'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuItemOptionSetUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.MenuItemOptionSet, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, MenuItemOptionSet, UserEventInfo) { + 'use strict'; + + /** + * The MenuItemOptionSetUpdatedEvent model module. + * @module model/MenuItemOptionSetUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new MenuItemOptionSetUpdatedEvent. + * + * @alias module:model/MenuItemOptionSetUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Menu identifier + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who has created the menu + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Updated menu item optionset + * @member {module:model/MenuItemOptionSet} MenuItemOptionSet + */ + exports.prototype.MenuItemOptionSet = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/MenuObjectDisplayOrders.js b/src/model/MenuObjectDisplayOrders.js new file mode 100644 index 00000000..d6bbdd92 --- /dev/null +++ b/src/model/MenuObjectDisplayOrders.js @@ -0,0 +1,73 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/ObjectDisplayOrder'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./ObjectDisplayOrder')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuObjectDisplayOrders = factory(root.Flipdish.ApiClient, root.Flipdish.ObjectDisplayOrder); + } +}(this, function(ApiClient, ObjectDisplayOrder) { + 'use strict'; + + /** + * The MenuObjectDisplayOrders model module. + * @module model/MenuObjectDisplayOrders + * @version 1.0.0 + */ + + /** + * Constructs a new MenuObjectDisplayOrders. + * Collection of Display Orders for a Menu Object (Menu Section / Menu Items / Option Sets etc) + * @alias module:model/MenuObjectDisplayOrders + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('DisplayOrders')) + obj.DisplayOrders = ApiClient.convertToType(data['DisplayOrders'], [ObjectDisplayOrder]); + } + return obj; + } + + /** + * List of Objects and their new Display Orders + * @member {Array.} DisplayOrders + */ + exports.prototype.DisplayOrders = undefined; + + + return exports; + +})); diff --git a/src/model/MenuSection.js b/src/model/MenuSection.js index e6e9c58f..9fd2b0fe 100644 --- a/src/model/MenuSection.js +++ b/src/model/MenuSection.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, MenuSectionAvailability, MenuSectionItem) { 'use strict'; - - - /** * The MenuSection model module. * @module model/MenuSection @@ -46,17 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - - }; /** @@ -69,34 +55,26 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('MenuSectionId')) { - obj['MenuSectionId'] = ApiClient.convertToType(data['MenuSectionId'], 'Number'); - } - if (data.hasOwnProperty('ImageUrl')) { - obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); - } - if (data.hasOwnProperty('MenuItems')) { - obj['MenuItems'] = ApiClient.convertToType(data['MenuItems'], [MenuSectionItem]); - } - if (data.hasOwnProperty('MenuSectionAvailability')) { - obj['MenuSectionAvailability'] = MenuSectionAvailability.constructFromObject(data['MenuSectionAvailability']); - } - 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('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('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; } @@ -105,51 +83,63 @@ * Menu section identifier * @member {Number} MenuSectionId */ - exports.prototype['MenuSectionId'] = undefined; - /** - * Image url - * @member {String} ImageUrl - */ - exports.prototype['ImageUrl'] = undefined; + exports.prototype.MenuSectionId = undefined; + /** * Menu items * @member {Array.} MenuItems */ - exports.prototype['MenuItems'] = undefined; + exports.prototype.MenuItems = undefined; + /** * Menu section availability * @member {module:model/MenuSectionAvailability} MenuSectionAvailability */ - exports.prototype['MenuSectionAvailability'] = undefined; + exports.prototype.MenuSectionAvailability = undefined; + + /** + * Permanent reference to the item. + * @member {String} PublicId + */ + exports.prototype.PublicId = undefined; + /** * Name * @member {String} Name */ - exports.prototype['Name'] = undefined; + exports.prototype.Name = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * Display order * @member {Number} DisplayOrder */ - exports.prototype['DisplayOrder'] = undefined; + exports.prototype.DisplayOrder = undefined; + /** * Is available * @member {Boolean} IsAvailable */ - exports.prototype['IsAvailable'] = undefined; + exports.prototype.IsAvailable = undefined; + /** * Is hidden from customer. Perhaps when the item is out of stock. * @member {Boolean} IsHiddenFromCustomers */ - exports.prototype['IsHiddenFromCustomers'] = undefined; + exports.prototype.IsHiddenFromCustomers = undefined; + /** + * Image url + * @member {String} ImageUrl + */ + exports.prototype.ImageUrl = undefined; return exports; -})); - +})); diff --git a/src/model/MenuSectionAvailability.js b/src/model/MenuSectionAvailability.js index 508ee551..e82090b6 100644 --- a/src/model/MenuSectionAvailability.js +++ b/src/model/MenuSectionAvailability.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, BusinessHoursPeriod) { 'use strict'; - - - /** * The MenuSectionAvailability model module. * @module model/MenuSectionAvailability @@ -46,10 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - }; /** @@ -62,13 +55,10 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('AvailableTimes')) { - obj['AvailableTimes'] = ApiClient.convertToType(data['AvailableTimes'], [BusinessHoursPeriod]); - } - if (data.hasOwnProperty('AvailabilityMode')) { - obj['AvailabilityMode'] = ApiClient.convertToType(data['AvailabilityMode'], 'String'); - } + if (data.hasOwnProperty('AvailableTimes')) + obj.AvailableTimes = ApiClient.convertToType(data['AvailableTimes'], [BusinessHoursPeriod]); + if (data.hasOwnProperty('AvailabilityMode')) + obj.AvailabilityMode = ApiClient.convertToType(data['AvailabilityMode'], 'String'); } return obj; } @@ -77,12 +67,14 @@ * Available times * @member {Array.} AvailableTimes */ - exports.prototype['AvailableTimes'] = undefined; + exports.prototype.AvailableTimes = undefined; + /** * Availability mode * @member {module:model/MenuSectionAvailability.AvailabilityModeEnum} AvailabilityMode */ - exports.prototype['AvailabilityMode'] = undefined; + exports.prototype.AvailabilityMode = undefined; + /** @@ -95,25 +87,27 @@ * value: "DisplayAlways" * @const */ - "DisplayAlways": "DisplayAlways", + DisplayAlways: "DisplayAlways", + /** * value: "DisplayBasedOnTimes" * @const */ - "DisplayBasedOnTimes": "DisplayBasedOnTimes", + DisplayBasedOnTimes: "DisplayBasedOnTimes", + /** * value: "DisplayAlwaysStartCollapsed" * @const */ - "DisplayAlwaysStartCollapsed": "DisplayAlwaysStartCollapsed", + DisplayAlwaysStartCollapsed: "DisplayAlwaysStartCollapsed", + /** * value: "DisplayAlwaysStartCollapsedBasedOnTimes" * @const */ - "DisplayAlwaysStartCollapsedBasedOnTimes": "DisplayAlwaysStartCollapsedBasedOnTimes" }; - + DisplayAlwaysStartCollapsedBasedOnTimes: "DisplayAlwaysStartCollapsedBasedOnTimes" + }; return exports; -})); - +})); diff --git a/src/model/MenuSectionAvailabilityBase.js b/src/model/MenuSectionAvailabilityBase.js new file mode 100644 index 00000000..9bc5d349 --- /dev/null +++ b/src/model/MenuSectionAvailabilityBase.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuSectionAvailabilityBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The MenuSectionAvailabilityBase model module. + * @module model/MenuSectionAvailabilityBase + * @version 1.0.0 + */ + + /** + * Constructs a new MenuSectionAvailabilityBase. + * Menu section availability + * @alias module:model/MenuSectionAvailabilityBase + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('AvailabilityMode')) + obj.AvailabilityMode = ApiClient.convertToType(data['AvailabilityMode'], 'String'); + } + return obj; + } + + /** + * Availability mode + * @member {module:model/MenuSectionAvailabilityBase.AvailabilityModeEnum} AvailabilityMode + */ + exports.prototype.AvailabilityMode = undefined; + + + + /** + * Allowed values for the AvailabilityMode property. + * @enum {String} + * @readonly + */ + exports.AvailabilityModeEnum = { + /** + * value: "DisplayAlways" + * @const + */ + DisplayAlways: "DisplayAlways", + + /** + * value: "DisplayBasedOnTimes" + * @const + */ + DisplayBasedOnTimes: "DisplayBasedOnTimes", + + /** + * value: "DisplayAlwaysStartCollapsed" + * @const + */ + DisplayAlwaysStartCollapsed: "DisplayAlwaysStartCollapsed", + + /** + * value: "DisplayAlwaysStartCollapsedBasedOnTimes" + * @const + */ + DisplayAlwaysStartCollapsedBasedOnTimes: "DisplayAlwaysStartCollapsedBasedOnTimes" + }; + + return exports; + +})); diff --git a/src/model/MenuSectionBase.js b/src/model/MenuSectionBase.js index 3aeb1ba5..648949f3 100644 --- a/src/model/MenuSectionBase.js +++ b/src/model/MenuSectionBase.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The MenuSectionBase model module. * @module model/MenuSectionBase @@ -46,13 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - }; /** @@ -65,22 +55,18 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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; } @@ -89,31 +75,39 @@ * Name * @member {String} Name */ - exports.prototype['Name'] = undefined; + exports.prototype.Name = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * Display order * @member {Number} DisplayOrder */ - exports.prototype['DisplayOrder'] = undefined; + exports.prototype.DisplayOrder = undefined; + /** * Is available * @member {Boolean} IsAvailable */ - exports.prototype['IsAvailable'] = undefined; + exports.prototype.IsAvailable = undefined; + /** * Is hidden from customer. Perhaps when the item is out of stock. * @member {Boolean} IsHiddenFromCustomers */ - exports.prototype['IsHiddenFromCustomers'] = undefined; + exports.prototype.IsHiddenFromCustomers = undefined; + /** + * Image url + * @member {String} ImageUrl + */ + exports.prototype.ImageUrl = undefined; return exports; -})); - +})); diff --git a/src/model/MenuSectionCreatedEvent.js b/src/model/MenuSectionCreatedEvent.js new file mode 100644 index 00000000..6597fbc8 --- /dev/null +++ b/src/model/MenuSectionCreatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuSection', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuSection'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuSectionCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.MenuSection, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, MenuSection, UserEventInfo) { + 'use strict'; + + /** + * The MenuSectionCreatedEvent model module. + * @module model/MenuSectionCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new MenuSectionCreatedEvent. + * + * @alias module:model/MenuSectionCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Menu identifier + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who has created the menu + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Created menu section + * @member {module:model/MenuSection} MenuSection + */ + exports.prototype.MenuSection = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/MenuSectionDeletedEvent.js b/src/model/MenuSectionDeletedEvent.js new file mode 100644 index 00000000..76b24197 --- /dev/null +++ b/src/model/MenuSectionDeletedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuSection', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuSection'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuSectionDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.MenuSection, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, MenuSection, UserEventInfo) { + 'use strict'; + + /** + * The MenuSectionDeletedEvent model module. + * @module model/MenuSectionDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new MenuSectionDeletedEvent. + * + * @alias module:model/MenuSectionDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Menu identifier + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who has created the menu + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Deleted menu section + * @member {module:model/MenuSection} MenuSection + */ + exports.prototype.MenuSection = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/MenuSectionItem.js b/src/model/MenuSectionItem.js index 215d1236..ee9a0192 100644 --- a/src/model/MenuSectionItem.js +++ b/src/model/MenuSectionItem.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,23 +16,20 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/MenuItemOptionSet'], factory); + define(['ApiClient', 'model/BusinessHoursPeriod', 'model/CreateMetadata', 'model/MenuItemOptionSet'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./MenuItemOptionSet')); + module.exports = factory(require('../ApiClient'), require('./BusinessHoursPeriod'), require('./CreateMetadata'), require('./MenuItemOptionSet')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.MenuSectionItem = factory(root.Flipdish.ApiClient, root.Flipdish.MenuItemOptionSet); + root.Flipdish.MenuSectionItem = factory(root.Flipdish.ApiClient, root.Flipdish.BusinessHoursPeriod, root.Flipdish.CreateMetadata, root.Flipdish.MenuItemOptionSet); } -}(this, function(ApiClient, MenuItemOptionSet) { +}(this, function(ApiClient, BusinessHoursPeriod, CreateMetadata, MenuItemOptionSet) { 'use strict'; - - - /** * The MenuSectionItem model module. * @module model/MenuSectionItem @@ -46,20 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - - - - - }; /** @@ -72,107 +55,138 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('MenuItemId')) { - obj['MenuItemId'] = ApiClient.convertToType(data['MenuItemId'], 'Number'); - } - if (data.hasOwnProperty('ActualPrice')) { - obj['ActualPrice'] = ApiClient.convertToType(data['ActualPrice'], 'Number'); - } - if (data.hasOwnProperty('ImageUrl')) { - obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); - } - if (data.hasOwnProperty('MenuItemOptionSets')) { - obj['MenuItemOptionSets'] = ApiClient.convertToType(data['MenuItemOptionSets'], [MenuItemOptionSet]); - } - 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('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('MenuItemId')) + obj.MenuItemId = ApiClient.convertToType(data['MenuItemId'], 'Number'); + 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('Metadata')) + obj.Metadata = ApiClient.convertToType(data['Metadata'], [CreateMetadata]); + 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('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('ImageUrl')) + obj.ImageUrl = ApiClient.convertToType(data['ImageUrl'], 'String'); } return obj; } /** - * Menu item identifier + * Menu item identifier. This ID may change at any time. Use `PublicId` if you need a perminant reference to the item. * @member {Number} MenuItemId */ - exports.prototype['MenuItemId'] = undefined; + exports.prototype.MenuItemId = undefined; + /** * Actual price - the minimum price possible when all required option set items prices are included. * @member {Number} ActualPrice */ - exports.prototype['ActualPrice'] = undefined; - /** - * Image url - * @member {String} ImageUrl - */ - exports.prototype['ImageUrl'] = undefined; + exports.prototype.ActualPrice = undefined; + /** * Menu item option sets * @member {Array.} MenuItemOptionSets */ - exports.prototype['MenuItemOptionSets'] = undefined; + exports.prototype.MenuItemOptionSets = undefined; + + /** + * Daily special hours + * @member {Array.} DailySpecialHours + */ + exports.prototype.DailySpecialHours = undefined; + + /** + * Permanent reference to the item. + * @member {String} PublicId + */ + exports.prototype.PublicId = undefined; + + /** + * List of metadata + * @member {Array.} Metadata + */ + exports.prototype.Metadata = undefined; + /** * Menu item name (like \"Korma\") * @member {String} Name */ - exports.prototype['Name'] = undefined; + exports.prototype.Name = undefined; + /** * Description (like \"A lovely dish from the east\") * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * Spiciness rating * @member {module:model/MenuSectionItem.SpicinessRatingEnum} SpicinessRating */ - exports.prototype['SpicinessRating'] = undefined; + exports.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 */ - exports.prototype['Price'] = undefined; + exports.prototype.Price = undefined; + /** * Display order * @member {Number} DisplayOrder */ - exports.prototype['DisplayOrder'] = undefined; + exports.prototype.DisplayOrder = undefined; + /** * To be set true if the item or an option of the item contains an alcoholic drink. * @member {Boolean} Alcohol */ - exports.prototype['Alcohol'] = undefined; + exports.prototype.Alcohol = undefined; + /** * True if we accept orders for this item still * @member {Boolean} IsAvailable */ - exports.prototype['IsAvailable'] = undefined; + exports.prototype.IsAvailable = undefined; + /** * Small | Medium | Large Affects the layout of the menu. * @member {module:model/MenuSectionItem.CellLayoutTypeEnum} CellLayoutType */ - exports.prototype['CellLayoutType'] = undefined; + exports.prototype.CellLayoutType = undefined; + + /** + * If true, then vouchers won't be applied for this item + * @member {Boolean} DisableVouchers + */ + exports.prototype.DisableVouchers = undefined; + + /** + * Image url + * @member {String} ImageUrl + */ + exports.prototype.ImageUrl = undefined; + /** @@ -185,22 +199,27 @@ * value: "NotRated" * @const */ - "NotRated": "NotRated", + NotRated: "NotRated", + /** * value: "Mild" * @const */ - "Mild": "Mild", + Mild: "Mild", + /** * value: "Medium" * @const */ - "Medium": "Medium", + Medium: "Medium", + /** * value: "Hot" * @const */ - "Hot": "Hot" }; + Hot: "Hot" + }; + /** * Allowed values for the CellLayoutType property. @@ -212,20 +231,27 @@ * value: "Small" * @const */ - "Small": "Small", + Small: "Small", + /** * value: "Medium" * @const */ - "Medium": "Medium", + Medium: "Medium", + /** * value: "Large" * @const */ - "Large": "Large" }; + Large: "Large", + /** + * value: "HiddenImage" + * @const + */ + HiddenImage: "HiddenImage" + }; return exports; -})); - +})); diff --git a/src/model/MenuSectionItemBase.js b/src/model/MenuSectionItemBase.js index f6ed1d91..61eb59d1 100644 --- a/src/model/MenuSectionItemBase.js +++ b/src/model/MenuSectionItemBase.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The MenuSectionItemBase model module. * @module model/MenuSectionItemBase @@ -46,16 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - }; /** @@ -68,31 +55,26 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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('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('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('ImageUrl')) + obj.ImageUrl = ApiClient.convertToType(data['ImageUrl'], 'String'); } return obj; } @@ -101,42 +83,62 @@ * Menu item name (like \"Korma\") * @member {String} Name */ - exports.prototype['Name'] = undefined; + exports.prototype.Name = undefined; + /** * Description (like \"A lovely dish from the east\") * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * Spiciness rating * @member {module:model/MenuSectionItemBase.SpicinessRatingEnum} SpicinessRating */ - exports.prototype['SpicinessRating'] = undefined; + exports.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 */ - exports.prototype['Price'] = undefined; + exports.prototype.Price = undefined; + /** * Display order * @member {Number} DisplayOrder */ - exports.prototype['DisplayOrder'] = undefined; + exports.prototype.DisplayOrder = undefined; + /** * To be set true if the item or an option of the item contains an alcoholic drink. * @member {Boolean} Alcohol */ - exports.prototype['Alcohol'] = undefined; + exports.prototype.Alcohol = undefined; + /** * True if we accept orders for this item still * @member {Boolean} IsAvailable */ - exports.prototype['IsAvailable'] = undefined; + exports.prototype.IsAvailable = undefined; + /** * Small | Medium | Large Affects the layout of the menu. * @member {module:model/MenuSectionItemBase.CellLayoutTypeEnum} CellLayoutType */ - exports.prototype['CellLayoutType'] = undefined; + exports.prototype.CellLayoutType = undefined; + + /** + * If true, then vouchers won't be applied for this item + * @member {Boolean} DisableVouchers + */ + exports.prototype.DisableVouchers = undefined; + + /** + * Image url + * @member {String} ImageUrl + */ + exports.prototype.ImageUrl = undefined; + /** @@ -149,22 +151,27 @@ * value: "NotRated" * @const */ - "NotRated": "NotRated", + NotRated: "NotRated", + /** * value: "Mild" * @const */ - "Mild": "Mild", + Mild: "Mild", + /** * value: "Medium" * @const */ - "Medium": "Medium", + Medium: "Medium", + /** * value: "Hot" * @const */ - "Hot": "Hot" }; + Hot: "Hot" + }; + /** * Allowed values for the CellLayoutType property. @@ -176,20 +183,27 @@ * value: "Small" * @const */ - "Small": "Small", + Small: "Small", + /** * value: "Medium" * @const */ - "Medium": "Medium", + Medium: "Medium", + /** * value: "Large" * @const */ - "Large": "Large" }; + Large: "Large", + /** + * value: "HiddenImage" + * @const + */ + HiddenImage: "HiddenImage" + }; return exports; -})); - +})); diff --git a/src/model/MenuSectionItemCreatedEvent.js b/src/model/MenuSectionItemCreatedEvent.js new file mode 100644 index 00000000..6b2a94fb --- /dev/null +++ b/src/model/MenuSectionItemCreatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuSectionItem', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuSectionItem'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuSectionItemCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.MenuSectionItem, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, MenuSectionItem, UserEventInfo) { + 'use strict'; + + /** + * The MenuSectionItemCreatedEvent model module. + * @module model/MenuSectionItemCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new MenuSectionItemCreatedEvent. + * + * @alias module:model/MenuSectionItemCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Menu identifier + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who has created the menu + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Created menu section item + * @member {module:model/MenuSectionItem} MenuSectionItem + */ + exports.prototype.MenuSectionItem = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/MenuSectionItemDeletedEvent.js b/src/model/MenuSectionItemDeletedEvent.js new file mode 100644 index 00000000..c5c31295 --- /dev/null +++ b/src/model/MenuSectionItemDeletedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuSectionItem', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuSectionItem'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuSectionItemDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.MenuSectionItem, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, MenuSectionItem, UserEventInfo) { + 'use strict'; + + /** + * The MenuSectionItemDeletedEvent model module. + * @module model/MenuSectionItemDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new MenuSectionItemDeletedEvent. + * + * @alias module:model/MenuSectionItemDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Menu identifier + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Event description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Deleted by user + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Deleted menu section item + * @member {module:model/MenuSectionItem} MenuSectionItem + */ + exports.prototype.MenuSectionItem = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/MenuSectionItemUpdatedEvent.js b/src/model/MenuSectionItemUpdatedEvent.js new file mode 100644 index 00000000..30e46b7a --- /dev/null +++ b/src/model/MenuSectionItemUpdatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuSectionItem', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuSectionItem'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuSectionItemUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.MenuSectionItem, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, MenuSectionItem, UserEventInfo) { + 'use strict'; + + /** + * The MenuSectionItemUpdatedEvent model module. + * @module model/MenuSectionItemUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new MenuSectionItemUpdatedEvent. + * + * @alias module:model/MenuSectionItemUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Menu identifier + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Event description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Updated by user + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Updated menu section item + * @member {module:model/MenuSectionItem} MenuSectionItem + */ + exports.prototype.MenuSectionItem = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/MenuSectionUpdatedEvent.js b/src/model/MenuSectionUpdatedEvent.js new file mode 100644 index 00000000..248dfc52 --- /dev/null +++ b/src/model/MenuSectionUpdatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuSection', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuSection'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuSectionUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.MenuSection, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, MenuSection, UserEventInfo) { + 'use strict'; + + /** + * The MenuSectionUpdatedEvent model module. + * @module model/MenuSectionUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new MenuSectionUpdatedEvent. + * + * @alias module:model/MenuSectionUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Menu identifier + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Event description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Updated by user + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Updated menu section + * @member {module:model/MenuSection} MenuSection + */ + exports.prototype.MenuSection = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/MenuStoreNames.js b/src/model/MenuStoreNames.js new file mode 100644 index 00000000..973f215d --- /dev/null +++ b/src/model/MenuStoreNames.js @@ -0,0 +1,73 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuStoreNames = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The MenuStoreNames model module. + * @module model/MenuStoreNames + * @version 1.0.0 + */ + + /** + * Constructs a new MenuStoreNames. + * Menu Store Names + * @alias module:model/MenuStoreNames + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('StoreNames')) + obj.StoreNames = ApiClient.convertToType(data['StoreNames'], ['String']); + } + return obj; + } + + /** + * Names of stores associated with menu + * @member {Array.} StoreNames + */ + exports.prototype.StoreNames = undefined; + + + return exports; + +})); diff --git a/src/model/MenuSummary.js b/src/model/MenuSummary.js new file mode 100644 index 00000000..bf0f730c --- /dev/null +++ b/src/model/MenuSummary.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuSummary = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The MenuSummary model module. + * @module model/MenuSummary + * @version 1.0.0 + */ + + /** + * Constructs a new MenuSummary. + * Menu Summary + * @alias module:model/MenuSummary + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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']); + } + return obj; + } + + /** + * Menu identifier + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Last modified time + * @member {Date} ModifiedTime + */ + exports.prototype.ModifiedTime = undefined; + + /** + * Menu version + * @member {Number} VersionNumber + */ + exports.prototype.VersionNumber = undefined; + + /** + * Name of Menu, only shown in portal + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Locked: is menu locked against modifcation + * @member {Boolean} Locked + */ + exports.prototype.Locked = undefined; + + /** + * List of stores names which are associated with this menu + * @member {Array.} StoreNames + */ + exports.prototype.StoreNames = undefined; + + + return exports; + +})); diff --git a/src/model/MenuTaxDetails.js b/src/model/MenuTaxDetails.js new file mode 100644 index 00000000..ea07159d --- /dev/null +++ b/src/model/MenuTaxDetails.js @@ -0,0 +1,125 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuTaxRate'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuTaxRate')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuTaxDetails = factory(root.Flipdish.ApiClient, root.Flipdish.MenuTaxRate); + } +}(this, function(ApiClient, MenuTaxRate) { + 'use strict'; + + /** + * The MenuTaxDetails model module. + * @module model/MenuTaxDetails + * @version 1.0.0 + */ + + /** + * Constructs a new MenuTaxDetails. + * Tax information for Menu + * @alias module:model/MenuTaxDetails + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.TaxRates = undefined; + + /** + * Display tax for Menu + * @member {Boolean} DisplayTax + */ + exports.prototype.DisplayTax = undefined; + + /** + * TaxType + * @member {module:model/MenuTaxDetails.TaxTypeEnum} TaxType + */ + exports.prototype.TaxType = undefined; + + /** + * ItemIds and TaxIds + * @member {Object.} ItemTaxes + */ + exports.prototype.ItemTaxes = undefined; + + /** + * SetItemIds and TaxIds + * @member {Object.} SetItemTaxes + */ + exports.prototype.SetItemTaxes = undefined; + + + + /** + * Allowed values for the TaxType property. + * @enum {String} + * @readonly + */ + exports.TaxTypeEnum = { + /** + * value: "IncludedInBasePrice" + * @const + */ + IncludedInBasePrice: "IncludedInBasePrice", + + /** + * value: "ExcludedFromBasePrice" + * @const + */ + ExcludedFromBasePrice: "ExcludedFromBasePrice" + }; + + return exports; + +})); diff --git a/src/model/MenuTaxRate.js b/src/model/MenuTaxRate.js new file mode 100644 index 00000000..8a95cc37 --- /dev/null +++ b/src/model/MenuTaxRate.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuTaxRate = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The MenuTaxRate model module. + * @module model/MenuTaxRate + * @version 1.0.0 + */ + + /** + * Constructs a new MenuTaxRate. + * Tax Rates Associated with a Menu + * @alias module:model/MenuTaxRate + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.TaxRateId = undefined; + + /** + * Name of Tax Rate + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * In Percentage + * @member {Number} Rate + */ + exports.prototype.Rate = undefined; + + + return exports; + +})); diff --git a/src/model/MenuUpdatedEvent.js b/src/model/MenuUpdatedEvent.js index 78225682..12153eff 100644 --- a/src/model/MenuUpdatedEvent.js +++ b/src/model/MenuUpdatedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Menu, UserEventInfo) { 'use strict'; - - - /** * The MenuUpdatedEvent model module. * @module model/MenuUpdatedEvent @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,22 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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'); } return obj; } @@ -97,41 +79,51 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * User who has updated the menu * @member {module:model/UserEventInfo} User */ - exports.prototype['User'] = undefined; + exports.prototype.User = undefined; + /** * The menu * @member {module:model/Menu} Menu */ - exports.prototype['Menu'] = undefined; + exports.prototype.Menu = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/MenuUploadedEvent.js b/src/model/MenuUploadedEvent.js new file mode 100644 index 00000000..369c4358 --- /dev/null +++ b/src/model/MenuUploadedEvent.js @@ -0,0 +1,129 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Menu', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Menu'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.MenuUploadedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Menu, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, Menu, UserEventInfo) { + 'use strict'; + + /** + * The MenuUploadedEvent model module. + * @module model/MenuUploadedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new MenuUploadedEvent. + * Menu uploaded event + * @alias module:model/MenuUploadedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who has uploaded the menu + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The menu + * @member {module:model/Menu} Menu + */ + exports.prototype.Menu = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/Metadata.js b/src/model/Metadata.js index 3b6fd792..f57c0f79 100644 --- a/src/model/Metadata.js +++ b/src/model/Metadata.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The Metadata model module. * @module model/Metadata @@ -46,10 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - }; /** @@ -62,31 +55,35 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Key')) { - obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); - } - if (data.hasOwnProperty('Value')) { - obj['Value'] = ApiClient.convertToType(data['Value'], 'String'); - } + 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 + */ + exports.prototype.MenuEntityId = undefined; + /** * Metadata key (Unique identifier) * @member {String} Key */ - exports.prototype['Key'] = undefined; + exports.prototype.Key = undefined; + /** * Metadata value * @member {String} Value */ - exports.prototype['Value'] = undefined; - + exports.prototype.Value = undefined; return exports; -})); - +})); diff --git a/src/model/OAuthApp.js b/src/model/OAuthApp.js new file mode 100644 index 00000000..3bfda2a3 --- /dev/null +++ b/src/model/OAuthApp.js @@ -0,0 +1,181 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.OAuthApp = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The OAuthApp model module. + * @module model/OAuthApp + * @version 1.0.0 + */ + + /** + * Constructs a new OAuthApp. + * Oauth client (also knowns as 'app') + * @alias module:model/OAuthApp + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.OauthAppId = undefined; + + /** + * OAuth App Name + * @member {String} OauthAppName + */ + exports.prototype.OauthAppName = undefined; + + /** + * OAuth App owner user identifier + * @member {Number} OwnerUserId + */ + exports.prototype.OwnerUserId = undefined; + + /** + * OAuth App logo uri + * @member {String} LogoUri + */ + exports.prototype.LogoUri = undefined; + + /** + * Supported OpenID Connect flows + * @member {module:model/OAuthApp.FlowEnum} Flow + */ + exports.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 + */ + exports.prototype.RefreshTokenUsage = undefined; + + /** + * Timem it takes for the IdentityToken to expire in seconds + * @member {Number} AccessTokenLifetime + */ + exports.prototype.AccessTokenLifetime = undefined; + + /** + * Maximum lifetime of a refresh token in seconds + * @member {Number} AbsoluteRefreshTokenLifetime + */ + exports.prototype.AbsoluteRefreshTokenLifetime = undefined; + + + + /** + * Allowed values for the Flow property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.RefreshTokenUsageEnum = { + /** + * value: "ReUse" + * @const + */ + ReUse: "ReUse", + + /** + * value: "OneTimeOnly" + * @const + */ + OneTimeOnly: "OneTimeOnly" + }; + + return exports; + +})); diff --git a/src/model/OAuthClient.js b/src/model/OAuthClient.js deleted file mode 100644 index 8144c8d9..00000000 --- a/src/model/OAuthClient.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Flipdish Open API v1.0 - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.Flipdish) { - root.Flipdish = {}; - } - root.Flipdish.OAuthClient = factory(root.Flipdish.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The OAuthClient model module. - * @module model/OAuthClient - * @version 1.0.0 - */ - - /** - * Constructs a new OAuthClient. - * Oauth client (also knowns as 'app') - * @alias module:model/OAuthClient - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a OAuthClient from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OAuthClient} obj Optional instance to populate. - * @return {module:model/OAuthClient} The populated OAuthClient instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('ClientId')) { - obj['ClientId'] = ApiClient.convertToType(data['ClientId'], 'String'); - } - if (data.hasOwnProperty('ClientName')) { - obj['ClientName'] = ApiClient.convertToType(data['ClientName'], 'String'); - } - if (data.hasOwnProperty('OwnerUserId')) { - obj['OwnerUserId'] = ApiClient.convertToType(data['OwnerUserId'], 'Number'); - } - if (data.hasOwnProperty('LogoUri')) { - obj['LogoUri'] = ApiClient.convertToType(data['LogoUri'], 'String'); - } - } - return obj; - } - - /** - * Oauth client identifier - * @member {String} ClientId - */ - exports.prototype['ClientId'] = undefined; - /** - * Oauth client name - * @member {String} ClientName - */ - exports.prototype['ClientName'] = undefined; - /** - * Oauth client owner user identifier - * @member {Number} OwnerUserId - */ - exports.prototype['OwnerUserId'] = undefined; - /** - * Oauth client logo uri - * @member {String} LogoUri - */ - exports.prototype['LogoUri'] = undefined; - - - - return exports; -})); - - diff --git a/src/model/OAuthTokenModel.js b/src/model/OAuthTokenModel.js index 29da23d7..102839e6 100644 --- a/src/model/OAuthTokenModel.js +++ b/src/model/OAuthTokenModel.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The OAuthTokenModel model module. * @module model/OAuthTokenModel @@ -46,13 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - }; /** @@ -65,22 +55,16 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'); - } + 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; } @@ -89,31 +73,33 @@ * Identitifier key * @member {String} Key */ - exports.prototype['Key'] = undefined; + exports.prototype.Key = undefined; + /** * Token type * @member {String} TokenType */ - exports.prototype['TokenType'] = undefined; + exports.prototype.TokenType = undefined; + /** * Oauth subject identifier * @member {String} SubjectId */ - exports.prototype['SubjectId'] = undefined; + exports.prototype.SubjectId = undefined; + /** * Oauth client identifier * @member {String} ClientId */ - exports.prototype['ClientId'] = undefined; + exports.prototype.ClientId = undefined; + /** * Token expiry * @member {Date} Expiry */ - exports.prototype['Expiry'] = undefined; - + exports.prototype.Expiry = undefined; return exports; -})); - +})); diff --git a/src/model/OauthClientRedirectUri.js b/src/model/OauthClientRedirectUri.js index 76f2948a..3080c935 100644 --- a/src/model/OauthClientRedirectUri.js +++ b/src/model/OauthClientRedirectUri.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The OauthClientRedirectUri model module. * @module model/OauthClientRedirectUri @@ -46,10 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - }; /** @@ -62,13 +55,10 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Id')) { - obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); - } - if (data.hasOwnProperty('Uri')) { - obj['Uri'] = ApiClient.convertToType(data['Uri'], 'String'); - } + if (data.hasOwnProperty('Id')) + obj.Id = ApiClient.convertToType(data['Id'], 'Number'); + if (data.hasOwnProperty('Uri')) + obj.Uri = ApiClient.convertToType(data['Uri'], 'String'); } return obj; } @@ -77,16 +67,15 @@ * Redirect uri identifier * @member {Number} Id */ - exports.prototype['Id'] = undefined; + exports.prototype.Id = undefined; + /** * Redirect uri * @member {String} Uri */ - exports.prototype['Uri'] = undefined; - + exports.prototype.Uri = undefined; return exports; -})); - +})); diff --git a/src/model/ObjectDisplayOrder.js b/src/model/ObjectDisplayOrder.js new file mode 100644 index 00000000..08aa85cc --- /dev/null +++ b/src/model/ObjectDisplayOrder.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.ObjectDisplayOrder = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The ObjectDisplayOrder model module. + * @module model/ObjectDisplayOrder + * @version 1.0.0 + */ + + /** + * Constructs a new ObjectDisplayOrder. + * + * @alias module:model/ObjectDisplayOrder + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Id = undefined; + + /** + * New Display order + * @member {Number} DisplayOrder + */ + exports.prototype.DisplayOrder = undefined; + + + return exports; + +})); diff --git a/src/model/Order.js b/src/model/Order.js index 03e0f660..82f4e40f 100644 --- a/src/model/Order.js +++ b/src/model/Order.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,23 +16,20 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Coordinates', 'model/CustomerSummary', 'model/DeliveryLocation', 'model/FeeSummary', 'model/OrderItem', 'model/StoreSummary', 'model/VoucherSummary'], factory); + define(['ApiClient', 'model/Coordinates', 'model/CustomerSummary', 'model/DeliveryLocation', 'model/FeeSummary', 'model/MaskedPhoneNumber', 'model/OrderItem', 'model/OrderVoucherSummary', 'model/StoreSummary'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Coordinates'), require('./CustomerSummary'), require('./DeliveryLocation'), require('./FeeSummary'), require('./OrderItem'), require('./StoreSummary'), require('./VoucherSummary')); + module.exports = factory(require('../ApiClient'), require('./Coordinates'), require('./CustomerSummary'), require('./DeliveryLocation'), require('./FeeSummary'), require('./MaskedPhoneNumber'), require('./OrderItem'), require('./OrderVoucherSummary'), require('./StoreSummary')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.Order = factory(root.Flipdish.ApiClient, root.Flipdish.Coordinates, root.Flipdish.CustomerSummary, root.Flipdish.DeliveryLocation, root.Flipdish.FeeSummary, root.Flipdish.OrderItem, root.Flipdish.StoreSummary, root.Flipdish.VoucherSummary); + root.Flipdish.Order = factory(root.Flipdish.ApiClient, root.Flipdish.Coordinates, root.Flipdish.CustomerSummary, root.Flipdish.DeliveryLocation, root.Flipdish.FeeSummary, root.Flipdish.MaskedPhoneNumber, root.Flipdish.OrderItem, root.Flipdish.OrderVoucherSummary, root.Flipdish.StoreSummary); } -}(this, function(ApiClient, Coordinates, CustomerSummary, DeliveryLocation, FeeSummary, OrderItem, StoreSummary, VoucherSummary) { +}(this, function(ApiClient, Coordinates, CustomerSummary, DeliveryLocation, FeeSummary, MaskedPhoneNumber, OrderItem, OrderVoucherSummary, StoreSummary) { 'use strict'; - - - /** * The Order model module. * @module model/Order @@ -46,32 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - - - - - - - - - - - - - - - - - }; /** @@ -84,79 +55,86 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'] = VoucherSummary.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('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('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('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('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('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('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'); } return obj; } @@ -165,122 +143,242 @@ * Store summary * @member {module:model/StoreSummary} Store */ - exports.prototype['Store'] = undefined; + exports.prototype.Store = undefined; + /** * Customer summary * @member {module:model/CustomerSummary} Customer */ - exports.prototype['Customer'] = undefined; + exports.prototype.Customer = undefined; + /** * Voucher summary - * @member {module:model/VoucherSummary} Voucher + * @member {module:model/OrderVoucherSummary} Voucher */ - exports.prototype['Voucher'] = undefined; + exports.prototype.Voucher = undefined; + /** * Fee summary * @member {module:model/FeeSummary} Fees */ - exports.prototype['Fees'] = undefined; + exports.prototype.Fees = undefined; + /** * Ordered items * @member {Array.} OrderItems */ - exports.prototype['OrderItems'] = undefined; + exports.prototype.OrderItems = undefined; + /** * Delivery location for delivery orders * @member {module:model/DeliveryLocation} DeliveryLocation */ - exports.prototype['DeliveryLocation'] = undefined; + exports.prototype.DeliveryLocation = undefined; + /** * Customer location * @member {module:model/Coordinates} CustomerLocation */ - exports.prototype['CustomerLocation'] = undefined; + exports.prototype.CustomerLocation = undefined; + + /** + * Represents customers masked phone number + * @member {module:model/MaskedPhoneNumber} MaskedPhoneNumber + */ + exports.prototype.MaskedPhoneNumber = undefined; + + /** + * Represents table service drop off location + * @member {Number} DropOffLocationId + */ + exports.prototype.DropOffLocationId = undefined; + + /** + * Represents table service drop off location + * @member {String} DropOffLocation + */ + exports.prototype.DropOffLocation = undefined; + + /** + * Time store has accepted the order for + * @member {Date} AcceptedFor + */ + exports.prototype.AcceptedFor = undefined; + + /** + * Was order made within a fraud zone + * @member {Boolean} InFraudZone + */ + exports.prototype.InFraudZone = undefined; + + /** + * Is order of unusually high value + * @member {Boolean} UnusualHighValueOrder + */ + exports.prototype.UnusualHighValueOrder = undefined; + + /** + * Id of user who rejected order, if available + * @member {Number} RejectedByUserId + */ + exports.prototype.RejectedByUserId = undefined; + /** * Order identifier * @member {Number} OrderId */ - exports.prototype['OrderId'] = undefined; + exports.prototype.OrderId = undefined; + + /** + * Local order Id. This is used for displaying a \"shorter\" order ID for customers (eg. Kiosk orders) + * @member {String} LocalOrderId + */ + exports.prototype.LocalOrderId = undefined; + /** * Delivery type * @member {module:model/Order.DeliveryTypeEnum} DeliveryType */ - exports.prototype['DeliveryType'] = undefined; + exports.prototype.DeliveryType = undefined; + /** * Pickup location type * @member {module:model/Order.PickupLocationTypeEnum} PickupLocationType */ - exports.prototype['PickupLocationType'] = undefined; + exports.prototype.PickupLocationType = undefined; + + /** + * Pickup location type + * @member {module:model/Order.TableServiceCatagoryEnum} TableServiceCatagory + */ + exports.prototype.TableServiceCatagory = undefined; + /** * Tip amount * @member {Number} TipAmount */ - exports.prototype['TipAmount'] = undefined; + exports.prototype.TipAmount = undefined; + /** * Delivery amount * @member {Number} DeliveryAmount */ - exports.prototype['DeliveryAmount'] = undefined; + exports.prototype.DeliveryAmount = undefined; + /** * Ordered items amount * @member {Number} OrderItemsAmount */ - exports.prototype['OrderItemsAmount'] = undefined; + exports.prototype.OrderItemsAmount = 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 */ - exports.prototype['Amount'] = undefined; + exports.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 */ - exports.prototype['ProcessingFee'] = undefined; + exports.prototype.ProcessingFee = undefined; + /** * Payment account type * @member {module:model/Order.PaymentAccountTypeEnum} PaymentAccountType */ - exports.prototype['PaymentAccountType'] = undefined; + exports.prototype.PaymentAccountType = undefined; + /** * Payment account description (like Visa ****2371 or Apple Pay. or Cash) * @member {String} PaymentAccountDescription */ - exports.prototype['PaymentAccountDescription'] = undefined; + exports.prototype.PaymentAccountDescription = undefined; + /** * Order state * @member {module:model/Order.OrderStateEnum} OrderState */ - exports.prototype['OrderState'] = undefined; + exports.prototype.OrderState = undefined; + /** * Is pre-order * @member {Boolean} IsPreOrder */ - exports.prototype['IsPreOrder'] = undefined; + exports.prototype.IsPreOrder = undefined; + /** * Order placed time * @member {Date} PlacedTime */ - exports.prototype['PlacedTime'] = undefined; + exports.prototype.PlacedTime = undefined; + /** * Order requested for * @member {Date} RequestedForTime */ - exports.prototype['RequestedForTime'] = undefined; + exports.prototype.RequestedForTime = undefined; + /** * Chef note * @member {String} ChefNote */ - exports.prototype['ChefNote'] = undefined; + exports.prototype.ChefNote = undefined; + /** * Used app type * @member {module:model/Order.AppTypeEnum} AppType */ - exports.prototype['AppType'] = undefined; + exports.prototype.AppType = undefined; + /** * User rating * @member {Number} UserRating */ - exports.prototype['UserRating'] = undefined; + exports.prototype.UserRating = undefined; + + /** + * Status of the payment + * @member {module:model/Order.PaymentStatusEnum} PaymentStatus + */ + exports.prototype.PaymentStatus = undefined; + + /** + * Rejection reason. Can have value if the order is rejected. + * @member {module:model/Order.RejectionReasonEnum} RejectionReason + */ + exports.prototype.RejectionReason = undefined; + + /** + * Amount refunded to customer. + * @member {Number} RefundedAmount + */ + exports.prototype.RefundedAmount = undefined; + + /** + * Delivery tracking status + * @member {module:model/Order.DeliveryTrackingStatusEnum} DeliveryTrackingStatus + */ + exports.prototype.DeliveryTrackingStatus = undefined; + + /** + * Assigned driver identifier + * @member {Number} DriverId + */ + exports.prototype.DriverId = undefined; + + /** + * Total tax applied to order + * @member {Number} TotalTax + */ + exports.prototype.TotalTax = undefined; + + /** + * Unique, 6 character long alpha numeric code for tracking. + * @member {String} OrderTrackingCode + */ + exports.prototype.OrderTrackingCode = undefined; + /** @@ -293,12 +391,15 @@ * value: "Delivery" * @const */ - "Delivery": "Delivery", + Delivery: "Delivery", + /** * value: "Pickup" * @const */ - "Pickup": "Pickup" }; + Pickup: "Pickup" + }; + /** * Allowed values for the PickupLocationType property. @@ -310,17 +411,83 @@ * value: "TakeOut" * @const */ - "TakeOut": "TakeOut", + TakeOut: "TakeOut", + /** * value: "TableService" * @const */ - "TableService": "TableService", + TableService: "TableService", + /** * value: "DineIn" * @const */ - "DineIn": "DineIn" }; + DineIn: "DineIn" + }; + + + /** + * Allowed values for the TableServiceCatagory property. + * @enum {String} + * @readonly + */ + exports.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" + }; + /** * Allowed values for the PaymentAccountType property. @@ -332,12 +499,51 @@ * value: "Card" * @const */ - "Card": "Card", + Card: "Card", + /** * value: "Cash" * @const */ - "Cash": "Cash" }; + 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" + }; + /** * Allowed values for the OrderState property. @@ -349,67 +555,81 @@ * value: "Created" * @const */ - "Created": "Created", + Created: "Created", + /** * value: "PlacedCanBeCancelled" * @const */ - "PlacedCanBeCancelled": "PlacedCanBeCancelled", + PlacedCanBeCancelled: "PlacedCanBeCancelled", + /** * value: "ReadyToProcess" * @const */ - "ReadyToProcess": "ReadyToProcess", + ReadyToProcess: "ReadyToProcess", + /** * value: "AcceptedByRestaurant" * @const */ - "AcceptedByRestaurant": "AcceptedByRestaurant", + AcceptedByRestaurant: "AcceptedByRestaurant", + /** * value: "Dispatched" * @const */ - "Dispatched": "Dispatched", + Dispatched: "Dispatched", + /** * value: "Delivered" * @const */ - "Delivered": "Delivered", + Delivered: "Delivered", + /** * value: "Cancelled" * @const */ - "Cancelled": "Cancelled", + Cancelled: "Cancelled", + /** * value: "ManualReview" * @const */ - "ManualReview": "ManualReview", + ManualReview: "ManualReview", + /** * value: "RejectedByStore" * @const */ - "RejectedByStore": "RejectedByStore", + RejectedByStore: "RejectedByStore", + /** * value: "RejectedByFlipdish" * @const */ - "RejectedByFlipdish": "RejectedByFlipdish", + RejectedByFlipdish: "RejectedByFlipdish", + /** * value: "RejectedAutomatically" * @const */ - "RejectedAutomatically": "RejectedAutomatically", + RejectedAutomatically: "RejectedAutomatically", + /** * value: "RejectedAfterBeingAccepted" * @const */ - "RejectedAfterBeingAccepted": "RejectedAfterBeingAccepted", + RejectedAfterBeingAccepted: "RejectedAfterBeingAccepted", + /** * value: "AcceptedAndRefunded" * @const */ - "AcceptedAndRefunded": "AcceptedAndRefunded" }; + AcceptedAndRefunded: "AcceptedAndRefunded" + }; + /** * Allowed values for the AppType property. @@ -421,55 +641,219 @@ * value: "Unknown" * @const */ - "Unknown": "Unknown", + Unknown: "Unknown", + /** * value: "Ios" * @const */ - "Ios": "Ios", + Ios: "Ios", + /** * value: "Android" * @const */ - "Android": "Android", + Android: "Android", + /** * value: "Web" * @const */ - "Web": "Web", + Web: "Web", + /** * value: "Kiosk" * @const */ - "Kiosk": "Kiosk", + Kiosk: "Kiosk", + /** * value: "Pos" * @const */ - "Pos": "Pos", + Pos: "Pos", + /** * value: "TelephoneCall" * @const */ - "TelephoneCall": "TelephoneCall", + TelephoneCall: "TelephoneCall", + /** * value: "Sms" * @const */ - "Sms": "Sms", + Sms: "Sms", + /** * value: "PwaAndroid" * @const */ - "PwaAndroid": "PwaAndroid", + PwaAndroid: "PwaAndroid", + /** * value: "PwaIos" * @const */ - "PwaIos": "PwaIos" }; + PwaIos: "PwaIos" + }; - return exports; -})); + /** + * Allowed values for the PaymentStatus property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.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 + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/OrderAcceptedEvent.js b/src/model/OrderAcceptedEvent.js index 37d48917..2cf5fe66 100644 --- a/src/model/OrderAcceptedEvent.js +++ b/src/model/OrderAcceptedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Order) { 'use strict'; - - - /** * The OrderAcceptedEvent model module. * @module model/OrderAcceptedEvent @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,22 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('OrderAcceptedTime')) { - obj['OrderAcceptedTime'] = ApiClient.convertToType(data['OrderAcceptedTime'], '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('EventName')) + obj.EventName = ApiClient.convertToType(data['EventName'], '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('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'); } return obj; } @@ -97,41 +79,51 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * Order Accepted Time * @member {Date} OrderAcceptedTime */ - exports.prototype['OrderAcceptedTime'] = undefined; + exports.prototype.OrderAcceptedTime = undefined; + /** * Order * @member {module:model/Order} Order */ - exports.prototype['Order'] = undefined; + exports.prototype.Order = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/OrderCapacityConfigUpdatedEvent.js b/src/model/OrderCapacityConfigUpdatedEvent.js new file mode 100644 index 00000000..af043ba8 --- /dev/null +++ b/src/model/OrderCapacityConfigUpdatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreOrderCapacityConfigEditModel', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreOrderCapacityConfigEditModel'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.OrderCapacityConfigUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.StoreOrderCapacityConfigEditModel, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, StoreOrderCapacityConfigEditModel, UserEventInfo) { + 'use strict'; + + /** + * The OrderCapacityConfigUpdatedEvent model module. + * @module model/OrderCapacityConfigUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new OrderCapacityConfigUpdatedEvent. + * Store's Order Capacity Configuration Updated + * @alias module:model/OrderCapacityConfigUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Id of the store whose order capacity configuration has been updated + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * User which updated order capacity configuration for this store + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Updated order capacity configuration + * @member {module:model/StoreOrderCapacityConfigEditModel} OrderCapacityConfig + */ + exports.prototype.OrderCapacityConfig = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/OrderCreatedEvent.js b/src/model/OrderCreatedEvent.js index 745c0088..de84fba9 100644 --- a/src/model/OrderCreatedEvent.js +++ b/src/model/OrderCreatedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Order) { 'use strict'; - - - /** * The OrderCreatedEvent model module. * @module model/OrderCreatedEvent @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,22 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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'); } return obj; } @@ -97,41 +79,51 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * Order Created Time * @member {Date} OrderCreatedTime */ - exports.prototype['OrderCreatedTime'] = undefined; + exports.prototype.OrderCreatedTime = undefined; + /** * Order * @member {module:model/Order} Order */ - exports.prototype['Order'] = undefined; + exports.prototype.Order = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/OrderCustomerTrackingCreatedEvent.js b/src/model/OrderCustomerTrackingCreatedEvent.js new file mode 100644 index 00000000..416d5662 --- /dev/null +++ b/src/model/OrderCustomerTrackingCreatedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CustomerDeliveryTrackingOrder'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./CustomerDeliveryTrackingOrder')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.OrderCustomerTrackingCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.CustomerDeliveryTrackingOrder); + } +}(this, function(ApiClient, CustomerDeliveryTrackingOrder) { + 'use strict'; + + /** + * The OrderCustomerTrackingCreatedEvent model module. + * @module model/OrderCustomerTrackingCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new OrderCustomerTrackingCreatedEvent. + * + * @alias module:model/OrderCustomerTrackingCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Order + * @member {module:model/CustomerDeliveryTrackingOrder} Order + */ + exports.prototype.Order = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/OrderDeliveryTrackingStatusUpdatedEvent.js b/src/model/OrderDeliveryTrackingStatusUpdatedEvent.js new file mode 100644 index 00000000..0739d27d --- /dev/null +++ b/src/model/OrderDeliveryTrackingStatusUpdatedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Order'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Order')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.OrderDeliveryTrackingStatusUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Order); + } +}(this, function(ApiClient, Order) { + 'use strict'; + + /** + * The OrderDeliveryTrackingStatusUpdatedEvent model module. + * @module model/OrderDeliveryTrackingStatusUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new OrderDeliveryTrackingStatusUpdatedEvent. + * + * @alias module:model/OrderDeliveryTrackingStatusUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Order + * @member {module:model/Order} Order + */ + exports.prototype.Order = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/OrderDispatchedEvent.js b/src/model/OrderDispatchedEvent.js new file mode 100644 index 00000000..0104c81f --- /dev/null +++ b/src/model/OrderDispatchedEvent.js @@ -0,0 +1,129 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Order'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Order')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.OrderDispatchedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Order); + } +}(this, function(ApiClient, Order) { + 'use strict'; + + /** + * The OrderDispatchedEvent model module. + * @module model/OrderDispatchedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new OrderDispatchedEvent. + * Order Dispatched Event + * @alias module:model/OrderDispatchedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Order Rejected Time + * @member {Date} OrderDispatchedTime + */ + exports.prototype.OrderDispatchedTime = undefined; + + /** + * Order + * @member {module:model/Order} Order + */ + exports.prototype.Order = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/OrderIdAndSequenceNumber.js b/src/model/OrderIdAndSequenceNumber.js new file mode 100644 index 00000000..3d286695 --- /dev/null +++ b/src/model/OrderIdAndSequenceNumber.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.OrderIdAndSequenceNumber = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The OrderIdAndSequenceNumber model module. + * @module model/OrderIdAndSequenceNumber + * @version 1.0.0 + */ + + /** + * Constructs a new OrderIdAndSequenceNumber. + * + * @alias module:model/OrderIdAndSequenceNumber + * @class + */ + var exports = function() { + }; + + /** + * Constructs a OrderIdAndSequenceNumber from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderIdAndSequenceNumber} obj Optional instance to populate. + * @return {module:model/OrderIdAndSequenceNumber} The populated OrderIdAndSequenceNumber instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('OrderId')) + obj.OrderId = ApiClient.convertToType(data['OrderId'], 'Number'); + if (data.hasOwnProperty('Sequence')) + obj.Sequence = ApiClient.convertToType(data['Sequence'], 'Number'); + } + return obj; + } + + /** + * Order identifier + * @member {Number} OrderId + */ + exports.prototype.OrderId = undefined; + + /** + * Sequence for delivery + * @member {Number} Sequence + */ + exports.prototype.Sequence = undefined; + + + return exports; + +})); diff --git a/src/model/OrderItem.js b/src/model/OrderItem.js index b1c188e1..bc833a5d 100644 --- a/src/model/OrderItem.js +++ b/src/model/OrderItem.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, OrderItemOption) { 'use strict'; - - - /** * The OrderItem model module. * @module model/OrderItem @@ -46,19 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - - - - }; /** @@ -71,40 +55,30 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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('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('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('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'); } return obj; } @@ -113,61 +87,75 @@ * Option list * @member {Array.} OrderItemOptions */ - exports.prototype['OrderItemOptions'] = undefined; + exports.prototype.OrderItemOptions = undefined; + /** * Metadata * @member {Object.} Metadata */ - exports.prototype['Metadata'] = undefined; + exports.prototype.Metadata = undefined; + + /** + * Public id of the Menu Item + * @member {String} MenuItemPublicId + */ + exports.prototype.MenuItemPublicId = undefined; + /** * Menu section name * @member {String} MenuSectionName */ - exports.prototype['MenuSectionName'] = undefined; + exports.prototype.MenuSectionName = undefined; + /** * Menu section display order * @member {Number} MenuSectionDisplayOrder */ - exports.prototype['MenuSectionDisplayOrder'] = undefined; + exports.prototype.MenuSectionDisplayOrder = undefined; + /** * Name * @member {String} Name */ - exports.prototype['Name'] = undefined; + exports.prototype.Name = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * Price * @member {Number} Price */ - exports.prototype['Price'] = undefined; + exports.prototype.Price = undefined; + /** * Price including option set items * @member {Number} PriceIncludingOptionSetItems */ - exports.prototype['PriceIncludingOptionSetItems'] = undefined; + exports.prototype.PriceIncludingOptionSetItems = undefined; + /** * Menu item identifier * @member {Number} MenuItemId */ - exports.prototype['MenuItemId'] = undefined; + exports.prototype.MenuItemId = undefined; + /** * Menu item display order * @member {Number} MenuItemDisplayOrder */ - exports.prototype['MenuItemDisplayOrder'] = undefined; + exports.prototype.MenuItemDisplayOrder = undefined; + /** * Is available * @member {Boolean} IsAvailable */ - exports.prototype['IsAvailable'] = undefined; - + exports.prototype.IsAvailable = undefined; return exports; -})); - +})); diff --git a/src/model/OrderItemOption.js b/src/model/OrderItemOption.js index 6d447a54..c1ee4e5b 100644 --- a/src/model/OrderItemOption.js +++ b/src/model/OrderItemOption.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The OrderItemOption model module. * @module model/OrderItemOption @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,22 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Metadata')) { - obj['Metadata'] = ApiClient.convertToType(data['Metadata'], {'String': '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('MenuItemOptionDisplayOrder')) { - obj['MenuItemOptionDisplayOrder'] = ApiClient.convertToType(data['MenuItemOptionDisplayOrder'], 'Number'); - } - if (data.hasOwnProperty('MenuItemOptionSetDisplayOrder')) { - obj['MenuItemOptionSetDisplayOrder'] = ApiClient.convertToType(data['MenuItemOptionSetDisplayOrder'], 'Number'); - } + 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('MenuItemOptionDisplayOrder')) + obj.MenuItemOptionDisplayOrder = ApiClient.convertToType(data['MenuItemOptionDisplayOrder'], 'Number'); + if (data.hasOwnProperty('MenuItemOptionSetDisplayOrder')) + obj.MenuItemOptionSetDisplayOrder = ApiClient.convertToType(data['MenuItemOptionSetDisplayOrder'], 'Number'); } return obj; } @@ -97,41 +79,51 @@ * Metadata * @member {Object.} Metadata */ - exports.prototype['Metadata'] = undefined; + exports.prototype.Metadata = undefined; + + /** + * Public id of the Menu Item Option + * @member {String} MenuItemOptionPublicId + */ + exports.prototype.MenuItemOptionPublicId = undefined; + /** * Menu item option identifier * @member {Number} MenuItemOptionId */ - exports.prototype['MenuItemOptionId'] = undefined; + exports.prototype.MenuItemOptionId = undefined; + /** * Is master option set item * @member {Boolean} IsMasterOptionSetItem */ - exports.prototype['IsMasterOptionSetItem'] = undefined; + exports.prototype.IsMasterOptionSetItem = undefined; + /** * Name * @member {String} Name */ - exports.prototype['Name'] = undefined; + exports.prototype.Name = undefined; + /** * Price * @member {Number} Price */ - exports.prototype['Price'] = undefined; + exports.prototype.Price = undefined; + /** * Menu item option display order * @member {Number} MenuItemOptionDisplayOrder */ - exports.prototype['MenuItemOptionDisplayOrder'] = undefined; + exports.prototype.MenuItemOptionDisplayOrder = undefined; + /** * Menu item option set display order * @member {Number} MenuItemOptionSetDisplayOrder */ - exports.prototype['MenuItemOptionSetDisplayOrder'] = undefined; - + exports.prototype.MenuItemOptionSetDisplayOrder = undefined; return exports; -})); - +})); diff --git a/src/model/OrderPaymentInformation.js b/src/model/OrderPaymentInformation.js new file mode 100644 index 00000000..6bf25df7 --- /dev/null +++ b/src/model/OrderPaymentInformation.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.OrderPaymentInformation = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The OrderPaymentInformation model module. + * @module model/OrderPaymentInformation + * @version 1.0.0 + */ + + /** + * Constructs a new OrderPaymentInformation. + * Order Payment Information + * @alias module:model/OrderPaymentInformation + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.OrderId = undefined; + + /** + * Signifies if the payment is refundable + * @member {Boolean} PaymentRefundable + */ + exports.prototype.PaymentRefundable = undefined; + + + return exports; + +})); diff --git a/src/model/OrderRatingUpdatedEvent.js b/src/model/OrderRatingUpdatedEvent.js index ee72f33f..12e28cd7 100644 --- a/src/model/OrderRatingUpdatedEvent.js +++ b/src/model/OrderRatingUpdatedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Order) { 'use strict'; - - - /** * The OrderRatingUpdatedEvent model module. * @module model/OrderRatingUpdatedEvent @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,22 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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'); } return obj; } @@ -97,41 +79,51 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * New User Rating * @member {Number} Rating */ - exports.prototype['Rating'] = undefined; + exports.prototype.Rating = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * Order * @member {module:model/Order} Order */ - exports.prototype['Order'] = undefined; + exports.prototype.Order = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/OrderRefundedEvent.js b/src/model/OrderRefundedEvent.js index ea367f61..d5d84321 100644 --- a/src/model/OrderRefundedEvent.js +++ b/src/model/OrderRefundedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Order) { 'use strict'; - - - /** * The OrderRefundedEvent model module. * @module model/OrderRefundedEvent @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,22 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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('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('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'); } return obj; } @@ -97,41 +79,51 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * The amount refunded * @member {Number} RefundedAmount */ - exports.prototype['RefundedAmount'] = undefined; + exports.prototype.RefundedAmount = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * Order * @member {module:model/Order} Order */ - exports.prototype['Order'] = undefined; + exports.prototype.Order = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/OrderRejectedEvent.js b/src/model/OrderRejectedEvent.js index ac737290..20f2fea9 100644 --- a/src/model/OrderRejectedEvent.js +++ b/src/model/OrderRejectedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Order) { 'use strict'; - - - /** * The OrderRejectedEvent model module. * @module model/OrderRejectedEvent @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,24 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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('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('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'); } return obj; } @@ -97,41 +81,57 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * Order Rejected Time * @member {Date} OrderRejectedTime */ - exports.prototype['OrderRejectedTime'] = undefined; + exports.prototype.OrderRejectedTime = undefined; + + /** + * Reason for Rejection + * @member {String} Reason + */ + exports.prototype.Reason = undefined; + /** * Order * @member {module:model/Order} Order */ - exports.prototype['Order'] = undefined; + exports.prototype.Order = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/OrderSummary.js b/src/model/OrderSummary.js new file mode 100644 index 00000000..43057630 --- /dev/null +++ b/src/model/OrderSummary.js @@ -0,0 +1,1283 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.OrderSummary = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The OrderSummary model module. + * @module model/OrderSummary + * @version 1.0.0 + */ + + /** + * Constructs a new OrderSummary. + * Order summary + * @alias module:model/OrderSummary + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('InFraudZone')) + obj.InFraudZone = ApiClient.convertToType(data['InFraudZone'], 'Boolean'); + if (data.hasOwnProperty('UnusualHighValueOrder')) + obj.UnusualHighValueOrder = ApiClient.convertToType(data['UnusualHighValueOrder'], 'Boolean'); + } + return obj; + } + + /** + * Order identifier + * @member {Number} OrderId + */ + exports.prototype.OrderId = undefined; + + /** + * Delivery type + * @member {module:model/OrderSummary.DeliveryTypeEnum} DeliveryType + */ + exports.prototype.DeliveryType = undefined; + + /** + * Pickup location type + * @member {module:model/OrderSummary.PickupLocationTypeEnum} PickupLocationType + */ + exports.prototype.PickupLocationType = undefined; + + /** + * Table service category + * @member {module:model/OrderSummary.TableServiceCatagoryEnum} TableServiceCatagory + */ + exports.prototype.TableServiceCatagory = undefined; + + /** + * Order state + * @member {module:model/OrderSummary.OrderStateEnum} OrderState + */ + exports.prototype.OrderState = undefined; + + /** + * Order requested for + * @member {Date} RequestedForTime + */ + exports.prototype.RequestedForTime = undefined; + + /** + * Name of the store + * @member {String} StoreName + */ + exports.prototype.StoreName = undefined; + + /** + * Store IANA time zone + * @member {String} StoreIanaTimeZone + */ + exports.prototype.StoreIanaTimeZone = undefined; + + /** + * Name of the customer + * @member {String} CustomerName + */ + exports.prototype.CustomerName = undefined; + + /** + * Phone number of customer + * @member {String} CustomerPhoneNumber + */ + exports.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 + */ + exports.prototype.Amount = undefined; + + /** + * Refunded amount + * @member {Number} RefundedAmount + */ + exports.prototype.RefundedAmount = undefined; + + /** + * Payment Account + * @member {module:model/OrderSummary.PaymentAccountTypeEnum} PaymentAccountType + */ + exports.prototype.PaymentAccountType = undefined; + + /** + * Status of the payment + * @member {module:model/OrderSummary.PaymentStatusEnum} PaymentStatus + */ + exports.prototype.PaymentStatus = undefined; + + /** + * Currency of payment + * @member {module:model/OrderSummary.CurrencyEnum} Currency + */ + exports.prototype.Currency = undefined; + + /** + * Type of app end user is on + * @member {module:model/OrderSummary.AppTypeEnum} AppType + */ + exports.prototype.AppType = undefined; + + /** + * Local order Id. This is used for displaying a \"shorter\" order ID for customers (eg. Kiosk orders) + * @member {String} LocalOrderId + */ + exports.prototype.LocalOrderId = undefined; + + /** + * id of the collection/drop off location + * @member {Number} DropOffLocationId + */ + exports.prototype.DropOffLocationId = undefined; + + /** + * Represents table service drop off location + * @member {String} DropOffLocation + */ + exports.prototype.DropOffLocation = undefined; + + /** + * Time store has accepted the order for + * @member {Date} AcceptedFor + */ + exports.prototype.AcceptedFor = undefined; + + /** + * Was order made within a fraud zone + * @member {Boolean} InFraudZone + */ + exports.prototype.InFraudZone = undefined; + + /** + * Is order of unusually high value + * @member {Boolean} UnusualHighValueOrder + */ + exports.prototype.UnusualHighValueOrder = undefined; + + + + /** + * Allowed values for the DeliveryType property. + * @enum {String} + * @readonly + */ + exports.DeliveryTypeEnum = { + /** + * value: "Delivery" + * @const + */ + Delivery: "Delivery", + + /** + * value: "Pickup" + * @const + */ + Pickup: "Pickup" + }; + + + /** + * Allowed values for the PickupLocationType property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.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" + }; + + + /** + * Allowed values for the OrderState property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + + /** + * Allowed values for the PaymentAccountType property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + + /** + * Allowed values for the PaymentStatus property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.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 + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/OrderTipUpdatedEvent.js b/src/model/OrderTipUpdatedEvent.js index beb07e65..2e30090b 100644 --- a/src/model/OrderTipUpdatedEvent.js +++ b/src/model/OrderTipUpdatedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Order) { 'use strict'; - - - /** * The OrderTipUpdatedEvent model module. * @module model/OrderTipUpdatedEvent @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,22 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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'); } return obj; } @@ -97,41 +79,51 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Tip Amount * @member {Number} TipAmount */ - exports.prototype['TipAmount'] = undefined; + exports.prototype.TipAmount = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * Order * @member {module:model/Order} Order */ - exports.prototype['Order'] = undefined; + exports.prototype.Order = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/OrderVoucherSummary.js b/src/model/OrderVoucherSummary.js new file mode 100644 index 00000000..7888bc4b --- /dev/null +++ b/src/model/OrderVoucherSummary.js @@ -0,0 +1,195 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.OrderVoucherSummary = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The OrderVoucherSummary model module. + * @module model/OrderVoucherSummary + * @version 1.0.0 + */ + + /** + * Constructs a new OrderVoucherSummary. + * Voucher summary + * @alias module:model/OrderVoucherSummary + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 name + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Voucher description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Voucher code + * @member {String} Code + */ + exports.prototype.Code = undefined; + + /** + * Voucher amount + * @member {Number} Amount + */ + exports.prototype.Amount = undefined; + + /** + * Voucher type + * @member {module:model/OrderVoucherSummary.TypeEnum} Type + */ + exports.prototype.Type = undefined; + + /** + * Voucher sub type + * @member {module:model/OrderVoucherSummary.SubTypeEnum} SubType + */ + exports.prototype.SubType = undefined; + + + + /** + * Allowed values for the Type property. + * @enum {String} + * @readonly + */ + exports.TypeEnum = { + /** + * value: "PercentageDiscount" + * @const + */ + PercentageDiscount: "PercentageDiscount", + + /** + * value: "LumpDiscount" + * @const + */ + LumpDiscount: "LumpDiscount", + + /** + * value: "AddItem" + * @const + */ + AddItem: "AddItem", + + /** + * value: "CreditNote" + * @const + */ + CreditNote: "CreditNote" + }; + + + /** + * Allowed values for the SubType property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/OtherChargesDetails.js b/src/model/OtherChargesDetails.js new file mode 100644 index 00000000..8b88835b --- /dev/null +++ b/src/model/OtherChargesDetails.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.OtherChargesDetails = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The OtherChargesDetails model module. + * @module model/OtherChargesDetails + * @version 1.0.0 + */ + + /** + * Constructs a new OtherChargesDetails. + * Breakdown of other charges + * @alias module:model/OtherChargesDetails + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.TotalOtherCharges = undefined; + + /** + * Number of other charges + * @member {Number} ChargesCount + */ + exports.prototype.ChargesCount = undefined; + + + return exports; + +})); diff --git a/src/model/PasswordResetModel.js b/src/model/PasswordResetModel.js new file mode 100644 index 00000000..054c3fa6 --- /dev/null +++ b/src/model/PasswordResetModel.js @@ -0,0 +1,101 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PasswordResetModel = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PasswordResetModel model module. + * @module model/PasswordResetModel + * @version 1.0.0 + */ + + /** + * Constructs a new PasswordResetModel. + * Password reset model + * @alias module:model/PasswordResetModel + * @class + * @param Password {String} Password + * @param PasswordConfirmation {String} Password confirmation + */ + var exports = function(Password, PasswordConfirmation) { + this.Password = Password; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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; + } + + /** + * Email address + * @member {String} Email + */ + exports.prototype.Email = undefined; + + /** + * Password + * @member {String} Password + */ + exports.prototype.Password = undefined; + + /** + * Password confirmation + * @member {String} PasswordConfirmation + */ + exports.prototype.PasswordConfirmation = undefined; + + /** + * Password reset token + * @member {String} Token + */ + exports.prototype.Token = undefined; + + + return exports; + +})); diff --git a/src/model/PaymentTerminalDetails.js b/src/model/PaymentTerminalDetails.js new file mode 100644 index 00000000..1bac98b0 --- /dev/null +++ b/src/model/PaymentTerminalDetails.js @@ -0,0 +1,97 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PaymentTerminalDetails = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PaymentTerminalDetails model module. + * @module model/PaymentTerminalDetails + * @version 1.0.0 + */ + + /** + * Constructs a new PaymentTerminalDetails. + * Details of Payment Terminal + * @alias module:model/PaymentTerminalDetails + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.TerminalId = undefined; + + /** + * Status of Terminal + * @member {String} Status + */ + exports.prototype.Status = undefined; + + /** + * Currency configured on the terminal + * @member {String} Currency + */ + exports.prototype.Currency = undefined; + + /** + * Location to Device + * @member {String} Uri + */ + exports.prototype.Uri = undefined; + + + return exports; + +})); diff --git a/src/model/PaymentTerminalTransactionDetails.js b/src/model/PaymentTerminalTransactionDetails.js new file mode 100644 index 00000000..b1919b88 --- /dev/null +++ b/src/model/PaymentTerminalTransactionDetails.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PaymentTerminalTransactionDetails = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PaymentTerminalTransactionDetails model module. + * @module model/PaymentTerminalTransactionDetails + * @version 1.0.0 + */ + + /** + * Constructs a new PaymentTerminalTransactionDetails. + * Details of Payment Terminal Transaction + * @alias module:model/PaymentTerminalTransactionDetails + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.CardSchemeName = undefined; + + /** + * Expirey Date on Card + * @member {String} DateOfExpiry + */ + exports.prototype.DateOfExpiry = undefined; + + /** + * AuthCode + * @member {String} AuthCode + */ + exports.prototype.AuthCode = undefined; + + /** + * State of Request, \"PENDING\" is not yet completed + * @member {String} TransactionResult + */ + exports.prototype.TransactionResult = undefined; + + /** + * Masked PAN + * @member {String} PrimaryAccountNumber + */ + exports.prototype.PrimaryAccountNumber = undefined; + + /** + * Type of Verification. + * @member {String} CardholderVerificationMethod + */ + exports.prototype.CardholderVerificationMethod = undefined; + + + return exports; + +})); diff --git a/src/model/Payout.js b/src/model/Payout.js new file mode 100644 index 00000000..77bdb0e6 --- /dev/null +++ b/src/model/Payout.js @@ -0,0 +1,913 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.Payout = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The Payout model module. + * @module model/Payout + * @version 1.0.0 + */ + + /** + * Constructs a new Payout. + * Holds the information for a whitelabel payout. + * @alias module:model/Payout + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The id of the payout. + * @member {Number} PayoutId + */ + exports.prototype.PayoutId = undefined; + + /** + * Bank account identifier + * @member {Number} PayeeBankAccountId + */ + exports.prototype.PayeeBankAccountId = undefined; + + /** + * Account name of the payout destination + * @member {String} AccountName + */ + exports.prototype.AccountName = undefined; + + /** + * Status of the payout + * @member {module:model/Payout.PayoutStatusEnum} PayoutStatus + */ + exports.prototype.PayoutStatus = undefined; + + /** + * Date payout was created + * @member {Date} CreatedDate + */ + exports.prototype.CreatedDate = undefined; + + /** + * This payout includes operations after at this date (inclusive) + * @member {Date} PeriodStartTime + */ + exports.prototype.PeriodStartTime = undefined; + + /** + * This payout includes operations before at this date (exclusive) + * @member {Date} PeriodEndTime + */ + exports.prototype.PeriodEndTime = undefined; + + /** + * Destination bank name + * @member {String} DestinationBank + */ + exports.prototype.DestinationBank = undefined; + + /** + * Last 4 digits of the destination bank IBAN + * @member {String} DestinationAccount + */ + exports.prototype.DestinationAccount = undefined; + + /** + * Payout amount + * @member {Number} Amount + */ + exports.prototype.Amount = undefined; + + /** + * Type of payout source + * @member {module:model/Payout.PayoutTypeEnum} PayoutType + */ + exports.prototype.PayoutType = undefined; + + /** + * Payout currency + * @member {module:model/Payout.CurrencyEnum} Currency + */ + exports.prototype.Currency = undefined; + + /** + * Payouts before this date do not have a details breakdown + * @member {Date} CutoffDate + */ + exports.prototype.CutoffDate = undefined; + + + + /** + * Allowed values for the PayoutStatus property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.PayoutTypeEnum = { + /** + * value: "Internal" + * @const + */ + Internal: "Internal", + + /** + * value: "Stripe" + * @const + */ + Stripe: "Stripe" + }; + + + /** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/PayoutChargeback.js b/src/model/PayoutChargeback.js new file mode 100644 index 00000000..e216b0a8 --- /dev/null +++ b/src/model/PayoutChargeback.js @@ -0,0 +1,843 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PayoutChargeback = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PayoutChargeback model module. + * @module model/PayoutChargeback + * @version 1.0.0 + */ + + /** + * Constructs a new PayoutChargeback. + * Holds the information for a chargeback related to a payout + * @alias module:model/PayoutChargeback + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.OrderId = undefined; + + /** + * Order currency + * @member {module:model/PayoutChargeback.OrderCurrencyEnum} OrderCurrency + */ + exports.prototype.OrderCurrency = undefined; + + /** + * The id of the payout the order is related to + * @member {Number} PayoutId + */ + exports.prototype.PayoutId = undefined; + + /** + * The date the order was placed + * @member {Date} OrderDate + */ + exports.prototype.OrderDate = undefined; + + /** + * Order type (online or cash) + * @member {module:model/PayoutChargeback.OrderTypeEnum} OrderType + */ + exports.prototype.OrderType = undefined; + + /** + * The date the chargeback was done + * @member {Date} ChargebackDate + */ + exports.prototype.ChargebackDate = undefined; + + /** + * Store id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Chargeback amount + * @member {Number} ChargebackAmount + */ + exports.prototype.ChargebackAmount = undefined; + + /** + * Amount of refunded fees + * @member {Number} RefundedFees + */ + exports.prototype.RefundedFees = undefined; + + + + /** + * Allowed values for the OrderCurrency property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.OrderTypeEnum = { + /** + * value: "Cash" + * @const + */ + Cash: "Cash", + + /** + * value: "Online" + * @const + */ + Online: "Online" + }; + + return exports; + +})); diff --git a/src/model/PayoutDetail.js b/src/model/PayoutDetail.js new file mode 100644 index 00000000..9d26916f --- /dev/null +++ b/src/model/PayoutDetail.js @@ -0,0 +1,920 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PayoutStore'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PayoutStore')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PayoutDetail = factory(root.Flipdish.ApiClient, root.Flipdish.PayoutStore); + } +}(this, function(ApiClient, PayoutStore) { + 'use strict'; + + /** + * The PayoutDetail model module. + * @module model/PayoutDetail + * @version 1.0.0 + */ + + /** + * Constructs a new PayoutDetail. + * Holds the information for a whitelabel payout with details broken down by Store + * @alias module:model/PayoutDetail + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.PayoutId = undefined; + + /** + * Bank account identifier + * @member {Number} BankAccountId + */ + exports.prototype.BankAccountId = undefined; + + /** + * Account name of the payout destination + * @member {String} AccountName + */ + exports.prototype.AccountName = undefined; + + /** + * Status of the payout + * @member {module:model/PayoutDetail.PayoutStatusEnum} PayoutStatus + */ + exports.prototype.PayoutStatus = undefined; + + /** + * Date payout was created + * @member {Date} CreatedDate + */ + exports.prototype.CreatedDate = undefined; + + /** + * This payout includes operations after at this date (inclusive) + * @member {Date} PeriodStartTime + */ + exports.prototype.PeriodStartTime = undefined; + + /** + * This payout includes operations before at this date (exclusive) + * @member {Date} PeriodEndTime + */ + exports.prototype.PeriodEndTime = undefined; + + /** + * @member {String} DestinationBank + */ + exports.prototype.DestinationBank = undefined; + + /** + * Last 4 digits of the destination bank IBAN + * @member {String} DestinationAccount + */ + exports.prototype.DestinationAccount = undefined; + + /** + * Type of payout source + * @member {module:model/PayoutDetail.PayoutTypeEnum} PayoutType + */ + exports.prototype.PayoutType = undefined; + + /** + * Payout currency + * @member {module:model/PayoutDetail.CurrencyEnum} Currency + */ + exports.prototype.Currency = undefined; + + /** + * Payout information broken down by Store + * @member {Array.} PayoutStores + */ + exports.prototype.PayoutStores = undefined; + + /** + * Payout amount + * @member {Number} Amount + */ + exports.prototype.Amount = undefined; + + /** + * Payouts before this date do not have a details breakdown + * @member {Date} CutoffDate + */ + exports.prototype.CutoffDate = undefined; + + + + /** + * Allowed values for the PayoutStatus property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.PayoutTypeEnum = { + /** + * value: "Internal" + * @const + */ + Internal: "Internal", + + /** + * value: "Stripe" + * @const + */ + Stripe: "Stripe" + }; + + + /** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/PayoutOrder.js b/src/model/PayoutOrder.js new file mode 100644 index 00000000..73e69349 --- /dev/null +++ b/src/model/PayoutOrder.js @@ -0,0 +1,921 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PayoutOrder = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PayoutOrder model module. + * @module model/PayoutOrder + * @version 1.0.0 + */ + + /** + * Constructs a new PayoutOrder. + * Holds the information for an order related to a payout + * @alias module:model/PayoutOrder + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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'); + } + return obj; + } + + /** + * The id of the order + * @member {Number} OrderId + */ + exports.prototype.OrderId = undefined; + + /** + * The id of the payout the order is related to + * @member {Number} PayoutId + */ + exports.prototype.PayoutId = undefined; + + /** + * The date the order was placed + * @member {Date} OrderDate + */ + exports.prototype.OrderDate = undefined; + + /** + * Order type (online or cash) + * @member {module:model/PayoutOrder.OrderTypeEnum} OrderType + */ + exports.prototype.OrderType = undefined; + + /** + * Order currency + * @member {module:model/PayoutOrder.OrderCurrencyEnum} OrderCurrency + */ + exports.prototype.OrderCurrency = undefined; + + /** + * Order sales amount + * @member {Number} Sales + */ + exports.prototype.Sales = undefined; + + /** + * Order sales tax amount + * @member {Number} SalesTax + */ + exports.prototype.SalesTax = undefined; + + /** + * Order delivery charges + * @member {Number} DeliveryCharges + */ + exports.prototype.DeliveryCharges = undefined; + + /** + * Order tips amount + * @member {Number} Tips + */ + exports.prototype.Tips = undefined; + + /** + * Order voucher amount + * @member {Number} Voucher + */ + exports.prototype.Voucher = undefined; + + /** + * Order flat fee amount excluding VAT + * @member {Number} FlatFeeExcludingVat + */ + exports.prototype.FlatFeeExcludingVat = undefined; + + /** + * @member {Number} FlatFeeExcludingVAT + */ + exports.prototype.FlatFeeExcludingVAT = undefined; + + /** + * Order percentage fee excluding VAT + * @member {Number} PercentageFeeExcludingVat + */ + exports.prototype.PercentageFeeExcludingVat = undefined; + + /** + * @member {Number} PercentageFeeExcludingVAT + */ + exports.prototype.PercentageFeeExcludingVAT = undefined; + + /** + * Order VAT amount + * @member {Number} Vat + */ + exports.prototype.Vat = undefined; + + /** + * Total order fees amount + * @member {Number} TotalFees + */ + exports.prototype.TotalFees = undefined; + + /** + * Cash fee charged to customer + * @member {Number} CashFeeChargedToCustomer + */ + exports.prototype.CashFeeChargedToCustomer = undefined; + + /** + * Order net sales amount + * @member {Number} NetSales + */ + exports.prototype.NetSales = undefined; + + /** + * Store id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + + + /** + * Allowed values for the OrderType property. + * @enum {String} + * @readonly + */ + exports.OrderTypeEnum = { + /** + * value: "Cash" + * @const + */ + Cash: "Cash", + + /** + * value: "Online" + * @const + */ + Online: "Online" + }; + + + /** + * Allowed values for the OrderCurrency property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/PayoutOtherCharge.js b/src/model/PayoutOtherCharge.js new file mode 100644 index 00000000..90d44ef8 --- /dev/null +++ b/src/model/PayoutOtherCharge.js @@ -0,0 +1,871 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PayoutOtherCharge = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PayoutOtherCharge model module. + * @module model/PayoutOtherCharge + * @version 1.0.0 + */ + + /** + * Constructs a new PayoutOtherCharge. + * Holds the information for a charge related to a payout + * @alias module:model/PayoutOtherCharge + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.ChargeId = undefined; + + /** + * Charge amount + * @member {Number} Amount + */ + exports.prototype.Amount = undefined; + + /** + * Currency of the charge + * @member {module:model/PayoutOtherCharge.CurrencyEnum} Currency + */ + exports.prototype.Currency = undefined; + + /** + * The id of the payout the order is related to + * @member {Number} PayoutId + */ + exports.prototype.PayoutId = undefined; + + /** + * The date the order was placed + * @member {Date} ChargeDate + */ + exports.prototype.ChargeDate = undefined; + + /** + * Charge type + * @member {module:model/PayoutOtherCharge.ChargeTypeEnum} ChargeType + */ + exports.prototype.ChargeType = undefined; + + /** + * Charge description + * @member {String} ChargeDescription + */ + exports.prototype.ChargeDescription = undefined; + + /** + * Store id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + + + /** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/PayoutRefund.js b/src/model/PayoutRefund.js new file mode 100644 index 00000000..b359ea3d --- /dev/null +++ b/src/model/PayoutRefund.js @@ -0,0 +1,859 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PayoutRefund = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PayoutRefund model module. + * @module model/PayoutRefund + * @version 1.0.0 + */ + + /** + * Constructs a new PayoutRefund. + * Holds the information for a refund related to a payout + * @alias module:model/PayoutRefund + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.OrderId = undefined; + + /** + * Order currency + * @member {module:model/PayoutRefund.OrderCurrencyEnum} OrderCurrency + */ + exports.prototype.OrderCurrency = undefined; + + /** + * The id of the payout the order is related to + * @member {Number} PayoutId + */ + exports.prototype.PayoutId = undefined; + + /** + * The date the order was placed + * @member {Date} OrderDate + */ + exports.prototype.OrderDate = undefined; + + /** + * Order type (online or cash) + * @member {module:model/PayoutRefund.OrderTypeEnum} OrderType + */ + exports.prototype.OrderType = undefined; + + /** + * The date the refund was done + * @member {Date} RefundDate + */ + exports.prototype.RefundDate = undefined; + + /** + * Store id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Total refund amount + * @member {Number} TotalRefund + */ + exports.prototype.TotalRefund = undefined; + + /** + * Refunded fees amount + * @member {Number} RefundedFees + */ + exports.prototype.RefundedFees = undefined; + + /** + * Refunded amount + * @member {Number} RefundedAmount + */ + exports.prototype.RefundedAmount = undefined; + + /** + * Cash fee refunded to customer + * @member {Number} CashFeeRefundedToCustomer + */ + exports.prototype.CashFeeRefundedToCustomer = undefined; + + + + /** + * Allowed values for the OrderCurrency property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.OrderTypeEnum = { + /** + * value: "Cash" + * @const + */ + Cash: "Cash", + + /** + * value: "Online" + * @const + */ + Online: "Online" + }; + + return exports; + +})); diff --git a/src/model/PayoutStore.js b/src/model/PayoutStore.js new file mode 100644 index 00000000..877991a8 --- /dev/null +++ b/src/model/PayoutStore.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BalanceDetails', 'model/ChargebackDetails', 'model/FlipdishFeesDetails', 'model/OtherChargesDetails', 'model/RevenueAdjustmentsDetails', 'model/RevenueDetail'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./BalanceDetails'), require('./ChargebackDetails'), require('./FlipdishFeesDetails'), require('./OtherChargesDetails'), require('./RevenueAdjustmentsDetails'), require('./RevenueDetail')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PayoutStore = factory(root.Flipdish.ApiClient, root.Flipdish.BalanceDetails, root.Flipdish.ChargebackDetails, root.Flipdish.FlipdishFeesDetails, root.Flipdish.OtherChargesDetails, root.Flipdish.RevenueAdjustmentsDetails, root.Flipdish.RevenueDetail); + } +}(this, function(ApiClient, BalanceDetails, ChargebackDetails, FlipdishFeesDetails, OtherChargesDetails, RevenueAdjustmentsDetails, RevenueDetail) { + 'use strict'; + + /** + * The PayoutStore model module. + * @module model/PayoutStore + * @version 1.0.0 + */ + + /** + * Constructs a new PayoutStore. + * Payout details for a single store + * @alias module:model/PayoutStore + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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']); + } + return obj; + } + + /** + * The id of the Store. + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Name of the store + * @member {String} StoreName + */ + exports.prototype.StoreName = undefined; + + /** + * Amount of the payout for this Store + * @member {Number} Amount + */ + exports.prototype.Amount = undefined; + + /** + * Revenue details (DEPRECATED: Use Revenue) + * @member {module:model/RevenueDetail} OnlineRevenue + */ + exports.prototype.OnlineRevenue = undefined; + + /** + * Revenue details + * @member {module:model/RevenueDetail} Revenue + */ + exports.prototype.Revenue = undefined; + + /** + * Revenue Adjustments breakdown + * @member {module:model/RevenueAdjustmentsDetails} RevenueAdjustments + */ + exports.prototype.RevenueAdjustments = undefined; + + /** + * Fees breakdown + * @member {module:model/FlipdishFeesDetails} FlipdishFees + */ + exports.prototype.FlipdishFees = undefined; + + /** + * Chargebacks breakdown + * @member {module:model/ChargebackDetails} Chargebacks + */ + exports.prototype.Chargebacks = undefined; + + /** + * Breakdown of other charges + * @member {module:model/OtherChargesDetails} OtherCharges + */ + exports.prototype.OtherCharges = undefined; + + /** + * Period opening and closing balance + * @member {module:model/BalanceDetails} Balance + */ + exports.prototype.Balance = undefined; + + + return exports; + +})); diff --git a/src/model/PayoutSummary.js b/src/model/PayoutSummary.js new file mode 100644 index 00000000..1a6cbfc9 --- /dev/null +++ b/src/model/PayoutSummary.js @@ -0,0 +1,821 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PayoutSummary = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PayoutSummary model module. + * @module model/PayoutSummary + * @version 1.0.0 + */ + + /** + * Constructs a new PayoutSummary. + * Holds the information for a whitelabel payouts summary. + * @alias module:model/PayoutSummary + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.PayoutStatus = undefined; + + /** + * Total payouts amount + * @member {Number} TotalAmount + */ + exports.prototype.TotalAmount = undefined; + + /** + * Payout currency + * @member {module:model/PayoutSummary.CurrencyEnum} Currency + */ + exports.prototype.Currency = undefined; + + /** + * Total payouts count + * @member {Number} TotalCount + */ + exports.prototype.TotalCount = undefined; + + + + /** + * Allowed values for the PayoutStatus property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/PercentDiscountDetails.js b/src/model/PercentDiscountDetails.js new file mode 100644 index 00000000..f94582ff --- /dev/null +++ b/src/model/PercentDiscountDetails.js @@ -0,0 +1,73 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PercentDiscountDetails = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PercentDiscountDetails model module. + * @module model/PercentDiscountDetails + * @version 1.0.0 + */ + + /** + * Constructs a new PercentDiscountDetails. + * Percent discount details + * @alias module:model/PercentDiscountDetails + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('PercentageDiscount')) + obj.PercentageDiscount = ApiClient.convertToType(data['PercentageDiscount'], 'Number'); + } + return obj; + } + + /** + * Percentage discount + * @member {Number} PercentageDiscount + */ + exports.prototype.PercentageDiscount = undefined; + + + return exports; + +})); diff --git a/src/model/PhoneCall.js b/src/model/PhoneCall.js new file mode 100644 index 00000000..a330e847 --- /dev/null +++ b/src/model/PhoneCall.js @@ -0,0 +1,207 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PhoneCall = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PhoneCall model module. + * @module model/PhoneCall + * @version 1.0.0 + */ + + /** + * Constructs a new PhoneCall. + * Phone call + * @alias module:model/PhoneCall + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.PhoneCallId = undefined; + + /** + * Time of the call + * @member {Date} TimeOfCall + */ + exports.prototype.TimeOfCall = undefined; + + /** + * Time of the call, local to the store to which the call was made + * @member {Date} TimeOfCallLocal + */ + exports.prototype.TimeOfCallLocal = undefined; + + /** + * ID of the store that the call was TO + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Name of the store that the call was TO + * @member {String} StoreName + */ + exports.prototype.StoreName = undefined; + + /** + * Name of the caller + * @member {String} CallerName + */ + exports.prototype.CallerName = undefined; + + /** + * UserID of the caller + * @member {Number} CallerUserId + */ + exports.prototype.CallerUserId = undefined; + + /** + * Phone number of the caller + * @member {String} CallerNumber + */ + exports.prototype.CallerNumber = undefined; + + /** + * The amount of time the call took + * @member {Number} CallLengthInSeconds + */ + exports.prototype.CallLengthInSeconds = undefined; + + /** + * The status of the call + * @member {module:model/PhoneCall.CallStatusEnum} CallStatus + */ + exports.prototype.CallStatus = undefined; + + + + /** + * Allowed values for the CallStatus property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/PhoneCallEndedEvent.js b/src/model/PhoneCallEndedEvent.js new file mode 100644 index 00000000..ffc47e7a --- /dev/null +++ b/src/model/PhoneCallEndedEvent.js @@ -0,0 +1,129 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PhoneCall'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PhoneCall')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PhoneCallEndedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.PhoneCall); + } +}(this, function(ApiClient, PhoneCall) { + 'use strict'; + + /** + * The PhoneCallEndedEvent model module. + * @module model/PhoneCallEndedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new PhoneCallEndedEvent. + * Phone call ended event + * @alias module:model/PhoneCallEndedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * The phone call + * @member {module:model/PhoneCall} PhoneCall + */ + exports.prototype.PhoneCall = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/PhoneCallStartedEvent.js b/src/model/PhoneCallStartedEvent.js new file mode 100644 index 00000000..6db4f159 --- /dev/null +++ b/src/model/PhoneCallStartedEvent.js @@ -0,0 +1,129 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PhoneCall'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PhoneCall')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PhoneCallStartedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.PhoneCall); + } +}(this, function(ApiClient, PhoneCall) { + 'use strict'; + + /** + * The PhoneCallStartedEvent model module. + * @module model/PhoneCallStartedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new PhoneCallStartedEvent. + * Phone call started event + * @alias module:model/PhoneCallStartedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * The phone call + * @member {module:model/PhoneCall} PhoneCall + */ + exports.prototype.PhoneCall = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/PreOrderConfig.js b/src/model/PreOrderConfig.js new file mode 100644 index 00000000..9c93d52d --- /dev/null +++ b/src/model/PreOrderConfig.js @@ -0,0 +1,171 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PreOrderConfig = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PreOrderConfig model module. + * @module model/PreOrderConfig + * @version 1.0.0 + */ + + /** + * Constructs a new PreOrderConfig. + * Pre Order Config + * @alias module:model/PreOrderConfig + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.LeadTimeMinutes = undefined; + + /** + * Interval in minutes + * @member {Number} IntervalMinutes + */ + exports.prototype.IntervalMinutes = undefined; + + /** + * Max Days to order ahead + * @member {Number} MaxOrderAheadDays + */ + exports.prototype.MaxOrderAheadDays = undefined; + + /** + * Show ASAP as option + * @member {Boolean} IncludeAsap + */ + exports.prototype.IncludeAsap = undefined; + + /** + * Granual Init' Time + * @member {Boolean} IncludeMoreGranularInitialTime + */ + exports.prototype.IncludeMoreGranularInitialTime = undefined; + + /** + * Cut off time previous day + * @member {String} CutOffTimePreviousDayBasic + */ + exports.prototype.CutOffTimePreviousDayBasic = undefined; + + /** + * Cut off time current day + * @member {String} CutOffTimeCurrentDayBasic + */ + exports.prototype.CutOffTimeCurrentDayBasic = undefined; + + /** + * Type of time displayed. + * @member {module:model/PreOrderConfig.PreOrderTimeDisplayTypeEnum} PreOrderTimeDisplayType + */ + exports.prototype.PreOrderTimeDisplayType = undefined; + + /** + * Specifies whether a customer can pre-order outside the store opening hours or not. + * @member {Boolean} AlwaysAppearOpen + */ + exports.prototype.AlwaysAppearOpen = undefined; + + /** + * Force customer to select collection time. + * @member {Boolean} RequireExplicitSelectAlways + */ + exports.prototype.RequireExplicitSelectAlways = undefined; + + + + /** + * Allowed values for the PreOrderTimeDisplayType property. + * @enum {String} + * @readonly + */ + exports.PreOrderTimeDisplayTypeEnum = { + /** + * value: "SingleTime" + * @const + */ + SingleTime: "SingleTime", + + /** + * value: "StartAndEndTime" + * @const + */ + StartAndEndTime: "StartAndEndTime", + + /** + * value: "DayOnly" + * @const + */ + DayOnly: "DayOnly" + }; + + return exports; + +})); diff --git a/src/model/PreOrderTime.js b/src/model/PreOrderTime.js new file mode 100644 index 00000000..839c0a90 --- /dev/null +++ b/src/model/PreOrderTime.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PreOrderTime = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PreOrderTime model module. + * @module model/PreOrderTime + * @version 1.0.0 + */ + + /** + * Constructs a new PreOrderTime. + * Time order can be placed + * @alias module:model/PreOrderTime + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.StartTime = undefined; + + /** + * End Time + * @member {Date} EndTime + */ + exports.prototype.EndTime = undefined; + + + return exports; + +})); diff --git a/src/model/PredefinedAnswer.js b/src/model/PredefinedAnswer.js new file mode 100644 index 00000000..4388f400 --- /dev/null +++ b/src/model/PredefinedAnswer.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PredefinedAnswer = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PredefinedAnswer model module. + * @module model/PredefinedAnswer + * @version 1.0.0 + */ + + /** + * Constructs a new PredefinedAnswer. + * Predefined answer + * @alias module:model/PredefinedAnswer + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Id = undefined; + + /** + * Text + * @member {String} Text + */ + exports.prototype.Text = undefined; + + + return exports; + +})); diff --git a/src/model/Printer.js b/src/model/Printer.js new file mode 100644 index 00000000..65c47cf0 --- /dev/null +++ b/src/model/Printer.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.Printer = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The Printer model module. + * @module model/Printer + * @version 1.0.0 + */ + + /** + * Constructs a new Printer. + * Printer + * @alias module:model/Printer + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.SerialNumber = undefined; + + /** + * Date and time when the printer last polled Flipdish for new orders. + * @member {Date} LastPollTime + */ + exports.prototype.LastPollTime = undefined; + + + return exports; + +})); diff --git a/src/model/PrinterAssignedToStoreEvent.js b/src/model/PrinterAssignedToStoreEvent.js new file mode 100644 index 00000000..48258aab --- /dev/null +++ b/src/model/PrinterAssignedToStoreEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Printer', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Printer'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PrinterAssignedToStoreEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Printer, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, Printer, UserEventInfo) { + 'use strict'; + + /** + * The PrinterAssignedToStoreEvent model module. + * @module model/PrinterAssignedToStoreEvent + * @version 1.0.0 + */ + + /** + * Constructs a new PrinterAssignedToStoreEvent. + * Printer assigned to store event + * @alias module:model/PrinterAssignedToStoreEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * Info User + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The printer + * @member {module:model/Printer} Printer + */ + exports.prototype.Printer = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/PrinterTurnedOffEvent.js b/src/model/PrinterTurnedOffEvent.js new file mode 100644 index 00000000..cca7ac00 --- /dev/null +++ b/src/model/PrinterTurnedOffEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Printer', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Printer'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PrinterTurnedOffEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Printer, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, Printer, UserEventInfo) { + 'use strict'; + + /** + * The PrinterTurnedOffEvent model module. + * @module model/PrinterTurnedOffEvent + * @version 1.0.0 + */ + + /** + * Constructs a new PrinterTurnedOffEvent. + * Printer turned off event + * @alias module:model/PrinterTurnedOffEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * Info User + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The printer + * @member {module:model/Printer} Printer + */ + exports.prototype.Printer = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/PrinterTurnedOnEvent.js b/src/model/PrinterTurnedOnEvent.js new file mode 100644 index 00000000..35e80591 --- /dev/null +++ b/src/model/PrinterTurnedOnEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Printer', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Printer'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PrinterTurnedOnEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Printer, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, Printer, UserEventInfo) { + 'use strict'; + + /** + * The PrinterTurnedOnEvent model module. + * @module model/PrinterTurnedOnEvent + * @version 1.0.0 + */ + + /** + * Constructs a new PrinterTurnedOnEvent. + * Printer turned on event + * @alias module:model/PrinterTurnedOnEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * Info User + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The printer + * @member {module:model/Printer} Printer + */ + exports.prototype.Printer = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/PrinterUnassignedFromStoreEvent.js b/src/model/PrinterUnassignedFromStoreEvent.js new file mode 100644 index 00000000..3edd1db4 --- /dev/null +++ b/src/model/PrinterUnassignedFromStoreEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Printer', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Printer'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PrinterUnassignedFromStoreEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Printer, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, Printer, UserEventInfo) { + 'use strict'; + + /** + * The PrinterUnassignedFromStoreEvent model module. + * @module model/PrinterUnassignedFromStoreEvent + * @version 1.0.0 + */ + + /** + * Constructs a new PrinterUnassignedFromStoreEvent. + * Printer assigned from store event + * @alias module:model/PrinterUnassignedFromStoreEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * Info User + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The printer + * @member {module:model/Printer} Printer + */ + exports.prototype.Printer = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/ProcessingFeeConfig.js b/src/model/ProcessingFeeConfig.js new file mode 100644 index 00000000..c75ebb28 --- /dev/null +++ b/src/model/ProcessingFeeConfig.js @@ -0,0 +1,153 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.ProcessingFeeConfig = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The ProcessingFeeConfig model module. + * @module model/ProcessingFeeConfig + * @version 1.0.0 + */ + + /** + * Constructs a new ProcessingFeeConfig. + * Processing fee config + * @alias module:model/ProcessingFeeConfig + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.StoreId = undefined; + + /** + * Payment account type + * @member {module:model/ProcessingFeeConfig.PaymentAccountTypeEnum} PaymentAccountType + */ + exports.prototype.PaymentAccountType = undefined; + + /** + * Percent fee to customer, including VAT + * @member {Number} PercentFee + */ + exports.prototype.PercentFee = undefined; + + /** + * Fixed fee to customer, including VAT + * @member {Number} FixedFee + */ + exports.prototype.FixedFee = undefined; + + + + /** + * Allowed values for the PaymentAccountType property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/PushNotificationDeletedEvent.js b/src/model/PushNotificationDeletedEvent.js new file mode 100644 index 00000000..98436524 --- /dev/null +++ b/src/model/PushNotificationDeletedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PushNotificationRequest'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PushNotificationRequest')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PushNotificationDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.PushNotificationRequest); + } +}(this, function(ApiClient, PushNotificationRequest) { + 'use strict'; + + /** + * The PushNotificationDeletedEvent model module. + * @module model/PushNotificationDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new PushNotificationDeletedEvent. + * + * @alias module:model/PushNotificationDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * + * @member {module:model/PushNotificationRequest} PushNotification + */ + exports.prototype.PushNotification = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/PushNotificationRequest.js b/src/model/PushNotificationRequest.js new file mode 100644 index 00000000..9f34c3f8 --- /dev/null +++ b/src/model/PushNotificationRequest.js @@ -0,0 +1,91 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PushNotificationRequest = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PushNotificationRequest model module. + * @module model/PushNotificationRequest + * @version 1.0.0 + */ + + /** + * Constructs a new PushNotificationRequest. + * Push Notification Details + * @alias module:model/PushNotificationRequest + * @class + * @param Message {String} Message of the notification + */ + var exports = function(Message) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.ScheduledTime = undefined; + + /** + * Title of the notification + * @member {String} Title + */ + exports.prototype.Title = undefined; + + /** + * Message of the notification + * @member {String} Message + */ + exports.prototype.Message = undefined; + + + return exports; + +})); diff --git a/src/model/PushNotificationResponse.js b/src/model/PushNotificationResponse.js new file mode 100644 index 00000000..1a70b9b9 --- /dev/null +++ b/src/model/PushNotificationResponse.js @@ -0,0 +1,107 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PushNotificationResponse = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The PushNotificationResponse model module. + * @module model/PushNotificationResponse + * @version 1.0.0 + */ + + /** + * Constructs a new PushNotificationResponse. + * Push Notification + * @alias module:model/PushNotificationResponse + * @class + * @param Message {String} Message of the notification + */ + var exports = function(Message) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Sent = undefined; + + /** + * Push notification identifier + * @member {Number} ScheduledPushNotificationId + */ + exports.prototype.ScheduledPushNotificationId = undefined; + + /** + * UTC Time at which to send the push notification + * @member {Date} ScheduledTime + */ + exports.prototype.ScheduledTime = undefined; + + /** + * Title of the notification + * @member {String} Title + */ + exports.prototype.Title = undefined; + + /** + * Message of the notification + * @member {String} Message + */ + exports.prototype.Message = undefined; + + + return exports; + +})); diff --git a/src/model/PushNotificationScheduledEvent.js b/src/model/PushNotificationScheduledEvent.js new file mode 100644 index 00000000..28cc8bbd --- /dev/null +++ b/src/model/PushNotificationScheduledEvent.js @@ -0,0 +1,129 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PushNotificationRequest', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PushNotificationRequest'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PushNotificationScheduledEvent = factory(root.Flipdish.ApiClient, root.Flipdish.PushNotificationRequest, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, PushNotificationRequest, UserEventInfo) { + 'use strict'; + + /** + * The PushNotificationScheduledEvent model module. + * @module model/PushNotificationScheduledEvent + * @version 1.0.0 + */ + + /** + * Constructs a new PushNotificationScheduledEvent. + * + * @alias module:model/PushNotificationScheduledEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * + * @member {module:model/PushNotificationRequest} PushNotification + */ + exports.prototype.PushNotification = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/PushNotificationSentEvent.js b/src/model/PushNotificationSentEvent.js new file mode 100644 index 00000000..3015b3bc --- /dev/null +++ b/src/model/PushNotificationSentEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PushNotificationRequest'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PushNotificationRequest')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.PushNotificationSentEvent = factory(root.Flipdish.ApiClient, root.Flipdish.PushNotificationRequest); + } +}(this, function(ApiClient, PushNotificationRequest) { + 'use strict'; + + /** + * The PushNotificationSentEvent model module. + * @module model/PushNotificationSentEvent + * @version 1.0.0 + */ + + /** + * Constructs a new PushNotificationSentEvent. + * + * @alias module:model/PushNotificationSentEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * + * @member {module:model/PushNotificationRequest} PushNotification + */ + exports.prototype.PushNotification = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/Range.js b/src/model/Range.js index 30f1c88d..a55231e7 100644 --- a/src/model/Range.js +++ b/src/model/Range.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The Range model module. * @module model/Range @@ -41,16 +38,11 @@ /** * 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. + * 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 * @class */ var exports = function() { - var _this = this; - - - - }; /** @@ -63,16 +55,12 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'); - } + 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; } @@ -81,17 +69,20 @@ * Start time * @member {String} StartTime */ - exports.prototype['StartTime'] = undefined; + exports.prototype.StartTime = undefined; + /** * Period * @member {String} Period */ - exports.prototype['Period'] = undefined; + exports.prototype.Period = undefined; + /** * Day of week * @member {module:model/Range.DayOfWeekEnum} DayOfWeek */ - exports.prototype['DayOfWeek'] = undefined; + exports.prototype.DayOfWeek = undefined; + /** @@ -104,40 +95,45 @@ * value: "Sunday" * @const */ - "Sunday": "Sunday", + Sunday: "Sunday", + /** * value: "Monday" * @const */ - "Monday": "Monday", + Monday: "Monday", + /** * value: "Tuesday" * @const */ - "Tuesday": "Tuesday", + Tuesday: "Tuesday", + /** * value: "Wednesday" * @const */ - "Wednesday": "Wednesday", + Wednesday: "Wednesday", + /** * value: "Thursday" * @const */ - "Thursday": "Thursday", + Thursday: "Thursday", + /** * value: "Friday" * @const */ - "Friday": "Friday", + Friday: "Friday", + /** * value: "Saturday" * @const */ - "Saturday": "Saturday" }; - + Saturday: "Saturday" + }; return exports; -})); - +})); diff --git a/src/model/RedeemInvitationResult.js b/src/model/RedeemInvitationResult.js new file mode 100644 index 00000000..1f881c94 --- /dev/null +++ b/src/model/RedeemInvitationResult.js @@ -0,0 +1,107 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RedeemInvitationResult = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The RedeemInvitationResult model module. + * @module model/RedeemInvitationResult + * @version 1.0.0 + */ + + /** + * Constructs a new RedeemInvitationResult. + * + * @alias module:model/RedeemInvitationResult + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.AppId = undefined; + + /** + * Invitation status + * @member {module:model/RedeemInvitationResult.InvitationStatusEnum} InvitationStatus + */ + exports.prototype.InvitationStatus = undefined; + + + + /** + * Allowed values for the InvitationStatus property. + * @enum {String} + * @readonly + */ + exports.InvitationStatusEnum = { + /** + * value: "Pending" + * @const + */ + Pending: "Pending", + + /** + * value: "Accepted" + * @const + */ + Accepted: "Accepted", + + /** + * value: "Expired" + * @const + */ + Expired: "Expired" + }; + + return exports; + +})); diff --git a/src/model/Refund.js b/src/model/Refund.js index 99f782fc..50ba6159 100644 --- a/src/model/Refund.js +++ b/src/model/Refund.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The Refund model module. * @module model/Refund @@ -44,13 +41,12 @@ * Refund * @alias module:model/Refund * @class + * @param RefundAmount {Number} Refund amount + * @param NotifyCustomer {Boolean} If true, the system sends notification to the customer about the refund */ - var exports = function() { - var _this = this; - - - - + var exports = function(RefundAmount, NotifyCustomer) { + this.RefundAmount = RefundAmount; + this.NotifyCustomer = NotifyCustomer; }; /** @@ -63,16 +59,12 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'); - } + 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; } @@ -81,21 +73,21 @@ * Refund reason * @member {String} RefundReason */ - exports.prototype['RefundReason'] = undefined; + exports.prototype.RefundReason = undefined; + /** * Refund amount * @member {Number} RefundAmount */ - exports.prototype['RefundAmount'] = undefined; + exports.prototype.RefundAmount = undefined; + /** - * If ture, the system sends notification to the customer about the refund + * If true, the system sends notification to the customer about the refund * @member {Boolean} NotifyCustomer */ - exports.prototype['NotifyCustomer'] = undefined; - + exports.prototype.NotifyCustomer = undefined; return exports; -})); - +})); diff --git a/src/model/Reject.js b/src/model/Reject.js index ab90545f..8a58a781 100644 --- a/src/model/Reject.js +++ b/src/model/Reject.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The Reject model module. * @module model/Reject @@ -44,11 +41,10 @@ * Reject * @alias module:model/Reject * @class + * @param RejectReason {module:model/Reject.RejectReasonEnum} Reject reason. */ - var exports = function() { - var _this = this; - - + var exports = function(RejectReason) { + this.RejectReason = RejectReason; }; /** @@ -61,19 +57,26 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('RejectReason')) { - obj['RejectReason'] = ApiClient.convertToType(data['RejectReason'], 'String'); - } + 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 + * Reject reason. * @member {module:model/Reject.RejectReasonEnum} RejectReason */ - exports.prototype['RejectReason'] = undefined; + exports.prototype.RejectReason = undefined; + + /** + * Notify customer. The server will not send and SMS to the customer if the value is true. + * @member {Boolean} DoNotNotifyCustomer + */ + exports.prototype.DoNotNotifyCustomer = undefined; + /** @@ -86,50 +89,57 @@ * value: "TooBusy" * @const */ - "TooBusy": "TooBusy", + TooBusy: "TooBusy", + /** * value: "FoodUnavailable" * @const */ - "FoodUnavailable": "FoodUnavailable", + FoodUnavailable: "FoodUnavailable", + /** * value: "UnableToDeliver" * @const */ - "UnableToDeliver": "UnableToDeliver", + UnableToDeliver: "UnableToDeliver", + /** * value: "UnknownAddress" * @const */ - "UnknownAddress": "UnknownAddress", + UnknownAddress: "UnknownAddress", + /** * value: "UnknownReason" * @const */ - "UnknownReason": "UnknownReason", + UnknownReason: "UnknownReason", + /** * value: "TooSoon" * @const */ - "TooSoon": "TooSoon", + TooSoon: "TooSoon", + /** * value: "TimeUnavailable" * @const */ - "TimeUnavailable": "TimeUnavailable", + TimeUnavailable: "TimeUnavailable", + /** * value: "DontDeliverToArea" * @const */ - "DontDeliverToArea": "DontDeliverToArea", + DontDeliverToArea: "DontDeliverToArea", + /** * value: "StoreUncontactable" * @const */ - "StoreUncontactable": "StoreUncontactable" }; - + StoreUncontactable: "StoreUncontactable" + }; return exports; -})); - +})); diff --git a/src/model/RequestLoginPinModel.js b/src/model/RequestLoginPinModel.js new file mode 100644 index 00000000..5a15ae27 --- /dev/null +++ b/src/model/RequestLoginPinModel.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RequestLoginPinModel = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The RequestLoginPinModel model module. + * @module model/RequestLoginPinModel + * @version 1.0.0 + */ + + /** + * Constructs a new RequestLoginPinModel. + * Request login PIN response + * @alias module:model/RequestLoginPinModel + * @class + * @param Email {String} Email address + */ + var exports = function(Email) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Email')) + obj.Email = ApiClient.convertToType(data['Email'], 'String'); + } + return obj; + } + + /** + * Email address + * @member {String} Email + */ + exports.prototype.Email = undefined; + + + return exports; + +})); diff --git a/src/model/RequestLoginPinResposne.js b/src/model/RequestLoginPinResposne.js new file mode 100644 index 00000000..6504840d --- /dev/null +++ b/src/model/RequestLoginPinResposne.js @@ -0,0 +1,73 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RequestLoginPinResposne = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The RequestLoginPinResposne model module. + * @module model/RequestLoginPinResposne + * @version 1.0.0 + */ + + /** + * Constructs a new RequestLoginPinResposne. + * Request login PIN response + * @alias module:model/RequestLoginPinResposne + * @class + */ + var exports = function() { + }; + + /** + * Constructs a RequestLoginPinResposne from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RequestLoginPinResposne} obj Optional instance to populate. + * @return {module:model/RequestLoginPinResposne} The populated RequestLoginPinResposne instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('LoginPinSentViaEmail')) + obj.LoginPinSentViaEmail = ApiClient.convertToType(data['LoginPinSentViaEmail'], 'Boolean'); + } + return obj; + } + + /** + * Login PIN sent via email to user + * @member {Boolean} LoginPinSentViaEmail + */ + exports.prototype.LoginPinSentViaEmail = undefined; + + + return exports; + +})); diff --git a/src/model/RequestPasswordResetModel.js b/src/model/RequestPasswordResetModel.js new file mode 100644 index 00000000..4dac20fe --- /dev/null +++ b/src/model/RequestPasswordResetModel.js @@ -0,0 +1,73 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RequestPasswordResetModel = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The RequestPasswordResetModel model module. + * @module model/RequestPasswordResetModel + * @version 1.0.0 + */ + + /** + * Constructs a new RequestPasswordResetModel. + * + * @alias module:model/RequestPasswordResetModel + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Email')) + obj.Email = ApiClient.convertToType(data['Email'], 'String'); + } + return obj; + } + + /** + * Email address + * @member {String} Email + */ + exports.prototype.Email = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultAllMetadataResult.js b/src/model/RestApiArrayResultAllMetadataResult.js new file mode 100644 index 00000000..4266c184 --- /dev/null +++ b/src/model/RestApiArrayResultAllMetadataResult.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AllMetadataResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AllMetadataResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultAllMetadataResult = factory(root.Flipdish.ApiClient, root.Flipdish.AllMetadataResult); + } +}(this, function(ApiClient, AllMetadataResult) { + 'use strict'; + + /** + * The RestApiArrayResultAllMetadataResult model module. + * @module model/RestApiArrayResultAllMetadataResult + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultAllMetadataResult. + * Rest api array result + * @alias module:model/RestApiArrayResultAllMetadataResult + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [AllMetadataResult]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultApmCurrencyDataPoint.js b/src/model/RestApiArrayResultApmCurrencyDataPoint.js new file mode 100644 index 00000000..843cecb5 --- /dev/null +++ b/src/model/RestApiArrayResultApmCurrencyDataPoint.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/ApmCurrencyDataPoint'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./ApmCurrencyDataPoint')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultApmCurrencyDataPoint = factory(root.Flipdish.ApiClient, root.Flipdish.ApmCurrencyDataPoint); + } +}(this, function(ApiClient, ApmCurrencyDataPoint) { + 'use strict'; + + /** + * The RestApiArrayResultApmCurrencyDataPoint model module. + * @module model/RestApiArrayResultApmCurrencyDataPoint + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultApmCurrencyDataPoint. + * Rest api array result + * @alias module:model/RestApiArrayResultApmCurrencyDataPoint + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [ApmCurrencyDataPoint]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultApmDataPoint.js b/src/model/RestApiArrayResultApmDataPoint.js new file mode 100644 index 00000000..2d1ebffa --- /dev/null +++ b/src/model/RestApiArrayResultApmDataPoint.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/ApmDataPoint'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./ApmDataPoint')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultApmDataPoint = factory(root.Flipdish.ApiClient, root.Flipdish.ApmDataPoint); + } +}(this, function(ApiClient, ApmDataPoint) { + 'use strict'; + + /** + * The RestApiArrayResultApmDataPoint model module. + * @module model/RestApiArrayResultApmDataPoint + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultApmDataPoint. + * Rest api array result + * @alias module:model/RestApiArrayResultApmDataPoint + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [ApmDataPoint]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultApmHourlyDataPoint.js b/src/model/RestApiArrayResultApmHourlyDataPoint.js new file mode 100644 index 00000000..c57d1826 --- /dev/null +++ b/src/model/RestApiArrayResultApmHourlyDataPoint.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/ApmHourlyDataPoint'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./ApmHourlyDataPoint')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultApmHourlyDataPoint = factory(root.Flipdish.ApiClient, root.Flipdish.ApmHourlyDataPoint); + } +}(this, function(ApiClient, ApmHourlyDataPoint) { + 'use strict'; + + /** + * The RestApiArrayResultApmHourlyDataPoint model module. + * @module model/RestApiArrayResultApmHourlyDataPoint + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultApmHourlyDataPoint. + * Rest api array result + * @alias module:model/RestApiArrayResultApmHourlyDataPoint + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [ApmHourlyDataPoint]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultBankAccountSummary.js b/src/model/RestApiArrayResultBankAccountSummary.js new file mode 100644 index 00000000..76bbf012 --- /dev/null +++ b/src/model/RestApiArrayResultBankAccountSummary.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BankAccountSummary'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./BankAccountSummary')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultBankAccountSummary = factory(root.Flipdish.ApiClient, root.Flipdish.BankAccountSummary); + } +}(this, function(ApiClient, BankAccountSummary) { + 'use strict'; + + /** + * The RestApiArrayResultBankAccountSummary model module. + * @module model/RestApiArrayResultBankAccountSummary + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultBankAccountSummary. + * Rest api array result + * @alias module:model/RestApiArrayResultBankAccountSummary + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [BankAccountSummary]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultWebhookSubscription.js b/src/model/RestApiArrayResultBusinessHoursPeriod.js similarity index 54% rename from src/model/RestApiArrayResultWebhookSubscription.js rename to src/model/RestApiArrayResultBusinessHoursPeriod.js index 4bab4c00..e2f22b61 100644 --- a/src/model/RestApiArrayResultWebhookSubscription.js +++ b/src/model/RestApiArrayResultBusinessHoursPeriod.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,68 +16,60 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/WebhookSubscription'], factory); + define(['ApiClient', 'model/BusinessHoursPeriod'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./WebhookSubscription')); + module.exports = factory(require('../ApiClient'), require('./BusinessHoursPeriod')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.RestApiArrayResultWebhookSubscription = factory(root.Flipdish.ApiClient, root.Flipdish.WebhookSubscription); + root.Flipdish.RestApiArrayResultBusinessHoursPeriod = factory(root.Flipdish.ApiClient, root.Flipdish.BusinessHoursPeriod); } -}(this, function(ApiClient, WebhookSubscription) { +}(this, function(ApiClient, BusinessHoursPeriod) { 'use strict'; - - - /** - * The RestApiArrayResultWebhookSubscription model module. - * @module model/RestApiArrayResultWebhookSubscription + * The RestApiArrayResultBusinessHoursPeriod model module. + * @module model/RestApiArrayResultBusinessHoursPeriod * @version 1.0.0 */ /** - * Constructs a new RestApiArrayResultWebhookSubscription. + * Constructs a new RestApiArrayResultBusinessHoursPeriod. * Rest api array result - * @alias module:model/RestApiArrayResultWebhookSubscription + * @alias module:model/RestApiArrayResultBusinessHoursPeriod * @class + * @param Data {Array.} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** - * Constructs a RestApiArrayResultWebhookSubscription from a plain JavaScript object, optionally creating a new instance. + * 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/RestApiArrayResultWebhookSubscription} obj Optional instance to populate. - * @return {module:model/RestApiArrayResultWebhookSubscription} The populated RestApiArrayResultWebhookSubscription instance. + * @param {module:model/RestApiArrayResultBusinessHoursPeriod} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultBusinessHoursPeriod} The populated RestApiArrayResultBusinessHoursPeriod instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = ApiClient.convertToType(data['Data'], [WebhookSubscription]); - } + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [BusinessHoursPeriod]); } return obj; } /** * Generic data object. - * @member {Array.} Data + * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiArrayResultCountryWithAccountFieldsDefinitions.js b/src/model/RestApiArrayResultCountryWithAccountFieldsDefinitions.js new file mode 100644 index 00000000..3bd8cb0c --- /dev/null +++ b/src/model/RestApiArrayResultCountryWithAccountFieldsDefinitions.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CountryWithAccountFieldsDefinitions'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./CountryWithAccountFieldsDefinitions')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultCountryWithAccountFieldsDefinitions = factory(root.Flipdish.ApiClient, root.Flipdish.CountryWithAccountFieldsDefinitions); + } +}(this, function(ApiClient, CountryWithAccountFieldsDefinitions) { + 'use strict'; + + /** + * The RestApiArrayResultCountryWithAccountFieldsDefinitions model module. + * @module model/RestApiArrayResultCountryWithAccountFieldsDefinitions + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultCountryWithAccountFieldsDefinitions. + * Rest api array result + * @alias module:model/RestApiArrayResultCountryWithAccountFieldsDefinitions + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [CountryWithAccountFieldsDefinitions]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultDeliveryZone.js b/src/model/RestApiArrayResultDeliveryZone.js new file mode 100644 index 00000000..7a36b564 --- /dev/null +++ b/src/model/RestApiArrayResultDeliveryZone.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/DeliveryZone'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./DeliveryZone')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultDeliveryZone = factory(root.Flipdish.ApiClient, root.Flipdish.DeliveryZone); + } +}(this, function(ApiClient, DeliveryZone) { + 'use strict'; + + /** + * The RestApiArrayResultDeliveryZone model module. + * @module model/RestApiArrayResultDeliveryZone + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultDeliveryZone. + * Rest api array result + * @alias module:model/RestApiArrayResultDeliveryZone + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [DeliveryZone]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultDriver.js b/src/model/RestApiArrayResultDriver.js new file mode 100644 index 00000000..95ebee92 --- /dev/null +++ b/src/model/RestApiArrayResultDriver.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Driver'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Driver')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultDriver = factory(root.Flipdish.ApiClient, root.Flipdish.Driver); + } +}(this, function(ApiClient, Driver) { + 'use strict'; + + /** + * The RestApiArrayResultDriver model module. + * @module model/RestApiArrayResultDriver + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultDriver. + * Rest api array result + * @alias module:model/RestApiArrayResultDriver + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.Data = Data; + }; + + /** + * Constructs a RestApiArrayResultDriver from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultDriver} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultDriver} The populated RestApiArrayResultDriver instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [Driver]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultOAuthClient.js b/src/model/RestApiArrayResultDriverStore.js similarity index 56% rename from src/model/RestApiArrayResultOAuthClient.js rename to src/model/RestApiArrayResultDriverStore.js index 5e31f121..67bffe3d 100644 --- a/src/model/RestApiArrayResultOAuthClient.js +++ b/src/model/RestApiArrayResultDriverStore.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,68 +16,60 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/OAuthClient'], factory); + define(['ApiClient', 'model/DriverStore'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./OAuthClient')); + module.exports = factory(require('../ApiClient'), require('./DriverStore')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.RestApiArrayResultOAuthClient = factory(root.Flipdish.ApiClient, root.Flipdish.OAuthClient); + root.Flipdish.RestApiArrayResultDriverStore = factory(root.Flipdish.ApiClient, root.Flipdish.DriverStore); } -}(this, function(ApiClient, OAuthClient) { +}(this, function(ApiClient, DriverStore) { 'use strict'; - - - /** - * The RestApiArrayResultOAuthClient model module. - * @module model/RestApiArrayResultOAuthClient + * The RestApiArrayResultDriverStore model module. + * @module model/RestApiArrayResultDriverStore * @version 1.0.0 */ /** - * Constructs a new RestApiArrayResultOAuthClient. + * Constructs a new RestApiArrayResultDriverStore. * Rest api array result - * @alias module:model/RestApiArrayResultOAuthClient + * @alias module:model/RestApiArrayResultDriverStore * @class + * @param Data {Array.} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** - * Constructs a RestApiArrayResultOAuthClient from a plain JavaScript object, optionally creating a new instance. + * Constructs a RestApiArrayResultDriverStore from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RestApiArrayResultOAuthClient} obj Optional instance to populate. - * @return {module:model/RestApiArrayResultOAuthClient} The populated RestApiArrayResultOAuthClient instance. + * @param {module:model/RestApiArrayResultDriverStore} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultDriverStore} The populated RestApiArrayResultDriverStore instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = ApiClient.convertToType(data['Data'], [OAuthClient]); - } + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [DriverStore]); } return obj; } /** * Generic data object. - * @member {Array.} Data + * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiArrayResultEmvTerminalWithAssignments.js b/src/model/RestApiArrayResultEmvTerminalWithAssignments.js new file mode 100644 index 00000000..9fef773e --- /dev/null +++ b/src/model/RestApiArrayResultEmvTerminalWithAssignments.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/EmvTerminalWithAssignments'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./EmvTerminalWithAssignments')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultEmvTerminalWithAssignments = factory(root.Flipdish.ApiClient, root.Flipdish.EmvTerminalWithAssignments); + } +}(this, function(ApiClient, EmvTerminalWithAssignments) { + 'use strict'; + + /** + * The RestApiArrayResultEmvTerminalWithAssignments model module. + * @module model/RestApiArrayResultEmvTerminalWithAssignments + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultEmvTerminalWithAssignments. + * Rest api array result + * @alias module:model/RestApiArrayResultEmvTerminalWithAssignments + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [EmvTerminalWithAssignments]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultHomeAction.js b/src/model/RestApiArrayResultHomeAction.js new file mode 100644 index 00000000..dc7fd077 --- /dev/null +++ b/src/model/RestApiArrayResultHomeAction.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/HomeAction'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./HomeAction')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultHomeAction = factory(root.Flipdish.ApiClient, root.Flipdish.HomeAction); + } +}(this, function(ApiClient, HomeAction) { + 'use strict'; + + /** + * The RestApiArrayResultHomeAction model module. + * @module model/RestApiArrayResultHomeAction + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultHomeAction. + * Rest api array result + * @alias module:model/RestApiArrayResultHomeAction + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [HomeAction]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultLocalisedTimeZone.js b/src/model/RestApiArrayResultLocalisedTimeZone.js new file mode 100644 index 00000000..8fa0cfd2 --- /dev/null +++ b/src/model/RestApiArrayResultLocalisedTimeZone.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/LocalisedTimeZone'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./LocalisedTimeZone')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultLocalisedTimeZone = factory(root.Flipdish.ApiClient, root.Flipdish.LocalisedTimeZone); + } +}(this, function(ApiClient, LocalisedTimeZone) { + 'use strict'; + + /** + * The RestApiArrayResultLocalisedTimeZone model module. + * @module model/RestApiArrayResultLocalisedTimeZone + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultLocalisedTimeZone. + * Rest api array result + * @alias module:model/RestApiArrayResultLocalisedTimeZone + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [LocalisedTimeZone]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultLoyaltyCampaign.js b/src/model/RestApiArrayResultLoyaltyCampaign.js new file mode 100644 index 00000000..3f11ee3e --- /dev/null +++ b/src/model/RestApiArrayResultLoyaltyCampaign.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/LoyaltyCampaign'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./LoyaltyCampaign')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultLoyaltyCampaign = factory(root.Flipdish.ApiClient, root.Flipdish.LoyaltyCampaign); + } +}(this, function(ApiClient, LoyaltyCampaign) { + 'use strict'; + + /** + * The RestApiArrayResultLoyaltyCampaign model module. + * @module model/RestApiArrayResultLoyaltyCampaign + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultLoyaltyCampaign. + * Rest api array result + * @alias module:model/RestApiArrayResultLoyaltyCampaign + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [LoyaltyCampaign]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultMenuCheckpoint.js b/src/model/RestApiArrayResultMenuCheckpoint.js new file mode 100644 index 00000000..ac82c488 --- /dev/null +++ b/src/model/RestApiArrayResultMenuCheckpoint.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuCheckpoint'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuCheckpoint')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultMenuCheckpoint = factory(root.Flipdish.ApiClient, root.Flipdish.MenuCheckpoint); + } +}(this, function(ApiClient, MenuCheckpoint) { + 'use strict'; + + /** + * The RestApiArrayResultMenuCheckpoint model module. + * @module model/RestApiArrayResultMenuCheckpoint + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultMenuCheckpoint. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuCheckpoint + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [MenuCheckpoint]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultMenuElementEditResponse.js b/src/model/RestApiArrayResultMenuElementEditResponse.js new file mode 100644 index 00000000..f5a01518 --- /dev/null +++ b/src/model/RestApiArrayResultMenuElementEditResponse.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuElementEditResponse'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuElementEditResponse')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultMenuElementEditResponse = factory(root.Flipdish.ApiClient, root.Flipdish.MenuElementEditResponse); + } +}(this, function(ApiClient, MenuElementEditResponse) { + 'use strict'; + + /** + * The RestApiArrayResultMenuElementEditResponse model module. + * @module model/RestApiArrayResultMenuElementEditResponse + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultMenuElementEditResponse. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuElementEditResponse + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [MenuElementEditResponse]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultMenuItemOptionSet.js b/src/model/RestApiArrayResultMenuItemOptionSet.js index 94edf812..31c6c691 100644 --- a/src/model/RestApiArrayResultMenuItemOptionSet.js +++ b/src/model/RestApiArrayResultMenuItemOptionSet.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, MenuItemOptionSet) { 'use strict'; - - - /** * The RestApiArrayResultMenuItemOptionSet model module. * @module model/RestApiArrayResultMenuItemOptionSet @@ -44,11 +41,10 @@ * Rest api array result * @alias module:model/RestApiArrayResultMenuItemOptionSet * @class + * @param Data {Array.} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = ApiClient.convertToType(data['Data'], [MenuItemOptionSet]); - } + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [MenuItemOptionSet]); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiArrayResultMenuItemOptionSetItem.js b/src/model/RestApiArrayResultMenuItemOptionSetItem.js index 75e3630d..fb920871 100644 --- a/src/model/RestApiArrayResultMenuItemOptionSetItem.js +++ b/src/model/RestApiArrayResultMenuItemOptionSetItem.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, MenuItemOptionSetItem) { 'use strict'; - - - /** * The RestApiArrayResultMenuItemOptionSetItem model module. * @module model/RestApiArrayResultMenuItemOptionSetItem @@ -44,11 +41,10 @@ * Rest api array result * @alias module:model/RestApiArrayResultMenuItemOptionSetItem * @class + * @param Data {Array.} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = ApiClient.convertToType(data['Data'], [MenuItemOptionSetItem]); - } + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [MenuItemOptionSetItem]); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiArrayResultMenuSection.js b/src/model/RestApiArrayResultMenuSection.js index 39b30790..52036a5f 100644 --- a/src/model/RestApiArrayResultMenuSection.js +++ b/src/model/RestApiArrayResultMenuSection.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, MenuSection) { 'use strict'; - - - /** * The RestApiArrayResultMenuSection model module. * @module model/RestApiArrayResultMenuSection @@ -44,11 +41,10 @@ * Rest api array result * @alias module:model/RestApiArrayResultMenuSection * @class + * @param Data {Array.} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = ApiClient.convertToType(data['Data'], [MenuSection]); - } + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [MenuSection]); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiArrayResultMenuSectionItem.js b/src/model/RestApiArrayResultMenuSectionItem.js index cc2ea379..769e3dac 100644 --- a/src/model/RestApiArrayResultMenuSectionItem.js +++ b/src/model/RestApiArrayResultMenuSectionItem.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, MenuSectionItem) { 'use strict'; - - - /** * The RestApiArrayResultMenuSectionItem model module. * @module model/RestApiArrayResultMenuSectionItem @@ -44,11 +41,10 @@ * Rest api array result * @alias module:model/RestApiArrayResultMenuSectionItem * @class + * @param Data {Array.} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = ApiClient.convertToType(data['Data'], [MenuSectionItem]); - } + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [MenuSectionItem]); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiArrayResultMenuStoreNames.js b/src/model/RestApiArrayResultMenuStoreNames.js new file mode 100644 index 00000000..99379402 --- /dev/null +++ b/src/model/RestApiArrayResultMenuStoreNames.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuStoreNames'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuStoreNames')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultMenuStoreNames = factory(root.Flipdish.ApiClient, root.Flipdish.MenuStoreNames); + } +}(this, function(ApiClient, MenuStoreNames) { + 'use strict'; + + /** + * The RestApiArrayResultMenuStoreNames model module. + * @module model/RestApiArrayResultMenuStoreNames + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultMenuStoreNames. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuStoreNames + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [MenuStoreNames]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultMenuSummary.js b/src/model/RestApiArrayResultMenuSummary.js new file mode 100644 index 00000000..a60b50d0 --- /dev/null +++ b/src/model/RestApiArrayResultMenuSummary.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuSummary'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuSummary')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultMenuSummary = factory(root.Flipdish.ApiClient, root.Flipdish.MenuSummary); + } +}(this, function(ApiClient, MenuSummary) { + 'use strict'; + + /** + * The RestApiArrayResultMenuSummary model module. + * @module model/RestApiArrayResultMenuSummary + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultMenuSummary. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuSummary + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [MenuSummary]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultMenuTaxDetails.js b/src/model/RestApiArrayResultMenuTaxDetails.js new file mode 100644 index 00000000..078a68df --- /dev/null +++ b/src/model/RestApiArrayResultMenuTaxDetails.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuTaxDetails'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuTaxDetails')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultMenuTaxDetails = factory(root.Flipdish.ApiClient, root.Flipdish.MenuTaxDetails); + } +}(this, function(ApiClient, MenuTaxDetails) { + 'use strict'; + + /** + * The RestApiArrayResultMenuTaxDetails model module. + * @module model/RestApiArrayResultMenuTaxDetails + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultMenuTaxDetails. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuTaxDetails + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [MenuTaxDetails]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultMetadata.js b/src/model/RestApiArrayResultMetadata.js index 16d42ed3..07eaf574 100644 --- a/src/model/RestApiArrayResultMetadata.js +++ b/src/model/RestApiArrayResultMetadata.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Metadata) { 'use strict'; - - - /** * The RestApiArrayResultMetadata model module. * @module model/RestApiArrayResultMetadata @@ -44,11 +41,10 @@ * Rest api array result * @alias module:model/RestApiArrayResultMetadata * @class + * @param Data {Array.} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = ApiClient.convertToType(data['Data'], [Metadata]); - } + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [Metadata]); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiArrayResultOAuthApp.js b/src/model/RestApiArrayResultOAuthApp.js new file mode 100644 index 00000000..a788610a --- /dev/null +++ b/src/model/RestApiArrayResultOAuthApp.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/OAuthApp'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./OAuthApp')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultOAuthApp = factory(root.Flipdish.ApiClient, root.Flipdish.OAuthApp); + } +}(this, function(ApiClient, OAuthApp) { + 'use strict'; + + /** + * The RestApiArrayResultOAuthApp model module. + * @module model/RestApiArrayResultOAuthApp + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultOAuthApp. + * Rest api array result + * @alias module:model/RestApiArrayResultOAuthApp + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [OAuthApp]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultOauthClientRedirectUri.js b/src/model/RestApiArrayResultOauthClientRedirectUri.js index eded3e89..7ad45f36 100644 --- a/src/model/RestApiArrayResultOauthClientRedirectUri.js +++ b/src/model/RestApiArrayResultOauthClientRedirectUri.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, OauthClientRedirectUri) { 'use strict'; - - - /** * The RestApiArrayResultOauthClientRedirectUri model module. * @module model/RestApiArrayResultOauthClientRedirectUri @@ -44,11 +41,10 @@ * Rest api array result * @alias module:model/RestApiArrayResultOauthClientRedirectUri * @class + * @param Data {Array.} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = ApiClient.convertToType(data['Data'], [OauthClientRedirectUri]); - } + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [OauthClientRedirectUri]); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiArrayResultPayoutSummary.js b/src/model/RestApiArrayResultPayoutSummary.js new file mode 100644 index 00000000..a844556d --- /dev/null +++ b/src/model/RestApiArrayResultPayoutSummary.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PayoutSummary'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PayoutSummary')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultPayoutSummary = factory(root.Flipdish.ApiClient, root.Flipdish.PayoutSummary); + } +}(this, function(ApiClient, PayoutSummary) { + 'use strict'; + + /** + * The RestApiArrayResultPayoutSummary model module. + * @module model/RestApiArrayResultPayoutSummary + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultPayoutSummary. + * Rest api array result + * @alias module:model/RestApiArrayResultPayoutSummary + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [PayoutSummary]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultPreOrderTime.js b/src/model/RestApiArrayResultPreOrderTime.js new file mode 100644 index 00000000..18a9b700 --- /dev/null +++ b/src/model/RestApiArrayResultPreOrderTime.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PreOrderTime'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PreOrderTime')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultPreOrderTime = factory(root.Flipdish.ApiClient, root.Flipdish.PreOrderTime); + } +}(this, function(ApiClient, PreOrderTime) { + 'use strict'; + + /** + * The RestApiArrayResultPreOrderTime model module. + * @module model/RestApiArrayResultPreOrderTime + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultPreOrderTime. + * Rest api array result + * @alias module:model/RestApiArrayResultPreOrderTime + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [PreOrderTime]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultProcessingFeeConfig.js b/src/model/RestApiArrayResultProcessingFeeConfig.js new file mode 100644 index 00000000..d0c55139 --- /dev/null +++ b/src/model/RestApiArrayResultProcessingFeeConfig.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/ProcessingFeeConfig'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./ProcessingFeeConfig')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultProcessingFeeConfig = factory(root.Flipdish.ApiClient, root.Flipdish.ProcessingFeeConfig); + } +}(this, function(ApiClient, ProcessingFeeConfig) { + 'use strict'; + + /** + * The RestApiArrayResultProcessingFeeConfig model module. + * @module model/RestApiArrayResultProcessingFeeConfig + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultProcessingFeeConfig. + * Rest api array result + * @alias module:model/RestApiArrayResultProcessingFeeConfig + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [ProcessingFeeConfig]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultRestApiDefaultResponse.js b/src/model/RestApiArrayResultRestApiDefaultResponse.js index 952520a8..de651264 100644 --- a/src/model/RestApiArrayResultRestApiDefaultResponse.js +++ b/src/model/RestApiArrayResultRestApiDefaultResponse.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, RestApiDefaultResponse) { 'use strict'; - - - /** * The RestApiArrayResultRestApiDefaultResponse model module. * @module model/RestApiArrayResultRestApiDefaultResponse @@ -44,11 +41,10 @@ * Rest api array result * @alias module:model/RestApiArrayResultRestApiDefaultResponse * @class + * @param Data {Array.} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = ApiClient.convertToType(data['Data'], [RestApiDefaultResponse]); - } + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [RestApiDefaultResponse]); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiArrayResultRetentionCampaign.js b/src/model/RestApiArrayResultRetentionCampaign.js new file mode 100644 index 00000000..a3661322 --- /dev/null +++ b/src/model/RestApiArrayResultRetentionCampaign.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RetentionCampaign'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./RetentionCampaign')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultRetentionCampaign = factory(root.Flipdish.ApiClient, root.Flipdish.RetentionCampaign); + } +}(this, function(ApiClient, RetentionCampaign) { + 'use strict'; + + /** + * The RestApiArrayResultRetentionCampaign model module. + * @module model/RestApiArrayResultRetentionCampaign + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultRetentionCampaign. + * Rest api array result + * @alias module:model/RestApiArrayResultRetentionCampaign + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [RetentionCampaign]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultStoreListItem.js b/src/model/RestApiArrayResultStoreListItem.js new file mode 100644 index 00000000..702e7b7f --- /dev/null +++ b/src/model/RestApiArrayResultStoreListItem.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreListItem'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreListItem')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultStoreListItem = factory(root.Flipdish.ApiClient, root.Flipdish.StoreListItem); + } +}(this, function(ApiClient, StoreListItem) { + 'use strict'; + + /** + * The RestApiArrayResultStoreListItem model module. + * @module model/RestApiArrayResultStoreListItem + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultStoreListItem. + * Rest api array result + * @alias module:model/RestApiArrayResultStoreListItem + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [StoreListItem]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultStoreStatistics.js b/src/model/RestApiArrayResultStoreStatistics.js new file mode 100644 index 00000000..b02d08d2 --- /dev/null +++ b/src/model/RestApiArrayResultStoreStatistics.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreStatistics'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreStatistics')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultStoreStatistics = factory(root.Flipdish.ApiClient, root.Flipdish.StoreStatistics); + } +}(this, function(ApiClient, StoreStatistics) { + 'use strict'; + + /** + * The RestApiArrayResultStoreStatistics model module. + * @module model/RestApiArrayResultStoreStatistics + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultStoreStatistics. + * Rest api array result + * @alias module:model/RestApiArrayResultStoreStatistics + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [StoreStatistics]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultSupportedCountry.js b/src/model/RestApiArrayResultSupportedCountry.js new file mode 100644 index 00000000..70f5b96f --- /dev/null +++ b/src/model/RestApiArrayResultSupportedCountry.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/SupportedCountry'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./SupportedCountry')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultSupportedCountry = factory(root.Flipdish.ApiClient, root.Flipdish.SupportedCountry); + } +}(this, function(ApiClient, SupportedCountry) { + 'use strict'; + + /** + * The RestApiArrayResultSupportedCountry model module. + * @module model/RestApiArrayResultSupportedCountry + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultSupportedCountry. + * Rest api array result + * @alias module:model/RestApiArrayResultSupportedCountry + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [SupportedCountry]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultTeammate.js b/src/model/RestApiArrayResultTeammate.js new file mode 100644 index 00000000..4c8a7f6c --- /dev/null +++ b/src/model/RestApiArrayResultTeammate.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Teammate'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Teammate')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultTeammate = factory(root.Flipdish.ApiClient, root.Flipdish.Teammate); + } +}(this, function(ApiClient, Teammate) { + 'use strict'; + + /** + * The RestApiArrayResultTeammate model module. + * @module model/RestApiArrayResultTeammate + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultTeammate. + * Rest api array result + * @alias module:model/RestApiArrayResultTeammate + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [Teammate]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiArrayResultVoucherDataPoint.js b/src/model/RestApiArrayResultVoucherDataPoint.js new file mode 100644 index 00000000..1e5c3ea9 --- /dev/null +++ b/src/model/RestApiArrayResultVoucherDataPoint.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/VoucherDataPoint'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./VoucherDataPoint')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiArrayResultVoucherDataPoint = factory(root.Flipdish.ApiClient, root.Flipdish.VoucherDataPoint); + } +}(this, function(ApiClient, VoucherDataPoint) { + 'use strict'; + + /** + * The RestApiArrayResultVoucherDataPoint model module. + * @module model/RestApiArrayResultVoucherDataPoint + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiArrayResultVoucherDataPoint. + * Rest api array result + * @alias module:model/RestApiArrayResultVoucherDataPoint + * @class + * @param Data {Array.} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], [VoucherDataPoint]); + } + return obj; + } + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiDefaultResponse.js b/src/model/RestApiDefaultResponse.js index 7051db7b..21ccf2b6 100644 --- a/src/model/RestApiDefaultResponse.js +++ b/src/model/RestApiDefaultResponse.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The RestApiDefaultResponse model module. * @module model/RestApiDefaultResponse @@ -46,9 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - }; /** @@ -61,10 +55,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = ApiClient.convertToType(data['Data'], 'String'); - } + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], 'String'); } return obj; } @@ -73,11 +65,9 @@ * Data string * @member {String} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiErrorResult.js b/src/model/RestApiErrorResult.js index 81088eb3..1d63174e 100644 --- a/src/model/RestApiErrorResult.js +++ b/src/model/RestApiErrorResult.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, ValidationErrorResult) { 'use strict'; - - - /** * The RestApiErrorResult model module. * @module model/RestApiErrorResult @@ -44,12 +41,10 @@ * Rest api error result * @alias module:model/RestApiErrorResult * @class + * @param Message {String} Error message */ - var exports = function() { - var _this = this; - - - + var exports = function(Message) { + this.Message = Message; }; /** @@ -62,13 +57,14 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Message')) { - obj['Message'] = ApiClient.convertToType(data['Message'], 'String'); - } - if (data.hasOwnProperty('Errors')) { - obj['Errors'] = ApiClient.convertToType(data['Errors'], [ValidationErrorResult]); - } + 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; } @@ -77,16 +73,27 @@ * Error message * @member {String} Message */ - exports.prototype['Message'] = undefined; + exports.prototype.Message = undefined; + + /** + * Error code + * @member {Number} ErrorCode + */ + exports.prototype.ErrorCode = undefined; + + /** + * Stack trace + * @member {String} StackTrace + */ + exports.prototype.StackTrace = undefined; + /** * List of errors grouped by field name * @member {Array.} Errors */ - exports.prototype['Errors'] = undefined; - + exports.prototype.Errors = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiEventSearchPaginationResult.js b/src/model/RestApiEventSearchPaginationResult.js index 4a40781d..c7d6350f 100644 --- a/src/model/RestApiEventSearchPaginationResult.js +++ b/src/model/RestApiEventSearchPaginationResult.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, EventSearchResult) { 'use strict'; - - - /** * The RestApiEventSearchPaginationResult model module. * @module model/RestApiEventSearchPaginationResult @@ -44,14 +41,16 @@ * * @alias module:model/RestApiEventSearchPaginationResult * @class + * @param Data {module:model/EventSearchResult} Event results + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count */ - var exports = function() { - var _this = this; - - - - - + var exports = function(Data, Page, Limit, TotalRecordCount) { + this.Data = Data; + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; }; /** @@ -64,19 +63,14 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'); - } + 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; } @@ -85,26 +79,27 @@ * Event results * @member {module:model/EventSearchResult} Data */ - exports.prototype['Data'] = undefined; + exports.prototype.Data = undefined; + /** * Current page index * @member {Number} Page */ - exports.prototype['Page'] = undefined; + exports.prototype.Page = undefined; + /** * Current page size * @member {Number} Limit */ - exports.prototype['Limit'] = undefined; + exports.prototype.Limit = undefined; + /** * Total record count * @member {Number} TotalRecordCount */ - exports.prototype['TotalRecordCount'] = undefined; - + exports.prototype.TotalRecordCount = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiForbiddenResult.js b/src/model/RestApiForbiddenResult.js index de3b77fa..e3e9eaf2 100644 --- a/src/model/RestApiForbiddenResult.js +++ b/src/model/RestApiForbiddenResult.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The RestApiForbiddenResult model module. * @module model/RestApiForbiddenResult @@ -44,11 +41,10 @@ * Rest Api Forbidden Result * @alias module:model/RestApiForbiddenResult * @class + * @param Message {String} Message */ - var exports = function() { - var _this = this; - - + var exports = function(Message) { + this.Message = Message; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Message')) { - obj['Message'] = ApiClient.convertToType(data['Message'], 'String'); - } + if (data.hasOwnProperty('Message')) + obj.Message = ApiClient.convertToType(data['Message'], 'String'); } return obj; } @@ -73,11 +67,9 @@ * Message * @member {String} Message */ - exports.prototype['Message'] = undefined; - + exports.prototype.Message = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiIntegerResult.js b/src/model/RestApiIntegerResult.js index 01a5132f..f1dd0d6f 100644 --- a/src/model/RestApiIntegerResult.js +++ b/src/model/RestApiIntegerResult.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The RestApiIntegerResult model module. * @module model/RestApiIntegerResult @@ -44,11 +41,10 @@ * Rest api integer result * @alias module:model/RestApiIntegerResult * @class + * @param Data {Number} Data integer */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = ApiClient.convertToType(data['Data'], 'Number'); - } + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], 'Number'); } return obj; } @@ -73,11 +67,9 @@ * Data integer * @member {Number} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiPaginationResultApp.js b/src/model/RestApiPaginationResultApp.js new file mode 100644 index 00000000..8ae5405a --- /dev/null +++ b/src/model/RestApiPaginationResultApp.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/App'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./App')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultApp = factory(root.Flipdish.ApiClient, root.Flipdish.App); + } +}(this, function(ApiClient, App) { + 'use strict'; + + /** + * The RestApiPaginationResultApp model module. + * @module model/RestApiPaginationResultApp + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultApp. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultApp + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultBusinessHoursOverride.js b/src/model/RestApiPaginationResultBusinessHoursOverride.js new file mode 100644 index 00000000..675848fa --- /dev/null +++ b/src/model/RestApiPaginationResultBusinessHoursOverride.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BusinessHoursOverride'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./BusinessHoursOverride')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultBusinessHoursOverride = factory(root.Flipdish.ApiClient, root.Flipdish.BusinessHoursOverride); + } +}(this, function(ApiClient, BusinessHoursOverride) { + 'use strict'; + + /** + * The RestApiPaginationResultBusinessHoursOverride model module. + * @module model/RestApiPaginationResultBusinessHoursOverride + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultBusinessHoursOverride. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultBusinessHoursOverride + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultHttpRequestAndResponseLog.js b/src/model/RestApiPaginationResultHttpRequestAndResponseLog.js index c4acdc3d..0ee0abc0 100644 --- a/src/model/RestApiPaginationResultHttpRequestAndResponseLog.js +++ b/src/model/RestApiPaginationResultHttpRequestAndResponseLog.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, HttpRequestAndResponseLog) { 'use strict'; - - - /** * The RestApiPaginationResultHttpRequestAndResponseLog model module. * @module model/RestApiPaginationResultHttpRequestAndResponseLog @@ -44,14 +41,16 @@ * Rest api pagination result * @alias module:model/RestApiPaginationResultHttpRequestAndResponseLog * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. */ - var exports = function() { - var _this = this; - - - - - + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.Data = Data; }; /** @@ -64,19 +63,14 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'], [HttpRequestAndResponseLog]); - } + 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'], [HttpRequestAndResponseLog]); } return obj; } @@ -85,26 +79,27 @@ * Current page index * @member {Number} Page */ - exports.prototype['Page'] = undefined; + exports.prototype.Page = undefined; + /** * Current page size * @member {Number} Limit */ - exports.prototype['Limit'] = undefined; + exports.prototype.Limit = undefined; + /** * Total record count * @member {Number} TotalRecordCount */ - exports.prototype['TotalRecordCount'] = undefined; + exports.prototype.TotalRecordCount = undefined; + /** * Generic data object. * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiPaginationResultHydraDeviceDetails.js b/src/model/RestApiPaginationResultHydraDeviceDetails.js new file mode 100644 index 00000000..59e586f3 --- /dev/null +++ b/src/model/RestApiPaginationResultHydraDeviceDetails.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/HydraDeviceDetails'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./HydraDeviceDetails')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultHydraDeviceDetails = factory(root.Flipdish.ApiClient, root.Flipdish.HydraDeviceDetails); + } +}(this, function(ApiClient, HydraDeviceDetails) { + 'use strict'; + + /** + * The RestApiPaginationResultHydraDeviceDetails model module. + * @module model/RestApiPaginationResultHydraDeviceDetails + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultHydraDeviceDetails. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultHydraDeviceDetails + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultOAuthTokenModel.js b/src/model/RestApiPaginationResultOAuthTokenModel.js index c8c04eae..882f8079 100644 --- a/src/model/RestApiPaginationResultOAuthTokenModel.js +++ b/src/model/RestApiPaginationResultOAuthTokenModel.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, OAuthTokenModel) { 'use strict'; - - - /** * The RestApiPaginationResultOAuthTokenModel model module. * @module model/RestApiPaginationResultOAuthTokenModel @@ -44,14 +41,16 @@ * Rest api pagination result * @alias module:model/RestApiPaginationResultOAuthTokenModel * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. */ - var exports = function() { - var _this = this; - - - - - + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.Data = Data; }; /** @@ -64,19 +63,14 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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]); - } + 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; } @@ -85,26 +79,27 @@ * Current page index * @member {Number} Page */ - exports.prototype['Page'] = undefined; + exports.prototype.Page = undefined; + /** * Current page size * @member {Number} Limit */ - exports.prototype['Limit'] = undefined; + exports.prototype.Limit = undefined; + /** * Total record count * @member {Number} TotalRecordCount */ - exports.prototype['TotalRecordCount'] = undefined; + exports.prototype.TotalRecordCount = undefined; + /** * Generic data object. * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiPaginationResultOrder.js b/src/model/RestApiPaginationResultOrder.js index ca43273f..8cc62b0d 100644 --- a/src/model/RestApiPaginationResultOrder.js +++ b/src/model/RestApiPaginationResultOrder.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Order) { 'use strict'; - - - /** * The RestApiPaginationResultOrder model module. * @module model/RestApiPaginationResultOrder @@ -44,14 +41,16 @@ * Rest api pagination result * @alias module:model/RestApiPaginationResultOrder * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. */ - var exports = function() { - var _this = this; - - - - - + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.Data = Data; }; /** @@ -64,19 +63,14 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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]); - } + 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; } @@ -85,26 +79,27 @@ * Current page index * @member {Number} Page */ - exports.prototype['Page'] = undefined; + exports.prototype.Page = undefined; + /** * Current page size * @member {Number} Limit */ - exports.prototype['Limit'] = undefined; + exports.prototype.Limit = undefined; + /** * Total record count * @member {Number} TotalRecordCount */ - exports.prototype['TotalRecordCount'] = undefined; + exports.prototype.TotalRecordCount = undefined; + /** * Generic data object. * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiPaginationResultOrderSummary.js b/src/model/RestApiPaginationResultOrderSummary.js new file mode 100644 index 00000000..34b3093c --- /dev/null +++ b/src/model/RestApiPaginationResultOrderSummary.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/OrderSummary'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./OrderSummary')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultOrderSummary = factory(root.Flipdish.ApiClient, root.Flipdish.OrderSummary); + } +}(this, function(ApiClient, OrderSummary) { + 'use strict'; + + /** + * The RestApiPaginationResultOrderSummary model module. + * @module model/RestApiPaginationResultOrderSummary + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultOrderSummary. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultOrderSummary + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultPayout.js b/src/model/RestApiPaginationResultPayout.js new file mode 100644 index 00000000..f2b3f5ed --- /dev/null +++ b/src/model/RestApiPaginationResultPayout.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Payout'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Payout')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultPayout = factory(root.Flipdish.ApiClient, root.Flipdish.Payout); + } +}(this, function(ApiClient, Payout) { + 'use strict'; + + /** + * The RestApiPaginationResultPayout model module. + * @module model/RestApiPaginationResultPayout + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultPayout. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPayout + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultPayoutChargeback.js b/src/model/RestApiPaginationResultPayoutChargeback.js new file mode 100644 index 00000000..fb8c345e --- /dev/null +++ b/src/model/RestApiPaginationResultPayoutChargeback.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PayoutChargeback'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PayoutChargeback')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultPayoutChargeback = factory(root.Flipdish.ApiClient, root.Flipdish.PayoutChargeback); + } +}(this, function(ApiClient, PayoutChargeback) { + 'use strict'; + + /** + * The RestApiPaginationResultPayoutChargeback model module. + * @module model/RestApiPaginationResultPayoutChargeback + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultPayoutChargeback. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPayoutChargeback + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultPayoutOrder.js b/src/model/RestApiPaginationResultPayoutOrder.js new file mode 100644 index 00000000..9ed17462 --- /dev/null +++ b/src/model/RestApiPaginationResultPayoutOrder.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PayoutOrder'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PayoutOrder')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultPayoutOrder = factory(root.Flipdish.ApiClient, root.Flipdish.PayoutOrder); + } +}(this, function(ApiClient, PayoutOrder) { + 'use strict'; + + /** + * The RestApiPaginationResultPayoutOrder model module. + * @module model/RestApiPaginationResultPayoutOrder + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultPayoutOrder. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPayoutOrder + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultPayoutOtherCharge.js b/src/model/RestApiPaginationResultPayoutOtherCharge.js new file mode 100644 index 00000000..270df9d9 --- /dev/null +++ b/src/model/RestApiPaginationResultPayoutOtherCharge.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PayoutOtherCharge'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PayoutOtherCharge')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultPayoutOtherCharge = factory(root.Flipdish.ApiClient, root.Flipdish.PayoutOtherCharge); + } +}(this, function(ApiClient, PayoutOtherCharge) { + 'use strict'; + + /** + * The RestApiPaginationResultPayoutOtherCharge model module. + * @module model/RestApiPaginationResultPayoutOtherCharge + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultPayoutOtherCharge. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPayoutOtherCharge + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultPayoutRefund.js b/src/model/RestApiPaginationResultPayoutRefund.js new file mode 100644 index 00000000..d91c5f06 --- /dev/null +++ b/src/model/RestApiPaginationResultPayoutRefund.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PayoutRefund'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PayoutRefund')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultPayoutRefund = factory(root.Flipdish.ApiClient, root.Flipdish.PayoutRefund); + } +}(this, function(ApiClient, PayoutRefund) { + 'use strict'; + + /** + * The RestApiPaginationResultPayoutRefund model module. + * @module model/RestApiPaginationResultPayoutRefund + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultPayoutRefund. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPayoutRefund + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultPhoneCall.js b/src/model/RestApiPaginationResultPhoneCall.js new file mode 100644 index 00000000..d5f42bc2 --- /dev/null +++ b/src/model/RestApiPaginationResultPhoneCall.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PhoneCall'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PhoneCall')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultPhoneCall = factory(root.Flipdish.ApiClient, root.Flipdish.PhoneCall); + } +}(this, function(ApiClient, PhoneCall) { + 'use strict'; + + /** + * The RestApiPaginationResultPhoneCall model module. + * @module model/RestApiPaginationResultPhoneCall + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultPhoneCall. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPhoneCall + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultPushNotificationResponse.js b/src/model/RestApiPaginationResultPushNotificationResponse.js new file mode 100644 index 00000000..40ea49d6 --- /dev/null +++ b/src/model/RestApiPaginationResultPushNotificationResponse.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PushNotificationResponse'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PushNotificationResponse')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultPushNotificationResponse = factory(root.Flipdish.ApiClient, root.Flipdish.PushNotificationResponse); + } +}(this, function(ApiClient, PushNotificationResponse) { + 'use strict'; + + /** + * The RestApiPaginationResultPushNotificationResponse model module. + * @module model/RestApiPaginationResultPushNotificationResponse + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultPushNotificationResponse. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPushNotificationResponse + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultStore.js b/src/model/RestApiPaginationResultStore.js index 2be48971..b031bfba 100644 --- a/src/model/RestApiPaginationResultStore.js +++ b/src/model/RestApiPaginationResultStore.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Store) { 'use strict'; - - - /** * The RestApiPaginationResultStore model module. * @module model/RestApiPaginationResultStore @@ -44,14 +41,16 @@ * Rest api pagination result * @alias module:model/RestApiPaginationResultStore * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. */ - var exports = function() { - var _this = this; - - - - - + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.Data = Data; }; /** @@ -64,19 +63,14 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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]); - } + 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; } @@ -85,26 +79,27 @@ * Current page index * @member {Number} Page */ - exports.prototype['Page'] = undefined; + exports.prototype.Page = undefined; + /** * Current page size * @member {Number} Limit */ - exports.prototype['Limit'] = undefined; + exports.prototype.Limit = undefined; + /** * Total record count * @member {Number} TotalRecordCount */ - exports.prototype['TotalRecordCount'] = undefined; + exports.prototype.TotalRecordCount = undefined; + /** * Generic data object. * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiPaginationResultStoreGroup.js b/src/model/RestApiPaginationResultStoreGroup.js new file mode 100644 index 00000000..0b3c481a --- /dev/null +++ b/src/model/RestApiPaginationResultStoreGroup.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreGroup'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreGroup')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultStoreGroup = factory(root.Flipdish.ApiClient, root.Flipdish.StoreGroup); + } +}(this, function(ApiClient, StoreGroup) { + 'use strict'; + + /** + * The RestApiPaginationResultStoreGroup model module. + * @module model/RestApiPaginationResultStoreGroup + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultStoreGroup. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultStoreGroup + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultStoreGroupExtended.js b/src/model/RestApiPaginationResultStoreGroupExtended.js new file mode 100644 index 00000000..4f71a8a5 --- /dev/null +++ b/src/model/RestApiPaginationResultStoreGroupExtended.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreGroupExtended'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreGroupExtended')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultStoreGroupExtended = factory(root.Flipdish.ApiClient, root.Flipdish.StoreGroupExtended); + } +}(this, function(ApiClient, StoreGroupExtended) { + 'use strict'; + + /** + * The RestApiPaginationResultStoreGroupExtended model module. + * @module model/RestApiPaginationResultStoreGroupExtended + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultStoreGroupExtended. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultStoreGroupExtended + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultStoreHeader.js b/src/model/RestApiPaginationResultStoreHeader.js new file mode 100644 index 00000000..b29f75d1 --- /dev/null +++ b/src/model/RestApiPaginationResultStoreHeader.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreHeader'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreHeader')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultStoreHeader = factory(root.Flipdish.ApiClient, root.Flipdish.StoreHeader); + } +}(this, function(ApiClient, StoreHeader) { + 'use strict'; + + /** + * The RestApiPaginationResultStoreHeader model module. + * @module model/RestApiPaginationResultStoreHeader + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultStoreHeader. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultStoreHeader + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultVoucher.js b/src/model/RestApiPaginationResultVoucher.js deleted file mode 100644 index e2d6c251..00000000 --- a/src/model/RestApiPaginationResultVoucher.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Flipdish Open API v1.0 - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Voucher'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Voucher')); - } else { - // Browser globals (root is window) - if (!root.Flipdish) { - root.Flipdish = {}; - } - root.Flipdish.RestApiPaginationResultVoucher = factory(root.Flipdish.ApiClient, root.Flipdish.Voucher); - } -}(this, function(ApiClient, Voucher) { - 'use strict'; - - - - - /** - * The RestApiPaginationResultVoucher model module. - * @module model/RestApiPaginationResultVoucher - * @version 1.0.0 - */ - - /** - * Constructs a new RestApiPaginationResultVoucher. - * Rest api pagination result - * @alias module:model/RestApiPaginationResultVoucher - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a RestApiPaginationResultVoucher from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RestApiPaginationResultVoucher} obj Optional instance to populate. - * @return {module:model/RestApiPaginationResultVoucher} The populated RestApiPaginationResultVoucher instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - 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'], [Voucher]); - } - } - return obj; - } - - /** - * Current page index - * @member {Number} Page - */ - exports.prototype['Page'] = undefined; - /** - * Current page size - * @member {Number} Limit - */ - exports.prototype['Limit'] = undefined; - /** - * Total record count - * @member {Number} TotalRecordCount - */ - exports.prototype['TotalRecordCount'] = undefined; - /** - * Generic data object. - * @member {Array.} Data - */ - exports.prototype['Data'] = undefined; - - - - return exports; -})); - - diff --git a/src/model/RestApiPaginationResultVoucherSummary.js b/src/model/RestApiPaginationResultVoucherSummary.js new file mode 100644 index 00000000..dff964f6 --- /dev/null +++ b/src/model/RestApiPaginationResultVoucherSummary.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/VoucherSummary'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./VoucherSummary')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultVoucherSummary = factory(root.Flipdish.ApiClient, root.Flipdish.VoucherSummary); + } +}(this, function(ApiClient, VoucherSummary) { + 'use strict'; + + /** + * The RestApiPaginationResultVoucherSummary model module. + * @module model/RestApiPaginationResultVoucherSummary + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultVoucherSummary. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultVoucherSummary + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiPaginationResultWebhookLog.js b/src/model/RestApiPaginationResultWebhookLog.js index 655e1b51..237cec94 100644 --- a/src/model/RestApiPaginationResultWebhookLog.js +++ b/src/model/RestApiPaginationResultWebhookLog.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, WebhookLog) { 'use strict'; - - - /** * The RestApiPaginationResultWebhookLog model module. * @module model/RestApiPaginationResultWebhookLog @@ -44,14 +41,16 @@ * Rest api pagination result * @alias module:model/RestApiPaginationResultWebhookLog * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. */ - var exports = function() { - var _this = this; - - - - - + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.Data = Data; }; /** @@ -64,19 +63,14 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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]); - } + 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; } @@ -85,26 +79,27 @@ * Current page index * @member {Number} Page */ - exports.prototype['Page'] = undefined; + exports.prototype.Page = undefined; + /** * Current page size * @member {Number} Limit */ - exports.prototype['Limit'] = undefined; + exports.prototype.Limit = undefined; + /** * Total record count * @member {Number} TotalRecordCount */ - exports.prototype['TotalRecordCount'] = undefined; + exports.prototype.TotalRecordCount = undefined; + /** * Generic data object. * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiPaginationResultWebhookSubscription.js b/src/model/RestApiPaginationResultWebhookSubscription.js new file mode 100644 index 00000000..00e71e19 --- /dev/null +++ b/src/model/RestApiPaginationResultWebhookSubscription.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/WebhookSubscription'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./WebhookSubscription')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiPaginationResultWebhookSubscription = factory(root.Flipdish.ApiClient, root.Flipdish.WebhookSubscription); + } +}(this, function(ApiClient, WebhookSubscription) { + 'use strict'; + + /** + * The RestApiPaginationResultWebhookSubscription model module. + * @module model/RestApiPaginationResultWebhookSubscription + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiPaginationResultWebhookSubscription. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultWebhookSubscription + * @class + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + var exports = function(Page, Limit, TotalRecordCount, Data) { + this.Page = Page; + this.Limit = Limit; + this.TotalRecordCount = TotalRecordCount; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Page = undefined; + + /** + * Current page size + * @member {Number} Limit + */ + exports.prototype.Limit = undefined; + + /** + * Total record count + * @member {Number} TotalRecordCount + */ + exports.prototype.TotalRecordCount = undefined; + + /** + * Generic data object. + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultAccountDetail.js b/src/model/RestApiResultAccountDetail.js new file mode 100644 index 00000000..22a6ff9e --- /dev/null +++ b/src/model/RestApiResultAccountDetail.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AccountDetail'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AccountDetail')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultAccountDetail = factory(root.Flipdish.ApiClient, root.Flipdish.AccountDetail); + } +}(this, function(ApiClient, AccountDetail) { + 'use strict'; + + /** + * The RestApiResultAccountDetail model module. + * @module model/RestApiResultAccountDetail + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultAccountDetail. + * Rest api result + * @alias module:model/RestApiResultAccountDetail + * @class + * @param Data {module:model/AccountDetail} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = AccountDetail.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/AccountDetail} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultAccountFieldsDefinitions.js b/src/model/RestApiResultAccountFieldsDefinitions.js new file mode 100644 index 00000000..af756002 --- /dev/null +++ b/src/model/RestApiResultAccountFieldsDefinitions.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AccountFieldsDefinitions'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AccountFieldsDefinitions')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultAccountFieldsDefinitions = factory(root.Flipdish.ApiClient, root.Flipdish.AccountFieldsDefinitions); + } +}(this, function(ApiClient, AccountFieldsDefinitions) { + 'use strict'; + + /** + * The RestApiResultAccountFieldsDefinitions model module. + * @module model/RestApiResultAccountFieldsDefinitions + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultAccountFieldsDefinitions. + * Rest api result + * @alias module:model/RestApiResultAccountFieldsDefinitions + * @class + * @param Data {module:model/AccountFieldsDefinitions} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = AccountFieldsDefinitions.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/AccountFieldsDefinitions} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultApmStatistics.js b/src/model/RestApiResultApmStatistics.js new file mode 100644 index 00000000..f592192e --- /dev/null +++ b/src/model/RestApiResultApmStatistics.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/ApmStatistics'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./ApmStatistics')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultApmStatistics = factory(root.Flipdish.ApiClient, root.Flipdish.ApmStatistics); + } +}(this, function(ApiClient, ApmStatistics) { + 'use strict'; + + /** + * The RestApiResultApmStatistics model module. + * @module model/RestApiResultApmStatistics + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultApmStatistics. + * Rest api result + * @alias module:model/RestApiResultApmStatistics + * @class + * @param Data {module:model/ApmStatistics} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApmStatistics.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/ApmStatistics} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultApmStatus.js b/src/model/RestApiResultApmStatus.js new file mode 100644 index 00000000..56e9fc9a --- /dev/null +++ b/src/model/RestApiResultApmStatus.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/ApmStatus'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./ApmStatus')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultApmStatus = factory(root.Flipdish.ApiClient, root.Flipdish.ApmStatus); + } +}(this, function(ApiClient, ApmStatus) { + 'use strict'; + + /** + * The RestApiResultApmStatus model module. + * @module model/RestApiResultApmStatus + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultApmStatus. + * Rest api result + * @alias module:model/RestApiResultApmStatus + * @class + * @param Data {module:model/ApmStatus} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ApmStatus.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/ApmStatus} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultVoucher.js b/src/model/RestApiResultApp.js similarity index 56% rename from src/model/RestApiResultVoucher.js rename to src/model/RestApiResultApp.js index 64e23d1d..bc89732e 100644 --- a/src/model/RestApiResultVoucher.js +++ b/src/model/RestApiResultApp.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,68 +16,60 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Voucher'], factory); + define(['ApiClient', 'model/App'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Voucher')); + module.exports = factory(require('../ApiClient'), require('./App')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.RestApiResultVoucher = factory(root.Flipdish.ApiClient, root.Flipdish.Voucher); + root.Flipdish.RestApiResultApp = factory(root.Flipdish.ApiClient, root.Flipdish.App); } -}(this, function(ApiClient, Voucher) { +}(this, function(ApiClient, App) { 'use strict'; - - - /** - * The RestApiResultVoucher model module. - * @module model/RestApiResultVoucher + * The RestApiResultApp model module. + * @module model/RestApiResultApp * @version 1.0.0 */ /** - * Constructs a new RestApiResultVoucher. + * Constructs a new RestApiResultApp. * Rest api result - * @alias module:model/RestApiResultVoucher + * @alias module:model/RestApiResultApp * @class + * @param Data {module:model/App} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** - * Constructs a RestApiResultVoucher from a plain JavaScript object, optionally creating a new instance. + * 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/RestApiResultVoucher} obj Optional instance to populate. - * @return {module:model/RestApiResultVoucher} The populated RestApiResultVoucher instance. + * @param {module:model/RestApiResultApp} obj Optional instance to populate. + * @return {module:model/RestApiResultApp} The populated RestApiResultApp instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = Voucher.constructFromObject(data['Data']); - } + if (data.hasOwnProperty('Data')) + obj.Data = App.constructFromObject(data['Data']); } return obj; } /** * Generic data object. - * @member {module:model/Voucher} Data + * @member {module:model/App} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiResultAppCompliance.js b/src/model/RestApiResultAppCompliance.js new file mode 100644 index 00000000..396aa935 --- /dev/null +++ b/src/model/RestApiResultAppCompliance.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AppCompliance'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AppCompliance')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultAppCompliance = factory(root.Flipdish.ApiClient, root.Flipdish.AppCompliance); + } +}(this, function(ApiClient, AppCompliance) { + 'use strict'; + + /** + * The RestApiResultAppCompliance model module. + * @module model/RestApiResultAppCompliance + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultAppCompliance. + * Rest api result + * @alias module:model/RestApiResultAppCompliance + * @class + * @param Data {module:model/AppCompliance} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = AppCompliance.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/AppCompliance} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultAssignedBankAccount.js b/src/model/RestApiResultAssignedBankAccount.js new file mode 100644 index 00000000..d4f903fb --- /dev/null +++ b/src/model/RestApiResultAssignedBankAccount.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AssignedBankAccount'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AssignedBankAccount')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultAssignedBankAccount = factory(root.Flipdish.ApiClient, root.Flipdish.AssignedBankAccount); + } +}(this, function(ApiClient, AssignedBankAccount) { + 'use strict'; + + /** + * The RestApiResultAssignedBankAccount model module. + * @module model/RestApiResultAssignedBankAccount + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultAssignedBankAccount. + * Rest api result + * @alias module:model/RestApiResultAssignedBankAccount + * @class + * @param Data {module:model/AssignedBankAccount} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = AssignedBankAccount.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/AssignedBankAccount} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultBankAccountDetail.js b/src/model/RestApiResultBankAccountDetail.js new file mode 100644 index 00000000..c5d5c8b4 --- /dev/null +++ b/src/model/RestApiResultBankAccountDetail.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BankAccountDetail'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./BankAccountDetail')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultBankAccountDetail = factory(root.Flipdish.ApiClient, root.Flipdish.BankAccountDetail); + } +}(this, function(ApiClient, BankAccountDetail) { + 'use strict'; + + /** + * The RestApiResultBankAccountDetail model module. + * @module model/RestApiResultBankAccountDetail + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultBankAccountDetail. + * Rest api result + * @alias module:model/RestApiResultBankAccountDetail + * @class + * @param Data {module:model/BankAccountDetail} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = BankAccountDetail.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/BankAccountDetail} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultBluetoothTerminalStatus.js b/src/model/RestApiResultBluetoothTerminalStatus.js new file mode 100644 index 00000000..6b2c0d2a --- /dev/null +++ b/src/model/RestApiResultBluetoothTerminalStatus.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BluetoothTerminalStatus'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./BluetoothTerminalStatus')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultBluetoothTerminalStatus = factory(root.Flipdish.ApiClient, root.Flipdish.BluetoothTerminalStatus); + } +}(this, function(ApiClient, BluetoothTerminalStatus) { + 'use strict'; + + /** + * The RestApiResultBluetoothTerminalStatus model module. + * @module model/RestApiResultBluetoothTerminalStatus + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultBluetoothTerminalStatus. + * Rest api result + * @alias module:model/RestApiResultBluetoothTerminalStatus + * @class + * @param Data {module:model/BluetoothTerminalStatus} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = BluetoothTerminalStatus.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/BluetoothTerminalStatus} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultBusinessHoursOverride.js b/src/model/RestApiResultBusinessHoursOverride.js new file mode 100644 index 00000000..6bc03bb3 --- /dev/null +++ b/src/model/RestApiResultBusinessHoursOverride.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BusinessHoursOverride'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./BusinessHoursOverride')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultBusinessHoursOverride = factory(root.Flipdish.ApiClient, root.Flipdish.BusinessHoursOverride); + } +}(this, function(ApiClient, BusinessHoursOverride) { + 'use strict'; + + /** + * The RestApiResultBusinessHoursOverride model module. + * @module model/RestApiResultBusinessHoursOverride + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultBusinessHoursOverride. + * Rest api result + * @alias module:model/RestApiResultBusinessHoursOverride + * @class + * @param Data {module:model/BusinessHoursOverride} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = BusinessHoursOverride.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/BusinessHoursOverride} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultBusinessHoursPeriod.js b/src/model/RestApiResultBusinessHoursPeriod.js new file mode 100644 index 00000000..63686ec4 --- /dev/null +++ b/src/model/RestApiResultBusinessHoursPeriod.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BusinessHoursPeriod'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./BusinessHoursPeriod')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultBusinessHoursPeriod = factory(root.Flipdish.ApiClient, root.Flipdish.BusinessHoursPeriod); + } +}(this, function(ApiClient, BusinessHoursPeriod) { + 'use strict'; + + /** + * The RestApiResultBusinessHoursPeriod model module. + * @module model/RestApiResultBusinessHoursPeriod + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultBusinessHoursPeriod. + * Rest api result + * @alias module:model/RestApiResultBusinessHoursPeriod + * @class + * @param Data {module:model/BusinessHoursPeriod} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = BusinessHoursPeriod.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/BusinessHoursPeriod} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultOAuthClient.js b/src/model/RestApiResultCoordinates.js similarity index 57% rename from src/model/RestApiResultOAuthClient.js rename to src/model/RestApiResultCoordinates.js index dd6e8f7e..c709abb7 100644 --- a/src/model/RestApiResultOAuthClient.js +++ b/src/model/RestApiResultCoordinates.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,68 +16,60 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/OAuthClient'], factory); + define(['ApiClient', 'model/Coordinates'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./OAuthClient')); + module.exports = factory(require('../ApiClient'), require('./Coordinates')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.RestApiResultOAuthClient = factory(root.Flipdish.ApiClient, root.Flipdish.OAuthClient); + root.Flipdish.RestApiResultCoordinates = factory(root.Flipdish.ApiClient, root.Flipdish.Coordinates); } -}(this, function(ApiClient, OAuthClient) { +}(this, function(ApiClient, Coordinates) { 'use strict'; - - - /** - * The RestApiResultOAuthClient model module. - * @module model/RestApiResultOAuthClient + * The RestApiResultCoordinates model module. + * @module model/RestApiResultCoordinates * @version 1.0.0 */ /** - * Constructs a new RestApiResultOAuthClient. + * Constructs a new RestApiResultCoordinates. * Rest api result - * @alias module:model/RestApiResultOAuthClient + * @alias module:model/RestApiResultCoordinates * @class + * @param Data {module:model/Coordinates} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** - * Constructs a RestApiResultOAuthClient from a plain JavaScript object, optionally creating a new instance. + * 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/RestApiResultOAuthClient} obj Optional instance to populate. - * @return {module:model/RestApiResultOAuthClient} The populated RestApiResultOAuthClient instance. + * @param {module:model/RestApiResultCoordinates} obj Optional instance to populate. + * @return {module:model/RestApiResultCoordinates} The populated RestApiResultCoordinates instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = OAuthClient.constructFromObject(data['Data']); - } + if (data.hasOwnProperty('Data')) + obj.Data = Coordinates.constructFromObject(data['Data']); } return obj; } /** * Generic data object. - * @member {module:model/OAuthClient} Data + * @member {module:model/Coordinates} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiResultCustomer.js b/src/model/RestApiResultCustomer.js new file mode 100644 index 00000000..45ba8aa6 --- /dev/null +++ b/src/model/RestApiResultCustomer.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Customer'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Customer')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultCustomer = factory(root.Flipdish.ApiClient, root.Flipdish.Customer); + } +}(this, function(ApiClient, Customer) { + 'use strict'; + + /** + * The RestApiResultCustomer model module. + * @module model/RestApiResultCustomer + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultCustomer. + * Rest api result + * @alias module:model/RestApiResultCustomer + * @class + * @param Data {module:model/Customer} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = Customer.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/Customer} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultDeliveryZone.js b/src/model/RestApiResultDeliveryZone.js new file mode 100644 index 00000000..9f7703bd --- /dev/null +++ b/src/model/RestApiResultDeliveryZone.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/DeliveryZone'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./DeliveryZone')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultDeliveryZone = factory(root.Flipdish.ApiClient, root.Flipdish.DeliveryZone); + } +}(this, function(ApiClient, DeliveryZone) { + 'use strict'; + + /** + * The RestApiResultDeliveryZone model module. + * @module model/RestApiResultDeliveryZone + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultDeliveryZone. + * Rest api result + * @alias module:model/RestApiResultDeliveryZone + * @class + * @param Data {module:model/DeliveryZone} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = DeliveryZone.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/DeliveryZone} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultDnsRecordInformation.js b/src/model/RestApiResultDnsRecordInformation.js new file mode 100644 index 00000000..7d1fe141 --- /dev/null +++ b/src/model/RestApiResultDnsRecordInformation.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/DnsRecordInformation'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./DnsRecordInformation')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultDnsRecordInformation = factory(root.Flipdish.ApiClient, root.Flipdish.DnsRecordInformation); + } +}(this, function(ApiClient, DnsRecordInformation) { + 'use strict'; + + /** + * The RestApiResultDnsRecordInformation model module. + * @module model/RestApiResultDnsRecordInformation + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultDnsRecordInformation. + * Rest api result + * @alias module:model/RestApiResultDnsRecordInformation + * @class + * @param Data {module:model/DnsRecordInformation} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = DnsRecordInformation.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/DnsRecordInformation} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultDriver.js b/src/model/RestApiResultDriver.js new file mode 100644 index 00000000..3c8a1819 --- /dev/null +++ b/src/model/RestApiResultDriver.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Driver'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Driver')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultDriver = factory(root.Flipdish.ApiClient, root.Flipdish.Driver); + } +}(this, function(ApiClient, Driver) { + 'use strict'; + + /** + * The RestApiResultDriver model module. + * @module model/RestApiResultDriver + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultDriver. + * Rest api result + * @alias module:model/RestApiResultDriver + * @class + * @param Data {module:model/Driver} Generic data object. + */ + var exports = function(Data) { + this.Data = Data; + }; + + /** + * Constructs a RestApiResultDriver from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultDriver} obj Optional instance to populate. + * @return {module:model/RestApiResultDriver} The populated RestApiResultDriver instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = Driver.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/Driver} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultHomeStatistics.js b/src/model/RestApiResultHomeStatistics.js new file mode 100644 index 00000000..ea6bed6a --- /dev/null +++ b/src/model/RestApiResultHomeStatistics.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/HomeStatistics'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./HomeStatistics')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultHomeStatistics = factory(root.Flipdish.ApiClient, root.Flipdish.HomeStatistics); + } +}(this, function(ApiClient, HomeStatistics) { + 'use strict'; + + /** + * The RestApiResultHomeStatistics model module. + * @module model/RestApiResultHomeStatistics + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultHomeStatistics. + * Rest api result + * @alias module:model/RestApiResultHomeStatistics + * @class + * @param Data {module:model/HomeStatistics} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = HomeStatistics.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/HomeStatistics} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultHydraConfig.js b/src/model/RestApiResultHydraConfig.js new file mode 100644 index 00000000..b48f646d --- /dev/null +++ b/src/model/RestApiResultHydraConfig.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/HydraConfig'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./HydraConfig')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultHydraConfig = factory(root.Flipdish.ApiClient, root.Flipdish.HydraConfig); + } +}(this, function(ApiClient, HydraConfig) { + 'use strict'; + + /** + * The RestApiResultHydraConfig model module. + * @module model/RestApiResultHydraConfig + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultHydraConfig. + * Rest api result + * @alias module:model/RestApiResultHydraConfig + * @class + * @param Data {module:model/HydraConfig} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = HydraConfig.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/HydraConfig} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultHydraStatus.js b/src/model/RestApiResultHydraStatus.js new file mode 100644 index 00000000..7ae40d29 --- /dev/null +++ b/src/model/RestApiResultHydraStatus.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/HydraStatus'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./HydraStatus')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultHydraStatus = factory(root.Flipdish.ApiClient, root.Flipdish.HydraStatus); + } +}(this, function(ApiClient, HydraStatus) { + 'use strict'; + + /** + * The RestApiResultHydraStatus model module. + * @module model/RestApiResultHydraStatus + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultHydraStatus. + * Rest api result + * @alias module:model/RestApiResultHydraStatus + * @class + * @param Data {module:model/HydraStatus} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = HydraStatus.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/HydraStatus} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultIndexPage.js b/src/model/RestApiResultIndexPage.js new file mode 100644 index 00000000..e46a7ac1 --- /dev/null +++ b/src/model/RestApiResultIndexPage.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/IndexPage'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./IndexPage')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultIndexPage = factory(root.Flipdish.ApiClient, root.Flipdish.IndexPage); + } +}(this, function(ApiClient, IndexPage) { + 'use strict'; + + /** + * The RestApiResultIndexPage model module. + * @module model/RestApiResultIndexPage + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultIndexPage. + * Rest api result + * @alias module:model/RestApiResultIndexPage + * @class + * @param Data {module:model/IndexPage} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = IndexPage.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/IndexPage} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultIndexPageBase.js b/src/model/RestApiResultIndexPageBase.js new file mode 100644 index 00000000..e04ce031 --- /dev/null +++ b/src/model/RestApiResultIndexPageBase.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/IndexPageBase'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./IndexPageBase')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultIndexPageBase = factory(root.Flipdish.ApiClient, root.Flipdish.IndexPageBase); + } +}(this, function(ApiClient, IndexPageBase) { + 'use strict'; + + /** + * The RestApiResultIndexPageBase model module. + * @module model/RestApiResultIndexPageBase + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultIndexPageBase. + * Rest api result + * @alias module:model/RestApiResultIndexPageBase + * @class + * @param Data {module:model/IndexPageBase} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = IndexPageBase.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/IndexPageBase} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultJobResponse.js b/src/model/RestApiResultJobResponse.js new file mode 100644 index 00000000..f26dc4d1 --- /dev/null +++ b/src/model/RestApiResultJobResponse.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/JobResponse'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./JobResponse')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultJobResponse = factory(root.Flipdish.ApiClient, root.Flipdish.JobResponse); + } +}(this, function(ApiClient, JobResponse) { + 'use strict'; + + /** + * The RestApiResultJobResponse model module. + * @module model/RestApiResultJobResponse + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultJobResponse. + * Rest api result + * @alias module:model/RestApiResultJobResponse + * @class + * @param Data {module:model/JobResponse} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = JobResponse.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/JobResponse} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultLightspeedSettings.js b/src/model/RestApiResultLightspeedSettings.js new file mode 100644 index 00000000..21b841d4 --- /dev/null +++ b/src/model/RestApiResultLightspeedSettings.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/LightspeedSettings'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./LightspeedSettings')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultLightspeedSettings = factory(root.Flipdish.ApiClient, root.Flipdish.LightspeedSettings); + } +}(this, function(ApiClient, LightspeedSettings) { + 'use strict'; + + /** + * The RestApiResultLightspeedSettings model module. + * @module model/RestApiResultLightspeedSettings + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultLightspeedSettings. + * Rest api result + * @alias module:model/RestApiResultLightspeedSettings + * @class + * @param Data {module:model/LightspeedSettings} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = LightspeedSettings.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/LightspeedSettings} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultLoyaltyCampaign.js b/src/model/RestApiResultLoyaltyCampaign.js new file mode 100644 index 00000000..7b681260 --- /dev/null +++ b/src/model/RestApiResultLoyaltyCampaign.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/LoyaltyCampaign'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./LoyaltyCampaign')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultLoyaltyCampaign = factory(root.Flipdish.ApiClient, root.Flipdish.LoyaltyCampaign); + } +}(this, function(ApiClient, LoyaltyCampaign) { + 'use strict'; + + /** + * The RestApiResultLoyaltyCampaign model module. + * @module model/RestApiResultLoyaltyCampaign + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultLoyaltyCampaign. + * Rest api result + * @alias module:model/RestApiResultLoyaltyCampaign + * @class + * @param Data {module:model/LoyaltyCampaign} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = LoyaltyCampaign.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/LoyaltyCampaign} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultMenu.js b/src/model/RestApiResultMenu.js index 360b0cfb..dad307b8 100644 --- a/src/model/RestApiResultMenu.js +++ b/src/model/RestApiResultMenu.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Menu) { 'use strict'; - - - /** * The RestApiResultMenu model module. * @module model/RestApiResultMenu @@ -44,11 +41,10 @@ * Rest api result * @alias module:model/RestApiResultMenu * @class + * @param Data {module:model/Menu} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = Menu.constructFromObject(data['Data']); - } + if (data.hasOwnProperty('Data')) + obj.Data = Menu.constructFromObject(data['Data']); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {module:model/Menu} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiResultMenuItemOptionSet.js b/src/model/RestApiResultMenuItemOptionSet.js index 956a4d51..1b561fd8 100644 --- a/src/model/RestApiResultMenuItemOptionSet.js +++ b/src/model/RestApiResultMenuItemOptionSet.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, MenuItemOptionSet) { 'use strict'; - - - /** * The RestApiResultMenuItemOptionSet model module. * @module model/RestApiResultMenuItemOptionSet @@ -44,11 +41,10 @@ * Rest api result * @alias module:model/RestApiResultMenuItemOptionSet * @class + * @param Data {module:model/MenuItemOptionSet} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = MenuItemOptionSet.constructFromObject(data['Data']); - } + if (data.hasOwnProperty('Data')) + obj.Data = MenuItemOptionSet.constructFromObject(data['Data']); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {module:model/MenuItemOptionSet} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiResultMenuItemOptionSetItem.js b/src/model/RestApiResultMenuItemOptionSetItem.js index b63a0eae..41f9826c 100644 --- a/src/model/RestApiResultMenuItemOptionSetItem.js +++ b/src/model/RestApiResultMenuItemOptionSetItem.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, MenuItemOptionSetItem) { 'use strict'; - - - /** * The RestApiResultMenuItemOptionSetItem model module. * @module model/RestApiResultMenuItemOptionSetItem @@ -44,11 +41,10 @@ * Rest api result * @alias module:model/RestApiResultMenuItemOptionSetItem * @class + * @param Data {module:model/MenuItemOptionSetItem} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = MenuItemOptionSetItem.constructFromObject(data['Data']); - } + if (data.hasOwnProperty('Data')) + obj.Data = MenuItemOptionSetItem.constructFromObject(data['Data']); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {module:model/MenuItemOptionSetItem} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiResultMenuSection.js b/src/model/RestApiResultMenuSection.js index 62f3a32e..0dc44bc8 100644 --- a/src/model/RestApiResultMenuSection.js +++ b/src/model/RestApiResultMenuSection.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, MenuSection) { 'use strict'; - - - /** * The RestApiResultMenuSection model module. * @module model/RestApiResultMenuSection @@ -44,11 +41,10 @@ * Rest api result * @alias module:model/RestApiResultMenuSection * @class + * @param Data {module:model/MenuSection} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = MenuSection.constructFromObject(data['Data']); - } + if (data.hasOwnProperty('Data')) + obj.Data = MenuSection.constructFromObject(data['Data']); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {module:model/MenuSection} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiResultMenuSectionAvailability.js b/src/model/RestApiResultMenuSectionAvailability.js new file mode 100644 index 00000000..fb8bcb71 --- /dev/null +++ b/src/model/RestApiResultMenuSectionAvailability.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/MenuSectionAvailability'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./MenuSectionAvailability')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultMenuSectionAvailability = factory(root.Flipdish.ApiClient, root.Flipdish.MenuSectionAvailability); + } +}(this, function(ApiClient, MenuSectionAvailability) { + 'use strict'; + + /** + * The RestApiResultMenuSectionAvailability model module. + * @module model/RestApiResultMenuSectionAvailability + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultMenuSectionAvailability. + * Rest api result + * @alias module:model/RestApiResultMenuSectionAvailability + * @class + * @param Data {module:model/MenuSectionAvailability} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = MenuSectionAvailability.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/MenuSectionAvailability} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultMenuSectionItem.js b/src/model/RestApiResultMenuSectionItem.js index da6cf0ba..344d0326 100644 --- a/src/model/RestApiResultMenuSectionItem.js +++ b/src/model/RestApiResultMenuSectionItem.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, MenuSectionItem) { 'use strict'; - - - /** * The RestApiResultMenuSectionItem model module. * @module model/RestApiResultMenuSectionItem @@ -44,11 +41,10 @@ * Rest api result * @alias module:model/RestApiResultMenuSectionItem * @class + * @param Data {module:model/MenuSectionItem} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = MenuSectionItem.constructFromObject(data['Data']); - } + if (data.hasOwnProperty('Data')) + obj.Data = MenuSectionItem.constructFromObject(data['Data']); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {module:model/MenuSectionItem} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiResultMetadata.js b/src/model/RestApiResultMetadata.js index f93e4437..f423fbe4 100644 --- a/src/model/RestApiResultMetadata.js +++ b/src/model/RestApiResultMetadata.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Metadata) { 'use strict'; - - - /** * The RestApiResultMetadata model module. * @module model/RestApiResultMetadata @@ -44,11 +41,10 @@ * Rest api result * @alias module:model/RestApiResultMetadata * @class + * @param Data {module:model/Metadata} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = Metadata.constructFromObject(data['Data']); - } + if (data.hasOwnProperty('Data')) + obj.Data = Metadata.constructFromObject(data['Data']); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {module:model/Metadata} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiResultOAuthApp.js b/src/model/RestApiResultOAuthApp.js new file mode 100644 index 00000000..c0de09be --- /dev/null +++ b/src/model/RestApiResultOAuthApp.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/OAuthApp'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./OAuthApp')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultOAuthApp = factory(root.Flipdish.ApiClient, root.Flipdish.OAuthApp); + } +}(this, function(ApiClient, OAuthApp) { + 'use strict'; + + /** + * The RestApiResultOAuthApp model module. + * @module model/RestApiResultOAuthApp + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultOAuthApp. + * Rest api result + * @alias module:model/RestApiResultOAuthApp + * @class + * @param Data {module:model/OAuthApp} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = OAuthApp.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/OAuthApp} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultOauthClientRedirectUri.js b/src/model/RestApiResultOauthClientRedirectUri.js index 51636da6..acd7c961 100644 --- a/src/model/RestApiResultOauthClientRedirectUri.js +++ b/src/model/RestApiResultOauthClientRedirectUri.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, OauthClientRedirectUri) { 'use strict'; - - - /** * The RestApiResultOauthClientRedirectUri model module. * @module model/RestApiResultOauthClientRedirectUri @@ -44,11 +41,10 @@ * Rest api result * @alias module:model/RestApiResultOauthClientRedirectUri * @class + * @param Data {module:model/OauthClientRedirectUri} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = OauthClientRedirectUri.constructFromObject(data['Data']); - } + if (data.hasOwnProperty('Data')) + obj.Data = OauthClientRedirectUri.constructFromObject(data['Data']); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {module:model/OauthClientRedirectUri} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiResultOrder.js b/src/model/RestApiResultOrder.js index 81f3e1c8..a898ed20 100644 --- a/src/model/RestApiResultOrder.js +++ b/src/model/RestApiResultOrder.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Order) { 'use strict'; - - - /** * The RestApiResultOrder model module. * @module model/RestApiResultOrder @@ -44,11 +41,10 @@ * Rest api result * @alias module:model/RestApiResultOrder * @class + * @param Data {module:model/Order} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = Order.constructFromObject(data['Data']); - } + if (data.hasOwnProperty('Data')) + obj.Data = Order.constructFromObject(data['Data']); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {module:model/Order} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiResultOrderPaymentInformation.js b/src/model/RestApiResultOrderPaymentInformation.js new file mode 100644 index 00000000..a022a399 --- /dev/null +++ b/src/model/RestApiResultOrderPaymentInformation.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/OrderPaymentInformation'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./OrderPaymentInformation')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultOrderPaymentInformation = factory(root.Flipdish.ApiClient, root.Flipdish.OrderPaymentInformation); + } +}(this, function(ApiClient, OrderPaymentInformation) { + 'use strict'; + + /** + * The RestApiResultOrderPaymentInformation model module. + * @module model/RestApiResultOrderPaymentInformation + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultOrderPaymentInformation. + * Rest api result + * @alias module:model/RestApiResultOrderPaymentInformation + * @class + * @param Data {module:model/OrderPaymentInformation} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = OrderPaymentInformation.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/OrderPaymentInformation} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultPaymentTerminalDetails.js b/src/model/RestApiResultPaymentTerminalDetails.js new file mode 100644 index 00000000..f4202f65 --- /dev/null +++ b/src/model/RestApiResultPaymentTerminalDetails.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PaymentTerminalDetails'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PaymentTerminalDetails')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultPaymentTerminalDetails = factory(root.Flipdish.ApiClient, root.Flipdish.PaymentTerminalDetails); + } +}(this, function(ApiClient, PaymentTerminalDetails) { + 'use strict'; + + /** + * The RestApiResultPaymentTerminalDetails model module. + * @module model/RestApiResultPaymentTerminalDetails + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultPaymentTerminalDetails. + * Rest api result + * @alias module:model/RestApiResultPaymentTerminalDetails + * @class + * @param Data {module:model/PaymentTerminalDetails} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = PaymentTerminalDetails.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/PaymentTerminalDetails} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultPaymentTerminalTransactionDetails.js b/src/model/RestApiResultPaymentTerminalTransactionDetails.js new file mode 100644 index 00000000..719118ac --- /dev/null +++ b/src/model/RestApiResultPaymentTerminalTransactionDetails.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PaymentTerminalTransactionDetails'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PaymentTerminalTransactionDetails')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultPaymentTerminalTransactionDetails = factory(root.Flipdish.ApiClient, root.Flipdish.PaymentTerminalTransactionDetails); + } +}(this, function(ApiClient, PaymentTerminalTransactionDetails) { + 'use strict'; + + /** + * The RestApiResultPaymentTerminalTransactionDetails model module. + * @module model/RestApiResultPaymentTerminalTransactionDetails + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultPaymentTerminalTransactionDetails. + * Rest api result + * @alias module:model/RestApiResultPaymentTerminalTransactionDetails + * @class + * @param Data {module:model/PaymentTerminalTransactionDetails} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = PaymentTerminalTransactionDetails.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/PaymentTerminalTransactionDetails} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultPreOrderConfig.js b/src/model/RestApiResultPreOrderConfig.js new file mode 100644 index 00000000..83124c70 --- /dev/null +++ b/src/model/RestApiResultPreOrderConfig.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PreOrderConfig'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PreOrderConfig')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultPreOrderConfig = factory(root.Flipdish.ApiClient, root.Flipdish.PreOrderConfig); + } +}(this, function(ApiClient, PreOrderConfig) { + 'use strict'; + + /** + * The RestApiResultPreOrderConfig model module. + * @module model/RestApiResultPreOrderConfig + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultPreOrderConfig. + * Rest api result + * @alias module:model/RestApiResultPreOrderConfig + * @class + * @param Data {module:model/PreOrderConfig} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = PreOrderConfig.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/PreOrderConfig} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultProcessingFeeConfig.js b/src/model/RestApiResultProcessingFeeConfig.js new file mode 100644 index 00000000..9db35f87 --- /dev/null +++ b/src/model/RestApiResultProcessingFeeConfig.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/ProcessingFeeConfig'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./ProcessingFeeConfig')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultProcessingFeeConfig = factory(root.Flipdish.ApiClient, root.Flipdish.ProcessingFeeConfig); + } +}(this, function(ApiClient, ProcessingFeeConfig) { + 'use strict'; + + /** + * The RestApiResultProcessingFeeConfig model module. + * @module model/RestApiResultProcessingFeeConfig + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultProcessingFeeConfig. + * Rest api result + * @alias module:model/RestApiResultProcessingFeeConfig + * @class + * @param Data {module:model/ProcessingFeeConfig} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = ProcessingFeeConfig.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/ProcessingFeeConfig} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultPushNotificationResponse.js b/src/model/RestApiResultPushNotificationResponse.js new file mode 100644 index 00000000..d6ebd5b6 --- /dev/null +++ b/src/model/RestApiResultPushNotificationResponse.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PushNotificationResponse'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PushNotificationResponse')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultPushNotificationResponse = factory(root.Flipdish.ApiClient, root.Flipdish.PushNotificationResponse); + } +}(this, function(ApiClient, PushNotificationResponse) { + 'use strict'; + + /** + * The RestApiResultPushNotificationResponse model module. + * @module model/RestApiResultPushNotificationResponse + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultPushNotificationResponse. + * Rest api result + * @alias module:model/RestApiResultPushNotificationResponse + * @class + * @param Data {module:model/PushNotificationResponse} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = PushNotificationResponse.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/PushNotificationResponse} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultRedeemInvitationResult.js b/src/model/RestApiResultRedeemInvitationResult.js new file mode 100644 index 00000000..6e6416a9 --- /dev/null +++ b/src/model/RestApiResultRedeemInvitationResult.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RedeemInvitationResult'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./RedeemInvitationResult')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultRedeemInvitationResult = factory(root.Flipdish.ApiClient, root.Flipdish.RedeemInvitationResult); + } +}(this, function(ApiClient, RedeemInvitationResult) { + 'use strict'; + + /** + * The RestApiResultRedeemInvitationResult model module. + * @module model/RestApiResultRedeemInvitationResult + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultRedeemInvitationResult. + * Rest api result + * @alias module:model/RestApiResultRedeemInvitationResult + * @class + * @param Data {module:model/RedeemInvitationResult} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = RedeemInvitationResult.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/RedeemInvitationResult} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultRetentionCampaign.js b/src/model/RestApiResultRetentionCampaign.js new file mode 100644 index 00000000..2baf8ba8 --- /dev/null +++ b/src/model/RestApiResultRetentionCampaign.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RetentionCampaign'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./RetentionCampaign')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultRetentionCampaign = factory(root.Flipdish.ApiClient, root.Flipdish.RetentionCampaign); + } +}(this, function(ApiClient, RetentionCampaign) { + 'use strict'; + + /** + * The RestApiResultRetentionCampaign model module. + * @module model/RestApiResultRetentionCampaign + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultRetentionCampaign. + * Rest api result + * @alias module:model/RestApiResultRetentionCampaign + * @class + * @param Data {module:model/RetentionCampaign} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = RetentionCampaign.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/RetentionCampaign} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultStore.js b/src/model/RestApiResultStore.js index ab6b8e4e..94f7f69a 100644 --- a/src/model/RestApiResultStore.js +++ b/src/model/RestApiResultStore.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Store) { 'use strict'; - - - /** * The RestApiResultStore model module. * @module model/RestApiResultStore @@ -44,11 +41,10 @@ * Rest api result * @alias module:model/RestApiResultStore * @class + * @param Data {module:model/Store} Generic data object. */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = Store.constructFromObject(data['Data']); - } + if (data.hasOwnProperty('Data')) + obj.Data = Store.constructFromObject(data['Data']); } return obj; } @@ -73,11 +67,9 @@ * Generic data object. * @member {module:model/Store} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiResultStoreAddress.js b/src/model/RestApiResultStoreAddress.js new file mode 100644 index 00000000..88115262 --- /dev/null +++ b/src/model/RestApiResultStoreAddress.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreAddress'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreAddress')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultStoreAddress = factory(root.Flipdish.ApiClient, root.Flipdish.StoreAddress); + } +}(this, function(ApiClient, StoreAddress) { + 'use strict'; + + /** + * The RestApiResultStoreAddress model module. + * @module model/RestApiResultStoreAddress + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultStoreAddress. + * Rest api result + * @alias module:model/RestApiResultStoreAddress + * @class + * @param Data {module:model/StoreAddress} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = StoreAddress.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/StoreAddress} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultStoreEndOfDayReport.js b/src/model/RestApiResultStoreEndOfDayReport.js new file mode 100644 index 00000000..a60f20ab --- /dev/null +++ b/src/model/RestApiResultStoreEndOfDayReport.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreEndOfDayReport'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreEndOfDayReport')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultStoreEndOfDayReport = factory(root.Flipdish.ApiClient, root.Flipdish.StoreEndOfDayReport); + } +}(this, function(ApiClient, StoreEndOfDayReport) { + 'use strict'; + + /** + * The RestApiResultStoreEndOfDayReport model module. + * @module model/RestApiResultStoreEndOfDayReport + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultStoreEndOfDayReport. + * Rest api result + * @alias module:model/RestApiResultStoreEndOfDayReport + * @class + * @param Data {module:model/StoreEndOfDayReport} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = StoreEndOfDayReport.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/StoreEndOfDayReport} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultStoreGroup.js b/src/model/RestApiResultStoreGroup.js new file mode 100644 index 00000000..7cf330c6 --- /dev/null +++ b/src/model/RestApiResultStoreGroup.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreGroup'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreGroup')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultStoreGroup = factory(root.Flipdish.ApiClient, root.Flipdish.StoreGroup); + } +}(this, function(ApiClient, StoreGroup) { + 'use strict'; + + /** + * The RestApiResultStoreGroup model module. + * @module model/RestApiResultStoreGroup + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultStoreGroup. + * Rest api result + * @alias module:model/RestApiResultStoreGroup + * @class + * @param Data {module:model/StoreGroup} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = StoreGroup.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/StoreGroup} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultStoreGroupBase.js b/src/model/RestApiResultStoreGroupBase.js new file mode 100644 index 00000000..645019f5 --- /dev/null +++ b/src/model/RestApiResultStoreGroupBase.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreGroupBase'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreGroupBase')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultStoreGroupBase = factory(root.Flipdish.ApiClient, root.Flipdish.StoreGroupBase); + } +}(this, function(ApiClient, StoreGroupBase) { + 'use strict'; + + /** + * The RestApiResultStoreGroupBase model module. + * @module model/RestApiResultStoreGroupBase + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultStoreGroupBase. + * Rest api result + * @alias module:model/RestApiResultStoreGroupBase + * @class + * @param Data {module:model/StoreGroupBase} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = StoreGroupBase.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/StoreGroupBase} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultStoreOrderCapacityConfig.js b/src/model/RestApiResultStoreOrderCapacityConfig.js new file mode 100644 index 00000000..a77698fe --- /dev/null +++ b/src/model/RestApiResultStoreOrderCapacityConfig.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreOrderCapacityConfig'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreOrderCapacityConfig')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultStoreOrderCapacityConfig = factory(root.Flipdish.ApiClient, root.Flipdish.StoreOrderCapacityConfig); + } +}(this, function(ApiClient, StoreOrderCapacityConfig) { + 'use strict'; + + /** + * The RestApiResultStoreOrderCapacityConfig model module. + * @module model/RestApiResultStoreOrderCapacityConfig + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultStoreOrderCapacityConfig. + * Rest api result + * @alias module:model/RestApiResultStoreOrderCapacityConfig + * @class + * @param Data {module:model/StoreOrderCapacityConfig} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = StoreOrderCapacityConfig.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/StoreOrderCapacityConfig} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultStripeConnectedAccount.js b/src/model/RestApiResultStripeConnectedAccount.js new file mode 100644 index 00000000..8c689be9 --- /dev/null +++ b/src/model/RestApiResultStripeConnectedAccount.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StripeConnectedAccount'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StripeConnectedAccount')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultStripeConnectedAccount = factory(root.Flipdish.ApiClient, root.Flipdish.StripeConnectedAccount); + } +}(this, function(ApiClient, StripeConnectedAccount) { + 'use strict'; + + /** + * The RestApiResultStripeConnectedAccount model module. + * @module model/RestApiResultStripeConnectedAccount + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultStripeConnectedAccount. + * Rest api result + * @alias module:model/RestApiResultStripeConnectedAccount + * @class + * @param Data {module:model/StripeConnectedAccount} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = StripeConnectedAccount.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/StripeConnectedAccount} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultStripeTerminalPrivateKey.js b/src/model/RestApiResultStripeTerminalPrivateKey.js new file mode 100644 index 00000000..a3f36087 --- /dev/null +++ b/src/model/RestApiResultStripeTerminalPrivateKey.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StripeTerminalPrivateKey'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StripeTerminalPrivateKey')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultStripeTerminalPrivateKey = factory(root.Flipdish.ApiClient, root.Flipdish.StripeTerminalPrivateKey); + } +}(this, function(ApiClient, StripeTerminalPrivateKey) { + 'use strict'; + + /** + * The RestApiResultStripeTerminalPrivateKey model module. + * @module model/RestApiResultStripeTerminalPrivateKey + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultStripeTerminalPrivateKey. + * Rest api result + * @alias module:model/RestApiResultStripeTerminalPrivateKey + * @class + * @param Data {module:model/StripeTerminalPrivateKey} Generic data object. + */ + var exports = function(Data) { + this.Data = Data; + }; + + /** + * Constructs a RestApiResultStripeTerminalPrivateKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultStripeTerminalPrivateKey} obj Optional instance to populate. + * @return {module:model/RestApiResultStripeTerminalPrivateKey} The populated RestApiResultStripeTerminalPrivateKey instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = StripeTerminalPrivateKey.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/StripeTerminalPrivateKey} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultStuartSettings.js b/src/model/RestApiResultStuartSettings.js new file mode 100644 index 00000000..b802afac --- /dev/null +++ b/src/model/RestApiResultStuartSettings.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StuartSettings'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StuartSettings')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultStuartSettings = factory(root.Flipdish.ApiClient, root.Flipdish.StuartSettings); + } +}(this, function(ApiClient, StuartSettings) { + 'use strict'; + + /** + * The RestApiResultStuartSettings model module. + * @module model/RestApiResultStuartSettings + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultStuartSettings. + * Rest api result + * @alias module:model/RestApiResultStuartSettings + * @class + * @param Data {module:model/StuartSettings} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = StuartSettings.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/StuartSettings} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultTeammate.js b/src/model/RestApiResultTeammate.js new file mode 100644 index 00000000..c6c8c565 --- /dev/null +++ b/src/model/RestApiResultTeammate.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Teammate'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Teammate')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultTeammate = factory(root.Flipdish.ApiClient, root.Flipdish.Teammate); + } +}(this, function(ApiClient, Teammate) { + 'use strict'; + + /** + * The RestApiResultTeammate model module. + * @module model/RestApiResultTeammate + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultTeammate. + * Rest api result + * @alias module:model/RestApiResultTeammate + * @class + * @param Data {module:model/Teammate} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = Teammate.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/Teammate} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultVoucherWithStats.js b/src/model/RestApiResultVoucherWithStats.js new file mode 100644 index 00000000..11500031 --- /dev/null +++ b/src/model/RestApiResultVoucherWithStats.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/VoucherWithStats'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./VoucherWithStats')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultVoucherWithStats = factory(root.Flipdish.ApiClient, root.Flipdish.VoucherWithStats); + } +}(this, function(ApiClient, VoucherWithStats) { + 'use strict'; + + /** + * The RestApiResultVoucherWithStats model module. + * @module model/RestApiResultVoucherWithStats + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultVoucherWithStats. + * Rest api result + * @alias module:model/RestApiResultVoucherWithStats + * @class + * @param Data {module:model/VoucherWithStats} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = VoucherWithStats.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/VoucherWithStats} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultWebsiteImage.js b/src/model/RestApiResultWebsiteImage.js new file mode 100644 index 00000000..f415a048 --- /dev/null +++ b/src/model/RestApiResultWebsiteImage.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/WebsiteImage'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./WebsiteImage')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultWebsiteImage = factory(root.Flipdish.ApiClient, root.Flipdish.WebsiteImage); + } +}(this, function(ApiClient, WebsiteImage) { + 'use strict'; + + /** + * The RestApiResultWebsiteImage model module. + * @module model/RestApiResultWebsiteImage + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultWebsiteImage. + * Rest api result + * @alias module:model/RestApiResultWebsiteImage + * @class + * @param Data {module:model/WebsiteImage} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = WebsiteImage.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/WebsiteImage} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiResultWebsiteTestimonial.js b/src/model/RestApiResultWebsiteTestimonial.js new file mode 100644 index 00000000..6f28b644 --- /dev/null +++ b/src/model/RestApiResultWebsiteTestimonial.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/WebsiteTestimonial'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./WebsiteTestimonial')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RestApiResultWebsiteTestimonial = factory(root.Flipdish.ApiClient, root.Flipdish.WebsiteTestimonial); + } +}(this, function(ApiClient, WebsiteTestimonial) { + 'use strict'; + + /** + * The RestApiResultWebsiteTestimonial model module. + * @module model/RestApiResultWebsiteTestimonial + * @version 1.0.0 + */ + + /** + * Constructs a new RestApiResultWebsiteTestimonial. + * Rest api result + * @alias module:model/RestApiResultWebsiteTestimonial + * @class + * @param Data {module:model/WebsiteTestimonial} Generic data object. + */ + var exports = function(Data) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Data')) + obj.Data = WebsiteTestimonial.constructFromObject(data['Data']); + } + return obj; + } + + /** + * Generic data object. + * @member {module:model/WebsiteTestimonial} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/RestApiStringArrayResult.js b/src/model/RestApiStringArrayResult.js index 726d92c1..1f7200c7 100644 --- a/src/model/RestApiStringArrayResult.js +++ b/src/model/RestApiStringArrayResult.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The RestApiStringArrayResult model module. * @module model/RestApiStringArrayResult @@ -44,11 +41,10 @@ * Rest api string array result * @alias module:model/RestApiStringArrayResult * @class + * @param Data {Array.} Data string array */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = ApiClient.convertToType(data['Data'], ['String']); - } + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], ['String']); } return obj; } @@ -73,11 +67,9 @@ * Data string array * @member {Array.} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiStringResult.js b/src/model/RestApiStringResult.js index 3e2909a4..90e1ba05 100644 --- a/src/model/RestApiStringResult.js +++ b/src/model/RestApiStringResult.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The RestApiStringResult model module. * @module model/RestApiStringResult @@ -44,11 +41,10 @@ * Rest api string result * @alias module:model/RestApiStringResult * @class + * @param Data {String} Data string */ - var exports = function() { - var _this = this; - - + var exports = function(Data) { + this.Data = Data; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Data')) { - obj['Data'] = ApiClient.convertToType(data['Data'], 'String'); - } + if (data.hasOwnProperty('Data')) + obj.Data = ApiClient.convertToType(data['Data'], 'String'); } return obj; } @@ -73,11 +67,9 @@ * Data string * @member {String} Data */ - exports.prototype['Data'] = undefined; - + exports.prototype.Data = undefined; return exports; -})); - +})); diff --git a/src/model/RestApiUnauthorizedResult.js b/src/model/RestApiUnauthorizedResult.js index 86309aed..0c7bad55 100644 --- a/src/model/RestApiUnauthorizedResult.js +++ b/src/model/RestApiUnauthorizedResult.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The RestApiUnauthorizedResult model module. * @module model/RestApiUnauthorizedResult @@ -44,11 +41,10 @@ * Rest api unauthorized result * @alias module:model/RestApiUnauthorizedResult * @class + * @param Message {String} Message */ - var exports = function() { - var _this = this; - - + var exports = function(Message) { + this.Message = Message; }; /** @@ -61,10 +57,8 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('Message')) { - obj['Message'] = ApiClient.convertToType(data['Message'], 'String'); - } + if (data.hasOwnProperty('Message')) + obj.Message = ApiClient.convertToType(data['Message'], 'String'); } return obj; } @@ -73,11 +67,9 @@ * Message * @member {String} Message */ - exports.prototype['Message'] = undefined; - + exports.prototype.Message = undefined; return exports; -})); - +})); diff --git a/src/model/RetentionCampaign.js b/src/model/RetentionCampaign.js new file mode 100644 index 00000000..458619bf --- /dev/null +++ b/src/model/RetentionCampaign.js @@ -0,0 +1,161 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/CampaignStatistics', 'model/StoreCampaignStartTime'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./CampaignStatistics'), require('./StoreCampaignStartTime')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RetentionCampaign = factory(root.Flipdish.ApiClient, root.Flipdish.CampaignStatistics, root.Flipdish.StoreCampaignStartTime); + } +}(this, function(ApiClient, CampaignStatistics, StoreCampaignStartTime) { + 'use strict'; + + /** + * The RetentionCampaign model module. + * @module model/RetentionCampaign + * @version 1.0.0 + */ + + /** + * Constructs a new RetentionCampaign. + * Retention campaign + * @alias module:model/RetentionCampaign + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('NotifyCustomerAfterMinutes')) + obj.NotifyCustomerAfterMinutes = ApiClient.convertToType(data['NotifyCustomerAfterMinutes'], 'Number'); + if (data.hasOwnProperty('PercentDiscountAmount')) + obj.PercentDiscountAmount = ApiClient.convertToType(data['PercentDiscountAmount'], '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']); + } + return obj; + } + + /** + * Id of campaign + * @member {Number} CampaignId + */ + exports.prototype.CampaignId = undefined; + + /** + * Statistics of campaign + * @member {module:model/CampaignStatistics} Statistics + */ + exports.prototype.Statistics = undefined; + + /** + * Stores this campaign applies to with campaign start time in Utc + * @member {Array.} Stores + */ + exports.prototype.Stores = undefined; + + /** + * Time in minutes, after which customer will receive retention voucher if he/she does not order + * @member {Number} NotifyCustomerAfterMinutes + */ + exports.prototype.NotifyCustomerAfterMinutes = undefined; + + /** + * Discount amount in percents + * @member {Number} PercentDiscountAmount + */ + exports.prototype.PercentDiscountAmount = undefined; + + /** + * Discount amount in sum of money + * @member {Number} LumpDiscountAmount + */ + exports.prototype.LumpDiscountAmount = undefined; + + /** + * Number of days for which the voucher will be valid. + * @member {Number} VoucherValidPeriodDays + */ + exports.prototype.VoucherValidPeriodDays = undefined; + + /** + * Discount will include delivery fee + * @member {Boolean} IncludeDeliveryFee + */ + exports.prototype.IncludeDeliveryFee = undefined; + + /** + * Automatically apply resulting vouchers + * @member {Boolean} AutoApplyResultingVouchers + */ + exports.prototype.AutoApplyResultingVouchers = undefined; + + /** + * Campaign will apply to existing orders + * @member {Boolean} IncludeExistingOrders + */ + exports.prototype.IncludeExistingOrders = undefined; + + /** + * Is campaign enabled + * @member {Boolean} IsEnabled + */ + exports.prototype.IsEnabled = undefined; + + /** + * Ids of stores this campaign applies to + * @member {Array.} StoreIds + */ + exports.prototype.StoreIds = undefined; + + + return exports; + +})); diff --git a/src/model/RetentionCampaignBase.js b/src/model/RetentionCampaignBase.js new file mode 100644 index 00000000..0eeb5bca --- /dev/null +++ b/src/model/RetentionCampaignBase.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RetentionCampaignBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The RetentionCampaignBase model module. + * @module model/RetentionCampaignBase + * @version 1.0.0 + */ + + /** + * Constructs a new RetentionCampaignBase. + * Retention campaign base + * @alias module:model/RetentionCampaignBase + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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']); + } + return obj; + } + + /** + * Time in minutes, after which customer will receive retention voucher if he/she does not order + * @member {Number} NotifyCustomerAfterMinutes + */ + exports.prototype.NotifyCustomerAfterMinutes = undefined; + + /** + * Discount amount in percents + * @member {Number} PercentDiscountAmount + */ + exports.prototype.PercentDiscountAmount = undefined; + + /** + * Discount amount in sum of money + * @member {Number} LumpDiscountAmount + */ + exports.prototype.LumpDiscountAmount = undefined; + + /** + * Number of days for which the voucher will be valid. + * @member {Number} VoucherValidPeriodDays + */ + exports.prototype.VoucherValidPeriodDays = undefined; + + /** + * Discount will include delivery fee + * @member {Boolean} IncludeDeliveryFee + */ + exports.prototype.IncludeDeliveryFee = undefined; + + /** + * Automatically apply resulting vouchers + * @member {Boolean} AutoApplyResultingVouchers + */ + exports.prototype.AutoApplyResultingVouchers = undefined; + + /** + * Campaign will apply to existing orders + * @member {Boolean} IncludeExistingOrders + */ + exports.prototype.IncludeExistingOrders = undefined; + + /** + * Is campaign enabled + * @member {Boolean} IsEnabled + */ + exports.prototype.IsEnabled = undefined; + + /** + * Ids of stores this campaign applies to + * @member {Array.} StoreIds + */ + exports.prototype.StoreIds = undefined; + + + return exports; + +})); diff --git a/src/model/RetentionCampaignCreatedEvent.js b/src/model/RetentionCampaignCreatedEvent.js new file mode 100644 index 00000000..de2ee6e4 --- /dev/null +++ b/src/model/RetentionCampaignCreatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RetentionCampaign', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./RetentionCampaign'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RetentionCampaignCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.RetentionCampaign, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, RetentionCampaign, UserEventInfo) { + 'use strict'; + + /** + * The RetentionCampaignCreatedEvent model module. + * @module model/RetentionCampaignCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new RetentionCampaignCreatedEvent. + * Retention campaign created event + * @alias module:model/RetentionCampaignCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Info User + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The retention campaign + * @member {module:model/RetentionCampaign} RetentionCampaign + */ + exports.prototype.RetentionCampaign = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/RetentionCampaignDeletedEvent.js b/src/model/RetentionCampaignDeletedEvent.js new file mode 100644 index 00000000..a831d577 --- /dev/null +++ b/src/model/RetentionCampaignDeletedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RetentionCampaign', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./RetentionCampaign'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RetentionCampaignDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.RetentionCampaign, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, RetentionCampaign, UserEventInfo) { + 'use strict'; + + /** + * The RetentionCampaignDeletedEvent model module. + * @module model/RetentionCampaignDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new RetentionCampaignDeletedEvent. + * Retention campaign deleted event + * @alias module:model/RetentionCampaignDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Info User + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The retention campaign + * @member {module:model/RetentionCampaign} RetentionCampaign + */ + exports.prototype.RetentionCampaign = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/RetentionCampaignUpdatedEvent.js b/src/model/RetentionCampaignUpdatedEvent.js new file mode 100644 index 00000000..473b8d88 --- /dev/null +++ b/src/model/RetentionCampaignUpdatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/RetentionCampaign', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./RetentionCampaign'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RetentionCampaignUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.RetentionCampaign, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, RetentionCampaign, UserEventInfo) { + 'use strict'; + + /** + * The RetentionCampaignUpdatedEvent model module. + * @module model/RetentionCampaignUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new RetentionCampaignUpdatedEvent. + * Retention campaign updated event + * @alias module:model/RetentionCampaignUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Info User + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The retention campaign + * @member {module:model/RetentionCampaign} RetentionCampaign + */ + exports.prototype.RetentionCampaign = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/RevenueAdjustmentsDetails.js b/src/model/RevenueAdjustmentsDetails.js new file mode 100644 index 00000000..95b8ded3 --- /dev/null +++ b/src/model/RevenueAdjustmentsDetails.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RevenueAdjustmentsDetails = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The RevenueAdjustmentsDetails model module. + * @module model/RevenueAdjustmentsDetails + * @version 1.0.0 + */ + + /** + * Constructs a new RevenueAdjustmentsDetails. + * Revenue Adjustments breakdown + * @alias module:model/RevenueAdjustmentsDetails + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('OnlineSalesRefundedAmount')) + obj.OnlineSalesRefundedAmount = ApiClient.convertToType(data['OnlineSalesRefundedAmount'], '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('TotalOnlineRevenueAdjustments')) + obj.TotalOnlineRevenueAdjustments = ApiClient.convertToType(data['TotalOnlineRevenueAdjustments'], 'Number'); + } + return obj; + } + + /** + * Online sales refunds + * @member {Number} OnlineSalesRefundedAmount + */ + exports.prototype.OnlineSalesRefundedAmount = undefined; + + /** + * Cash sales refunds + * @member {Number} CashSalesRefundedAmount + */ + exports.prototype.CashSalesRefundedAmount = undefined; + + /** + * Customer cash fees + * @member {Number} CustomerCashFees + */ + exports.prototype.CustomerCashFees = undefined; + + /** + * Number of refunds + * @member {Number} RefundsCount + */ + exports.prototype.RefundsCount = undefined; + + /** + * Total revenue adjustments + * @member {Number} TotalOnlineRevenueAdjustments + */ + exports.prototype.TotalOnlineRevenueAdjustments = undefined; + + + return exports; + +})); diff --git a/src/model/RevenueDetail.js b/src/model/RevenueDetail.js new file mode 100644 index 00000000..e5bf5858 --- /dev/null +++ b/src/model/RevenueDetail.js @@ -0,0 +1,161 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.RevenueDetail = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The RevenueDetail model module. + * @module model/RevenueDetail + * @version 1.0.0 + */ + + /** + * Constructs a new RevenueDetail. + * Sales information + * @alias module:model/RevenueDetail + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Online sales amount + * @member {Number} OnlineSalesAmount + */ + exports.prototype.OnlineSalesAmount = undefined; + + /** + * Online sales tax + * @member {Number} OnlineSalesTax + */ + exports.prototype.OnlineSalesTax = undefined; + + /** + * Online sales amount plus online sales tax + * @member {Number} OnlineSalesIncludingTax + */ + exports.prototype.OnlineSalesIncludingTax = undefined; + + /** + * Online sales base amount to calculate fees + * @member {Number} OnlineSalesFeesBaseAmount + */ + exports.prototype.OnlineSalesFeesBaseAmount = undefined; + + /** + * Cash sales amount + * @member {Number} CashSalesAmount + */ + exports.prototype.CashSalesAmount = undefined; + + /** + * Cash sales tax + * @member {Number} CashSalesTax + */ + exports.prototype.CashSalesTax = undefined; + + /** + * Cash sales amount plus online sales tax + * @member {Number} CashSalesIncludingTax + */ + exports.prototype.CashSalesIncludingTax = undefined; + + /** + * Online sales base amount to calculate fees + * @member {Number} CashSalesFeesBaseAmount + */ + exports.prototype.CashSalesFeesBaseAmount = undefined; + + /** + * Total Sales (online and cash) including tax + * @member {Number} TotalSalesIncludingTax + */ + exports.prototype.TotalSalesIncludingTax = undefined; + + /** + * Delivery charges on online sales + * @member {Number} OnlineSalesDeliveryCharges + */ + exports.prototype.OnlineSalesDeliveryCharges = undefined; + + /** + * Tips for online sales + * @member {Number} OnlineSalesTips + */ + exports.prototype.OnlineSalesTips = undefined; + + /** + * Online sales plus online delivery charges and tips + * @member {Number} TotalOnlineRevenue + */ + exports.prototype.TotalOnlineRevenue = undefined; + + + return exports; + +})); diff --git a/src/model/SearchCriteria.js b/src/model/SearchCriteria.js index 5e800906..949e6bc8 100644 --- a/src/model/SearchCriteria.js +++ b/src/model/SearchCriteria.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The SearchCriteria model module. * @module model/SearchCriteria @@ -41,18 +38,11 @@ /** * Constructs a new SearchCriteria. - * Search Criteria + * Search Criteria for Audit Logs * @alias module:model/SearchCriteria * @class */ var exports = function() { - var _this = this; - - - - - - }; /** @@ -65,22 +55,32 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('Name')) { - obj['Name'] = ApiClient.convertToType(data['Name'], ['String']); - } + 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('StoreGroupId')) + obj.StoreGroupId = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + if (data.hasOwnProperty('UserId')) + obj.UserId = ApiClient.convertToType(data['UserId'], '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; } @@ -89,31 +89,81 @@ * The maximum elements to return * @member {Number} Limit */ - exports.prototype['Limit'] = undefined; + exports.prototype.Limit = undefined; + /** * The index of the page to return, starting by 1 * @member {Number} Page */ - exports.prototype['Page'] = undefined; + exports.prototype.Page = undefined; + /** * Start date * @member {Date} Start */ - exports.prototype['Start'] = undefined; + exports.prototype.Start = undefined; + /** * End date * @member {Date} End */ - exports.prototype['End'] = undefined; + exports.prototype.End = undefined; + /** - * Event names to filter in - * @member {Array.} Name + * Events that have Order Id + * @member {Number} OrderId */ - exports.prototype['Name'] = undefined; + exports.prototype.OrderId = undefined; + /** + * Events that have Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + /** + * Events that have Store Group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; - return exports; -})); + /** + * Events that have User Id + * @member {Number} UserId + */ + exports.prototype.UserId = undefined; + + /** + * Events that have User Email + * @member {String} UserEmail + */ + exports.prototype.UserEmail = undefined; + + /** + * Events that have User Name + * @member {String} UserName + */ + exports.prototype.UserName = undefined; + + /** + * Events that have voucher code + * @member {String} VoucherCode + */ + exports.prototype.VoucherCode = undefined; + + /** + * Events that have event type\\s + * @member {Array.} EventType + */ + exports.prototype.EventType = undefined; + + /** + * Unique Identifier of Event, if this is specified, all other criteria are ignored. + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + return exports; + +})); diff --git a/src/model/SetPasswordWithPinModel.js b/src/model/SetPasswordWithPinModel.js new file mode 100644 index 00000000..73798736 --- /dev/null +++ b/src/model/SetPasswordWithPinModel.js @@ -0,0 +1,85 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.SetPasswordWithPinModel = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The SetPasswordWithPinModel model module. + * @module model/SetPasswordWithPinModel + * @version 1.0.0 + */ + + /** + * Constructs a new SetPasswordWithPinModel. + * Set password with PIN model + * @alias module:model/SetPasswordWithPinModel + * @class + * @param Pin {Number} PIN code (received via email) + * @param NewPassword {String} New Password + */ + var exports = function(Pin, NewPassword) { + this.Pin = Pin; + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Pin')) + obj.Pin = ApiClient.convertToType(data['Pin'], 'Number'); + if (data.hasOwnProperty('NewPassword')) + obj.NewPassword = ApiClient.convertToType(data['NewPassword'], 'String'); + } + return obj; + } + + /** + * PIN code (received via email) + * @member {Number} Pin + */ + exports.prototype.Pin = undefined; + + /** + * New Password + * @member {String} NewPassword + */ + exports.prototype.NewPassword = undefined; + + + return exports; + +})); diff --git a/src/model/SignupStep.js b/src/model/SignupStep.js new file mode 100644 index 00000000..caefc288 --- /dev/null +++ b/src/model/SignupStep.js @@ -0,0 +1,115 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PredefinedAnswer'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PredefinedAnswer')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.SignupStep = factory(root.Flipdish.ApiClient, root.Flipdish.PredefinedAnswer); + } +}(this, function(ApiClient, PredefinedAnswer) { + 'use strict'; + + /** + * The SignupStep model module. + * @module model/SignupStep + * @version 1.0.0 + */ + + /** + * Constructs a new SignupStep. + * + * @alias module:model/SignupStep + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Action = undefined; + + /** + * Question in case Action == Question + * @member {String} Question + */ + exports.prototype.Question = undefined; + + /** + * Predefined answer in case Action == Question + * @member {Array.} PredefinedAnswers + */ + exports.prototype.PredefinedAnswers = undefined; + + + + /** + * Allowed values for the Action property. + * @enum {String} + * @readonly + */ + exports.ActionEnum = { + /** + * value: "Question" + * @const + */ + Question: "Question", + + /** + * value: "StoreLocation" + * @const + */ + StoreLocation: "StoreLocation", + + /** + * value: "PaymentSubscription" + * @const + */ + PaymentSubscription: "PaymentSubscription" + }; + + return exports; + +})); diff --git a/src/model/SmsInfo.js b/src/model/SmsInfo.js new file mode 100644 index 00000000..0012ee3b --- /dev/null +++ b/src/model/SmsInfo.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.SmsInfo = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The SmsInfo model module. + * @module model/SmsInfo + * @version 1.0.0 + */ + + /** + * Constructs a new SmsInfo. + * Sms Info + * @alias module:model/SmsInfo + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.From = undefined; + + /** + * Destination phone number + * @member {String} To + */ + exports.prototype.To = undefined; + + /** + * Text message + * @member {String} Text + */ + exports.prototype.Text = undefined; + + + return exports; + +})); diff --git a/src/model/SmsReceivedEvent.js b/src/model/SmsReceivedEvent.js new file mode 100644 index 00000000..e9e944d4 --- /dev/null +++ b/src/model/SmsReceivedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/SmsInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./SmsInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.SmsReceivedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.SmsInfo); + } +}(this, function(ApiClient, SmsInfo) { + 'use strict'; + + /** + * The SmsReceivedEvent model module. + * @module model/SmsReceivedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new SmsReceivedEvent. + * Sms received event + * @alias module:model/SmsReceivedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * The sms info + * @member {module:model/SmsInfo} SmsInfo + */ + exports.prototype.SmsInfo = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StatisticsCurrencyDataPoint.js b/src/model/StatisticsCurrencyDataPoint.js new file mode 100644 index 00000000..0fd600da --- /dev/null +++ b/src/model/StatisticsCurrencyDataPoint.js @@ -0,0 +1,783 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StatisticsCurrencyDataPoint = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StatisticsCurrencyDataPoint model module. + * @module model/StatisticsCurrencyDataPoint + * @version 1.0.0 + */ + + /** + * Constructs a new StatisticsCurrencyDataPoint. + * A single currency data point, with no date + * @alias module:model/StatisticsCurrencyDataPoint + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Currency = undefined; + + /** + * Amount of users for this currency + * @member {Number} UserCount + */ + exports.prototype.UserCount = undefined; + + /** + * Amount of orders for this currency + * @member {Number} OrderCount + */ + exports.prototype.OrderCount = undefined; + + /** + * Value of orders for this currency + * @member {Number} OrderValue + */ + exports.prototype.OrderValue = undefined; + + + + /** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/Store.js b/src/model/Store.js index 558edddf..d15f77de 100644 --- a/src/model/Store.js +++ b/src/model/Store.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,23 +16,20 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/BusinessHoursPeriod', 'model/DeliveryFeeArea', 'model/StoreAddress', 'model/StoreNote'], factory); + define(['ApiClient', 'model/BusinessHoursPeriod', 'model/DeliveryZone', 'model/StoreAddress', 'model/StoreNote'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./BusinessHoursPeriod'), require('./DeliveryFeeArea'), require('./StoreAddress'), require('./StoreNote')); + module.exports = factory(require('../ApiClient'), require('./BusinessHoursPeriod'), require('./DeliveryZone'), require('./StoreAddress'), require('./StoreNote')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.Store = factory(root.Flipdish.ApiClient, root.Flipdish.BusinessHoursPeriod, root.Flipdish.DeliveryFeeArea, root.Flipdish.StoreAddress, root.Flipdish.StoreNote); + root.Flipdish.Store = factory(root.Flipdish.ApiClient, root.Flipdish.BusinessHoursPeriod, root.Flipdish.DeliveryZone, root.Flipdish.StoreAddress, root.Flipdish.StoreNote); } -}(this, function(ApiClient, BusinessHoursPeriod, DeliveryFeeArea, StoreAddress, StoreNote) { +}(this, function(ApiClient, BusinessHoursPeriod, DeliveryZone, StoreAddress, StoreNote) { 'use strict'; - - - /** * The Store model module. * @module model/Store @@ -46,42 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }; /** @@ -94,109 +55,100 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('ApmPhoneNumber')) { - obj['ApmPhoneNumber'] = ApiClient.convertToType(data['ApmPhoneNumber'], 'String'); - } - if (data.hasOwnProperty('PhoneNumber')) { - obj['PhoneNumber'] = ApiClient.convertToType(data['PhoneNumber'], 'String'); - } - if (data.hasOwnProperty('EmailAddress')) { - obj['EmailAddress'] = ApiClient.convertToType(data['EmailAddress'], 'String'); - } - if (data.hasOwnProperty('Address')) { - obj['Address'] = StoreAddress.constructFromObject(data['Address']); - } - 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('DeliveryFeeAreas')) { - obj['DeliveryFeeAreas'] = ApiClient.convertToType(data['DeliveryFeeAreas'], [DeliveryFeeArea]); - } - if (data.hasOwnProperty('RequireCustomerNameForPickup')) { - obj['RequireCustomerNameForPickup'] = ApiClient.convertToType(data['RequireCustomerNameForPickup'], 'Boolean'); - } - if (data.hasOwnProperty('RequireCustomerNameForDelivery')) { - obj['RequireCustomerNameForDelivery'] = ApiClient.convertToType(data['RequireCustomerNameForDelivery'], 'Boolean'); - } - 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('MicrosoftTimeZone')) { - obj['MicrosoftTimeZone'] = ApiClient.convertToType(data['MicrosoftTimeZone'], 'String'); - } - if (data.hasOwnProperty('IanaTimeZone')) { - obj['IanaTimeZone'] = ApiClient.convertToType(data['IanaTimeZone'], 'String'); - } - 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('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('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'); } return obj; } @@ -205,172 +157,284 @@ * Store identifier * @member {Number} StoreId */ - exports.prototype['StoreId'] = undefined; + exports.prototype.StoreId = undefined; + + /** + * Store group id to which this store belongs + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + /** - * Name - * @member {String} Name + * Store address + * @member {module:model/StoreAddress} Address + */ + exports.prototype.Address = undefined; + + /** + * Delivery zones + * @member {Array.} DeliveryZones */ - exports.prototype['Name'] = undefined; + exports.prototype.DeliveryZones = undefined; + /** * Automated Phone Marketing number * @member {String} ApmPhoneNumber */ - exports.prototype['ApmPhoneNumber'] = undefined; + exports.prototype.ApmPhoneNumber = undefined; + /** - * Phone number - * @member {String} PhoneNumber + * Pickup hours + * @member {Array.} PickupHours */ - exports.prototype['PhoneNumber'] = undefined; + exports.prototype.PickupHours = undefined; + /** - * Email address (visible to customers) - * @member {String} EmailAddress + * Delivery hours + * @member {Array.} DeliveryHours */ - exports.prototype['EmailAddress'] = undefined; + exports.prototype.DeliveryHours = undefined; + /** - * Store address - * @member {module:model/StoreAddress} Address + * Menu identifier + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * Overridden confirmation message for delivery orders + * @member {String} OrderConfirmationMessageOverrideDelivery + */ + exports.prototype.OrderConfirmationMessageOverrideDelivery = undefined; + + /** + * Overridden confirmation message for pickup orders + * @member {String} OrderConfirmationMessageOverridePickup + */ + exports.prototype.OrderConfirmationMessageOverridePickup = undefined; + + /** + * Printout layout + * @member {module:model/Store.PrintoutLayoutTypeEnum} PrintoutLayoutType + */ + exports.prototype.PrintoutLayoutType = undefined; + + /** + * Store notes + * @member {Array.} StoreNotes + */ + exports.prototype.StoreNotes = undefined; + + /** + * Microsoft Time Zone Index Values (https://msdn.microsoft.com/en-us/library/ms912391) (Editable through store coordinate change) + * @member {String} MicrosoftTimeZone + */ + exports.prototype.MicrosoftTimeZone = undefined; + + /** + * IANA Time Zone (https://www.iana.org/time-zones) (Editable through store coordinate change) + * @member {String} IanaTimeZone + */ + exports.prototype.IanaTimeZone = undefined; + + /** + * Currency (derived from Store Group) + * @member {module:model/Store.CurrencyEnum} Currency + */ + exports.prototype.Currency = undefined; + + /** + * Is PerOrder Enabled for Delivery + * @member {Boolean} PreOrderDeliveryEnabled + */ + exports.prototype.PreOrderDeliveryEnabled = undefined; + + /** + * Is PerOrder Enabled for Pickup + * @member {Boolean} PreOrderPickupEnabled + */ + exports.prototype.PreOrderPickupEnabled = undefined; + + /** + * Url for logo image + * @member {String} LogoUrl + */ + exports.prototype.LogoUrl = undefined; + + /** + * Phone number + * @member {String} PhoneNumber + */ + exports.prototype.PhoneNumber = undefined; + + /** + * True if the store always appears open + * @member {Boolean} AlwaysAppearOpen */ - exports.prototype['Address'] = undefined; + exports.prototype.AlwaysAppearOpen = undefined; + /** * True if the store accepts pre-orders * @member {Boolean} PreOrderEnabled */ - exports.prototype['PreOrderEnabled'] = undefined; + exports.prototype.PreOrderEnabled = undefined; + /** * True if the store accepts take-out orders * @member {Boolean} TakeOutEnabled */ - exports.prototype['TakeOutEnabled'] = undefined; + exports.prototype.TakeOutEnabled = undefined; + /** * True if the store has table service * @member {Boolean} TableServiceEnabled */ - exports.prototype['TableServiceEnabled'] = undefined; + exports.prototype.TableServiceEnabled = undefined; + /** * True if the store accepts dine-in orders * @member {Boolean} DineInEnabled */ - exports.prototype['DineInEnabled'] = undefined; + exports.prototype.DineInEnabled = undefined; + /** * True if both pre-orders and talbe service can be enabled * @member {Boolean} AllowPreOrdersAndTableService */ - exports.prototype['AllowPreOrdersAndTableService'] = undefined; + exports.prototype.AllowPreOrdersAndTableService = undefined; + /** * True if the store accepts pickup orders * @member {Boolean} PickupEnabled */ - exports.prototype['PickupEnabled'] = undefined; + exports.prototype.PickupEnabled = undefined; + /** * True if the store accepts delivery orders * @member {Boolean} DeliveryEnabled */ - exports.prototype['DeliveryEnabled'] = undefined; + exports.prototype.DeliveryEnabled = undefined; + /** * True if the store accepts card payment for delivery orders * @member {Boolean} CardOrderDeliveryEnabled */ - exports.prototype['CardOrderDeliveryEnabled'] = undefined; + exports.prototype.CardOrderDeliveryEnabled = undefined; + /** * True if the store accepts cash payment for delivery orders * @member {Boolean} CashOrdersDeliveryEnabled */ - exports.prototype['CashOrdersDeliveryEnabled'] = undefined; + exports.prototype.CashOrdersDeliveryEnabled = undefined; + /** * True if the store accepts card payment for pickup orders * @member {Boolean} CardOrdersPickupEnabled */ - exports.prototype['CardOrdersPickupEnabled'] = undefined; + exports.prototype.CardOrdersPickupEnabled = undefined; + /** * True if the store accepts cash payment for pickup orders * @member {Boolean} CashOrdersPickupEnabled */ - exports.prototype['CashOrdersPickupEnabled'] = undefined; + exports.prototype.CashOrdersPickupEnabled = undefined; + /** * True if the store accepts tips * @member {Boolean} TipsEnabled */ - exports.prototype['TipsEnabled'] = undefined; + exports.prototype.TipsEnabled = undefined; + /** * True if the stores orders are automatically accepted in Flipdish * @member {Boolean} AutomaticallyAcceptOrders */ - exports.prototype['AutomaticallyAcceptOrders'] = undefined; + exports.prototype.AutomaticallyAcceptOrders = undefined; + /** * True if the store is open for delivery * @member {Boolean} OpenForDelivery */ - exports.prototype['OpenForDelivery'] = undefined; + exports.prototype.OpenForDelivery = undefined; + /** * True if the store is open for pickup * @member {Boolean} OpenForPickup */ - exports.prototype['OpenForPickup'] = undefined; + exports.prototype.OpenForPickup = undefined; + /** * Minimum pickup order amount * @member {Number} MinimumPickupOrderAmount */ - exports.prototype['MinimumPickupOrderAmount'] = undefined; - /** - * Delivery fee areas - * @member {Array.} DeliveryFeeAreas - */ - exports.prototype['DeliveryFeeAreas'] = undefined; + exports.prototype.MinimumPickupOrderAmount = undefined; + /** * True if customer name required for pickup orders * @member {Boolean} RequireCustomerNameForPickup */ - exports.prototype['RequireCustomerNameForPickup'] = undefined; + exports.prototype.RequireCustomerNameForPickup = undefined; + /** - * True if customer name required for delivery orders - * @member {Boolean} RequireCustomerNameForDelivery + * Mask your customers phone numbers printed on receipts and reduce the amout of personally identifiable customer information that is exposed. + * @member {Boolean} GdprCustomerPhoneNumbers */ - exports.prototype['RequireCustomerNameForDelivery'] = undefined; + exports.prototype.GdprCustomerPhoneNumbers = undefined; + /** - * Pickup hours - * @member {Array.} PickupHours + * True if customer name required for delivery orders + * @member {Boolean} RequireCustomerNameForDelivery */ - exports.prototype['PickupHours'] = undefined; + exports.prototype.RequireCustomerNameForDelivery = undefined; + /** - * Delivery hours - * @member {Array.} DeliveryHours + * True if the customer is allowed enter custom notes with their orders + * @member {Boolean} AllowChefNotes */ - exports.prototype['DeliveryHours'] = undefined; + exports.prototype.AllowChefNotes = undefined; + /** - * Microsoft Time Zone Index Values (https://msdn.microsoft.com/en-us/library/ms912391) - * @member {String} MicrosoftTimeZone + * True if order confirmation sms includes estimated time when order will be ready for collection + * @member {Boolean} EtaInPickupConfirmationSmsEnabled */ - exports.prototype['MicrosoftTimeZone'] = undefined; + exports.prototype.EtaInPickupConfirmationSmsEnabled = undefined; + /** - * IANA Time Zone (https://www.iana.org/time-zones) - * @member {String} IanaTimeZone + * True if order confirmation sms includes estimated time when order will delivered + * @member {Boolean} EtaInDeliveryConfirmationSmsEnabled */ - exports.prototype['IanaTimeZone'] = undefined; + exports.prototype.EtaInDeliveryConfirmationSmsEnabled = undefined; + /** - * Menu identifier - * @member {Number} MenuId + * Is the Store Archived + * @member {Boolean} IsArchived */ - exports.prototype['MenuId'] = undefined; + exports.prototype.IsArchived = undefined; + /** - * Overridden confirmation message for delivery orders - * @member {String} OrderConfirmationMessageOverrideDelivery + * Is the Store Published + * @member {Boolean} IsPublished */ - exports.prototype['OrderConfirmationMessageOverrideDelivery'] = undefined; + exports.prototype.IsPublished = undefined; + /** - * Overridden confirmation message for pickup orders - * @member {String} OrderConfirmationMessageOverridePickup + * Name + * @member {String} Name */ - exports.prototype['OrderConfirmationMessageOverridePickup'] = undefined; + exports.prototype.Name = undefined; + /** - * Printout layout - * @member {module:model/Store.PrintoutLayoutTypeEnum} PrintoutLayoutType + * Email address (visible to customers) + * @member {String} EmailAddress */ - exports.prototype['PrintoutLayoutType'] = undefined; + exports.prototype.EmailAddress = undefined; + /** - * Store notes - * @member {Array.} StoreNotes + * Staff Language (used for communication with the staff) Emails, Printouts etc + * @member {String} StaffLanguage */ - exports.prototype['StoreNotes'] = undefined; + exports.prototype.StaffLanguage = undefined; + /** @@ -383,15 +447,713 @@ * value: "Default" * @const */ - "Default": "Default", + _Default: "Default", + /** * value: "Centra" * @const */ - "Centra": "Centra" }; + Centra: "Centra", + /** + * value: "SmallChefNotes" + * @const + */ + SmallChefNotes: "SmallChefNotes", - return exports; -})); + /** + * value: "SmallChefNotesAndCentra" + * @const + */ + SmallChefNotesAndCentra: "SmallChefNotesAndCentra" + }; + + + /** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/StoreAddress.js b/src/model/StoreAddress.js index 784de0ad..14bc46e2 100644 --- a/src/model/StoreAddress.js +++ b/src/model/StoreAddress.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, Coordinates) { 'use strict'; - - - /** * The StoreAddress model module. * @module model/StoreAddress @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,20 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('AddressId')) { - obj['AddressId'] = ApiClient.convertToType(data['AddressId'], 'Number'); - } - 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('Coordinates')) { - obj['Coordinates'] = Coordinates.constructFromObject(data['Coordinates']); - } + 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'); } return obj; } @@ -97,41 +77,45 @@ * Address identifier * @member {Number} AddressId */ - exports.prototype['AddressId'] = undefined; + exports.prototype.AddressId = undefined; + + /** + * Coordinate + * @member {module:model/Coordinates} Coordinates + */ + exports.prototype.Coordinates = undefined; + /** * Address line 1 * @member {String} Line1 */ - exports.prototype['Line1'] = undefined; + exports.prototype.Line1 = undefined; + /** * Postcode * @member {String} Postcode */ - exports.prototype['Postcode'] = undefined; + exports.prototype.Postcode = undefined; + /** * City * @member {String} City */ - exports.prototype['City'] = undefined; + exports.prototype.City = undefined; + /** * Country code (ISO-alpha2) * @member {String} CountryCode */ - exports.prototype['CountryCode'] = undefined; + exports.prototype.CountryCode = undefined; + /** * Display for customer * @member {String} DisplayForCustomer */ - exports.prototype['DisplayForCustomer'] = undefined; - /** - * Coordinate - * @member {module:model/Coordinates} Coordinates - */ - exports.prototype['Coordinates'] = undefined; - + exports.prototype.DisplayForCustomer = undefined; return exports; -})); - +})); diff --git a/src/model/StoreAddressBase.js b/src/model/StoreAddressBase.js new file mode 100644 index 00000000..a42d1255 --- /dev/null +++ b/src/model/StoreAddressBase.js @@ -0,0 +1,105 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreAddressBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StoreAddressBase model module. + * @module model/StoreAddressBase + * @version 1.0.0 + */ + + /** + * Constructs a new StoreAddressBase. + * Store address base + * @alias module:model/StoreAddressBase + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Address line 1 + * @member {String} Line1 + */ + exports.prototype.Line1 = undefined; + + /** + * Postcode + * @member {String} Postcode + */ + exports.prototype.Postcode = undefined; + + /** + * City + * @member {String} City + */ + exports.prototype.City = undefined; + + /** + * Country code (ISO-alpha2) + * @member {String} CountryCode + */ + exports.prototype.CountryCode = undefined; + + /** + * Display for customer + * @member {String} DisplayForCustomer + */ + exports.prototype.DisplayForCustomer = undefined; + + + return exports; + +})); diff --git a/src/model/StoreAddressUpdatedEvent.js b/src/model/StoreAddressUpdatedEvent.js new file mode 100644 index 00000000..46ae33a1 --- /dev/null +++ b/src/model/StoreAddressUpdatedEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreAddress', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreAddress'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreAddressUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.StoreAddress, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, StoreAddress, UserEventInfo) { + 'use strict'; + + /** + * The StoreAddressUpdatedEvent model module. + * @module model/StoreAddressUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StoreAddressUpdatedEvent. + * Store Address Updated Event + * @alias module:model/StoreAddressUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which updated this store address + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Updated store address + * @member {module:model/StoreAddress} StoreAddress + */ + exports.prototype.StoreAddress = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreArchivedEvent.js b/src/model/StoreArchivedEvent.js new file mode 100644 index 00000000..461c935d --- /dev/null +++ b/src/model/StoreArchivedEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Store', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Store'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreArchivedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Store, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, Store, UserEventInfo) { + 'use strict'; + + /** + * The StoreArchivedEvent model module. + * @module model/StoreArchivedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StoreArchivedEvent. + * Store Archived Event + * @alias module:model/StoreArchivedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which archived this store + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Archived Store + * @member {module:model/Store} Store + */ + exports.prototype.Store = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreBase.js b/src/model/StoreBase.js new file mode 100644 index 00000000..7e1ca954 --- /dev/null +++ b/src/model/StoreBase.js @@ -0,0 +1,297 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StoreBase model module. + * @module model/StoreBase + * @version 1.0.0 + */ + + /** + * Constructs a new StoreBase. + * Store Base + * @alias module:model/StoreBase + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Phone number + * @member {String} PhoneNumber + */ + exports.prototype.PhoneNumber = undefined; + + /** + * True if the store always appears open + * @member {Boolean} AlwaysAppearOpen + */ + exports.prototype.AlwaysAppearOpen = undefined; + + /** + * True if the store accepts pre-orders + * @member {Boolean} PreOrderEnabled + */ + exports.prototype.PreOrderEnabled = undefined; + + /** + * True if the store accepts take-out orders + * @member {Boolean} TakeOutEnabled + */ + exports.prototype.TakeOutEnabled = undefined; + + /** + * True if the store has table service + * @member {Boolean} TableServiceEnabled + */ + exports.prototype.TableServiceEnabled = undefined; + + /** + * True if the store accepts dine-in orders + * @member {Boolean} DineInEnabled + */ + exports.prototype.DineInEnabled = undefined; + + /** + * True if both pre-orders and talbe service can be enabled + * @member {Boolean} AllowPreOrdersAndTableService + */ + exports.prototype.AllowPreOrdersAndTableService = undefined; + + /** + * True if the store accepts pickup orders + * @member {Boolean} PickupEnabled + */ + exports.prototype.PickupEnabled = undefined; + + /** + * True if the store accepts delivery orders + * @member {Boolean} DeliveryEnabled + */ + exports.prototype.DeliveryEnabled = undefined; + + /** + * True if the store accepts card payment for delivery orders + * @member {Boolean} CardOrderDeliveryEnabled + */ + exports.prototype.CardOrderDeliveryEnabled = undefined; + + /** + * True if the store accepts cash payment for delivery orders + * @member {Boolean} CashOrdersDeliveryEnabled + */ + exports.prototype.CashOrdersDeliveryEnabled = undefined; + + /** + * True if the store accepts card payment for pickup orders + * @member {Boolean} CardOrdersPickupEnabled + */ + exports.prototype.CardOrdersPickupEnabled = undefined; + + /** + * True if the store accepts cash payment for pickup orders + * @member {Boolean} CashOrdersPickupEnabled + */ + exports.prototype.CashOrdersPickupEnabled = undefined; + + /** + * True if the store accepts tips + * @member {Boolean} TipsEnabled + */ + exports.prototype.TipsEnabled = undefined; + + /** + * True if the stores orders are automatically accepted in Flipdish + * @member {Boolean} AutomaticallyAcceptOrders + */ + exports.prototype.AutomaticallyAcceptOrders = undefined; + + /** + * True if the store is open for delivery + * @member {Boolean} OpenForDelivery + */ + exports.prototype.OpenForDelivery = undefined; + + /** + * True if the store is open for pickup + * @member {Boolean} OpenForPickup + */ + exports.prototype.OpenForPickup = undefined; + + /** + * Minimum pickup order amount + * @member {Number} MinimumPickupOrderAmount + */ + exports.prototype.MinimumPickupOrderAmount = undefined; + + /** + * True if customer name required for pickup orders + * @member {Boolean} RequireCustomerNameForPickup + */ + exports.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 + */ + exports.prototype.GdprCustomerPhoneNumbers = undefined; + + /** + * True if customer name required for delivery orders + * @member {Boolean} RequireCustomerNameForDelivery + */ + exports.prototype.RequireCustomerNameForDelivery = undefined; + + /** + * True if the customer is allowed enter custom notes with their orders + * @member {Boolean} AllowChefNotes + */ + exports.prototype.AllowChefNotes = undefined; + + /** + * True if order confirmation sms includes estimated time when order will be ready for collection + * @member {Boolean} EtaInPickupConfirmationSmsEnabled + */ + exports.prototype.EtaInPickupConfirmationSmsEnabled = undefined; + + /** + * True if order confirmation sms includes estimated time when order will delivered + * @member {Boolean} EtaInDeliveryConfirmationSmsEnabled + */ + exports.prototype.EtaInDeliveryConfirmationSmsEnabled = undefined; + + /** + * Is the Store Archived + * @member {Boolean} IsArchived + */ + exports.prototype.IsArchived = undefined; + + /** + * Is the Store Published + * @member {Boolean} IsPublished + */ + exports.prototype.IsPublished = undefined; + + /** + * Name + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Email address (visible to customers) + * @member {String} EmailAddress + */ + exports.prototype.EmailAddress = undefined; + + /** + * Staff Language (used for communication with the staff) Emails, Printouts etc + * @member {String} StaffLanguage + */ + exports.prototype.StaffLanguage = undefined; + + + return exports; + +})); diff --git a/src/model/StoreBusinessHoursOverrideCreatedEvent.js b/src/model/StoreBusinessHoursOverrideCreatedEvent.js new file mode 100644 index 00000000..3525394c --- /dev/null +++ b/src/model/StoreBusinessHoursOverrideCreatedEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BusinessHoursOverride', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./BusinessHoursOverride'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreBusinessHoursOverrideCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.BusinessHoursOverride, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, BusinessHoursOverride, UserEventInfo) { + 'use strict'; + + /** + * The StoreBusinessHoursOverrideCreatedEvent model module. + * @module model/StoreBusinessHoursOverrideCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StoreBusinessHoursOverrideCreatedEvent. + * Store Business Hours Override Created + * @alias module:model/StoreBusinessHoursOverrideCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which deleted delivery zone for this store + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Business Hours Override + * @member {module:model/BusinessHoursOverride} BusinessHoursOverride + */ + exports.prototype.BusinessHoursOverride = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreBusinessHoursOverrideDeletedEvent.js b/src/model/StoreBusinessHoursOverrideDeletedEvent.js new file mode 100644 index 00000000..3ded23d4 --- /dev/null +++ b/src/model/StoreBusinessHoursOverrideDeletedEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BusinessHoursOverride', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./BusinessHoursOverride'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreBusinessHoursOverrideDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.BusinessHoursOverride, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, BusinessHoursOverride, UserEventInfo) { + 'use strict'; + + /** + * The StoreBusinessHoursOverrideDeletedEvent model module. + * @module model/StoreBusinessHoursOverrideDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StoreBusinessHoursOverrideDeletedEvent. + * Store Business Hours Override Deleted + * @alias module:model/StoreBusinessHoursOverrideDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which deleted delivery zone for this store + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Business Hours Override + * @member {module:model/BusinessHoursOverride} BusinessHoursOverride + */ + exports.prototype.BusinessHoursOverride = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreCampaignStartTime.js b/src/model/StoreCampaignStartTime.js new file mode 100644 index 00000000..14f27a2a --- /dev/null +++ b/src/model/StoreCampaignStartTime.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreCampaignStartTime = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StoreCampaignStartTime model module. + * @module model/StoreCampaignStartTime + * @version 1.0.0 + */ + + /** + * Constructs a new StoreCampaignStartTime. + * Store campaign start time + * @alias module:model/StoreCampaignStartTime + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.StoreId = undefined; + + /** + * Campaign start time in Utc + * @member {Date} TsStart + */ + exports.prototype.TsStart = undefined; + + + return exports; + +})); diff --git a/src/model/StoreCloneSettings.js b/src/model/StoreCloneSettings.js new file mode 100644 index 00000000..e03df37d --- /dev/null +++ b/src/model/StoreCloneSettings.js @@ -0,0 +1,73 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreCloneSettings = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StoreCloneSettings model module. + * @module model/StoreCloneSettings + * @version 1.0.0 + */ + + /** + * Constructs a new StoreCloneSettings. + * Settings for cloning a store + * @alias module:model/StoreCloneSettings + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.TargetStoreGroupId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreCreateBase.js b/src/model/StoreCreateBase.js new file mode 100644 index 00000000..f2d98b6f --- /dev/null +++ b/src/model/StoreCreateBase.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreCreateBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StoreCreateBase model module. + * @module model/StoreCreateBase + * @version 1.0.0 + */ + + /** + * Constructs a new StoreCreateBase. + * Store Create Base + * @alias module:model/StoreCreateBase + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Name + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Email address (visible to customers) + * @member {String} EmailAddress + */ + exports.prototype.EmailAddress = undefined; + + /** + * Staff Language (used for communication with the staff) Emails, Printouts etc + * @member {String} StaffLanguage + */ + exports.prototype.StaffLanguage = undefined; + + + return exports; + +})); diff --git a/src/model/StoreCreatedEvent.js b/src/model/StoreCreatedEvent.js index fe0f7776..b175f6ac 100644 --- a/src/model/StoreCreatedEvent.js +++ b/src/model/StoreCreatedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,23 +16,20 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/UserEventInfo'], factory); + define(['ApiClient', 'model/Store', 'model/UserEventInfo'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + module.exports = factory(require('../ApiClient'), require('./Store'), require('./UserEventInfo')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.StoreCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + root.Flipdish.StoreCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Store, root.Flipdish.UserEventInfo); } -}(this, function(ApiClient, UserEventInfo) { +}(this, function(ApiClient, Store, UserEventInfo) { 'use strict'; - - - /** * The StoreCreatedEvent model module. * @module model/StoreCreatedEvent @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,24 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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('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('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'); } return obj; } @@ -97,41 +81,57 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Store Id * @member {Number} StoreId */ - exports.prototype['StoreId'] = undefined; + exports.prototype.StoreId = undefined; + /** - * Info User + * User which created this store * @member {module:model/UserEventInfo} User */ - exports.prototype['User'] = undefined; + exports.prototype.User = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + + /** + * Created Store + * @member {module:model/Store} Store + */ + exports.prototype.Store = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/StoreDataPoint.js b/src/model/StoreDataPoint.js new file mode 100644 index 00000000..4e7f6b6a --- /dev/null +++ b/src/model/StoreDataPoint.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreDataPoint = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StoreDataPoint model module. + * @module model/StoreDataPoint + * @version 1.0.0 + */ + + /** + * Constructs a new StoreDataPoint. + * Store Data Point + * @alias module:model/StoreDataPoint + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Day = undefined; + + /** + * Value for the day + * @member {Number} Value + */ + exports.prototype.Value = undefined; + + + return exports; + +})); diff --git a/src/model/StoreDeletedEvent.js b/src/model/StoreDeletedEvent.js index d8044073..e08fc16a 100644 --- a/src/model/StoreDeletedEvent.js +++ b/src/model/StoreDeletedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,23 +16,20 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/UserEventInfo'], factory); + define(['ApiClient', 'model/Store', 'model/UserEventInfo'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + module.exports = factory(require('../ApiClient'), require('./Store'), require('./UserEventInfo')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.StoreDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + root.Flipdish.StoreDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Store, root.Flipdish.UserEventInfo); } -}(this, function(ApiClient, UserEventInfo) { +}(this, function(ApiClient, Store, UserEventInfo) { 'use strict'; - - - /** * The StoreDeletedEvent model module. * @module model/StoreDeletedEvent @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,26 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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('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'); } return obj; } @@ -97,41 +83,63 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Store Id * @member {Number} StoreId */ - exports.prototype['StoreId'] = undefined; + exports.prototype.StoreId = undefined; + /** - * Info User + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which deleted this store * @member {module:model/UserEventInfo} User */ - exports.prototype['User'] = undefined; + exports.prototype.User = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + + /** + * Deleted Store + * @member {module:model/Store} Store + */ + exports.prototype.Store = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/StoreDeliveryZoneUpdatedEvent.js b/src/model/StoreDeliveryZoneUpdatedEvent.js deleted file mode 100644 index 010e0ddb..00000000 --- a/src/model/StoreDeliveryZoneUpdatedEvent.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Flipdish Open API v1.0 - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient', 'model/UserEventInfo'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); - } else { - // Browser globals (root is window) - if (!root.Flipdish) { - root.Flipdish = {}; - } - root.Flipdish.StoreDeliveryZoneUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); - } -}(this, function(ApiClient, UserEventInfo) { - 'use strict'; - - - - - /** - * The StoreDeliveryZoneUpdatedEvent model module. - * @module model/StoreDeliveryZoneUpdatedEvent - * @version 1.0.0 - */ - - /** - * Constructs a new StoreDeliveryZoneUpdatedEvent. - * Store Delivery Zone Updated Event - * @alias module:model/StoreDeliveryZoneUpdatedEvent - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - }; - - /** - * Constructs a StoreDeliveryZoneUpdatedEvent from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/StoreDeliveryZoneUpdatedEvent} obj Optional instance to populate. - * @return {module:model/StoreDeliveryZoneUpdatedEvent} The populated StoreDeliveryZoneUpdatedEvent instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - 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('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'); - } - } - return obj; - } - - /** - * The event name - * @member {String} EventName - */ - exports.prototype['EventName'] = undefined; - /** - * Store Id - * @member {Number} StoreId - */ - exports.prototype['StoreId'] = undefined; - /** - * Info User - * @member {module:model/UserEventInfo} User - */ - exports.prototype['User'] = undefined; - /** - * Description - * @member {String} Description - */ - exports.prototype['Description'] = undefined; - /** - * The identitfier of the event - * @member {String} FlipdishEventId - */ - exports.prototype['FlipdishEventId'] = undefined; - /** - * The time of creation of the event - * @member {Date} CreateTime - */ - exports.prototype['CreateTime'] = undefined; - /** - * Position - * @member {Number} Position - */ - exports.prototype['Position'] = undefined; - - - - return exports; -})); - - diff --git a/src/model/StoreEndOfDayReport.js b/src/model/StoreEndOfDayReport.js new file mode 100644 index 00000000..cf0064ce --- /dev/null +++ b/src/model/StoreEndOfDayReport.js @@ -0,0 +1,959 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreEndOfDayReport = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StoreEndOfDayReport model module. + * @module model/StoreEndOfDayReport + * @version 1.0.0 + */ + + /** + * Constructs a new StoreEndOfDayReport. + * Store end of day report + * @alias module:model/StoreEndOfDayReport + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.StoreId = undefined; + + /** + * Store name + * @member {String} StoreName + */ + exports.prototype.StoreName = undefined; + + /** + * Currency + * @member {module:model/StoreEndOfDayReport.CurrencyEnum} Currency + */ + exports.prototype.Currency = undefined; + + /** + * Order Count + * @member {Number} OrderCount + */ + exports.prototype.OrderCount = undefined; + + /** + * Order Value + * @member {Number} OrderValue + */ + exports.prototype.OrderValue = undefined; + + /** + * Order Value Excluding Delivery Fees + * @member {Number} OrderValueExcludingDeliveryFees + */ + exports.prototype.OrderValueExcludingDeliveryFees = undefined; + + /** + * Collection Order Count + * @member {Number} CollectionOrderCount + */ + exports.prototype.CollectionOrderCount = undefined; + + /** + * Collection Cash Order Count + * @member {Number} CollectionCashOrderCount + */ + exports.prototype.CollectionCashOrderCount = undefined; + + /** + * Collection Paid Online Order Count + * @member {Number} CollectionPaidOnlineOrderCount + */ + exports.prototype.CollectionPaidOnlineOrderCount = undefined; + + /** + * Collection Order Value + * @member {Number} CollectionOrderValue + */ + exports.prototype.CollectionOrderValue = undefined; + + /** + * Collection Cash Order Value + * @member {Number} CollectionCashOrderValue + */ + exports.prototype.CollectionCashOrderValue = undefined; + + /** + * Collection Paid Online Order Value + * @member {Number} CollectionPaidOnlineOrderValue + */ + exports.prototype.CollectionPaidOnlineOrderValue = undefined; + + /** + * Delivery Order Count + * @member {Number} DeliveryOrderCount + */ + exports.prototype.DeliveryOrderCount = undefined; + + /** + * Delivery Cash Order Count + * @member {Number} DeliveryCashOrderCount + */ + exports.prototype.DeliveryCashOrderCount = undefined; + + /** + * Delivery Paid Online Order Count + * @member {Number} DeliveryPaidOnlineOrderCount + */ + exports.prototype.DeliveryPaidOnlineOrderCount = undefined; + + /** + * Delivery Order Value + * @member {Number} DeliveryOrderValue + */ + exports.prototype.DeliveryOrderValue = undefined; + + /** + * Delivery Cash Order Value + * @member {Number} DeliveryCashOrderValue + */ + exports.prototype.DeliveryCashOrderValue = undefined; + + /** + * Delivery Paid Online Order Value + * @member {Number} DeliveryPaidOnlineOrderValue + */ + exports.prototype.DeliveryPaidOnlineOrderValue = undefined; + + /** + * Paid Online Order Count + * @member {Number} PaidOnlineOrderCount + */ + exports.prototype.PaidOnlineOrderCount = undefined; + + /** + * Cash Order Count + * @member {Number} CashOrderCount + */ + exports.prototype.CashOrderCount = undefined; + + /** + * Paid Online Order Value + * @member {Number} PaidOnlineOrderValue + */ + exports.prototype.PaidOnlineOrderValue = undefined; + + /** + * Cash Order Value + * @member {Number} CashOrderValue + */ + exports.prototype.CashOrderValue = undefined; + + /** + * Paid Online Order Value Excluding Delivery Fees + * @member {Number} PaidOnlineOrderValueExcludingDeliveryFees + */ + exports.prototype.PaidOnlineOrderValueExcludingDeliveryFees = undefined; + + /** + * Cash Order Value Excluding Delivery Fees + * @member {Number} CashOrderValueExcludingDeliveryFees + */ + exports.prototype.CashOrderValueExcludingDeliveryFees = undefined; + + /** + * Start Time + * @member {Date} StartTime + */ + exports.prototype.StartTime = undefined; + + /** + * End Time + * @member {Date} EndTime + */ + exports.prototype.EndTime = undefined; + + + + /** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/StoreGroup.js b/src/model/StoreGroup.js new file mode 100644 index 00000000..19190b96 --- /dev/null +++ b/src/model/StoreGroup.js @@ -0,0 +1,791 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreGroup = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StoreGroup model module. + * @module model/StoreGroup + * @version 1.0.0 + */ + + /** + * Constructs a new StoreGroup. + * Store Group + * @alias module:model/StoreGroup + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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 + */ + exports.prototype.StoreGroupId = undefined; + + /** + * Store Group rating + * @member {Number} GeneralRating + */ + exports.prototype.GeneralRating = undefined; + + /** + * Store Group rating count + * @member {Number} GeneralRatingCount + */ + exports.prototype.GeneralRatingCount = undefined; + + /** + * Store Group Name + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Currency used by the stores in this group + * @member {module:model/StoreGroup.CurrencyEnum} Currency + */ + exports.prototype.Currency = undefined; + + + + /** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/StoreGroupBase.js b/src/model/StoreGroupBase.js new file mode 100644 index 00000000..ab716cb3 --- /dev/null +++ b/src/model/StoreGroupBase.js @@ -0,0 +1,767 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreGroupBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StoreGroupBase model module. + * @module model/StoreGroupBase + * @version 1.0.0 + */ + + /** + * Constructs a new StoreGroupBase. + * Update Store Group + * @alias module:model/StoreGroupBase + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Name = undefined; + + /** + * Currency used by the stores in this group + * @member {module:model/StoreGroupBase.CurrencyEnum} Currency + */ + exports.prototype.Currency = undefined; + + + + /** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/StoreGroupCreatedEvent.js b/src/model/StoreGroupCreatedEvent.js new file mode 100644 index 00000000..4607a802 --- /dev/null +++ b/src/model/StoreGroupCreatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreGroup', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreGroup'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreGroupCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.StoreGroup, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, StoreGroup, UserEventInfo) { + 'use strict'; + + /** + * The StoreGroupCreatedEvent model module. + * @module model/StoreGroupCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StoreGroupCreatedEvent. + * Store Group Created Event + * @alias module:model/StoreGroupCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which created this store group + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Created store group + * @member {module:model/StoreGroup} StoreGroup + */ + exports.prototype.StoreGroup = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreGroupDeletedEvent.js b/src/model/StoreGroupDeletedEvent.js new file mode 100644 index 00000000..b903057c --- /dev/null +++ b/src/model/StoreGroupDeletedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreGroup', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreGroup'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreGroupDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.StoreGroup, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, StoreGroup, UserEventInfo) { + 'use strict'; + + /** + * The StoreGroupDeletedEvent model module. + * @module model/StoreGroupDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StoreGroupDeletedEvent. + * Store Group Deleted Event + * @alias module:model/StoreGroupDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which deleted this store group + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Deleted store group + * @member {module:model/StoreGroup} StoreGroup + */ + exports.prototype.StoreGroup = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreGroupExtended.js b/src/model/StoreGroupExtended.js new file mode 100644 index 00000000..29211b45 --- /dev/null +++ b/src/model/StoreGroupExtended.js @@ -0,0 +1,815 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/GroupedCoordinates', 'model/StoreHeader'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./GroupedCoordinates'), require('./StoreHeader')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreGroupExtended = factory(root.Flipdish.ApiClient, root.Flipdish.GroupedCoordinates, root.Flipdish.StoreHeader); + } +}(this, function(ApiClient, GroupedCoordinates, StoreHeader) { + 'use strict'; + + /** + * The StoreGroupExtended model module. + * @module model/StoreGroupExtended + * @version 1.0.0 + */ + + /** + * Constructs a new StoreGroupExtended. + * Store Group Extended + * @alias module:model/StoreGroupExtended + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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 + */ + exports.prototype.TotalStores = undefined; + + /** + * Grouped store coordinates + * @member {Array.} GroupedCoordinates + */ + exports.prototype.GroupedCoordinates = undefined; + + /** + * Store Headers associated with Store Group + * @member {Array.} StoreHeaders + */ + exports.prototype.StoreHeaders = undefined; + + /** + * Unique Store Group Identifier + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * Store Group rating + * @member {Number} GeneralRating + */ + exports.prototype.GeneralRating = undefined; + + /** + * Store Group rating count + * @member {Number} GeneralRatingCount + */ + exports.prototype.GeneralRatingCount = undefined; + + /** + * Store Group Name + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Currency used by the stores in this group + * @member {module:model/StoreGroupExtended.CurrencyEnum} Currency + */ + exports.prototype.Currency = undefined; + + + + /** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/StoreGroupUpdatedEvent.js b/src/model/StoreGroupUpdatedEvent.js new file mode 100644 index 00000000..956d91a8 --- /dev/null +++ b/src/model/StoreGroupUpdatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreGroup', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreGroup'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreGroupUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.StoreGroup, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, StoreGroup, UserEventInfo) { + 'use strict'; + + /** + * The StoreGroupUpdatedEvent model module. + * @module model/StoreGroupUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StoreGroupUpdatedEvent. + * Store Group Updated Event + * @alias module:model/StoreGroupUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which updated this store group + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Updated store group + * @member {module:model/StoreGroup} StoreGroup + */ + exports.prototype.StoreGroup = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreHeader.js b/src/model/StoreHeader.js new file mode 100644 index 00000000..f519e72a --- /dev/null +++ b/src/model/StoreHeader.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreHeader = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StoreHeader model module. + * @module model/StoreHeader + * @version 1.0.0 + */ + + /** + * Constructs a new StoreHeader. + * Represents the most basic store information, used mostly for searches + * @alias module:model/StoreHeader + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 identifier + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Name + * @member {String} Name + */ + exports.prototype.Name = undefined; + + + return exports; + +})); diff --git a/src/model/StoreKioskSetting.js b/src/model/StoreKioskSetting.js new file mode 100644 index 00000000..9f125538 --- /dev/null +++ b/src/model/StoreKioskSetting.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreKioskSetting = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StoreKioskSetting model module. + * @module model/StoreKioskSetting + * @version 1.0.0 + */ + + /** + * Constructs a new StoreKioskSetting. + * Store Kiosk Settings + * @alias module:model/StoreKioskSetting + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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 + */ + exports.prototype.KioskSettingId = undefined; + + /** + * Store kiosk name + * @member {String} KioskName + */ + exports.prototype.KioskName = undefined; + + /** + * Require customer name flag + * @member {Boolean} RequireCustomerName + */ + exports.prototype.RequireCustomerName = undefined; + + /** + * Request table number flag + * @member {Boolean} RequestTableNumber + */ + exports.prototype.RequestTableNumber = undefined; + + /** + * Offer Dine-In/Takeaway option flag + * @member {Boolean} OfferDineInOrTakeawayOption + */ + exports.prototype.OfferDineInOrTakeawayOption = undefined; + + /** + * Physical restaurant id + * @member {Number} PhysicalRestaurantId + */ + exports.prototype.PhysicalRestaurantId = undefined; + + /** + * Hydra config id + * @member {Number} HydraConfigId + */ + exports.prototype.HydraConfigId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreKioskSettingUpdatedEvent.js b/src/model/StoreKioskSettingUpdatedEvent.js new file mode 100644 index 00000000..cec526a9 --- /dev/null +++ b/src/model/StoreKioskSettingUpdatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreKioskSetting', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreKioskSetting'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreKioskSettingUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.StoreKioskSetting, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, StoreKioskSetting, UserEventInfo) { + 'use strict'; + + /** + * The StoreKioskSettingUpdatedEvent model module. + * @module model/StoreKioskSettingUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StoreKioskSettingUpdatedEvent. + * Store kiosk setting updated + * @alias module:model/StoreKioskSettingUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * User which deleted delivery zone for this store + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Store kiosk settings + * @member {module:model/StoreKioskSetting} StoreKioskSetting + */ + exports.prototype.StoreKioskSetting = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreListItem.js b/src/model/StoreListItem.js new file mode 100644 index 00000000..d7fe2bd2 --- /dev/null +++ b/src/model/StoreListItem.js @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreListItem = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StoreListItem model module. + * @module model/StoreListItem + * @version 1.0.0 + */ + + /** + * Constructs a new StoreListItem. + * Store id and name + * @alias module:model/StoreListItem + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store Name + * @member {String} StoreName + */ + exports.prototype.StoreName = undefined; + + /** + * Store Group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * Store Group Name + * @member {String} StoreGroupName + */ + exports.prototype.StoreGroupName = undefined; + + /** + * Store has loyalty campaign + * @member {Boolean} HasLoyaltyCampaign + */ + exports.prototype.HasLoyaltyCampaign = undefined; + + /** + * Store has retention campaign + * @member {Boolean} HasRetentionCampaign + */ + exports.prototype.HasRetentionCampaign = undefined; + + + return exports; + +})); diff --git a/src/model/StoreLogoCreatedEvent.js b/src/model/StoreLogoCreatedEvent.js new file mode 100644 index 00000000..4deb34bf --- /dev/null +++ b/src/model/StoreLogoCreatedEvent.js @@ -0,0 +1,129 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreLogoCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The StoreLogoCreatedEvent model module. + * @module model/StoreLogoCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StoreLogoCreatedEvent. + * Store logo created + * @alias module:model/StoreLogoCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * ID of store that the logo has been added to + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who added the logo + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreLogoDeletedEvent.js b/src/model/StoreLogoDeletedEvent.js new file mode 100644 index 00000000..b3c61ea3 --- /dev/null +++ b/src/model/StoreLogoDeletedEvent.js @@ -0,0 +1,129 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreLogoDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The StoreLogoDeletedEvent model module. + * @module model/StoreLogoDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StoreLogoDeletedEvent. + * Store logo deleted + * @alias module:model/StoreLogoDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * ID of store that the logo has been added to + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who removed the logo + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreLogoUpdatedEvent.js b/src/model/StoreLogoUpdatedEvent.js new file mode 100644 index 00000000..92400c29 --- /dev/null +++ b/src/model/StoreLogoUpdatedEvent.js @@ -0,0 +1,129 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreLogoUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The StoreLogoUpdatedEvent model module. + * @module model/StoreLogoUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StoreLogoUpdatedEvent. + * Store logo updated + * @alias module:model/StoreLogoUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * ID of store that the logo has been added to + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who updated the logo + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreMenuAssignedEvent.js b/src/model/StoreMenuAssignedEvent.js new file mode 100644 index 00000000..db689e74 --- /dev/null +++ b/src/model/StoreMenuAssignedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreMenuAssignedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The StoreMenuAssignedEvent model module. + * @module model/StoreMenuAssignedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StoreMenuAssignedEvent. + * Menu Assigned To Store Event + * @alias module:model/StoreMenuAssignedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * MenuId Id + * @member {Number} MenuId + */ + exports.prototype.MenuId = undefined; + + /** + * User who assigned the menu to the store + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreNote.js b/src/model/StoreNote.js index 7d7f287c..2978b46c 100644 --- a/src/model/StoreNote.js +++ b/src/model/StoreNote.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The StoreNote model module. * @module model/StoreNote @@ -46,11 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - }; /** @@ -63,16 +55,12 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'); - } + 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; } @@ -81,21 +69,21 @@ * User identifier * @member {Number} UserId */ - exports.prototype['UserId'] = undefined; + exports.prototype.UserId = undefined; + /** * Create time * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Note * @member {String} Note */ - exports.prototype['Note'] = undefined; - + exports.prototype.Note = undefined; return exports; -})); - +})); diff --git a/src/model/StoreOpeningHoursUpdatedEvent.js b/src/model/StoreOpeningHoursUpdatedEvent.js index 795fd1dd..051bb846 100644 --- a/src/model/StoreOpeningHoursUpdatedEvent.js +++ b/src/model/StoreOpeningHoursUpdatedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,23 +16,20 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/UserEventInfo'], factory); + define(['ApiClient', 'model/BusinessHoursPeriod', 'model/UserEventInfo'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + module.exports = factory(require('../ApiClient'), require('./BusinessHoursPeriod'), require('./UserEventInfo')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.StoreOpeningHoursUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + root.Flipdish.StoreOpeningHoursUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.BusinessHoursPeriod, root.Flipdish.UserEventInfo); } -}(this, function(ApiClient, UserEventInfo) { +}(this, function(ApiClient, BusinessHoursPeriod, UserEventInfo) { 'use strict'; - - - /** * The StoreOpeningHoursUpdatedEvent model module. * @module model/StoreOpeningHoursUpdatedEvent @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,30 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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('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('DeliveryType')) + obj.DeliveryType = ApiClient.convertToType(data['DeliveryType'], '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'); } return obj; } @@ -97,41 +87,95 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Store Id * @member {Number} StoreId */ - exports.prototype['StoreId'] = undefined; + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + /** - * Info User + * User which updated opening hours for this store * @member {module:model/UserEventInfo} User */ - exports.prototype['User'] = undefined; + exports.prototype.User = undefined; + + /** + * Type of opening hours Delivery / Pickup + * @member {module:model/StoreOpeningHoursUpdatedEvent.DeliveryTypeEnum} DeliveryType + */ + exports.prototype.DeliveryType = undefined; + + /** + * The period that was updated + * @member {module:model/BusinessHoursPeriod} BusinessHoursPeriodOld + */ + exports.prototype.BusinessHoursPeriodOld = undefined; + + /** + * The new values of the period + * @member {module:model/BusinessHoursPeriod} BusinessHoursPeriod + */ + exports.prototype.BusinessHoursPeriod = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; - return exports; -})); + /** + * Allowed values for the DeliveryType property. + * @enum {String} + * @readonly + */ + exports.DeliveryTypeEnum = { + /** + * value: "Delivery" + * @const + */ + Delivery: "Delivery", + + /** + * value: "Pickup" + * @const + */ + Pickup: "Pickup" + }; + + return exports; +})); diff --git a/src/model/StoreOrderCapacityConfig.js b/src/model/StoreOrderCapacityConfig.js new file mode 100644 index 00000000..1c55e8a0 --- /dev/null +++ b/src/model/StoreOrderCapacityConfig.js @@ -0,0 +1,117 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreOrderCapacityPeriod'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreOrderCapacityPeriod')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreOrderCapacityConfig = factory(root.Flipdish.ApiClient, root.Flipdish.StoreOrderCapacityPeriod); + } +}(this, function(ApiClient, StoreOrderCapacityPeriod) { + 'use strict'; + + /** + * The StoreOrderCapacityConfig model module. + * @module model/StoreOrderCapacityConfig + * @version 1.0.0 + */ + + /** + * Constructs a new StoreOrderCapacityConfig. + * Represents one store's order capacity configuration + * @alias module:model/StoreOrderCapacityConfig + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.StoreId = undefined; + + /** + * Signifies whether the order capacity configuration is for Delivery / Pickup + * @member {module:model/StoreOrderCapacityConfig.DeliveryTypeEnum} DeliveryType + */ + exports.prototype.DeliveryType = undefined; + + /** + * Store Interval - time between orders, e.g. 10 minutes between each order time available to customer + * @member {Number} StoreIntervalInMinutes + */ + exports.prototype.StoreIntervalInMinutes = undefined; + + /** + * Order capacity periods + * @member {Array.} OrderCapacityPeriods + */ + exports.prototype.OrderCapacityPeriods = undefined; + + + + /** + * Allowed values for the DeliveryType property. + * @enum {String} + * @readonly + */ + exports.DeliveryTypeEnum = { + /** + * value: "Delivery" + * @const + */ + Delivery: "Delivery", + + /** + * value: "Pickup" + * @const + */ + Pickup: "Pickup" + }; + + return exports; + +})); diff --git a/src/model/StoreOrderCapacityConfigEditModel.js b/src/model/StoreOrderCapacityConfigEditModel.js new file mode 100644 index 00000000..044ea583 --- /dev/null +++ b/src/model/StoreOrderCapacityConfigEditModel.js @@ -0,0 +1,73 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreOrderCapacityPeriod'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreOrderCapacityPeriod')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreOrderCapacityConfigEditModel = factory(root.Flipdish.ApiClient, root.Flipdish.StoreOrderCapacityPeriod); + } +}(this, function(ApiClient, StoreOrderCapacityPeriod) { + 'use strict'; + + /** + * The StoreOrderCapacityConfigEditModel model module. + * @module model/StoreOrderCapacityConfigEditModel + * @version 1.0.0 + */ + + /** + * Constructs a new StoreOrderCapacityConfigEditModel. + * Represents one store's order capacity configuration edit + * @alias module:model/StoreOrderCapacityConfigEditModel + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('OrderCapacityPeriods')) + obj.OrderCapacityPeriods = ApiClient.convertToType(data['OrderCapacityPeriods'], [StoreOrderCapacityPeriod]); + } + return obj; + } + + /** + * Order capacity periods + * @member {Array.} OrderCapacityPeriods + */ + exports.prototype.OrderCapacityPeriods = undefined; + + + return exports; + +})); diff --git a/src/model/StoreOrderCapacityPeriod.js b/src/model/StoreOrderCapacityPeriod.js new file mode 100644 index 00000000..18367335 --- /dev/null +++ b/src/model/StoreOrderCapacityPeriod.js @@ -0,0 +1,163 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreOrderCapacityPeriod = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StoreOrderCapacityPeriod model module. + * @module model/StoreOrderCapacityPeriod + * @version 1.0.0 + */ + + /** + * Constructs a new StoreOrderCapacityPeriod. + * Represents a single order capacity period + * @alias module:model/StoreOrderCapacityPeriod + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.MaxOrderNumberPerStoreInterval = undefined; + + /** + * Day of the week the period pertains to + * @member {module:model/StoreOrderCapacityPeriod.DayOfTheWeekEnum} DayOfTheWeek + */ + exports.prototype.DayOfTheWeek = undefined; + + /** + * The hour the period starts at + * @member {Number} PeriodStartHour + */ + exports.prototype.PeriodStartHour = undefined; + + /** + * The minutes after the hour the period starts at + * @member {Number} PeriodStartMinutes + */ + exports.prototype.PeriodStartMinutes = undefined; + + /** + * The hour the period ends at + * @member {Number} PeriodEndHour + */ + exports.prototype.PeriodEndHour = undefined; + + /** + * The minutes after the hour the period ends at + * @member {Number} PeriodEndMinutes + */ + exports.prototype.PeriodEndMinutes = undefined; + + + + /** + * Allowed values for the DayOfTheWeek property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/StorePreOrderConfigUpdatedEvent.js b/src/model/StorePreOrderConfigUpdatedEvent.js new file mode 100644 index 00000000..519d2778 --- /dev/null +++ b/src/model/StorePreOrderConfigUpdatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/PreOrderConfig', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./PreOrderConfig'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StorePreOrderConfigUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.PreOrderConfig, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, PreOrderConfig, UserEventInfo) { + 'use strict'; + + /** + * The StorePreOrderConfigUpdatedEvent model module. + * @module model/StorePreOrderConfigUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StorePreOrderConfigUpdatedEvent. + * Store Pre order config updated + * @alias module:model/StorePreOrderConfigUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * User which deleted delivery zone for this store + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Pre Order Configuration + * @member {module:model/PreOrderConfig} PreOrderConfig + */ + exports.prototype.PreOrderConfig = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StorePublishedEvent.js b/src/model/StorePublishedEvent.js new file mode 100644 index 00000000..2aee92e3 --- /dev/null +++ b/src/model/StorePublishedEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Store', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Store'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StorePublishedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Store, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, Store, UserEventInfo) { + 'use strict'; + + /** + * The StorePublishedEvent model module. + * @module model/StorePublishedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StorePublishedEvent. + * Store Published Event + * @alias module:model/StorePublishedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which published this store + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Published Store + * @member {module:model/Store} Store + */ + exports.prototype.Store = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreStatistics.js b/src/model/StoreStatistics.js new file mode 100644 index 00000000..f2f5e4c7 --- /dev/null +++ b/src/model/StoreStatistics.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StoreDataPoint'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StoreDataPoint')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreStatistics = factory(root.Flipdish.ApiClient, root.Flipdish.StoreDataPoint); + } +}(this, function(ApiClient, StoreDataPoint) { + 'use strict'; + + /** + * The StoreStatistics model module. + * @module model/StoreStatistics + * @version 1.0.0 + */ + + /** + * Constructs a new StoreStatistics. + * Store statistics + * @alias module:model/StoreStatistics + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.StoreId = undefined; + + /** + * Store Data Points + * @member {Array.} Data + */ + exports.prototype.Data = undefined; + + + return exports; + +})); diff --git a/src/model/StoreSummary.js b/src/model/StoreSummary.js index ac356ff7..dd2bd877 100644 --- a/src/model/StoreSummary.js +++ b/src/model/StoreSummary.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,23 +16,20 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient'], factory); + define(['ApiClient', 'model/Coordinates'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); + module.exports = factory(require('../ApiClient'), require('./Coordinates')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.StoreSummary = factory(root.Flipdish.ApiClient); + root.Flipdish.StoreSummary = factory(root.Flipdish.ApiClient, root.Flipdish.Coordinates); } -}(this, function(ApiClient) { +}(this, function(ApiClient, Coordinates) { 'use strict'; - - - /** * The StoreSummary model module. * @module model/StoreSummary @@ -46,13 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - }; /** @@ -65,22 +55,22 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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('StoreGroupId')) + obj.StoreGroupId = ApiClient.convertToType(data['StoreGroupId'], 'Number'); } return obj; } @@ -89,27 +79,50 @@ * Store identifier * @member {Number} Id */ - exports.prototype['Id'] = undefined; + exports.prototype.Id = undefined; + /** * Store name * @member {String} Name */ - exports.prototype['Name'] = undefined; + exports.prototype.Name = undefined; + /** * Stores menu identifier * @member {Number} MenuId */ - exports.prototype['MenuId'] = undefined; + exports.prototype.MenuId = undefined; + /** * Store metadata * @member {Object.} Metadata */ - exports.prototype['Metadata'] = undefined; + exports.prototype.Metadata = undefined; + /** * Currency which used by the Store * @member {module:model/StoreSummary.CurrencyEnum} Currency */ - exports.prototype['Currency'] = undefined; + exports.prototype.Currency = undefined; + + /** + * Latitude and longitude of the store + * @member {module:model/Coordinates} Coordinates + */ + exports.prototype.Coordinates = undefined; + + /** + * Timezone of store + * @member {String} StoreTimezone + */ + exports.prototype.StoreTimezone = undefined; + + /** + * Store group id of store + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + /** @@ -122,565 +135,681 @@ * value: "EUR" * @const */ - "EUR": "EUR", + EUR: "EUR", + /** * value: "USD" * @const */ - "USD": "USD", + USD: "USD", + /** * value: "GBP" * @const */ - "GBP": "GBP", + GBP: "GBP", + /** * value: "CAD" * @const */ - "CAD": "CAD", + CAD: "CAD", + /** * value: "AUD" * @const */ - "AUD": "AUD", + AUD: "AUD", + /** * value: "DJF" * @const */ - "DJF": "DJF", + DJF: "DJF", + /** * value: "ZAR" * @const */ - "ZAR": "ZAR", + ZAR: "ZAR", + /** * value: "ETB" * @const */ - "ETB": "ETB", + ETB: "ETB", + /** * value: "AED" * @const */ - "AED": "AED", + AED: "AED", + /** * value: "BHD" * @const */ - "BHD": "BHD", + BHD: "BHD", + /** * value: "DZD" * @const */ - "DZD": "DZD", + DZD: "DZD", + /** * value: "EGP" * @const */ - "EGP": "EGP", + EGP: "EGP", + /** * value: "IQD" * @const */ - "IQD": "IQD", + IQD: "IQD", + /** * value: "JOD" * @const */ - "JOD": "JOD", + JOD: "JOD", + /** * value: "KWD" * @const */ - "KWD": "KWD", + KWD: "KWD", + /** * value: "LBP" * @const */ - "LBP": "LBP", + LBP: "LBP", + /** * value: "LYD" * @const */ - "LYD": "LYD", + LYD: "LYD", + /** * value: "MAD" * @const */ - "MAD": "MAD", + MAD: "MAD", + /** * value: "OMR" * @const */ - "OMR": "OMR", + OMR: "OMR", + /** * value: "QAR" * @const */ - "QAR": "QAR", + QAR: "QAR", + /** * value: "SAR" * @const */ - "SAR": "SAR", + SAR: "SAR", + /** * value: "SYP" * @const */ - "SYP": "SYP", + SYP: "SYP", + /** * value: "TND" * @const */ - "TND": "TND", + TND: "TND", + /** * value: "YER" * @const */ - "YER": "YER", + YER: "YER", + /** * value: "CLP" * @const */ - "CLP": "CLP", + CLP: "CLP", + /** * value: "INR" * @const */ - "INR": "INR", + INR: "INR", + /** * value: "AZN" * @const */ - "AZN": "AZN", + AZN: "AZN", + /** * value: "RUB" * @const */ - "RUB": "RUB", + RUB: "RUB", + /** * value: "BYN" * @const */ - "BYN": "BYN", + BYN: "BYN", + /** * value: "BGN" * @const */ - "BGN": "BGN", + BGN: "BGN", + /** * value: "NGN" * @const */ - "NGN": "NGN", + NGN: "NGN", + /** * value: "BDT" * @const */ - "BDT": "BDT", + BDT: "BDT", + /** * value: "CNY" * @const */ - "CNY": "CNY", + CNY: "CNY", + /** * value: "BAM" * @const */ - "BAM": "BAM", + BAM: "BAM", + /** * value: "CZK" * @const */ - "CZK": "CZK", + CZK: "CZK", + /** * value: "DKK" * @const */ - "DKK": "DKK", + DKK: "DKK", + /** * value: "CHF" * @const */ - "CHF": "CHF", + CHF: "CHF", + /** * value: "MVR" * @const */ - "MVR": "MVR", + MVR: "MVR", + /** * value: "BTN" * @const */ - "BTN": "BTN", + BTN: "BTN", + /** * value: "XCD" * @const */ - "XCD": "XCD", + XCD: "XCD", + /** * value: "BZD" * @const */ - "BZD": "BZD", + BZD: "BZD", + /** * value: "HKD" * @const */ - "HKD": "HKD", + HKD: "HKD", + /** * value: "IDR" * @const */ - "IDR": "IDR", + IDR: "IDR", + /** * value: "JMD" * @const */ - "JMD": "JMD", + JMD: "JMD", + /** * value: "MYR" * @const */ - "MYR": "MYR", + MYR: "MYR", + /** * value: "NZD" * @const */ - "NZD": "NZD", + NZD: "NZD", + /** * value: "PHP" * @const */ - "PHP": "PHP", + PHP: "PHP", + /** * value: "SGD" * @const */ - "SGD": "SGD", + SGD: "SGD", + /** * value: "TTD" * @const */ - "TTD": "TTD", + TTD: "TTD", + /** * value: "XDR" * @const */ - "XDR": "XDR", + XDR: "XDR", + /** * value: "ARS" * @const */ - "ARS": "ARS", + ARS: "ARS", + /** * value: "BOB" * @const */ - "BOB": "BOB", + BOB: "BOB", + /** * value: "COP" * @const */ - "COP": "COP", + COP: "COP", + /** * value: "CRC" * @const */ - "CRC": "CRC", + CRC: "CRC", + /** * value: "CUP" * @const */ - "CUP": "CUP", + CUP: "CUP", + /** * value: "DOP" * @const */ - "DOP": "DOP", + DOP: "DOP", + /** * value: "GTQ" * @const */ - "GTQ": "GTQ", + GTQ: "GTQ", + /** * value: "HNL" * @const */ - "HNL": "HNL", + HNL: "HNL", + /** * value: "MXN" * @const */ - "MXN": "MXN", + MXN: "MXN", + /** * value: "NIO" * @const */ - "NIO": "NIO", + NIO: "NIO", + /** * value: "PAB" * @const */ - "PAB": "PAB", + PAB: "PAB", + /** * value: "PEN" * @const */ - "PEN": "PEN", + PEN: "PEN", + /** * value: "PYG" * @const */ - "PYG": "PYG", + PYG: "PYG", + /** * value: "UYU" * @const */ - "UYU": "UYU", + UYU: "UYU", + /** * value: "VEF" * @const */ - "VEF": "VEF", + VEF: "VEF", + /** * value: "IRR" * @const */ - "IRR": "IRR", + IRR: "IRR", + /** * value: "XOF" * @const */ - "XOF": "XOF", + XOF: "XOF", + /** * value: "CDF" * @const */ - "CDF": "CDF", + CDF: "CDF", + /** * value: "XAF" * @const */ - "XAF": "XAF", + XAF: "XAF", + /** * value: "HTG" * @const */ - "HTG": "HTG", + HTG: "HTG", + /** * value: "ILS" * @const */ - "ILS": "ILS", + ILS: "ILS", + /** * value: "HRK" * @const */ - "HRK": "HRK", + HRK: "HRK", + /** * value: "HUF" * @const */ - "HUF": "HUF", + HUF: "HUF", + /** * value: "AMD" * @const */ - "AMD": "AMD", + AMD: "AMD", + /** * value: "ISK" * @const */ - "ISK": "ISK", + ISK: "ISK", + /** * value: "JPY" * @const */ - "JPY": "JPY", + JPY: "JPY", + /** * value: "GEL" * @const */ - "GEL": "GEL", + GEL: "GEL", + /** * value: "KZT" * @const */ - "KZT": "KZT", + KZT: "KZT", + /** * value: "KHR" * @const */ - "KHR": "KHR", + KHR: "KHR", + /** * value: "KRW" * @const */ - "KRW": "KRW", + KRW: "KRW", + /** * value: "KGS" * @const */ - "KGS": "KGS", + KGS: "KGS", + /** * value: "LAK" * @const */ - "LAK": "LAK", + LAK: "LAK", + /** * value: "MKD" * @const */ - "MKD": "MKD", + MKD: "MKD", + /** * value: "MNT" * @const */ - "MNT": "MNT", + MNT: "MNT", + /** * value: "BND" * @const */ - "BND": "BND", + BND: "BND", + /** * value: "MMK" * @const */ - "MMK": "MMK", + MMK: "MMK", + /** * value: "NOK" * @const */ - "NOK": "NOK", + NOK: "NOK", + /** * value: "NPR" * @const */ - "NPR": "NPR", + NPR: "NPR", + /** * value: "PKR" * @const */ - "PKR": "PKR", + PKR: "PKR", + /** * value: "PLN" * @const */ - "PLN": "PLN", + PLN: "PLN", + /** * value: "AFN" * @const */ - "AFN": "AFN", + AFN: "AFN", + /** * value: "BRL" * @const */ - "BRL": "BRL", + BRL: "BRL", + /** * value: "MDL" * @const */ - "MDL": "MDL", + MDL: "MDL", + /** * value: "RON" * @const */ - "RON": "RON", + RON: "RON", + /** * value: "RWF" * @const */ - "RWF": "RWF", + RWF: "RWF", + /** * value: "SEK" * @const */ - "SEK": "SEK", + SEK: "SEK", + /** * value: "LKR" * @const */ - "LKR": "LKR", + LKR: "LKR", + /** * value: "SOS" * @const */ - "SOS": "SOS", + SOS: "SOS", + /** * value: "ALL" * @const */ - "ALL": "ALL", + ALL: "ALL", + /** * value: "RSD" * @const */ - "RSD": "RSD", + RSD: "RSD", + /** * value: "KES" * @const */ - "KES": "KES", + KES: "KES", + /** * value: "TJS" * @const */ - "TJS": "TJS", + TJS: "TJS", + /** * value: "THB" * @const */ - "THB": "THB", + THB: "THB", + /** * value: "ERN" * @const */ - "ERN": "ERN", + ERN: "ERN", + /** * value: "TMT" * @const */ - "TMT": "TMT", + TMT: "TMT", + /** * value: "BWP" * @const */ - "BWP": "BWP", + BWP: "BWP", + /** * value: "TRY" * @const */ - "TRY": "TRY", + TRY: "TRY", + /** * value: "UAH" * @const */ - "UAH": "UAH", + UAH: "UAH", + /** * value: "UZS" * @const */ - "UZS": "UZS", + UZS: "UZS", + /** * value: "VND" * @const */ - "VND": "VND", + VND: "VND", + /** * value: "MOP" * @const */ - "MOP": "MOP", + MOP: "MOP", + /** * value: "TWD" * @const */ - "TWD": "TWD" }; + TWD: "TWD", + /** + * value: "BMD" + * @const + */ + BMD: "BMD" + }; return exports; -})); - +})); diff --git a/src/model/StoreUnarchivedEvent.js b/src/model/StoreUnarchivedEvent.js new file mode 100644 index 00000000..9f205dfc --- /dev/null +++ b/src/model/StoreUnarchivedEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Store', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Store'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreUnarchivedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Store, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, Store, UserEventInfo) { + 'use strict'; + + /** + * The StoreUnarchivedEvent model module. + * @module model/StoreUnarchivedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StoreUnarchivedEvent. + * Store Unarchived Event + * @alias module:model/StoreUnarchivedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which unarchived this store + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Unarchived Store + * @member {module:model/Store} Store + */ + exports.prototype.Store = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreUnpublishedEvent.js b/src/model/StoreUnpublishedEvent.js new file mode 100644 index 00000000..1baafc4f --- /dev/null +++ b/src/model/StoreUnpublishedEvent.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Store', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Store'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StoreUnpublishedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Store, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, Store, UserEventInfo) { + 'use strict'; + + /** + * The StoreUnpublishedEvent model module. + * @module model/StoreUnpublishedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new StoreUnpublishedEvent. + * Store Unpublished Event + * @alias module:model/StoreUnpublishedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Store Id + * @member {Number} StoreId + */ + exports.prototype.StoreId = undefined; + + /** + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which unpublished this store + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Unpublished Store + * @member {module:model/Store} Store + */ + exports.prototype.Store = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/StoreUpdatedEvent.js b/src/model/StoreUpdatedEvent.js index f842bd8c..6cd41fa4 100644 --- a/src/model/StoreUpdatedEvent.js +++ b/src/model/StoreUpdatedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,23 +16,20 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/UserEventInfo'], factory); + define(['ApiClient', 'model/Store', 'model/UserEventInfo'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + module.exports = factory(require('../ApiClient'), require('./Store'), require('./UserEventInfo')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.StoreUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + root.Flipdish.StoreUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Store, root.Flipdish.UserEventInfo); } -}(this, function(ApiClient, UserEventInfo) { +}(this, function(ApiClient, Store, UserEventInfo) { 'use strict'; - - - /** * The StoreUpdatedEvent model module. * @module model/StoreUpdatedEvent @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,26 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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('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'); } return obj; } @@ -97,41 +83,63 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Store Id * @member {Number} StoreId */ - exports.prototype['StoreId'] = undefined; + exports.prototype.StoreId = undefined; + /** - * Info User + * Store group Id + * @member {Number} StoreGroupId + */ + exports.prototype.StoreGroupId = undefined; + + /** + * User which updated this store * @member {module:model/UserEventInfo} User */ - exports.prototype['User'] = undefined; + exports.prototype.User = undefined; + /** * Description * @member {String} Description */ - exports.prototype['Description'] = undefined; + exports.prototype.Description = undefined; + + /** + * Updated Store + * @member {module:model/Store} Store + */ + exports.prototype.Store = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/StripeAccountLinkRequest.js b/src/model/StripeAccountLinkRequest.js new file mode 100644 index 00000000..a896be69 --- /dev/null +++ b/src/model/StripeAccountLinkRequest.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StripeAccountLinkRequest = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StripeAccountLinkRequest model module. + * @module model/StripeAccountLinkRequest + * @version 1.0.0 + */ + + /** + * Constructs a new StripeAccountLinkRequest. + * Represents a request for Stripe account link creation + * @alias module:model/StripeAccountLinkRequest + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.StripeId = undefined; + + /** + * URL to be hit if link creation succeeds + * @member {String} ReturnUrl + */ + exports.prototype.ReturnUrl = undefined; + + /** + * Which information to collect from users at this stage + * @member {module:model/StripeAccountLinkRequest.CollectEnum} Collect + */ + exports.prototype.Collect = undefined; + + /** + * Either onboarding or edit user information + * @member {module:model/StripeAccountLinkRequest.TypeEnum} Type + */ + exports.prototype.Type = undefined; + + + + /** + * Allowed values for the Collect property. + * @enum {String} + * @readonly + */ + exports.CollectEnum = { + /** + * value: "CurrentlyDue" + * @const + */ + CurrentlyDue: "CurrentlyDue", + + /** + * value: "EventuallyDue" + * @const + */ + EventuallyDue: "EventuallyDue" + }; + + + /** + * Allowed values for the Type property. + * @enum {String} + * @readonly + */ + exports.TypeEnum = { + /** + * value: "Onboarding" + * @const + */ + Onboarding: "Onboarding", + + /** + * value: "Update" + * @const + */ + Update: "Update" + }; + + return exports; + +})); diff --git a/src/model/StripeConnectedAccount.js b/src/model/StripeConnectedAccount.js new file mode 100644 index 00000000..dcbeaf14 --- /dev/null +++ b/src/model/StripeConnectedAccount.js @@ -0,0 +1,227 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StripeConnectedAccount = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StripeConnectedAccount model module. + * @module model/StripeConnectedAccount + * @version 1.0.0 + */ + + /** + * Constructs a new StripeConnectedAccount. + * Represents a Stripe custom connected account + * @alias module:model/StripeConnectedAccount + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Flipdish connected account identifier + * @member {Number} FlipdishConnectedAccountId + */ + exports.prototype.FlipdishConnectedAccountId = undefined; + + /** + * Stripe's own connected account identifier + * @member {String} StripeId + */ + exports.prototype.StripeId = undefined; + + /** + * Id of the WhitelabelConfig the connected account is assigned to + * @member {Number} WhitelabelConfigId + */ + exports.prototype.WhitelabelConfigId = undefined; + + /** + * Card payments capability status (Inactive, Pending, Active, Unrequested) + * @member {module:model/StripeConnectedAccount.CardPaymentsStatusEnum} CardPaymentsStatus + */ + exports.prototype.CardPaymentsStatus = undefined; + + /** + * Transfers capability status (Inactive, Pending, Active, Unrequested) + * @member {module:model/StripeConnectedAccount.TransfersStatusEnum} TransfersStatus + */ + exports.prototype.TransfersStatus = undefined; + + /** + * Current status of the account + * @member {module:model/StripeConnectedAccount.AccountStatusEnum} AccountStatus + */ + exports.prototype.AccountStatus = undefined; + + + + /** + * Allowed values for the CardPaymentsStatus property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.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 + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/StripeConnectedAccountInfo.js b/src/model/StripeConnectedAccountInfo.js new file mode 100644 index 00000000..5833164c --- /dev/null +++ b/src/model/StripeConnectedAccountInfo.js @@ -0,0 +1,171 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StripeConnectedAccountInfo = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StripeConnectedAccountInfo model module. + * @module model/StripeConnectedAccountInfo + * @version 1.0.0 + */ + + /** + * Constructs a new StripeConnectedAccountInfo. + * Represents information about a Stripe connected account associated with a bank account + * @alias module:model/StripeConnectedAccountInfo + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Stripe connected account status + * @member {module:model/StripeConnectedAccountInfo.AccountStatusEnum} AccountStatus + */ + exports.prototype.AccountStatus = undefined; + + /** + * Stripe connected account id + * @member {String} StripeId + */ + exports.prototype.StripeId = undefined; + + /** + * Current status of the Card Payment capability of the account + * @member {module:model/StripeConnectedAccountInfo.CardPaymentStatusEnum} CardPaymentStatus + */ + exports.prototype.CardPaymentStatus = undefined; + + + + /** + * Allowed values for the AccountStatus property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + + /** + * Allowed values for the CardPaymentStatus property. + * @enum {String} + * @readonly + */ + exports.CardPaymentStatusEnum = { + /** + * value: "Inactive" + * @const + */ + Inactive: "Inactive", + + /** + * value: "Pending" + * @const + */ + Pending: "Pending", + + /** + * value: "Active" + * @const + */ + Active: "Active", + + /** + * value: "Unrequested" + * @const + */ + Unrequested: "Unrequested" + }; + + return exports; + +})); diff --git a/src/model/StripeTerminalPrivateKey.js b/src/model/StripeTerminalPrivateKey.js new file mode 100644 index 00000000..565cbcc1 --- /dev/null +++ b/src/model/StripeTerminalPrivateKey.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StripeTerminalPrivateKey = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StripeTerminalPrivateKey model module. + * @module model/StripeTerminalPrivateKey + * @version 1.0.0 + */ + + /** + * Constructs a new StripeTerminalPrivateKey. + * Stripe Terminal Private Key + * @alias module:model/StripeTerminalPrivateKey + * @class + */ + var exports = function() { + }; + + /** + * Constructs a StripeTerminalPrivateKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StripeTerminalPrivateKey} obj Optional instance to populate. + * @return {module:model/StripeTerminalPrivateKey} The populated StripeTerminalPrivateKey instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Location')) + obj.Location = ApiClient.convertToType(data['Location'], 'String'); + if (data.hasOwnProperty('Secret')) + obj.Secret = ApiClient.convertToType(data['Secret'], 'String'); + } + return obj; + } + + /** + * Registered location of the terminal + * @member {String} Location + */ + exports.prototype.Location = undefined; + + /** + * Secret used to pass to stripe to attach terminal + * @member {String} Secret + */ + exports.prototype.Secret = undefined; + + + return exports; + +})); diff --git a/src/model/StuartSettings.js b/src/model/StuartSettings.js new file mode 100644 index 00000000..dc4a6066 --- /dev/null +++ b/src/model/StuartSettings.js @@ -0,0 +1,224 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/StuartSettingsTransportPrices'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./StuartSettingsTransportPrices')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StuartSettings = factory(root.Flipdish.ApiClient, root.Flipdish.StuartSettingsTransportPrices); + } +}(this, function(ApiClient, StuartSettingsTransportPrices) { + 'use strict'; + + /** + * The StuartSettings model module. + * @module model/StuartSettings + * @version 1.0.0 + */ + + /** + * Constructs a new StuartSettings. + * Stuart settings + * @alias module:model/StuartSettings + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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 + */ + exports.prototype.ClientId = undefined; + + /** + * Client Secret + * @member {String} ClientSecret + */ + exports.prototype.ClientSecret = undefined; + + /** + * Enabled + * @member {Boolean} Enabled + */ + exports.prototype.Enabled = undefined; + + /** + * Webhook url to settle in the Stuart portal + * @member {String} WebhookUrlBasicAuthentication + */ + exports.prototype.WebhookUrlBasicAuthentication = undefined; + + /** + * MinutesToPickupBeforeThanDeliveryTime + * @member {Number} MinutesToPickupBeforeThanDeliveryTime + */ + exports.prototype.MinutesToPickupBeforeThanDeliveryTime = undefined; + + /** + * Package type + * @member {module:model/StuartSettings.PackageTypeEnum} PackageType + */ + exports.prototype.PackageType = undefined; + + /** + * Transport type + * @member {module:model/StuartSettings.TransportTypeEnum} TransportType + */ + exports.prototype.TransportType = undefined; + + /** + * Determines if Flipdish order should be cancel when Stuart cancels delivery + * @member {Boolean} CancelOrderIfStuartCancelDelivery + */ + exports.prototype.CancelOrderIfStuartCancelDelivery = undefined; + + /** + * @member {module:model/StuartSettingsTransportPrices} TransportPrices + */ + exports.prototype.TransportPrices = undefined; + + + + /** + * Allowed values for the PackageType property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/StuartSettingsTransportPrices.js b/src/model/StuartSettingsTransportPrices.js new file mode 100644 index 00000000..49561253 --- /dev/null +++ b/src/model/StuartSettingsTransportPrices.js @@ -0,0 +1,114 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.StuartSettingsTransportPrices = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The StuartSettingsTransportPrices model module. + * @module model/StuartSettingsTransportPrices + * @version 1.0.0 + */ + + /** + * Constructs a new StuartSettingsTransportPrices. + * If the order exceeds are certain amount this configuration will determine a new vehicle type + * @alias module:model/StuartSettingsTransportPrices + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Bike = undefined; + + /** + * @member {Number} Cargobike + */ + exports.prototype.Cargobike = undefined; + + /** + * @member {Number} Cargobikexl + */ + exports.prototype.Cargobikexl = undefined; + + /** + * @member {Number} Motorbike + */ + exports.prototype.Motorbike = undefined; + + /** + * @member {Number} Motorbikexl + */ + exports.prototype.Motorbikexl = undefined; + + /** + * @member {Number} Car + */ + exports.prototype.Car = undefined; + + /** + * @member {Number} Van + */ + exports.prototype.Van = undefined; + + + return exports; + +})); diff --git a/src/model/SupportedCountry.js b/src/model/SupportedCountry.js new file mode 100644 index 00000000..e501064c --- /dev/null +++ b/src/model/SupportedCountry.js @@ -0,0 +1,223 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.SupportedCountry = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The SupportedCountry model module. + * @module model/SupportedCountry + * @version 1.0.0 + */ + + /** + * Constructs a new SupportedCountry. + * Describes a supported country + * @alias module:model/SupportedCountry + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.CountryCode = undefined; + + /** + * Nice display name for a country + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Country internatinoal phone code prefix + * @member {Number} PhoneCode + */ + exports.prototype.PhoneCode = undefined; + + /** + * Language code + * @member {String} LanguageCode + */ + exports.prototype.LanguageCode = undefined; + + /** + * Language name + * @member {String} LanguageName + */ + exports.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 + */ + exports.prototype.OtpNumber = undefined; + + /** + * The store's support phone number, displayed to customers. + * @member {String} SupportNumber + */ + exports.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 + */ + exports.prototype.AddressLayout = undefined; + + /** + * Post code type + * @member {module:model/SupportedCountry.PostCodeTypeEnum} PostCodeType + */ + exports.prototype.PostCodeType = undefined; + + /** + * Supported region. This is not used. + * @member {module:model/SupportedCountry.SupportRegionEnum} SupportRegion + */ + exports.prototype.SupportRegion = undefined; + + + + /** + * Allowed values for the AddressLayout property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.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 + */ + exports.SupportRegionEnum = { + /** + * value: "Default" + * @const + */ + _Default: "Default", + + /** + * value: "Spain" + * @const + */ + Spain: "Spain", + + /** + * value: "Benelux" + * @const + */ + Benelux: "Benelux" + }; + + return exports; + +})); diff --git a/src/model/Teammate.js b/src/model/Teammate.js new file mode 100644 index 00000000..c3437b1f --- /dev/null +++ b/src/model/Teammate.js @@ -0,0 +1,219 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.Teammate = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The Teammate model module. + * @module model/Teammate + * @version 1.0.0 + */ + + /** + * Constructs a new Teammate. + * + * @alias module:model/Teammate + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('TeammateId')) + obj.TeammateId = ApiClient.convertToType(data['TeammateId'], 'String'); + 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']); + } + return obj; + } + + /** + * Unique indentifier + * @member {String} TeammateId + */ + exports.prototype.TeammateId = undefined; + + /** + * Name + * @member {String} Name + */ + exports.prototype.Name = undefined; + + /** + * Last activity + * @member {Date} LastActivity + */ + exports.prototype.LastActivity = undefined; + + /** + * Access level is for this App + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + /** + * Invitation status + * @member {module:model/Teammate.InvitationStatusEnum} InvitationStatus + */ + exports.prototype.InvitationStatus = undefined; + + /** + * Email address + * @member {String} Email + */ + exports.prototype.Email = undefined; + + /** + * App access level + * @member {module:model/Teammate.AppAccessLevelEnum} AppAccessLevel + */ + exports.prototype.AppAccessLevel = undefined; + + /** + * The user has access to all stores for the app (including new stores that added later) + * @member {Boolean} HasAccessToAllStores + */ + exports.prototype.HasAccessToAllStores = undefined; + + /** + * Store IDs the user has access to (if HasAccessToAllStores is false) + * @member {Array.} StoreIds + */ + exports.prototype.StoreIds = undefined; + + + + /** + * Allowed values for the InvitationStatus property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.AppAccessLevelEnum = { + /** + * value: "None" + * @const + */ + None: "None", + + /** + * value: "Owner" + * @const + */ + Owner: "Owner", + + /** + * value: "StoreOwner" + * @const + */ + StoreOwner: "StoreOwner", + + /** + * value: "ManagedOwner" + * @const + */ + ManagedOwner: "ManagedOwner", + + /** + * value: "StoreManager" + * @const + */ + StoreManager: "StoreManager", + + /** + * value: "StoreStaff" + * @const + */ + StoreStaff: "StoreStaff", + + /** + * value: "StoreReadOnlyAccess" + * @const + */ + StoreReadOnlyAccess: "StoreReadOnlyAccess", + + /** + * value: "FinanceManger" + * @const + */ + FinanceManger: "FinanceManger" + }; + + return exports; + +})); diff --git a/src/model/TeammateBase.js b/src/model/TeammateBase.js new file mode 100644 index 00000000..767140ad --- /dev/null +++ b/src/model/TeammateBase.js @@ -0,0 +1,145 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.TeammateBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The TeammateBase model module. + * @module model/TeammateBase + * @version 1.0.0 + */ + + /** + * Constructs a new TeammateBase. + * + * @alias module:model/TeammateBase + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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']); + } + return obj; + } + + /** + * App access level + * @member {module:model/TeammateBase.AppAccessLevelEnum} AppAccessLevel + */ + exports.prototype.AppAccessLevel = undefined; + + /** + * The user has access to all stores for the app (including new stores that added later) + * @member {Boolean} HasAccessToAllStores + */ + exports.prototype.HasAccessToAllStores = undefined; + + /** + * Store IDs the user has access to (if HasAccessToAllStores is false) + * @member {Array.} StoreIds + */ + exports.prototype.StoreIds = undefined; + + + + /** + * Allowed values for the AppAccessLevel property. + * @enum {String} + * @readonly + */ + exports.AppAccessLevelEnum = { + /** + * value: "None" + * @const + */ + None: "None", + + /** + * value: "Owner" + * @const + */ + Owner: "Owner", + + /** + * value: "StoreOwner" + * @const + */ + StoreOwner: "StoreOwner", + + /** + * value: "ManagedOwner" + * @const + */ + ManagedOwner: "ManagedOwner", + + /** + * value: "StoreManager" + * @const + */ + StoreManager: "StoreManager", + + /** + * value: "StoreStaff" + * @const + */ + StoreStaff: "StoreStaff", + + /** + * value: "StoreReadOnlyAccess" + * @const + */ + StoreReadOnlyAccess: "StoreReadOnlyAccess", + + /** + * value: "FinanceManger" + * @const + */ + FinanceManger: "FinanceManger" + }; + + return exports; + +})); diff --git a/src/model/TeammateDeletedEvent.js b/src/model/TeammateDeletedEvent.js new file mode 100644 index 00000000..53297581 --- /dev/null +++ b/src/model/TeammateDeletedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Teammate', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Teammate'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.TeammateDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Teammate, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, Teammate, UserEventInfo) { + 'use strict'; + + /** + * The TeammateDeletedEvent model module. + * @module model/TeammateDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new TeammateDeletedEvent. + * + * @alias module:model/TeammateDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The deleted teammate + * @member {module:model/Teammate} Teammate + */ + exports.prototype.Teammate = undefined; + + /** + * User who deleted the teammate + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/TeammateInviteAcceptedEvent.js b/src/model/TeammateInviteAcceptedEvent.js new file mode 100644 index 00000000..3b1d7473 --- /dev/null +++ b/src/model/TeammateInviteAcceptedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Teammate', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Teammate'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.TeammateInviteAcceptedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Teammate, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, Teammate, UserEventInfo) { + 'use strict'; + + /** + * The TeammateInviteAcceptedEvent model module. + * @module model/TeammateInviteAcceptedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new TeammateInviteAcceptedEvent. + * + * @alias module:model/TeammateInviteAcceptedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The deleted teammate + * @member {module:model/Teammate} Teammate + */ + exports.prototype.Teammate = undefined; + + /** + * User who accepted the invitation + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/TeammateInviteSentEvent.js b/src/model/TeammateInviteSentEvent.js new file mode 100644 index 00000000..1896b092 --- /dev/null +++ b/src/model/TeammateInviteSentEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Teammate', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Teammate'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.TeammateInviteSentEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Teammate, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, Teammate, UserEventInfo) { + 'use strict'; + + /** + * The TeammateInviteSentEvent model module. + * @module model/TeammateInviteSentEvent + * @version 1.0.0 + */ + + /** + * Constructs a new TeammateInviteSentEvent. + * + * @alias module:model/TeammateInviteSentEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The deleted teammate + * @member {module:model/Teammate} Teammate + */ + exports.prototype.Teammate = undefined; + + /** + * User who sent the invitation + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/TeammateUpdatedEvent.js b/src/model/TeammateUpdatedEvent.js new file mode 100644 index 00000000..42979c5a --- /dev/null +++ b/src/model/TeammateUpdatedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Teammate', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Teammate'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.TeammateUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.Teammate, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, Teammate, UserEventInfo) { + 'use strict'; + + /** + * The TeammateUpdatedEvent model module. + * @module model/TeammateUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new TeammateUpdatedEvent. + * + * @alias module:model/TeammateUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The deleted teammate + * @member {module:model/Teammate} Teammate + */ + exports.prototype.Teammate = undefined; + + /** + * User who updated the teammate + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/UpdateDriverNotificationToken.js b/src/model/UpdateDriverNotificationToken.js new file mode 100644 index 00000000..f3381168 --- /dev/null +++ b/src/model/UpdateDriverNotificationToken.js @@ -0,0 +1,75 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.UpdateDriverNotificationToken = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The UpdateDriverNotificationToken model module. + * @module model/UpdateDriverNotificationToken + * @version 1.0.0 + */ + + /** + * Constructs a new UpdateDriverNotificationToken. + * UpdateDriver Push Notification Token + * @alias module:model/UpdateDriverNotificationToken + * @class + * @param PushNotificationsToken {String} Push notifications token, cannot be null + */ + var exports = function(PushNotificationsToken) { + this.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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('PushNotificationsToken')) + obj.PushNotificationsToken = ApiClient.convertToType(data['PushNotificationsToken'], 'String'); + } + return obj; + } + + /** + * Push notifications token, cannot be null + * @member {String} PushNotificationsToken + */ + exports.prototype.PushNotificationsToken = undefined; + + + return exports; + +})); diff --git a/src/model/UpdateDriverProfileModel.js b/src/model/UpdateDriverProfileModel.js new file mode 100644 index 00000000..ac2bb78f --- /dev/null +++ b/src/model/UpdateDriverProfileModel.js @@ -0,0 +1,73 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.UpdateDriverProfileModel = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The UpdateDriverProfileModel model module. + * @module model/UpdateDriverProfileModel + * @version 1.0.0 + */ + + /** + * Constructs a new UpdateDriverProfileModel. + * Update Driver Profile + * @alias module:model/UpdateDriverProfileModel + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('Name')) + obj.Name = ApiClient.convertToType(data['Name'], 'String'); + } + return obj; + } + + /** + * The new name of the Driver. + * @member {String} Name + */ + exports.prototype.Name = undefined; + + + return exports; + +})); diff --git a/src/model/UserAnsweredSignupQuestionsEvent.js b/src/model/UserAnsweredSignupQuestionsEvent.js new file mode 100644 index 00000000..0b634cc6 --- /dev/null +++ b/src/model/UserAnsweredSignupQuestionsEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.UserAnsweredSignupQuestionsEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The UserAnsweredSignupQuestionsEvent model module. + * @module model/UserAnsweredSignupQuestionsEvent + * @version 1.0.0 + */ + + /** + * Constructs a new UserAnsweredSignupQuestionsEvent. + * User answered signup questions event + * @alias module:model/UserAnsweredSignupQuestionsEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The user + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The users answers + * @member {String} SignupAnswers + */ + exports.prototype.SignupAnswers = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/UserCreatedEvent.js b/src/model/UserCreatedEvent.js new file mode 100644 index 00000000..530d795d --- /dev/null +++ b/src/model/UserCreatedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.UserCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The UserCreatedEvent model module. + * @module model/UserCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new UserCreatedEvent. + * User created event + * @alias module:model/UserCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * The user + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/UserDeletedEvent.js b/src/model/UserDeletedEvent.js new file mode 100644 index 00000000..a0651401 --- /dev/null +++ b/src/model/UserDeletedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.UserDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The UserDeletedEvent model module. + * @module model/UserDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new UserDeletedEvent. + * User deleted event + * @alias module:model/UserDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * The user + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/UserEventInfo.js b/src/model/UserEventInfo.js index cb61012e..10fbdb77 100644 --- a/src/model/UserEventInfo.js +++ b/src/model/UserEventInfo.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The UserEventInfo model module. * @module model/UserEventInfo @@ -46,12 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - }; /** @@ -64,19 +55,14 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'); - } + 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; } @@ -85,26 +71,27 @@ * User Id * @member {Number} UserId */ - exports.prototype['UserId'] = undefined; + exports.prototype.UserId = undefined; + /** - * UserName + * User Name * @member {String} UserName */ - exports.prototype['UserName'] = undefined; + exports.prototype.UserName = undefined; + /** * User Phone Number * @member {String} UserPhoneNumber */ - exports.prototype['UserPhoneNumber'] = undefined; + exports.prototype.UserPhoneNumber = undefined; + /** * User Email * @member {String} UserEmail */ - exports.prototype['UserEmail'] = undefined; - + exports.prototype.UserEmail = undefined; return exports; -})); - +})); diff --git a/src/model/UserLoginEvent.js b/src/model/UserLoginEvent.js new file mode 100644 index 00000000..e8d449c4 --- /dev/null +++ b/src/model/UserLoginEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.UserLoginEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The UserLoginEvent model module. + * @module model/UserLoginEvent + * @version 1.0.0 + */ + + /** + * Constructs a new UserLoginEvent. + * User login event + * @alias module:model/UserLoginEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * The user + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/UserPasswordCreatedEvent.js b/src/model/UserPasswordCreatedEvent.js new file mode 100644 index 00000000..107d80ec --- /dev/null +++ b/src/model/UserPasswordCreatedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.UserPasswordCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The UserPasswordCreatedEvent model module. + * @module model/UserPasswordCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new UserPasswordCreatedEvent. + * User created password event + * @alias module:model/UserPasswordCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * The user + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/UserUpdatedEvent.js b/src/model/UserUpdatedEvent.js new file mode 100644 index 00000000..fc5bb7ab --- /dev/null +++ b/src/model/UserUpdatedEvent.js @@ -0,0 +1,121 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.UserUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The UserUpdatedEvent model module. + * @module model/UserUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new UserUpdatedEvent. + * User updated event + * @alias module:model/UserUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * The user + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/ValidationErrorResult.js b/src/model/ValidationErrorResult.js index 343c0858..981bbf60 100644 --- a/src/model/ValidationErrorResult.js +++ b/src/model/ValidationErrorResult.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The ValidationErrorResult model module. * @module model/ValidationErrorResult @@ -46,10 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - }; /** @@ -62,13 +55,10 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('FieldName')) { - obj['FieldName'] = ApiClient.convertToType(data['FieldName'], 'String'); - } - if (data.hasOwnProperty('Errors')) { - obj['Errors'] = ApiClient.convertToType(data['Errors'], ['String']); - } + if (data.hasOwnProperty('FieldName')) + obj.FieldName = ApiClient.convertToType(data['FieldName'], 'String'); + if (data.hasOwnProperty('Errors')) + obj.Errors = ApiClient.convertToType(data['Errors'], ['String']); } return obj; } @@ -77,16 +67,15 @@ * Field name * @member {String} FieldName */ - exports.prototype['FieldName'] = undefined; + exports.prototype.FieldName = undefined; + /** * List of errors relates to field * @member {Array.} Errors */ - exports.prototype['Errors'] = undefined; - + exports.prototype.Errors = undefined; return exports; -})); - +})); diff --git a/src/model/Voucher.js b/src/model/Voucher.js index 29d1565d..ff21b951 100644 --- a/src/model/Voucher.js +++ b/src/model/Voucher.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -16,23 +16,20 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient'], factory); + define(['ApiClient', 'model/AddItemDetails', 'model/CreditNoteDetails', 'model/LumpDiscountDetails', 'model/PercentDiscountDetails'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); + module.exports = factory(require('../ApiClient'), require('./AddItemDetails'), require('./CreditNoteDetails'), require('./LumpDiscountDetails'), require('./PercentDiscountDetails')); } else { // Browser globals (root is window) if (!root.Flipdish) { root.Flipdish = {}; } - root.Flipdish.Voucher = factory(root.Flipdish.ApiClient); + root.Flipdish.Voucher = factory(root.Flipdish.ApiClient, root.Flipdish.AddItemDetails, root.Flipdish.CreditNoteDetails, root.Flipdish.LumpDiscountDetails, root.Flipdish.PercentDiscountDetails); } -}(this, function(ApiClient) { +}(this, function(ApiClient, AddItemDetails, CreditNoteDetails, LumpDiscountDetails, PercentDiscountDetails) { 'use strict'; - - - /** * The Voucher model module. * @module model/Voucher @@ -46,31 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - - - - - - - - - - - - - - - - }; /** @@ -83,195 +55,264 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('VoucherId')) { - obj['VoucherId'] = ApiClient.convertToType(data['VoucherId'], 'Number'); - } - if (data.hasOwnProperty('VoucherType')) { - obj['VoucherType'] = ApiClient.convertToType(data['VoucherType'], 'String'); - } - if (data.hasOwnProperty('IsEnabled')) { - obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); - } - if (data.hasOwnProperty('IsUsedUp')) { - obj['IsUsedUp'] = ApiClient.convertToType(data['IsUsedUp'], 'Boolean'); - } - if (data.hasOwnProperty('VoucherSubType')) { - obj['VoucherSubType'] = ApiClient.convertToType(data['VoucherSubType'], 'String'); - } - if (data.hasOwnProperty('PublicDescription')) { - obj['PublicDescription'] = ApiClient.convertToType(data['PublicDescription'], 'String'); - } - if (data.hasOwnProperty('PrivateDescription')) { - obj['PrivateDescription'] = ApiClient.convertToType(data['PrivateDescription'], 'String'); - } - if (data.hasOwnProperty('ValidFrom')) { - obj['ValidFrom'] = ApiClient.convertToType(data['ValidFrom'], 'Date'); - } - if (data.hasOwnProperty('Expiry')) { - obj['Expiry'] = ApiClient.convertToType(data['Expiry'], 'Date'); - } - if (data.hasOwnProperty('VoucherPayer')) { - obj['VoucherPayer'] = ApiClient.convertToType(data['VoucherPayer'], 'String'); - } - if (data.hasOwnProperty('IsVisibleToStore')) { - obj['IsVisibleToStore'] = ApiClient.convertToType(data['IsVisibleToStore'], 'Boolean'); - } - if (data.hasOwnProperty('IsReusable')) { - obj['IsReusable'] = ApiClient.convertToType(data['IsReusable'], '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('IsValidForCardOrders')) { - obj['IsValidForCardOrders'] = ApiClient.convertToType(data['IsValidForCardOrders'], 'Boolean'); - } - if (data.hasOwnProperty('IsValidForCashOrders')) { - obj['IsValidForCashOrders'] = ApiClient.convertToType(data['IsValidForCashOrders'], 'Boolean'); - } - if (data.hasOwnProperty('IsValidForFirstOrderOnly')) { - obj['IsValidForFirstOrderOnly'] = ApiClient.convertToType(data['IsValidForFirstOrderOnly'], 'Boolean'); - } - if (data.hasOwnProperty('MinimumOrderAmount')) { - obj['MinimumOrderAmount'] = ApiClient.convertToType(data['MinimumOrderAmount'], 'Number'); - } - if (data.hasOwnProperty('IsValidOncePerCustomer')) { - obj['IsValidOncePerCustomer'] = ApiClient.convertToType(data['IsValidOncePerCustomer'], 'Boolean'); - } - if (data.hasOwnProperty('AutoApply')) { - obj['AutoApply'] = ApiClient.convertToType(data['AutoApply'], 'Boolean'); - } - if (data.hasOwnProperty('AutoApplyOrder')) { - obj['AutoApplyOrder'] = ApiClient.convertToType(data['AutoApplyOrder'], 'Number'); - } - if (data.hasOwnProperty('IncludeDeliveryFee')) { - obj['IncludeDeliveryFee'] = ApiClient.convertToType(data['IncludeDeliveryFee'], 'Boolean'); - } - if (data.hasOwnProperty('Code')) { - obj['Code'] = ApiClient.convertToType(data['Code'], 'String'); - } + 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('VoucherSubType')) + obj.VoucherSubType = ApiClient.convertToType(data['VoucherSubType'], 'String'); + if (data.hasOwnProperty('Currency')) + obj.Currency = ApiClient.convertToType(data['Currency'], 'String'); + if (data.hasOwnProperty('Stores')) + obj.Stores = ApiClient.convertToType(data['Stores'], ['Number']); + if (data.hasOwnProperty('StoreNames')) + obj.StoreNames = ApiClient.convertToType(data['StoreNames'], ['String']); + if (data.hasOwnProperty('AddItemDetails')) + obj.AddItemDetails = AddItemDetails.constructFromObject(data['AddItemDetails']); + 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('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('StartDate')) + obj.StartDate = ApiClient.convertToType(data['StartDate'], 'Date'); + if (data.hasOwnProperty('ExpiryDate')) + obj.ExpiryDate = ApiClient.convertToType(data['ExpiryDate'], 'Date'); } return obj; } /** - * Voucher identifier + * Voucher Id * @member {Number} VoucherId */ - exports.prototype['VoucherId'] = undefined; + exports.prototype.VoucherId = undefined; + + /** + * Voucher Status + * @member {module:model/Voucher.StatusEnum} Status + */ + exports.prototype.Status = undefined; + /** - * Voucher type + * Voucher Type * @member {module:model/Voucher.VoucherTypeEnum} VoucherType */ - exports.prototype['VoucherType'] = undefined; + exports.prototype.VoucherType = undefined; + /** - * Is voucher enabled - * @member {Boolean} IsEnabled + * Voucher Sub Type + * @member {module:model/Voucher.VoucherSubTypeEnum} VoucherSubType */ - exports.prototype['IsEnabled'] = undefined; + exports.prototype.VoucherSubType = undefined; + /** - * Is voucher used up - * @member {Boolean} IsUsedUp + * Currency of the voucher + * @member {module:model/Voucher.CurrencyEnum} Currency */ - exports.prototype['IsUsedUp'] = undefined; + exports.prototype.Currency = undefined; + /** - * Voucher subtype - * @member {module:model/Voucher.VoucherSubTypeEnum} VoucherSubType + * Stores that this voucher applies to + * @member {Array.} Stores + */ + exports.prototype.Stores = undefined; + + /** + * Stores that this voucher applies to + * @member {Array.} StoreNames + */ + exports.prototype.StoreNames = undefined; + + /** + * Add item details + * @member {module:model/AddItemDetails} AddItemDetails + */ + exports.prototype.AddItemDetails = undefined; + + /** + * Credit note details + * @member {module:model/CreditNoteDetails} CreditNoteDetails */ - exports.prototype['VoucherSubType'] = undefined; + exports.prototype.CreditNoteDetails = undefined; + + /** + * Lump discount details + * @member {module:model/LumpDiscountDetails} LumpDiscountDetails + */ + exports.prototype.LumpDiscountDetails = undefined; + /** - * Public description - * @member {String} PublicDescription + * Percent discount details + * @member {module:model/PercentDiscountDetails} PercentDiscountDetails + */ + exports.prototype.PercentDiscountDetails = undefined; + + /** + * Voucher Code + * @member {String} Code */ - exports.prototype['PublicDescription'] = undefined; + exports.prototype.Code = undefined; + /** - * Private description - * @member {String} PrivateDescription + * Voucher Description (Visible on printout) + * @member {String} Description */ - exports.prototype['PrivateDescription'] = undefined; + exports.prototype.Description = undefined; + /** - * Valid from - * @member {Date} ValidFrom + * Valid on orders on or above + * @member {Number} ValidOnOrdersOver */ - exports.prototype['ValidFrom'] = undefined; + exports.prototype.ValidOnOrdersOver = undefined; + /** - * Expiry - * @member {Date} Expiry + * Takes priority + * @member {Boolean} TakesPriority */ - exports.prototype['Expiry'] = undefined; + exports.prototype.TakesPriority = undefined; + /** - * Define who foots the bill for the voucher - * @member {module:model/Voucher.VoucherPayerEnum} VoucherPayer + * Is voucher enabled + * @member {Boolean} IsEnabled */ - exports.prototype['VoucherPayer'] = undefined; + exports.prototype.IsEnabled = undefined; + /** - * Define whether we show the fact that a voucher was applied to the restaurant - * @member {Boolean} IsVisibleToStore + * Is voucher automatically applied + * @member {Boolean} IsAutomaticallyApplied */ - exports.prototype['IsVisibleToStore'] = undefined; + exports.prototype.IsAutomaticallyApplied = undefined; + /** - * Is reusable - * @member {Boolean} IsReusable + * Include delivery fees + * @member {Boolean} IncludeDeliveryFee */ - exports.prototype['IsReusable'] = undefined; + exports.prototype.IncludeDeliveryFee = undefined; + /** - * Is valid for delivery orders + * Valid for delivery orders * @member {Boolean} IsValidForDeliveryOrders */ - exports.prototype['IsValidForDeliveryOrders'] = undefined; + exports.prototype.IsValidForDeliveryOrders = undefined; + /** - * Is valid for pickup orders + * Valid for pickup orders * @member {Boolean} IsValidForPickupOrders */ - exports.prototype['IsValidForPickupOrders'] = undefined; + exports.prototype.IsValidForPickupOrders = undefined; + /** - * Is valid for card orders - * @member {Boolean} IsValidForCardOrders + * Valid for orders payed online + * @member {Boolean} IsValidForOrdersPayedOnline */ - exports.prototype['IsValidForCardOrders'] = undefined; + exports.prototype.IsValidForOrdersPayedOnline = undefined; + /** - * Is valid for cash orders - * @member {Boolean} IsValidForCashOrders + * Valid for orders payed in cash + * @member {Boolean} IsValidForOrdersPayedByCash */ - exports.prototype['IsValidForCashOrders'] = undefined; + exports.prototype.IsValidForOrdersPayedByCash = undefined; + /** - * Is valid for first order only + * Valid only on the first order by the customer * @member {Boolean} IsValidForFirstOrderOnly */ - exports.prototype['IsValidForFirstOrderOnly'] = undefined; - /** - * Minimum order amount. - * @member {Number} MinimumOrderAmount - */ - exports.prototype['MinimumOrderAmount'] = undefined; + exports.prototype.IsValidForFirstOrderOnly = undefined; + /** - * Is valid once per customer + * Valid once per customer * @member {Boolean} IsValidOncePerCustomer */ - exports.prototype['IsValidOncePerCustomer'] = undefined; + exports.prototype.IsValidOncePerCustomer = undefined; + /** - * Auto apply - * @member {Boolean} AutoApply + * Valid only once, by any customer (once used cannot be used again by any other customer) + * @member {Boolean} IsValidOnlyOnce */ - exports.prototype['AutoApply'] = undefined; + exports.prototype.IsValidOnlyOnce = undefined; + /** - * Auto apply order. Lower numbers get applied first. - * @member {Number} AutoApplyOrder + * Voucher Starts On (Time in UTC) + * @member {Date} StartDate */ - exports.prototype['AutoApplyOrder'] = undefined; + exports.prototype.StartDate = undefined; + /** - * Include delivery fee - * @member {Boolean} IncludeDeliveryFee + * Voucher Expires On (Time in UTC) + * @member {Date} ExpiryDate */ - exports.prototype['IncludeDeliveryFee'] = undefined; + exports.prototype.ExpiryDate = undefined; + + + /** - * Voucher code - * @member {String} Code + * Allowed values for the Status property. + * @enum {String} + * @readonly */ - exports.prototype['Code'] = undefined; + exports.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" + }; /** @@ -284,22 +325,27 @@ * value: "PercentageDiscount" * @const */ - "PercentageDiscount": "PercentageDiscount", + PercentageDiscount: "PercentageDiscount", + /** * value: "LumpDiscount" * @const */ - "LumpDiscount": "LumpDiscount", + LumpDiscount: "LumpDiscount", + /** * value: "AddItem" * @const */ - "AddItem": "AddItem", + AddItem: "AddItem", + /** * value: "CreditNote" * @const */ - "CreditNote": "CreditNote" }; + CreditNote: "CreditNote" + }; + /** * Allowed values for the VoucherSubType property. @@ -311,57 +357,731 @@ * value: "None" * @const */ - "None": "None", + None: "None", + /** * value: "SignUp" * @const */ - "SignUp": "SignUp", + SignUp: "SignUp", + /** * value: "Loyalty" * @const */ - "Loyalty": "Loyalty", + Loyalty: "Loyalty", + /** * value: "Loyalty25" * @const */ - "Loyalty25": "Loyalty25", + Loyalty25: "Loyalty25", + /** * value: "Retention" * @const */ - "Retention": "Retention", + Retention: "Retention", + /** * value: "SecondaryRetention" * @const */ - "SecondaryRetention": "SecondaryRetention", + SecondaryRetention: "SecondaryRetention", + /** * value: "Custom" * @const */ - "Custom": "Custom" }; + Custom: "Custom" + }; + /** - * Allowed values for the VoucherPayer property. + * Allowed values for the Currency property. * @enum {String} * @readonly */ - exports.VoucherPayerEnum = { + exports.CurrencyEnum = { + /** + * value: "EUR" + * @const + */ + EUR: "EUR", + /** - * value: "Flipdish" + * value: "USD" * @const */ - "Flipdish": "Flipdish", + USD: "USD", + /** - * value: "Store" + * value: "GBP" * @const */ - "Store": "Store" }; + GBP: "GBP", + /** + * value: "CAD" + * @const + */ + CAD: "CAD", - return exports; -})); + /** + * 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" + }; + + return exports; + +})); diff --git a/src/model/VoucherBase.js b/src/model/VoucherBase.js new file mode 100644 index 00000000..e2a3f306 --- /dev/null +++ b/src/model/VoucherBase.js @@ -0,0 +1,193 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.VoucherBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The VoucherBase model module. + * @module model/VoucherBase + * @version 1.0.0 + */ + + /** + * Constructs a new VoucherBase. + * Voucher Base + * @alias module:model/VoucherBase + * @class + */ + var exports = function() { + }; + + /** + * Constructs a VoucherBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/VoucherBase} obj Optional instance to populate. + * @return {module:model/VoucherBase} The populated VoucherBase instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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('StartDate')) + obj.StartDate = ApiClient.convertToType(data['StartDate'], 'Date'); + if (data.hasOwnProperty('ExpiryDate')) + obj.ExpiryDate = ApiClient.convertToType(data['ExpiryDate'], 'Date'); + } + return obj; + } + + /** + * Voucher Code + * @member {String} Code + */ + exports.prototype.Code = undefined; + + /** + * Voucher Description (Visible on printout) + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Valid on orders on or above + * @member {Number} ValidOnOrdersOver + */ + exports.prototype.ValidOnOrdersOver = undefined; + + /** + * Takes priority + * @member {Boolean} TakesPriority + */ + exports.prototype.TakesPriority = undefined; + + /** + * Is voucher enabled + * @member {Boolean} IsEnabled + */ + exports.prototype.IsEnabled = undefined; + + /** + * Is voucher automatically applied + * @member {Boolean} IsAutomaticallyApplied + */ + exports.prototype.IsAutomaticallyApplied = undefined; + + /** + * Include delivery fees + * @member {Boolean} IncludeDeliveryFee + */ + exports.prototype.IncludeDeliveryFee = undefined; + + /** + * Valid for delivery orders + * @member {Boolean} IsValidForDeliveryOrders + */ + exports.prototype.IsValidForDeliveryOrders = undefined; + + /** + * Valid for pickup orders + * @member {Boolean} IsValidForPickupOrders + */ + exports.prototype.IsValidForPickupOrders = undefined; + + /** + * Valid for orders payed online + * @member {Boolean} IsValidForOrdersPayedOnline + */ + exports.prototype.IsValidForOrdersPayedOnline = undefined; + + /** + * Valid for orders payed in cash + * @member {Boolean} IsValidForOrdersPayedByCash + */ + exports.prototype.IsValidForOrdersPayedByCash = undefined; + + /** + * Valid only on the first order by the customer + * @member {Boolean} IsValidForFirstOrderOnly + */ + exports.prototype.IsValidForFirstOrderOnly = undefined; + + /** + * Valid once per customer + * @member {Boolean} IsValidOncePerCustomer + */ + exports.prototype.IsValidOncePerCustomer = undefined; + + /** + * Valid only once, by any customer (once used cannot be used again by any other customer) + * @member {Boolean} IsValidOnlyOnce + */ + exports.prototype.IsValidOnlyOnce = undefined; + + /** + * Voucher Starts On (Time in UTC) + * @member {Date} StartDate + */ + exports.prototype.StartDate = undefined; + + /** + * Voucher Expires On (Time in UTC) + * @member {Date} ExpiryDate + */ + exports.prototype.ExpiryDate = undefined; + + + return exports; + +})); diff --git a/src/model/VoucherCreatedEvent.js b/src/model/VoucherCreatedEvent.js new file mode 100644 index 00000000..a00da16b --- /dev/null +++ b/src/model/VoucherCreatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo', 'model/Voucher'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo'), require('./Voucher')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.VoucherCreatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo, root.Flipdish.Voucher); + } +}(this, function(ApiClient, UserEventInfo, Voucher) { + 'use strict'; + + /** + * The VoucherCreatedEvent model module. + * @module model/VoucherCreatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new VoucherCreatedEvent. + * Voucher Created Event + * @alias module:model/VoucherCreatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Voucher Id + * @member {Number} VoucherId + */ + exports.prototype.VoucherId = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * User which created this voucher + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Created voucher + * @member {module:model/Voucher} Voucher + */ + exports.prototype.Voucher = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/VoucherDataPoint.js b/src/model/VoucherDataPoint.js new file mode 100644 index 00000000..2f30fa9a --- /dev/null +++ b/src/model/VoucherDataPoint.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.VoucherDataPoint = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The VoucherDataPoint model module. + * @module model/VoucherDataPoint + * @version 1.0.0 + */ + + /** + * Constructs a new VoucherDataPoint. + * A single data point in timeline graphs related to Vouchers + * @alias module:model/VoucherDataPoint + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.PeriodStart = undefined; + + /** + * The length in days that this data point covers + * @member {Number} PeriodLengthInDays + */ + exports.prototype.PeriodLengthInDays = undefined; + + /** + * The value of this data point + * @member {Number} Value + */ + exports.prototype.Value = undefined; + + + return exports; + +})); diff --git a/src/model/VoucherDeletedEvent.js b/src/model/VoucherDeletedEvent.js new file mode 100644 index 00000000..99e64b33 --- /dev/null +++ b/src/model/VoucherDeletedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo', 'model/Voucher'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo'), require('./Voucher')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.VoucherDeletedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo, root.Flipdish.Voucher); + } +}(this, function(ApiClient, UserEventInfo, Voucher) { + 'use strict'; + + /** + * The VoucherDeletedEvent model module. + * @module model/VoucherDeletedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new VoucherDeletedEvent. + * Voucher Deleted Event + * @alias module:model/VoucherDeletedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Voucher Id + * @member {Number} VoucherId + */ + exports.prototype.VoucherId = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * User which deleted this voucher + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Deleted voucher + * @member {module:model/Voucher} Voucher + */ + exports.prototype.Voucher = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/VoucherSummary.js b/src/model/VoucherSummary.js index 6d354b92..4c4f9d74 100644 --- a/src/model/VoucherSummary.js +++ b/src/model/VoucherSummary.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The VoucherSummary model module. * @module model/VoucherSummary @@ -41,19 +38,11 @@ /** * Constructs a new VoucherSummary. - * Voucher summary + * Voucher Summary * @alias module:model/VoucherSummary * @class */ var exports = function() { - var _this = this; - - - - - - - }; /** @@ -66,132 +55,187 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'); - } + 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 name - * @member {String} Name + * Voucher Id + * @member {Number} VoucherId */ - exports.prototype['Name'] = undefined; + exports.prototype.VoucherId = undefined; + /** - * Voucher description - * @member {String} Description + * Voucher Code + * @member {String} Code */ - exports.prototype['Description'] = undefined; + exports.prototype.Code = undefined; + /** - * Voucher code - * @member {String} Code + * Voucher Status + * @member {module:model/VoucherSummary.StatusEnum} Status */ - exports.prototype['Code'] = undefined; + exports.prototype.Status = undefined; + /** - * Voucher amount - * @member {Number} Amount + * Voucher Type + * @member {module:model/VoucherSummary.VoucherTypeEnum} VoucherType */ - exports.prototype['Amount'] = undefined; + exports.prototype.VoucherType = undefined; + + /** + * Voucher Sub Type + * @member {module:model/VoucherSummary.VoucherSubTypeEnum} VoucherSubType + */ + exports.prototype.VoucherSubType = undefined; + + /** + * Voucher Description (Visible on printout) + * @member {String} Description + */ + exports.prototype.Description = undefined; + /** - * Voucher type - * @member {module:model/VoucherSummary.TypeEnum} Type + * Is voucher enabled + * @member {Boolean} IsEnabled */ - exports.prototype['Type'] = undefined; + exports.prototype.IsEnabled = undefined; + + + /** - * Voucher sub type - * @member {module:model/VoucherSummary.SubTypeEnum} SubType + * Allowed values for the Status property. + * @enum {String} + * @readonly */ - exports.prototype['SubType'] = undefined; + exports.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 Type property. + * Allowed values for the VoucherType property. * @enum {String} * @readonly */ - exports.TypeEnum = { + exports.VoucherTypeEnum = { /** * value: "PercentageDiscount" * @const */ - "PercentageDiscount": "PercentageDiscount", + PercentageDiscount: "PercentageDiscount", + /** * value: "LumpDiscount" * @const */ - "LumpDiscount": "LumpDiscount", + LumpDiscount: "LumpDiscount", + /** * value: "AddItem" * @const */ - "AddItem": "AddItem", + AddItem: "AddItem", + /** * value: "CreditNote" * @const */ - "CreditNote": "CreditNote" }; + CreditNote: "CreditNote" + }; + /** - * Allowed values for the SubType property. + * Allowed values for the VoucherSubType property. * @enum {String} * @readonly */ - exports.SubTypeEnum = { + exports.VoucherSubTypeEnum = { /** * value: "None" * @const */ - "None": "None", + None: "None", + /** * value: "SignUp" * @const */ - "SignUp": "SignUp", + SignUp: "SignUp", + /** * value: "Loyalty" * @const */ - "Loyalty": "Loyalty", + Loyalty: "Loyalty", + /** * value: "Loyalty25" * @const */ - "Loyalty25": "Loyalty25", + Loyalty25: "Loyalty25", + /** * value: "Retention" * @const */ - "Retention": "Retention", + Retention: "Retention", + /** * value: "SecondaryRetention" * @const */ - "SecondaryRetention": "SecondaryRetention", + SecondaryRetention: "SecondaryRetention", + /** * value: "Custom" * @const */ - "Custom": "Custom" }; - + Custom: "Custom" + }; return exports; -})); - +})); diff --git a/src/model/VoucherUpdatedEvent.js b/src/model/VoucherUpdatedEvent.js new file mode 100644 index 00000000..41eba1ef --- /dev/null +++ b/src/model/VoucherUpdatedEvent.js @@ -0,0 +1,137 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo', 'model/Voucher'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo'), require('./Voucher')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.VoucherUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo, root.Flipdish.Voucher); + } +}(this, function(ApiClient, UserEventInfo, Voucher) { + 'use strict'; + + /** + * The VoucherUpdatedEvent model module. + * @module model/VoucherUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new VoucherUpdatedEvent. + * Voucher Updated Event + * @alias module:model/VoucherUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * Voucher Id + * @member {Number} VoucherId + */ + exports.prototype.VoucherId = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * User which updated this voucher + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Updated voucher + * @member {module:model/Voucher} Voucher + */ + exports.prototype.Voucher = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/VoucherWithStats.js b/src/model/VoucherWithStats.js new file mode 100644 index 00000000..e8fcc820 --- /dev/null +++ b/src/model/VoucherWithStats.js @@ -0,0 +1,1127 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AddItemDetails', 'model/CreditNoteDetails', 'model/LumpDiscountDetails', 'model/PercentDiscountDetails'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AddItemDetails'), require('./CreditNoteDetails'), require('./LumpDiscountDetails'), require('./PercentDiscountDetails')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.VoucherWithStats = factory(root.Flipdish.ApiClient, root.Flipdish.AddItemDetails, root.Flipdish.CreditNoteDetails, root.Flipdish.LumpDiscountDetails, root.Flipdish.PercentDiscountDetails); + } +}(this, function(ApiClient, AddItemDetails, CreditNoteDetails, LumpDiscountDetails, PercentDiscountDetails) { + 'use strict'; + + /** + * The VoucherWithStats model module. + * @module model/VoucherWithStats + * @version 1.0.0 + */ + + /** + * Constructs a new VoucherWithStats. + * Voucher With Statistics + * @alias module:model/VoucherWithStats + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('VoucherSubType')) + obj.VoucherSubType = ApiClient.convertToType(data['VoucherSubType'], 'String'); + if (data.hasOwnProperty('Currency')) + obj.Currency = ApiClient.convertToType(data['Currency'], 'String'); + if (data.hasOwnProperty('Stores')) + obj.Stores = ApiClient.convertToType(data['Stores'], ['Number']); + if (data.hasOwnProperty('StoreNames')) + obj.StoreNames = ApiClient.convertToType(data['StoreNames'], ['String']); + if (data.hasOwnProperty('AddItemDetails')) + obj.AddItemDetails = AddItemDetails.constructFromObject(data['AddItemDetails']); + 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('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('StartDate')) + obj.StartDate = ApiClient.convertToType(data['StartDate'], 'Date'); + if (data.hasOwnProperty('ExpiryDate')) + obj.ExpiryDate = ApiClient.convertToType(data['ExpiryDate'], 'Date'); + } + return obj; + } + + /** + * Total times the voucher was used + * @member {Number} TotalUsed + */ + exports.prototype.TotalUsed = undefined; + + /** + * Total amount of customers who used this voucher + * @member {Number} TotalCustomers + */ + exports.prototype.TotalCustomers = undefined; + + /** + * Total amount of money from orders + * @member {Number} TotalAmountFromOrders + */ + exports.prototype.TotalAmountFromOrders = undefined; + + /** + * Total amount of money given away + * @member {Number} TotalDiscounted + */ + exports.prototype.TotalDiscounted = undefined; + + /** + * Average Order Size + * @member {Number} AverageOrderSize + */ + exports.prototype.AverageOrderSize = undefined; + + /** + * Voucher Id + * @member {Number} VoucherId + */ + exports.prototype.VoucherId = undefined; + + /** + * Voucher Status + * @member {module:model/VoucherWithStats.StatusEnum} Status + */ + exports.prototype.Status = undefined; + + /** + * Voucher Type + * @member {module:model/VoucherWithStats.VoucherTypeEnum} VoucherType + */ + exports.prototype.VoucherType = undefined; + + /** + * Voucher Sub Type + * @member {module:model/VoucherWithStats.VoucherSubTypeEnum} VoucherSubType + */ + exports.prototype.VoucherSubType = undefined; + + /** + * Currency of the voucher + * @member {module:model/VoucherWithStats.CurrencyEnum} Currency + */ + exports.prototype.Currency = undefined; + + /** + * Stores that this voucher applies to + * @member {Array.} Stores + */ + exports.prototype.Stores = undefined; + + /** + * Stores that this voucher applies to + * @member {Array.} StoreNames + */ + exports.prototype.StoreNames = undefined; + + /** + * Add item details + * @member {module:model/AddItemDetails} AddItemDetails + */ + exports.prototype.AddItemDetails = undefined; + + /** + * Credit note details + * @member {module:model/CreditNoteDetails} CreditNoteDetails + */ + exports.prototype.CreditNoteDetails = undefined; + + /** + * Lump discount details + * @member {module:model/LumpDiscountDetails} LumpDiscountDetails + */ + exports.prototype.LumpDiscountDetails = undefined; + + /** + * Percent discount details + * @member {module:model/PercentDiscountDetails} PercentDiscountDetails + */ + exports.prototype.PercentDiscountDetails = undefined; + + /** + * Voucher Code + * @member {String} Code + */ + exports.prototype.Code = undefined; + + /** + * Voucher Description (Visible on printout) + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * Valid on orders on or above + * @member {Number} ValidOnOrdersOver + */ + exports.prototype.ValidOnOrdersOver = undefined; + + /** + * Takes priority + * @member {Boolean} TakesPriority + */ + exports.prototype.TakesPriority = undefined; + + /** + * Is voucher enabled + * @member {Boolean} IsEnabled + */ + exports.prototype.IsEnabled = undefined; + + /** + * Is voucher automatically applied + * @member {Boolean} IsAutomaticallyApplied + */ + exports.prototype.IsAutomaticallyApplied = undefined; + + /** + * Include delivery fees + * @member {Boolean} IncludeDeliveryFee + */ + exports.prototype.IncludeDeliveryFee = undefined; + + /** + * Valid for delivery orders + * @member {Boolean} IsValidForDeliveryOrders + */ + exports.prototype.IsValidForDeliveryOrders = undefined; + + /** + * Valid for pickup orders + * @member {Boolean} IsValidForPickupOrders + */ + exports.prototype.IsValidForPickupOrders = undefined; + + /** + * Valid for orders payed online + * @member {Boolean} IsValidForOrdersPayedOnline + */ + exports.prototype.IsValidForOrdersPayedOnline = undefined; + + /** + * Valid for orders payed in cash + * @member {Boolean} IsValidForOrdersPayedByCash + */ + exports.prototype.IsValidForOrdersPayedByCash = undefined; + + /** + * Valid only on the first order by the customer + * @member {Boolean} IsValidForFirstOrderOnly + */ + exports.prototype.IsValidForFirstOrderOnly = undefined; + + /** + * Valid once per customer + * @member {Boolean} IsValidOncePerCustomer + */ + exports.prototype.IsValidOncePerCustomer = undefined; + + /** + * Valid only once, by any customer (once used cannot be used again by any other customer) + * @member {Boolean} IsValidOnlyOnce + */ + exports.prototype.IsValidOnlyOnce = undefined; + + /** + * Voucher Starts On (Time in UTC) + * @member {Date} StartDate + */ + exports.prototype.StartDate = undefined; + + /** + * Voucher Expires On (Time in UTC) + * @member {Date} ExpiryDate + */ + exports.prototype.ExpiryDate = undefined; + + + + /** + * Allowed values for the Status property. + * @enum {String} + * @readonly + */ + exports.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 + */ + exports.VoucherTypeEnum = { + /** + * value: "PercentageDiscount" + * @const + */ + PercentageDiscount: "PercentageDiscount", + + /** + * value: "LumpDiscount" + * @const + */ + LumpDiscount: "LumpDiscount", + + /** + * value: "AddItem" + * @const + */ + AddItem: "AddItem", + + /** + * value: "CreditNote" + * @const + */ + CreditNote: "CreditNote" + }; + + + /** + * Allowed values for the VoucherSubType property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + + /** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/WebhookEventSample.js b/src/model/WebhookEventSample.js new file mode 100644 index 00000000..ca17a7b3 --- /dev/null +++ b/src/model/WebhookEventSample.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/FlipdishEventBase'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./FlipdishEventBase')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.WebhookEventSample = factory(root.Flipdish.ApiClient, root.Flipdish.FlipdishEventBase); + } +}(this, function(ApiClient, FlipdishEventBase) { + 'use strict'; + + /** + * The WebhookEventSample model module. + * @module model/WebhookEventSample + * @version 1.0.0 + */ + + /** + * Constructs a new WebhookEventSample. + * Sample payload of a webhook event + * @alias module:model/WebhookEventSample + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Type = undefined; + + /** + * Sample event creation date and time + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Sample event body + * @member {module:model/FlipdishEventBase} Body + */ + exports.prototype.Body = undefined; + + + return exports; + +})); diff --git a/src/model/WebhookLog.js b/src/model/WebhookLog.js index 88c1d3db..4fc9314d 100644 --- a/src/model/WebhookLog.js +++ b/src/model/WebhookLog.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The WebhookLog model module. * @module model/WebhookLog @@ -46,23 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - - - - - - - - }; /** @@ -75,52 +55,36 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'); - } + 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; } @@ -129,81 +93,93 @@ * Webhook subscription owner user identifier * @member {Number} WebhookSubscriptionOwnerUserId */ - exports.prototype['WebhookSubscriptionOwnerUserId'] = undefined; + exports.prototype.WebhookSubscriptionOwnerUserId = undefined; + /** * Event created * @member {String} EventCreated */ - exports.prototype['EventCreated'] = undefined; + exports.prototype.EventCreated = undefined; + /** * Webhook triggered * @member {String} WebhookTriggered */ - exports.prototype['WebhookTriggered'] = undefined; + exports.prototype.WebhookTriggered = undefined; + /** * Webhook event name * @member {String} WebhookEventName */ - exports.prototype['WebhookEventName'] = undefined; + exports.prototype.WebhookEventName = undefined; + /** * Webhook subscription callback url * @member {String} WebhookSubscriptionCallbackUrl */ - exports.prototype['WebhookSubscriptionCallbackUrl'] = undefined; + exports.prototype.WebhookSubscriptionCallbackUrl = undefined; + /** * Received HTTP repsonse status HTTP code * @member {String} HttpResponseStatusCode */ - exports.prototype['HttpResponseStatusCode'] = undefined; + exports.prototype.HttpResponseStatusCode = undefined; + /** * Received HTTP repsonse status * @member {String} HttpResponseStatus */ - exports.prototype['HttpResponseStatus'] = undefined; + exports.prototype.HttpResponseStatus = undefined; + /** * Request headers * @member {String} RequestHeaders */ - exports.prototype['RequestHeaders'] = undefined; + exports.prototype.RequestHeaders = undefined; + /** * Request body * @member {String} RequestBody */ - exports.prototype['RequestBody'] = undefined; + exports.prototype.RequestBody = undefined; + /** * Received response headers * @member {String} ResponseHeaders */ - exports.prototype['ResponseHeaders'] = undefined; + exports.prototype.ResponseHeaders = undefined; + /** * Received response body * @member {String} ResponseBody */ - exports.prototype['ResponseBody'] = undefined; + exports.prototype.ResponseBody = undefined; + /** * Duration of HTTP request * @member {String} Duration */ - exports.prototype['Duration'] = undefined; + exports.prototype.Duration = undefined; + /** * Retry count * @member {Number} RetryCount */ - exports.prototype['RetryCount'] = undefined; + exports.prototype.RetryCount = undefined; + /** * Flipdish webhook identifier * @member {String} FlipdishWebhookId */ - exports.prototype['FlipdishWebhookId'] = undefined; + exports.prototype.FlipdishWebhookId = undefined; + /** * Flipdish webhook version * @member {String} Version */ - exports.prototype['Version'] = undefined; - + exports.prototype.Version = undefined; return exports; -})); - +})); diff --git a/src/model/WebhookSubscription.js b/src/model/WebhookSubscription.js index 6d085eef..f6d1564d 100644 --- a/src/model/WebhookSubscription.js +++ b/src/model/WebhookSubscription.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The WebhookSubscription model module. * @module model/WebhookSubscription @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,20 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'); - } + 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; } @@ -97,41 +77,45 @@ * Webhook subscription identifier * @member {Number} Id */ - exports.prototype['Id'] = undefined; + exports.prototype.Id = undefined; + /** * Webhook subscription owner user identifier * @member {Number} OwnerUserId */ - exports.prototype['OwnerUserId'] = undefined; + exports.prototype.OwnerUserId = undefined; + /** * Webhook subscription owner user identifier * @member {String} Version */ - exports.prototype['Version'] = undefined; + exports.prototype.Version = undefined; + /** * Webhook subscription event names * @member {Array.} EventNames */ - exports.prototype['EventNames'] = undefined; + exports.prototype.EventNames = undefined; + /** * Callback url. Flipdish system POST messages to this url. * @member {String} CallbackUrl */ - exports.prototype['CallbackUrl'] = undefined; + exports.prototype.CallbackUrl = undefined; + /** * Is webhook subscription enabled. * @member {Boolean} Enabled */ - exports.prototype['Enabled'] = undefined; + exports.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 */ - exports.prototype['VerifyToken'] = undefined; - + exports.prototype.VerifyToken = undefined; return exports; -})); - +})); diff --git a/src/model/WebhookSubscriptionCreatedEvent.js b/src/model/WebhookSubscriptionCreatedEvent.js index 07961fa6..f3d94a52 100644 --- a/src/model/WebhookSubscriptionCreatedEvent.js +++ b/src/model/WebhookSubscriptionCreatedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, WebhookSubscriptionEventInfo) { 'use strict'; - - - /** * The WebhookSubscriptionCreatedEvent model module. * @module model/WebhookSubscriptionCreatedEvent @@ -46,13 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - }; /** @@ -65,22 +55,18 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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'); } return obj; } @@ -89,31 +75,39 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Webhook subscription details * @member {module:model/WebhookSubscriptionEventInfo} WebhookSubscriptionEventInfo */ - exports.prototype['WebhookSubscriptionEventInfo'] = undefined; + exports.prototype.WebhookSubscriptionEventInfo = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/WebhookSubscriptionDeletedEvent.js b/src/model/WebhookSubscriptionDeletedEvent.js index 3595f5da..579447c3 100644 --- a/src/model/WebhookSubscriptionDeletedEvent.js +++ b/src/model/WebhookSubscriptionDeletedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, WebhookSubscriptionEventInfo) { 'use strict'; - - - /** * The WebhookSubscriptionDeletedEvent model module. * @module model/WebhookSubscriptionDeletedEvent @@ -46,13 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - }; /** @@ -65,22 +55,18 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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'); } return obj; } @@ -89,31 +75,39 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Webhook subscription details * @member {module:model/WebhookSubscriptionEventInfo} WebhookSubscriptionEventInfo */ - exports.prototype['WebhookSubscriptionEventInfo'] = undefined; + exports.prototype.WebhookSubscriptionEventInfo = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/WebhookSubscriptionEventInfo.js b/src/model/WebhookSubscriptionEventInfo.js index fb0af4eb..81c72d24 100644 --- a/src/model/WebhookSubscriptionEventInfo.js +++ b/src/model/WebhookSubscriptionEventInfo.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The WebhookSubscriptionEventInfo model module. * @module model/WebhookSubscriptionEventInfo @@ -46,12 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - }; /** @@ -64,19 +55,14 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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'); - } + 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; } @@ -85,26 +71,27 @@ * Webhook subscription owner user identifier * @member {Number} OwnerUserId */ - exports.prototype['OwnerUserId'] = undefined; + exports.prototype.OwnerUserId = undefined; + /** * Webhook subscription identifier * @member {Number} WebhookSubscriptionId */ - exports.prototype['WebhookSubscriptionId'] = undefined; + exports.prototype.WebhookSubscriptionId = undefined; + /** * Oauth client identifier * @member {String} ClientId */ - exports.prototype['ClientId'] = undefined; + exports.prototype.ClientId = undefined; + /** * Webhook callback url * @member {String} CallbackUrl */ - exports.prototype['CallbackUrl'] = undefined; - + exports.prototype.CallbackUrl = undefined; return exports; -})); - +})); diff --git a/src/model/WebhookSubscriptionUpdatedEvent.js b/src/model/WebhookSubscriptionUpdatedEvent.js index 64b08f60..4a4f1ef0 100644 --- a/src/model/WebhookSubscriptionUpdatedEvent.js +++ b/src/model/WebhookSubscriptionUpdatedEvent.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -30,9 +30,6 @@ }(this, function(ApiClient, WebhookSubscriptionEventInfo) { 'use strict'; - - - /** * The WebhookSubscriptionUpdatedEvent model module. * @module model/WebhookSubscriptionUpdatedEvent @@ -46,13 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - }; /** @@ -65,22 +55,18 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - 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('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'); } return obj; } @@ -89,31 +75,39 @@ * The event name * @member {String} EventName */ - exports.prototype['EventName'] = undefined; + exports.prototype.EventName = undefined; + /** * Webhook subscription details * @member {module:model/WebhookSubscriptionEventInfo} WebhookSubscriptionEventInfo */ - exports.prototype['WebhookSubscriptionEventInfo'] = undefined; + exports.prototype.WebhookSubscriptionEventInfo = undefined; + /** * The identitfier of the event * @member {String} FlipdishEventId */ - exports.prototype['FlipdishEventId'] = undefined; + exports.prototype.FlipdishEventId = undefined; + /** * The time of creation of the event * @member {Date} CreateTime */ - exports.prototype['CreateTime'] = undefined; + exports.prototype.CreateTime = undefined; + /** * Position * @member {Number} Position */ - exports.prototype['Position'] = undefined; + exports.prototype.Position = undefined; + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; return exports; -})); - +})); diff --git a/src/model/WebsiteImage.js b/src/model/WebsiteImage.js new file mode 100644 index 00000000..c3736df4 --- /dev/null +++ b/src/model/WebsiteImage.js @@ -0,0 +1,133 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.WebsiteImage = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The WebsiteImage model module. + * @module model/WebsiteImage + * @version 1.0.0 + */ + + /** + * Constructs a new WebsiteImage. + * Represents a website image + * @alias module:model/WebsiteImage + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.ImageId = undefined; + + /** + * Represents the location of the image + * @member {module:model/WebsiteImage.ImageLocationEnum} ImageLocation + */ + exports.prototype.ImageLocation = undefined; + + /** + * Represents the image url + * @member {String} ImageUrl + */ + exports.prototype.ImageUrl = undefined; + + + + /** + * Allowed values for the ImageLocation property. + * @enum {String} + * @readonly + */ + exports.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" + }; + + return exports; + +})); diff --git a/src/model/WebsiteTestimonial.js b/src/model/WebsiteTestimonial.js new file mode 100644 index 00000000..e94b25af --- /dev/null +++ b/src/model/WebsiteTestimonial.js @@ -0,0 +1,89 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.WebsiteTestimonial = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The WebsiteTestimonial model module. + * @module model/WebsiteTestimonial + * @version 1.0.0 + */ + + /** + * Constructs a new WebsiteTestimonial. + * Represents a testimonial + * @alias module:model/WebsiteTestimonial + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.TestimonialId = undefined; + + /** + * Author of the testimonial + * @member {String} Author + */ + exports.prototype.Author = undefined; + + /** + * Message of the testimonial + * @member {String} Message + */ + exports.prototype.Message = undefined; + + + return exports; + +})); diff --git a/src/model/WebsiteTestimonialBase.js b/src/model/WebsiteTestimonialBase.js new file mode 100644 index 00000000..d67b4bd3 --- /dev/null +++ b/src/model/WebsiteTestimonialBase.js @@ -0,0 +1,81 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.WebsiteTestimonialBase = factory(root.Flipdish.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + /** + * The WebsiteTestimonialBase model module. + * @module model/WebsiteTestimonialBase + * @version 1.0.0 + */ + + /** + * Constructs a new WebsiteTestimonialBase. + * Represents a testimonial base + * @alias module:model/WebsiteTestimonialBase + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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 + */ + exports.prototype.Author = undefined; + + /** + * Message of the testimonial + * @member {String} Message + */ + exports.prototype.Message = undefined; + + + return exports; + +})); diff --git a/src/model/WebsiteUpdatedEvent.js b/src/model/WebsiteUpdatedEvent.js new file mode 100644 index 00000000..0a7f3f51 --- /dev/null +++ b/src/model/WebsiteUpdatedEvent.js @@ -0,0 +1,129 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.WebsiteUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The WebsiteUpdatedEvent model module. + * @module model/WebsiteUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new WebsiteUpdatedEvent. + * WebsiteUpdatedEvent + * @alias module:model/WebsiteUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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'); + } + return obj; + } + + /** + * App Name id of the whitelabel of the website + * @member {String} AppNameId + */ + exports.prototype.AppNameId = undefined; + + /** + * User updating the website + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * Description of event + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/src/model/WebsiteVanityUrlUpdatedEvent.js b/src/model/WebsiteVanityUrlUpdatedEvent.js new file mode 100644 index 00000000..02c6a195 --- /dev/null +++ b/src/model/WebsiteVanityUrlUpdatedEvent.js @@ -0,0 +1,129 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/UserEventInfo'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./UserEventInfo')); + } else { + // Browser globals (root is window) + if (!root.Flipdish) { + root.Flipdish = {}; + } + root.Flipdish.WebsiteVanityUrlUpdatedEvent = factory(root.Flipdish.ApiClient, root.Flipdish.UserEventInfo); + } +}(this, function(ApiClient, UserEventInfo) { + 'use strict'; + + /** + * The WebsiteVanityUrlUpdatedEvent model module. + * @module model/WebsiteVanityUrlUpdatedEvent + * @version 1.0.0 + */ + + /** + * Constructs a new WebsiteVanityUrlUpdatedEvent. + * Website vanity url + * @alias module:model/WebsiteVanityUrlUpdatedEvent + * @class + */ + var exports = function() { + }; + + /** + * 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. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + 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('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'); + } + return obj; + } + + /** + * Description + * @member {String} Description + */ + exports.prototype.Description = undefined; + + /** + * User who has updated the url + * @member {module:model/UserEventInfo} User + */ + exports.prototype.User = undefined; + + /** + * New vanity url + * @member {String} VanityUrl + */ + exports.prototype.VanityUrl = undefined; + + /** + * The event name + * @member {String} EventName + */ + exports.prototype.EventName = undefined; + + /** + * The identitfier of the event + * @member {String} FlipdishEventId + */ + exports.prototype.FlipdishEventId = undefined; + + /** + * The time of creation of the event + * @member {Date} CreateTime + */ + exports.prototype.CreateTime = undefined; + + /** + * Position + * @member {Number} Position + */ + exports.prototype.Position = undefined; + + /** + * App id + * @member {String} AppId + */ + exports.prototype.AppId = undefined; + + + return exports; + +})); diff --git a/test/api/AccountsApi.spec.js b/test/api/AccountsApi.spec.js new file mode 100644 index 00000000..2cf7dc3d --- /dev/null +++ b/test/api/AccountsApi.spec.js @@ -0,0 +1,400 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('AccountsApi', function() { + describe('answerSignUpQuestion', function() { + it('should call answerSignUpQuestion successfully', function(done) { + // TODO: uncomment, update parameter values for answerSignUpQuestion call + /* + var signupStepAction = "signupStepAction_example"; + var answerId = 56; + + instance.answerSignUpQuestion(signupStepAction, answerId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('changePassword', function() { + it('should call changePassword successfully', function(done) { + // TODO: uncomment, update parameter values for changePassword call + /* + var changePasswordModel = new Flipdish.ChangePasswordModel(); + changePasswordModel.OldPassword = ""; + changePasswordModel.NewPassword = ""; + + instance.changePassword(changePasswordModel, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('changePasswordWithPin', function() { + it('should call changePasswordWithPin successfully', function(done) { + // TODO: uncomment, update parameter values for changePasswordWithPin call + /* + var changePasswordModel = new Flipdish.SetPasswordWithPinModel(); + changePasswordModel.Pin = 0; + changePasswordModel.NewPassword = ""; + + instance.changePasswordWithPin(changePasswordModel, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('createAccount', function() { + it('should call createAccount successfully', function(done) { + // TODO: uncomment, update parameter values for createAccount call + /* + var createAccountModel = new Flipdish.CreateAccountModel(); + createAccountModel.Email = ""; + createAccountModel.StoreName = ""; + createAccountModel.LanguageId = ""; + createAccountModel.Rid = 0; + createAccountModel.Cid = ""; + + instance.createAccount(createAccountModel, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getAccountDetails', function() { + it('should call getAccountDetails successfully', function(done) { + // TODO: uncomment getAccountDetails call and complete the assertions + /* + + instance.getAccountDetails(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultAccountDetail); + expect(data.Data).to.be.a(Flipdish.AccountDetail); + expect(data.Data.Email).to.be.a('string'); + expect(data.Data.Email).to.be(""); + { + let dataCtr = data.Data.SignupSteps; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.SignupStep); + expect(data.Action).to.be.a('string'); + expect(data.Action).to.be("Question"); + expect(data.Question).to.be.a('string'); + expect(data.Question).to.be(""); + { + let dataCtr = data.PredefinedAnswers; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PredefinedAnswer); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.Text).to.be.a('string'); + expect(data.Text).to.be(""); + + } + } + + } + } + expect(data.Data.IsVerified).to.be.a('boolean'); + expect(data.Data.IsVerified).to.be(false); + expect(data.Data.IsSelfServeUser).to.be.a('boolean'); + expect(data.Data.IsSelfServeUser).to.be(false); + expect(data.Data.AccountId).to.be.a('number'); + expect(data.Data.AccountId).to.be(0); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.Language).to.be.a('string'); + expect(data.Data.Language).to.be(""); + expect(data.Data.TimeZoneInfoId).to.be.a('string'); + expect(data.Data.TimeZoneInfoId).to.be(""); + expect(data.Data.DisplayTimesInUserLocalTimeZone).to.be.a('boolean'); + expect(data.Data.DisplayTimesInUserLocalTimeZone).to.be(false); + expect(data.Data.ShowHiddenFeatures).to.be.a('boolean'); + expect(data.Data.ShowHiddenFeatures).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getLocalisedTimeZones', function() { + it('should call getLocalisedTimeZones successfully', function(done) { + // TODO: uncomment getLocalisedTimeZones call and complete the assertions + /* + + instance.getLocalisedTimeZones(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultLocalisedTimeZone); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LocalisedTimeZone); + expect(data.TimeZoneId).to.be.a('string'); + expect(data.TimeZoneId).to.be(""); + expect(data.IanaTimeZoneId).to.be.a('string'); + expect(data.IanaTimeZoneId).to.be(""); + expect(data.DisplayName).to.be.a('string'); + expect(data.DisplayName).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('login', function() { + it('should call login successfully', function(done) { + // TODO: uncomment, update parameter values for login call + /* + var loginModel = new Flipdish.LoginModel(); + loginModel.Email = ""; + loginModel.Password = ""; + + instance.login(loginModel, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('loginWithPin', function() { + it('should call loginWithPin successfully', function(done) { + // TODO: uncomment, update parameter values for loginWithPin call + /* + var loginModel = new Flipdish.LoginWithPinModel(); + loginModel.Email = ""; + loginModel.Pin = 0; + + instance.loginWithPin(loginModel, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('logout', function() { + it('should call logout successfully', function(done) { + // TODO: uncomment logout call + /* + + instance.logout(function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('passwordResetWithToken', function() { + it('should call passwordResetWithToken successfully', function(done) { + // TODO: uncomment, update parameter values for passwordResetWithToken call + /* + var passwordResetModel = new Flipdish.PasswordResetModel(); + passwordResetModel.Email = ""; + passwordResetModel.Password = ""; + passwordResetModel.PasswordConfirmation = ""; + passwordResetModel.Token = ""; + + instance.passwordResetWithToken(passwordResetModel, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('requestLoginPin', function() { + it('should call requestLoginPin successfully', function(done) { + // TODO: uncomment, update parameter values for requestLoginPin call and complete the assertions + /* + var requestLoginPinRequest = new Flipdish.RequestLoginPinModel(); + requestLoginPinRequest.Email = ""; + + instance.requestLoginPin(requestLoginPinRequest, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RequestLoginPinResposne); + expect(data.LoginPinSentViaEmail).to.be.a('boolean'); + expect(data.LoginPinSentViaEmail).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('requestPasswordReset', function() { + it('should call requestPasswordReset successfully', function(done) { + // TODO: uncomment, update parameter values for requestPasswordReset call + /* + var requestPasswordResetModel = new Flipdish.RequestPasswordResetModel(); + requestPasswordResetModel.Email = ""; + + instance.requestPasswordReset(requestPasswordResetModel, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('skipSignupStep', function() { + it('should call skipSignupStep successfully', function(done) { + // TODO: uncomment, update parameter values for skipSignupStep call + /* + var signupStepAction = "signupStepAction_example"; + + instance.skipSignupStep(signupStepAction, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateAccount', function() { + it('should call updateAccount successfully', function(done) { + // TODO: uncomment, update parameter values for updateAccount call + /* + var updateAccountModel = new Flipdish.AccountDetailBase(); + updateAccountModel.Name = ""; + updateAccountModel.Language = ""; + updateAccountModel.TimeZoneInfoId = ""; + updateAccountModel.DisplayTimesInUserLocalTimeZone = false; + updateAccountModel.ShowHiddenFeatures = false; + + instance.updateAccount(updateAccountModel, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/ApmApi.spec.js b/test/api/ApmApi.spec.js new file mode 100644 index 00000000..3f302662 --- /dev/null +++ b/test/api/ApmApi.spec.js @@ -0,0 +1,305 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('ApmApi', function() { + describe('getApmStatus', function() { + it('should call getApmStatus successfully', function(done) { + // TODO: uncomment, update parameter values for getApmStatus call and complete the assertions + /* + var appId = "appId_example"; + + instance.getApmStatus(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultApmStatus); + expect(data.Data).to.be.a(Flipdish.ApmStatus); + expect(data.Data.IsApmEnabled).to.be.a('boolean'); + expect(data.Data.IsApmEnabled).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getBasicStatistics', function() { + it('should call getBasicStatistics successfully', function(done) { + // TODO: uncomment, update parameter values for getBasicStatistics call and complete the assertions + /* + var appId = "appId_example"; + var opts = {}; + opts.storeId = [3.4]; + + instance.getBasicStatistics(appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultApmStatistics); + expect(data.Data).to.be.a(Flipdish.ApmStatistics); + expect(data.Data.EstimatedMinutesSaved).to.be.a('number'); + expect(data.Data.EstimatedMinutesSaved).to.be(0); + expect(data.Data.EstimatedMinutesCouldSaved).to.be.a('number'); + expect(data.Data.EstimatedMinutesCouldSaved).to.be(0); + { + let dataCtr = data.Data.CurrencyData; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StatisticsCurrencyDataPoint); + expect(data.Currency).to.be.a('string'); + expect(data.Currency).to.be("EUR"); + expect(data.UserCount).to.be.a('number'); + expect(data.UserCount).to.be(0); + expect(data.OrderCount).to.be.a('number'); + expect(data.OrderCount).to.be(0); + expect(data.OrderValue).to.be.a('number'); + expect(data.OrderValue).to.be(0.0); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getCalendarWeekStatistics', function() { + it('should call getCalendarWeekStatistics successfully', function(done) { + // TODO: uncomment, update parameter values for getCalendarWeekStatistics call and complete the assertions + /* + var appId = "appId_example"; + var opts = {}; + opts.storeId = [3.4]; + + instance.getCalendarWeekStatistics(appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultApmHourlyDataPoint); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.ApmHourlyDataPoint); + expect(data.Day).to.be.a('string'); + expect(data.Day).to.be("Sunday"); + expect(data.Hour).to.be.a('number'); + expect(data.Hour).to.be(0); + expect(data.TotalValue).to.be.a('number'); + expect(data.TotalValue).to.be(0); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getCallsStatistics', function() { + it('should call getCallsStatistics successfully', function(done) { + // TODO: uncomment, update parameter values for getCallsStatistics call and complete the assertions + /* + var appId = "appId_example"; + var aggregateDataBy = "aggregateDataBy_example"; + var opts = {}; + opts.dataPointLimit = 56; + opts.storeId = [3.4]; + + instance.getCallsStatistics(appId, aggregateDataBy, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultApmDataPoint); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.ApmDataPoint); + expect(data.PeriodStart).to.be.a(Date); + expect(data.PeriodStart).to.be(new Date()); + expect(data.PeriodLengthInDays).to.be.a('number'); + expect(data.PeriodLengthInDays).to.be(0); + expect(data.Value).to.be.a('number'); + expect(data.Value).to.be(0); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getOrderStatistics', function() { + it('should call getOrderStatistics successfully', function(done) { + // TODO: uncomment, update parameter values for getOrderStatistics call and complete the assertions + /* + var appId = "appId_example"; + var aggregateDataBy = "aggregateDataBy_example"; + var opts = {}; + opts.dataPointLimit = 56; + opts.storeId = [3.4]; + + instance.getOrderStatistics(appId, aggregateDataBy, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultApmCurrencyDataPoint); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.ApmCurrencyDataPoint); + expect(data.PeriodStart).to.be.a(Date); + expect(data.PeriodStart).to.be(new Date()); + expect(data.PeriodLengthInDays).to.be.a('number'); + expect(data.PeriodLengthInDays).to.be(0); + { + let dataCtr = data.CurrencyData; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CurrencyData); + expect(data.Currency).to.be.a('string'); + expect(data.Currency).to.be("EUR"); + expect(data.Value).to.be.a('number'); + expect(data.Value).to.be(0.0); + + } + } + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getPaginatedCallList', function() { + it('should call getPaginatedCallList successfully', function(done) { + // TODO: uncomment, update parameter values for getPaginatedCallList call and complete the assertions + /* + var appId = "appId_example"; + var opts = {}; + opts.page = 56; + opts.limit = 56; + opts.storeId = [3.4]; + + instance.getPaginatedCallList(appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultPhoneCall); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCallId).to.be.a('number'); + expect(data.PhoneCallId).to.be(0); + expect(data.TimeOfCall).to.be.a(Date); + expect(data.TimeOfCall).to.be(new Date()); + expect(data.TimeOfCallLocal).to.be.a(Date); + expect(data.TimeOfCallLocal).to.be(new Date()); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreName).to.be.a('string'); + expect(data.StoreName).to.be(""); + expect(data.CallerName).to.be.a('string'); + expect(data.CallerName).to.be(""); + expect(data.CallerUserId).to.be.a('number'); + expect(data.CallerUserId).to.be(0); + expect(data.CallerNumber).to.be.a('string'); + expect(data.CallerNumber).to.be(""); + expect(data.CallLengthInSeconds).to.be.a('number'); + expect(data.CallLengthInSeconds).to.be(0); + expect(data.CallStatus).to.be.a('string'); + expect(data.CallStatus).to.be("Queued"); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/AppsApi.spec.js b/test/api/AppsApi.spec.js new file mode 100644 index 00000000..eb4d10cb --- /dev/null +++ b/test/api/AppsApi.spec.js @@ -0,0 +1,770 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('AppsApi', function() { + describe('getApp', function() { + it('should call getApp successfully', function(done) { + // TODO: uncomment, update parameter values for getApp call and complete the assertions + /* + var appId = "appId_example"; + + instance.getApp(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultApp); + expect(data.Data).to.be.a(Flipdish.App); + expect(data.Data.AppId).to.be.a('string'); + expect(data.Data.AppId).to.be(""); + expect(data.Data.HasIosApp).to.be.a('boolean'); + expect(data.Data.HasIosApp).to.be(false); + expect(data.Data.HasAndroidApp).to.be.a('boolean'); + expect(data.Data.HasAndroidApp).to.be(false); + expect(data.Data.CountryId).to.be.a('string'); + expect(data.Data.CountryId).to.be(""); + expect(data.Data.LogoImageUrl).to.be.a('string'); + expect(data.Data.LogoImageUrl).to.be(""); + { + let dataCtr = data.Data.Languages; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Language); + expect(data.LanguageId).to.be.a('string'); + expect(data.LanguageId).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + + } + } + { + let dataCtr = data.Data.AvailableAppLanguages; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Language); + expect(data.LanguageId).to.be.a('string'); + expect(data.LanguageId).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + + } + } + expect(data.Data.AppAccessLevel).to.be.a('string'); + expect(data.Data.AppAccessLevel).to.be("None"); + { + let dataCtr = data.Data.AppResourceSet; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be("ViewApp"); + } + } + { + let dataCtr = data.Data.Features; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.MapCenter).to.be.a(Flipdish.Coordinates); + expect(data.Data.MapCenter.Latitude).to.be.a('number'); + expect(data.Data.MapCenter.Latitude).to.be(0.0); + expect(data.Data.MapCenter.Longitude).to.be.a('number'); + expect(data.Data.MapCenter.Longitude).to.be(0.0); + expect(data.Data.MapNorthEast).to.be.a(Flipdish.Coordinates); + expect(data.Data.MapNorthEast.Latitude).to.be.a('number'); + expect(data.Data.MapNorthEast.Latitude).to.be(0.0); + expect(data.Data.MapNorthEast.Longitude).to.be.a('number'); + expect(data.Data.MapNorthEast.Longitude).to.be(0.0); + expect(data.Data.MapSouthWest).to.be.a(Flipdish.Coordinates); + expect(data.Data.MapSouthWest.Latitude).to.be.a('number'); + expect(data.Data.MapSouthWest.Latitude).to.be(0.0); + expect(data.Data.MapSouthWest.Longitude).to.be.a('number'); + expect(data.Data.MapSouthWest.Longitude).to.be(0.0); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.HostName).to.be.a('string'); + expect(data.Data.HostName).to.be(""); + expect(data.Data.MainColor).to.be.a('string'); + expect(data.Data.MainColor).to.be(""); + expect(data.Data.ApplicationCategory).to.be.a('string'); + expect(data.Data.ApplicationCategory).to.be("Restaurant"); + expect(data.Data.IsPanaceaEnabled).to.be.a('boolean'); + expect(data.Data.IsPanaceaEnabled).to.be(false); + expect(data.Data.CookieConsentPromptEnabled).to.be.a('boolean'); + expect(data.Data.CookieConsentPromptEnabled).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getAppHostnameStatus', function() { + it('should call getAppHostnameStatus successfully', function(done) { + // TODO: uncomment, update parameter values for getAppHostnameStatus call and complete the assertions + /* + var appId = "appId_example"; + + instance.getAppHostnameStatus(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultDnsRecordInformation); + expect(data.Data).to.be.a(Flipdish.DnsRecordInformation); + expect(data.Data.IsCNameReady).to.be.a('boolean'); + expect(data.Data.IsCNameReady).to.be(false); + expect(data.Data.IsAReady).to.be.a('boolean'); + expect(data.Data.IsAReady).to.be(false); + expect(data.Data.IsApiCNameReady).to.be.a('boolean'); + expect(data.Data.IsApiCNameReady).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getApps', function() { + it('should call getApps successfully', function(done) { + // TODO: uncomment, update parameter values for getApps call and complete the assertions + /* + var opts = {}; + opts.nameFilter = "nameFilter_example"; + opts.page = 56; + opts.limit = 56; + + instance.getApps(opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultApp); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.App); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + expect(data.HasIosApp).to.be.a('boolean'); + expect(data.HasIosApp).to.be(false); + expect(data.HasAndroidApp).to.be.a('boolean'); + expect(data.HasAndroidApp).to.be(false); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.LogoImageUrl).to.be.a('string'); + expect(data.LogoImageUrl).to.be(""); + { + let dataCtr = data.Languages; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Language); + expect(data.LanguageId).to.be.a('string'); + expect(data.LanguageId).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + + } + } + { + let dataCtr = data.AvailableAppLanguages; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Language); + expect(data.LanguageId).to.be.a('string'); + expect(data.LanguageId).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + + } + } + expect(data.AppAccessLevel).to.be.a('string'); + expect(data.AppAccessLevel).to.be("None"); + { + let dataCtr = data.AppResourceSet; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be("ViewApp"); + } + } + { + let dataCtr = data.Features; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MapCenter).to.be.a(Flipdish.Coordinates); + expect(data.MapCenter.Latitude).to.be.a('number'); + expect(data.MapCenter.Latitude).to.be(0.0); + expect(data.MapCenter.Longitude).to.be.a('number'); + expect(data.MapCenter.Longitude).to.be(0.0); + expect(data.MapNorthEast).to.be.a(Flipdish.Coordinates); + expect(data.MapNorthEast.Latitude).to.be.a('number'); + expect(data.MapNorthEast.Latitude).to.be(0.0); + expect(data.MapNorthEast.Longitude).to.be.a('number'); + expect(data.MapNorthEast.Longitude).to.be(0.0); + expect(data.MapSouthWest).to.be.a(Flipdish.Coordinates); + expect(data.MapSouthWest.Latitude).to.be.a('number'); + expect(data.MapSouthWest.Latitude).to.be(0.0); + expect(data.MapSouthWest.Longitude).to.be.a('number'); + expect(data.MapSouthWest.Longitude).to.be(0.0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.HostName).to.be.a('string'); + expect(data.HostName).to.be(""); + expect(data.MainColor).to.be.a('string'); + expect(data.MainColor).to.be(""); + expect(data.ApplicationCategory).to.be.a('string'); + expect(data.ApplicationCategory).to.be("Restaurant"); + expect(data.IsPanaceaEnabled).to.be.a('boolean'); + expect(data.IsPanaceaEnabled).to.be(false); + expect(data.CookieConsentPromptEnabled).to.be.a('boolean'); + expect(data.CookieConsentPromptEnabled).to.be(false); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getCompliance', function() { + it('should call getCompliance successfully', function(done) { + // TODO: uncomment, update parameter values for getCompliance call and complete the assertions + /* + var appId = "appId_example"; + + instance.getCompliance(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultAppCompliance); + expect(data.Data).to.be.a(Flipdish.AppCompliance); + expect(data.Data.AppId).to.be.a('string'); + expect(data.Data.AppId).to.be(""); + expect(data.Data.ComplianceType).to.be.a('string'); + expect(data.Data.ComplianceType).to.be("Default"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getPanaceaVanityUrl', function() { + it('should call getPanaceaVanityUrl successfully', function(done) { + // TODO: uncomment, update parameter values for getPanaceaVanityUrl call and complete the assertions + /* + var appId = "appId_example"; + + instance.getPanaceaVanityUrl(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getSupportedCountries', function() { + it('should call getSupportedCountries successfully', function(done) { + // TODO: uncomment getSupportedCountries call and complete the assertions + /* + + instance.getSupportedCountries(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultSupportedCountry); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.SupportedCountry); + expect(data.CountryCode).to.be.a('string'); + expect(data.CountryCode).to.be(""); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.PhoneCode).to.be.a('number'); + expect(data.PhoneCode).to.be(0); + expect(data.LanguageCode).to.be.a('string'); + expect(data.LanguageCode).to.be(""); + expect(data.LanguageName).to.be.a('string'); + expect(data.LanguageName).to.be(""); + expect(data.OtpNumber).to.be.a('string'); + expect(data.OtpNumber).to.be(""); + expect(data.SupportNumber).to.be.a('string'); + expect(data.SupportNumber).to.be(""); + expect(data.AddressLayout).to.be.a('string'); + expect(data.AddressLayout).to.be("BuildingFirst"); + expect(data.PostCodeType).to.be.a('string'); + expect(data.PostCodeType).to.be("None"); + expect(data.SupportRegion).to.be.a('string'); + expect(data.SupportRegion).to.be("Default"); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('isPanaceaVanityUrlAvailable', function() { + it('should call isPanaceaVanityUrlAvailable successfully', function(done) { + // TODO: uncomment, update parameter values for isPanaceaVanityUrlAvailable call and complete the assertions + /* + var vanityUrl = "vanityUrl_example"; + var appId = "appId_example"; + + instance.isPanaceaVanityUrlAvailable(vanityUrl, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setAppConfig', function() { + it('should call setAppConfig successfully', function(done) { + // TODO: uncomment, update parameter values for setAppConfig call and complete the assertions + /* + var appId = "appId_example"; + var appConfigUpdate = new Flipdish.AppConfigUpdateModel(); + appConfigUpdate.Name = ""; + appConfigUpdate.HostName = ""; + appConfigUpdate.MainColor = ""; + appConfigUpdate.ApplicationCategory = "Restaurant"; + appConfigUpdate.IsPanaceaEnabled = false; + appConfigUpdate.CookieConsentPromptEnabled = false; + + instance.setAppConfig(appId, appConfigUpdate, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultApp); + expect(data.Data).to.be.a(Flipdish.App); + expect(data.Data.AppId).to.be.a('string'); + expect(data.Data.AppId).to.be(""); + expect(data.Data.HasIosApp).to.be.a('boolean'); + expect(data.Data.HasIosApp).to.be(false); + expect(data.Data.HasAndroidApp).to.be.a('boolean'); + expect(data.Data.HasAndroidApp).to.be(false); + expect(data.Data.CountryId).to.be.a('string'); + expect(data.Data.CountryId).to.be(""); + expect(data.Data.LogoImageUrl).to.be.a('string'); + expect(data.Data.LogoImageUrl).to.be(""); + { + let dataCtr = data.Data.Languages; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Language); + expect(data.LanguageId).to.be.a('string'); + expect(data.LanguageId).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + + } + } + { + let dataCtr = data.Data.AvailableAppLanguages; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Language); + expect(data.LanguageId).to.be.a('string'); + expect(data.LanguageId).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + + } + } + expect(data.Data.AppAccessLevel).to.be.a('string'); + expect(data.Data.AppAccessLevel).to.be("None"); + { + let dataCtr = data.Data.AppResourceSet; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be("ViewApp"); + } + } + { + let dataCtr = data.Data.Features; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.MapCenter).to.be.a(Flipdish.Coordinates); + expect(data.Data.MapCenter.Latitude).to.be.a('number'); + expect(data.Data.MapCenter.Latitude).to.be(0.0); + expect(data.Data.MapCenter.Longitude).to.be.a('number'); + expect(data.Data.MapCenter.Longitude).to.be(0.0); + expect(data.Data.MapNorthEast).to.be.a(Flipdish.Coordinates); + expect(data.Data.MapNorthEast.Latitude).to.be.a('number'); + expect(data.Data.MapNorthEast.Latitude).to.be(0.0); + expect(data.Data.MapNorthEast.Longitude).to.be.a('number'); + expect(data.Data.MapNorthEast.Longitude).to.be(0.0); + expect(data.Data.MapSouthWest).to.be.a(Flipdish.Coordinates); + expect(data.Data.MapSouthWest.Latitude).to.be.a('number'); + expect(data.Data.MapSouthWest.Latitude).to.be(0.0); + expect(data.Data.MapSouthWest.Longitude).to.be.a('number'); + expect(data.Data.MapSouthWest.Longitude).to.be(0.0); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.HostName).to.be.a('string'); + expect(data.Data.HostName).to.be(""); + expect(data.Data.MainColor).to.be.a('string'); + expect(data.Data.MainColor).to.be(""); + expect(data.Data.ApplicationCategory).to.be.a('string'); + expect(data.Data.ApplicationCategory).to.be("Restaurant"); + expect(data.Data.IsPanaceaEnabled).to.be.a('boolean'); + expect(data.Data.IsPanaceaEnabled).to.be(false); + expect(data.Data.CookieConsentPromptEnabled).to.be.a('boolean'); + expect(data.Data.CookieConsentPromptEnabled).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setAppHostname', function() { + it('should call setAppHostname successfully', function(done) { + // TODO: uncomment, update parameter values for setAppHostname call and complete the assertions + /* + var appId = "appId_example"; + var hostname = "hostname_example"; + var opts = {}; + opts.isEmbed = true; + + instance.setAppHostname(appId, hostname, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setAppLanguages', function() { + it('should call setAppLanguages successfully', function(done) { + // TODO: uncomment, update parameter values for setAppLanguages call and complete the assertions + /* + var appId = "appId_example"; + var languages = [new Flipdish.Language()]; + languages[0].LanguageId = ""; + languages[0].DisplayOrder = 0; + languages[0].Name = ""; + + instance.setAppLanguages(appId, languages, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultApp); + expect(data.Data).to.be.a(Flipdish.App); + expect(data.Data.AppId).to.be.a('string'); + expect(data.Data.AppId).to.be(""); + expect(data.Data.HasIosApp).to.be.a('boolean'); + expect(data.Data.HasIosApp).to.be(false); + expect(data.Data.HasAndroidApp).to.be.a('boolean'); + expect(data.Data.HasAndroidApp).to.be(false); + expect(data.Data.CountryId).to.be.a('string'); + expect(data.Data.CountryId).to.be(""); + expect(data.Data.LogoImageUrl).to.be.a('string'); + expect(data.Data.LogoImageUrl).to.be(""); + { + let dataCtr = data.Data.Languages; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Language); + expect(data.LanguageId).to.be.a('string'); + expect(data.LanguageId).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + + } + } + { + let dataCtr = data.Data.AvailableAppLanguages; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Language); + expect(data.LanguageId).to.be.a('string'); + expect(data.LanguageId).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + + } + } + expect(data.Data.AppAccessLevel).to.be.a('string'); + expect(data.Data.AppAccessLevel).to.be("None"); + { + let dataCtr = data.Data.AppResourceSet; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be("ViewApp"); + } + } + { + let dataCtr = data.Data.Features; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.MapCenter).to.be.a(Flipdish.Coordinates); + expect(data.Data.MapCenter.Latitude).to.be.a('number'); + expect(data.Data.MapCenter.Latitude).to.be(0.0); + expect(data.Data.MapCenter.Longitude).to.be.a('number'); + expect(data.Data.MapCenter.Longitude).to.be(0.0); + expect(data.Data.MapNorthEast).to.be.a(Flipdish.Coordinates); + expect(data.Data.MapNorthEast.Latitude).to.be.a('number'); + expect(data.Data.MapNorthEast.Latitude).to.be(0.0); + expect(data.Data.MapNorthEast.Longitude).to.be.a('number'); + expect(data.Data.MapNorthEast.Longitude).to.be(0.0); + expect(data.Data.MapSouthWest).to.be.a(Flipdish.Coordinates); + expect(data.Data.MapSouthWest.Latitude).to.be.a('number'); + expect(data.Data.MapSouthWest.Latitude).to.be(0.0); + expect(data.Data.MapSouthWest.Longitude).to.be.a('number'); + expect(data.Data.MapSouthWest.Longitude).to.be(0.0); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.HostName).to.be.a('string'); + expect(data.Data.HostName).to.be(""); + expect(data.Data.MainColor).to.be.a('string'); + expect(data.Data.MainColor).to.be(""); + expect(data.Data.ApplicationCategory).to.be.a('string'); + expect(data.Data.ApplicationCategory).to.be("Restaurant"); + expect(data.Data.IsPanaceaEnabled).to.be.a('boolean'); + expect(data.Data.IsPanaceaEnabled).to.be(false); + expect(data.Data.CookieConsentPromptEnabled).to.be.a('boolean'); + expect(data.Data.CookieConsentPromptEnabled).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setCompliance', function() { + it('should call setCompliance successfully', function(done) { + // TODO: uncomment, update parameter values for setCompliance call and complete the assertions + /* + var appId = "appId_example"; + var complianceType = "complianceType_example"; + + instance.setCompliance(appId, complianceType, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultAppCompliance); + expect(data.Data).to.be.a(Flipdish.AppCompliance); + expect(data.Data.AppId).to.be.a('string'); + expect(data.Data.AppId).to.be(""); + expect(data.Data.ComplianceType).to.be.a('string'); + expect(data.Data.ComplianceType).to.be("Default"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setPanaceaVanityUrl', function() { + it('should call setPanaceaVanityUrl successfully', function(done) { + // TODO: uncomment, update parameter values for setPanaceaVanityUrl call and complete the assertions + /* + var appId = "appId_example"; + var vanityUrl = "vanityUrl_example"; + + instance.setPanaceaVanityUrl(appId, vanityUrl, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('uploadAppLogo', function() { + it('should call uploadAppLogo successfully', function(done) { + // TODO: uncomment, update parameter values for uploadAppLogo call + /* + var appId = "appId_example"; + var Image = "/path/to/file.txt"; + + instance.uploadAppLogo(appId, Image, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/AuthorizationTokensApi.spec.js b/test/api/AuthorizationTokensApi.spec.js index da5701e7..9e3be9e0 100644 --- a/test/api/AuthorizationTokensApi.spec.js +++ b/test/api/AuthorizationTokensApi.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -33,41 +33,78 @@ 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]; - } + describe('(package)', function() { + describe('AuthorizationTokensApi', function() { + describe('getAuthorizationTokens', function() { + it('should call getAuthorizationTokens successfully', function(done) { + // TODO: uncomment, update parameter values for getAuthorizationTokens call and complete the assertions + /* + var oauthAppId = "oauthAppId_example"; + var appId = "appId_example"; + var opts = {}; + opts.page = 56; + opts.limit = 56; - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + instance.getAuthorizationTokens(oauthAppId, appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultOAuthTokenModel); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OAuthTokenModel); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.TokenType).to.be.a('string'); + expect(data.TokenType).to.be(""); + expect(data.SubjectId).to.be.a('string'); + expect(data.SubjectId).to.be(""); + expect(data.ClientId).to.be.a('string'); + expect(data.ClientId).to.be(""); + expect(data.Expiry).to.be.a(Date); + expect(data.Expiry).to.be(new Date()); + + } + } - 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(); + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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(); + describe('revokeToken', function() { + it('should call revokeToken successfully', function(done) { + // TODO: uncomment, update parameter values for revokeToken call + /* + var key = "key_example"; + var appId = "appId_example"; + + instance.revokeToken(key, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); }); }); diff --git a/test/api/BankAccountApi.spec.js b/test/api/BankAccountApi.spec.js new file mode 100644 index 00000000..af558225 --- /dev/null +++ b/test/api/BankAccountApi.spec.js @@ -0,0 +1,534 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('BankAccountApi', function() { + describe('attachBankAccountToStore', function() { + it('should call attachBankAccountToStore successfully', function(done) { + // TODO: uncomment, update parameter values for attachBankAccountToStore call + /* + var appId = "appId_example"; + var bankAccountId = 56; + var storeId = 56; + + instance.attachBankAccountToStore(appId, bankAccountId, storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('createBankAccount', function() { + it('should call createBankAccount successfully', function(done) { + // TODO: uncomment, update parameter values for createBankAccount call and complete the assertions + /* + var appId = "appId_example"; + var account = new Flipdish.BankAccountCreate(); + account.BankAddress = ""; + account.BankCountryCode = ""; + account.AccountHolderAddress = ""; + account.AccountHolderCountryCode = ""; + account.VatNumber = ""; + account.CurrencyCode = "EUR"; + account.StoreIds = [0]; + account.BankName = ""; + account.AccountName = ""; + account.Iban = ""; + account.Swift = ""; + account.NationalClearingCode = ""; + account.PopulatedAccountFields = [new Flipdish.AccountFieldKeyValuePair()]; + account.PopulatedAccountFields[0].Key = "Iban"; + account.PopulatedAccountFields[0].Value = ""; + account.RejectionReason = ""; + account.BusinessType = "Individual"; + + instance.createBankAccount(appId, account, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultBankAccountDetail); + expect(data.Data).to.be.a(Flipdish.BankAccountDetail); + expect(data.Data.Id).to.be.a('number'); + expect(data.Data.Id).to.be(0); + { + let dataCtr = data.Data.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.AccountState).to.be.a('string'); + expect(data.Data.AccountState).to.be("Unverified"); + expect(data.Data.StripeConnectedAccountInfo).to.be.a(Flipdish.StripeConnectedAccountInfo); + expect(data.Data.StripeConnectedAccountInfo.AccountStatus).to.be.a('string'); + expect(data.Data.StripeConnectedAccountInfo.AccountStatus).to.be("Disabled"); + expect(data.Data.StripeConnectedAccountInfo.StripeId).to.be.a('string'); + expect(data.Data.StripeConnectedAccountInfo.StripeId).to.be(""); + expect(data.Data.StripeConnectedAccountInfo.CardPaymentStatus).to.be.a('string'); + expect(data.Data.StripeConnectedAccountInfo.CardPaymentStatus).to.be("Inactive"); + expect(data.Data.BankAddress).to.be.a('string'); + expect(data.Data.BankAddress).to.be(""); + expect(data.Data.BankCountryCode).to.be.a('string'); + expect(data.Data.BankCountryCode).to.be(""); + expect(data.Data.AccountHolderAddress).to.be.a('string'); + expect(data.Data.AccountHolderAddress).to.be(""); + expect(data.Data.AccountHolderCountryCode).to.be.a('string'); + expect(data.Data.AccountHolderCountryCode).to.be(""); + expect(data.Data.VatNumber).to.be.a('string'); + expect(data.Data.VatNumber).to.be(""); + expect(data.Data.CurrencyCode).to.be.a('string'); + expect(data.Data.CurrencyCode).to.be("EUR"); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.Data.BankName).to.be.a('string'); + expect(data.Data.BankName).to.be(""); + expect(data.Data.AccountName).to.be.a('string'); + expect(data.Data.AccountName).to.be(""); + expect(data.Data.Iban).to.be.a('string'); + expect(data.Data.Iban).to.be(""); + expect(data.Data.Swift).to.be.a('string'); + expect(data.Data.Swift).to.be(""); + expect(data.Data.NationalClearingCode).to.be.a('string'); + expect(data.Data.NationalClearingCode).to.be(""); + { + let dataCtr = data.Data.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Data.RejectionReason).to.be.a('string'); + expect(data.Data.RejectionReason).to.be(""); + expect(data.Data.BusinessType).to.be.a('string'); + expect(data.Data.BusinessType).to.be("Individual"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('deleteBankAccount', function() { + it('should call deleteBankAccount successfully', function(done) { + // TODO: uncomment, update parameter values for deleteBankAccount call + /* + var appId = "appId_example"; + var bankAccountId = 56; + + instance.deleteBankAccount(appId, bankAccountId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getBankAccountById', function() { + it('should call getBankAccountById successfully', function(done) { + // TODO: uncomment, update parameter values for getBankAccountById call and complete the assertions + /* + var bankAccountId = 56; + var appId = "appId_example"; + + instance.getBankAccountById(bankAccountId, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultBankAccountDetail); + expect(data.Data).to.be.a(Flipdish.BankAccountDetail); + expect(data.Data.Id).to.be.a('number'); + expect(data.Data.Id).to.be(0); + { + let dataCtr = data.Data.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.AccountState).to.be.a('string'); + expect(data.Data.AccountState).to.be("Unverified"); + expect(data.Data.StripeConnectedAccountInfo).to.be.a(Flipdish.StripeConnectedAccountInfo); + expect(data.Data.StripeConnectedAccountInfo.AccountStatus).to.be.a('string'); + expect(data.Data.StripeConnectedAccountInfo.AccountStatus).to.be("Disabled"); + expect(data.Data.StripeConnectedAccountInfo.StripeId).to.be.a('string'); + expect(data.Data.StripeConnectedAccountInfo.StripeId).to.be(""); + expect(data.Data.StripeConnectedAccountInfo.CardPaymentStatus).to.be.a('string'); + expect(data.Data.StripeConnectedAccountInfo.CardPaymentStatus).to.be("Inactive"); + expect(data.Data.BankAddress).to.be.a('string'); + expect(data.Data.BankAddress).to.be(""); + expect(data.Data.BankCountryCode).to.be.a('string'); + expect(data.Data.BankCountryCode).to.be(""); + expect(data.Data.AccountHolderAddress).to.be.a('string'); + expect(data.Data.AccountHolderAddress).to.be(""); + expect(data.Data.AccountHolderCountryCode).to.be.a('string'); + expect(data.Data.AccountHolderCountryCode).to.be(""); + expect(data.Data.VatNumber).to.be.a('string'); + expect(data.Data.VatNumber).to.be(""); + expect(data.Data.CurrencyCode).to.be.a('string'); + expect(data.Data.CurrencyCode).to.be("EUR"); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.Data.BankName).to.be.a('string'); + expect(data.Data.BankName).to.be(""); + expect(data.Data.AccountName).to.be.a('string'); + expect(data.Data.AccountName).to.be(""); + expect(data.Data.Iban).to.be.a('string'); + expect(data.Data.Iban).to.be(""); + expect(data.Data.Swift).to.be.a('string'); + expect(data.Data.Swift).to.be(""); + expect(data.Data.NationalClearingCode).to.be.a('string'); + expect(data.Data.NationalClearingCode).to.be(""); + { + let dataCtr = data.Data.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Data.RejectionReason).to.be.a('string'); + expect(data.Data.RejectionReason).to.be(""); + expect(data.Data.BusinessType).to.be.a('string'); + expect(data.Data.BusinessType).to.be("Individual"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getBankAccounts', function() { + it('should call getBankAccounts successfully', function(done) { + // TODO: uncomment, update parameter values for getBankAccounts call and complete the assertions + /* + var appId = "appId_example"; + + instance.getBankAccounts(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultBankAccountSummary); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountSummary); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + { + let dataCtr = data.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.AccountState).to.be.a('string'); + expect(data.AccountState).to.be("Unverified"); + expect(data.CurrencyCode).to.be.a('string'); + expect(data.CurrencyCode).to.be(""); + expect(data.StripeConnectedAccountInfo).to.be.a(Flipdish.StripeConnectedAccountInfo); + expect(data.StripeConnectedAccountInfo.AccountStatus).to.be.a('string'); + expect(data.StripeConnectedAccountInfo.AccountStatus).to.be("Disabled"); + expect(data.StripeConnectedAccountInfo.StripeId).to.be.a('string'); + expect(data.StripeConnectedAccountInfo.StripeId).to.be(""); + expect(data.StripeConnectedAccountInfo.CardPaymentStatus).to.be.a('string'); + expect(data.StripeConnectedAccountInfo.CardPaymentStatus).to.be("Inactive"); + expect(data.AccountName).to.be.a('string'); + expect(data.AccountName).to.be(""); + expect(data.Iban).to.be.a('string'); + expect(data.Iban).to.be(""); + expect(data.Swift).to.be.a('string'); + expect(data.Swift).to.be(""); + expect(data.NationalClearingCode).to.be.a('string'); + expect(data.NationalClearingCode).to.be(""); + { + let dataCtr = data.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.RejectionReason).to.be.a('string'); + expect(data.RejectionReason).to.be(""); + expect(data.BusinessType).to.be.a('string'); + expect(data.BusinessType).to.be("Individual"); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getCountriesWithFieldDefinitions', function() { + it('should call getCountriesWithFieldDefinitions successfully', function(done) { + // TODO: uncomment, update parameter values for getCountriesWithFieldDefinitions call and complete the assertions + /* + var appId = "appId_example"; + + instance.getCountriesWithFieldDefinitions(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultCountryWithAccountFieldsDefinitions); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CountryWithAccountFieldsDefinitions); + expect(data.CountryCode).to.be.a('string'); + expect(data.CountryCode).to.be(""); + expect(data.DisplayName).to.be.a('string'); + expect(data.DisplayName).to.be(""); + expect(data.SupportType).to.be.a('string'); + expect(data.SupportType).to.be(""); + { + let dataCtr = data.FieldDefinitions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldDefinition); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.DisplayName).to.be.a('string'); + expect(data.DisplayName).to.be(""); + expect(data.Type).to.be.a('string'); + expect(data.Type).to.be("None"); + expect(data.MinLength).to.be.a('number'); + expect(data.MinLength).to.be(0); + expect(data.MaxLength).to.be.a('number'); + expect(data.MaxLength).to.be(0); + expect(data.DigitsOnly).to.be.a('boolean'); + expect(data.DigitsOnly).to.be(false); + expect(data.Regex).to.be.a('string'); + expect(data.Regex).to.be(""); + + } + } + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getFieldDefinitions', function() { + it('should call getFieldDefinitions successfully', function(done) { + // TODO: uncomment, update parameter values for getFieldDefinitions call and complete the assertions + /* + var appId = "appId_example"; + + instance.getFieldDefinitions(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultAccountFieldsDefinitions); + expect(data.Data).to.be.a(Flipdish.AccountFieldsDefinitions); + { + let dataCtr = data.Data.DefinitionsPerCountry; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Array); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.DisplayName).to.be.a('string'); + expect(data.DisplayName).to.be(""); + expect(data.Type).to.be.a('string'); + expect(data.Type).to.be("None"); + expect(data.MinLength).to.be.a('number'); + expect(data.MinLength).to.be(0); + expect(data.MaxLength).to.be.a('number'); + expect(data.MaxLength).to.be(0); + expect(data.DigitsOnly).to.be.a('boolean'); + expect(data.DigitsOnly).to.be(false); + expect(data.Regex).to.be.a('string'); + expect(data.Regex).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateBankAccount', function() { + it('should call updateBankAccount successfully', function(done) { + // TODO: uncomment, update parameter values for updateBankAccount call + /* + var appId = "appId_example"; + var bankAccountId = 56; + var account = new Flipdish.BankAccountCreate(); + account.BankAddress = ""; + account.BankCountryCode = ""; + account.AccountHolderAddress = ""; + account.AccountHolderCountryCode = ""; + account.VatNumber = ""; + account.CurrencyCode = "EUR"; + account.StoreIds = [0]; + account.BankName = ""; + account.AccountName = ""; + account.Iban = ""; + account.Swift = ""; + account.NationalClearingCode = ""; + account.PopulatedAccountFields = [new Flipdish.AccountFieldKeyValuePair()]; + account.PopulatedAccountFields[0].Key = "Iban"; + account.PopulatedAccountFields[0].Value = ""; + account.RejectionReason = ""; + account.BusinessType = "Individual"; + + instance.updateBankAccount(appId, bankAccountId, account, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateBankAccountState', function() { + it('should call updateBankAccountState successfully', function(done) { + // TODO: uncomment, update parameter values for updateBankAccountState call + /* + var appId = "appId_example"; + var bankAccountId = 56; + var state = "state_example"; + var reason = "reason_example"; + + instance.updateBankAccountState(appId, bankAccountId, state, reason, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/CampaignsApi.spec.js b/test/api/CampaignsApi.spec.js new file mode 100644 index 00000000..583666cd --- /dev/null +++ b/test/api/CampaignsApi.spec.js @@ -0,0 +1,774 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('CampaignsApi', function() { + describe('createLoyaltyCampaign', function() { + it('should call createLoyaltyCampaign successfully', function(done) { + // TODO: uncomment, update parameter values for createLoyaltyCampaign call and complete the assertions + /* + var appId = "appId_example"; + var campaign = new Flipdish.LoyaltyCampaignBase(); + campaign.OrdersBeforeReceivingVoucher = 0; + campaign.PercentDiscountAmount = 0; + campaign.VoucherValidPeriodDays = 0; + campaign.IncludeDeliveryFee = false; + campaign.AutoApplyResultingVouchers = false; + campaign.IncludeExistingOrders = false; + campaign.IsEnabled = false; + campaign.StoreIds = [0]; + + instance.createLoyaltyCampaign(appId, campaign, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultLoyaltyCampaign); + expect(data.Data).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.Data.CampaignId).to.be.a('number'); + expect(data.Data.CampaignId).to.be(0); + expect(data.Data.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.Data.Statistics.VouchersIssued).to.be.a('number'); + expect(data.Data.Statistics.VouchersIssued).to.be(0); + expect(data.Data.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.Data.Statistics.VouchersRedeemed).to.be(0); + expect(data.Data.Statistics.Conversion).to.be.a('number'); + expect(data.Data.Statistics.Conversion).to.be(0.0); + expect(data.Data.Statistics.SalesGenerated).to.be.a('number'); + expect(data.Data.Statistics.SalesGenerated).to.be(0.0); + expect(data.Data.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.Data.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.Data.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.Data.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.Data.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.Data.PercentDiscountAmount).to.be.a('number'); + expect(data.Data.PercentDiscountAmount).to.be(0); + expect(data.Data.VoucherValidPeriodDays).to.be.a('number'); + expect(data.Data.VoucherValidPeriodDays).to.be(0); + expect(data.Data.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Data.IncludeDeliveryFee).to.be(false); + expect(data.Data.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.Data.AutoApplyResultingVouchers).to.be(false); + expect(data.Data.IncludeExistingOrders).to.be.a('boolean'); + expect(data.Data.IncludeExistingOrders).to.be(false); + expect(data.Data.IsEnabled).to.be.a('boolean'); + expect(data.Data.IsEnabled).to.be(false); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('createRetentionCampaign', function() { + it('should call createRetentionCampaign successfully', function(done) { + // TODO: uncomment, update parameter values for createRetentionCampaign call and complete the assertions + /* + var appId = "appId_example"; + var campaign = new Flipdish.RetentionCampaignBase(); + campaign.NotifyCustomerAfterMinutes = 0; + campaign.PercentDiscountAmount = 0; + campaign.LumpDiscountAmount = 0.0; + campaign.VoucherValidPeriodDays = 0; + campaign.IncludeDeliveryFee = false; + campaign.AutoApplyResultingVouchers = false; + campaign.IncludeExistingOrders = false; + campaign.IsEnabled = false; + campaign.StoreIds = [0]; + + instance.createRetentionCampaign(appId, campaign, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultRetentionCampaign); + expect(data.Data).to.be.a(Flipdish.RetentionCampaign); + expect(data.Data.CampaignId).to.be.a('number'); + expect(data.Data.CampaignId).to.be(0); + expect(data.Data.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.Data.Statistics.VouchersIssued).to.be.a('number'); + expect(data.Data.Statistics.VouchersIssued).to.be(0); + expect(data.Data.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.Data.Statistics.VouchersRedeemed).to.be(0); + expect(data.Data.Statistics.Conversion).to.be.a('number'); + expect(data.Data.Statistics.Conversion).to.be(0.0); + expect(data.Data.Statistics.SalesGenerated).to.be.a('number'); + expect(data.Data.Statistics.SalesGenerated).to.be(0.0); + expect(data.Data.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.Data.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.Data.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.Data.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.Data.NotifyCustomerAfterMinutes).to.be(0); + expect(data.Data.PercentDiscountAmount).to.be.a('number'); + expect(data.Data.PercentDiscountAmount).to.be(0); + expect(data.Data.LumpDiscountAmount).to.be.a('number'); + expect(data.Data.LumpDiscountAmount).to.be(0.0); + expect(data.Data.VoucherValidPeriodDays).to.be.a('number'); + expect(data.Data.VoucherValidPeriodDays).to.be(0); + expect(data.Data.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Data.IncludeDeliveryFee).to.be(false); + expect(data.Data.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.Data.AutoApplyResultingVouchers).to.be(false); + expect(data.Data.IncludeExistingOrders).to.be.a('boolean'); + expect(data.Data.IncludeExistingOrders).to.be(false); + expect(data.Data.IsEnabled).to.be.a('boolean'); + expect(data.Data.IsEnabled).to.be(false); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getLoyaltyCampaignsForApp', function() { + it('should call getLoyaltyCampaignsForApp successfully', function(done) { + // TODO: uncomment, update parameter values for getLoyaltyCampaignsForApp call and complete the assertions + /* + var appId = "appId_example"; + + instance.getLoyaltyCampaignsForApp(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultLoyaltyCampaign); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.CampaignId).to.be.a('number'); + expect(data.CampaignId).to.be(0); + expect(data.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.Statistics.VouchersIssued).to.be.a('number'); + expect(data.Statistics.VouchersIssued).to.be(0); + expect(data.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.Statistics.VouchersRedeemed).to.be(0); + expect(data.Statistics.Conversion).to.be.a('number'); + expect(data.Statistics.Conversion).to.be(0.0); + expect(data.Statistics.SalesGenerated).to.be.a('number'); + expect(data.Statistics.SalesGenerated).to.be(0.0); + expect(data.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.PercentDiscountAmount).to.be.a('number'); + expect(data.PercentDiscountAmount).to.be(0); + expect(data.VoucherValidPeriodDays).to.be.a('number'); + expect(data.VoucherValidPeriodDays).to.be(0); + expect(data.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.IncludeDeliveryFee).to.be(false); + expect(data.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.AutoApplyResultingVouchers).to.be(false); + expect(data.IncludeExistingOrders).to.be.a('boolean'); + expect(data.IncludeExistingOrders).to.be(false); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getLoyaltyCampaignsForStore', function() { + it('should call getLoyaltyCampaignsForStore successfully', function(done) { + // TODO: uncomment, update parameter values for getLoyaltyCampaignsForStore call and complete the assertions + /* + var appId = "appId_example"; + var storeId = 56; + + instance.getLoyaltyCampaignsForStore(appId, storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultLoyaltyCampaign); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.CampaignId).to.be.a('number'); + expect(data.CampaignId).to.be(0); + expect(data.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.Statistics.VouchersIssued).to.be.a('number'); + expect(data.Statistics.VouchersIssued).to.be(0); + expect(data.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.Statistics.VouchersRedeemed).to.be(0); + expect(data.Statistics.Conversion).to.be.a('number'); + expect(data.Statistics.Conversion).to.be(0.0); + expect(data.Statistics.SalesGenerated).to.be.a('number'); + expect(data.Statistics.SalesGenerated).to.be(0.0); + expect(data.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.PercentDiscountAmount).to.be.a('number'); + expect(data.PercentDiscountAmount).to.be(0); + expect(data.VoucherValidPeriodDays).to.be.a('number'); + expect(data.VoucherValidPeriodDays).to.be(0); + expect(data.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.IncludeDeliveryFee).to.be(false); + expect(data.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.AutoApplyResultingVouchers).to.be(false); + expect(data.IncludeExistingOrders).to.be.a('boolean'); + expect(data.IncludeExistingOrders).to.be(false); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getRetentionCampaignsForApp', function() { + it('should call getRetentionCampaignsForApp successfully', function(done) { + // TODO: uncomment, update parameter values for getRetentionCampaignsForApp call and complete the assertions + /* + var appId = "appId_example"; + + instance.getRetentionCampaignsForApp(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultRetentionCampaign); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaign); + expect(data.CampaignId).to.be.a('number'); + expect(data.CampaignId).to.be(0); + expect(data.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.Statistics.VouchersIssued).to.be.a('number'); + expect(data.Statistics.VouchersIssued).to.be(0); + expect(data.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.Statistics.VouchersRedeemed).to.be(0); + expect(data.Statistics.Conversion).to.be.a('number'); + expect(data.Statistics.Conversion).to.be(0.0); + expect(data.Statistics.SalesGenerated).to.be.a('number'); + expect(data.Statistics.SalesGenerated).to.be(0.0); + expect(data.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.NotifyCustomerAfterMinutes).to.be(0); + expect(data.PercentDiscountAmount).to.be.a('number'); + expect(data.PercentDiscountAmount).to.be(0); + expect(data.LumpDiscountAmount).to.be.a('number'); + expect(data.LumpDiscountAmount).to.be(0.0); + expect(data.VoucherValidPeriodDays).to.be.a('number'); + expect(data.VoucherValidPeriodDays).to.be(0); + expect(data.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.IncludeDeliveryFee).to.be(false); + expect(data.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.AutoApplyResultingVouchers).to.be(false); + expect(data.IncludeExistingOrders).to.be.a('boolean'); + expect(data.IncludeExistingOrders).to.be(false); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getRetentionCampaignsForStore', function() { + it('should call getRetentionCampaignsForStore successfully', function(done) { + // TODO: uncomment, update parameter values for getRetentionCampaignsForStore call and complete the assertions + /* + var appId = "appId_example"; + var storeId = 56; + + instance.getRetentionCampaignsForStore(appId, storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultRetentionCampaign); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaign); + expect(data.CampaignId).to.be.a('number'); + expect(data.CampaignId).to.be(0); + expect(data.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.Statistics.VouchersIssued).to.be.a('number'); + expect(data.Statistics.VouchersIssued).to.be(0); + expect(data.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.Statistics.VouchersRedeemed).to.be(0); + expect(data.Statistics.Conversion).to.be.a('number'); + expect(data.Statistics.Conversion).to.be(0.0); + expect(data.Statistics.SalesGenerated).to.be.a('number'); + expect(data.Statistics.SalesGenerated).to.be(0.0); + expect(data.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.NotifyCustomerAfterMinutes).to.be(0); + expect(data.PercentDiscountAmount).to.be.a('number'); + expect(data.PercentDiscountAmount).to.be(0); + expect(data.LumpDiscountAmount).to.be.a('number'); + expect(data.LumpDiscountAmount).to.be(0.0); + expect(data.VoucherValidPeriodDays).to.be.a('number'); + expect(data.VoucherValidPeriodDays).to.be(0); + expect(data.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.IncludeDeliveryFee).to.be(false); + expect(data.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.AutoApplyResultingVouchers).to.be(false); + expect(data.IncludeExistingOrders).to.be.a('boolean'); + expect(data.IncludeExistingOrders).to.be(false); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getStoreList', function() { + it('should call getStoreList successfully', function(done) { + // TODO: uncomment, update parameter values for getStoreList call and complete the assertions + /* + var appId = "appId_example"; + + instance.getStoreList(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultStoreListItem); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreListItem); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreName).to.be.a('string'); + expect(data.StoreName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.StoreGroupName).to.be.a('string'); + expect(data.StoreGroupName).to.be(""); + expect(data.HasLoyaltyCampaign).to.be.a('boolean'); + expect(data.HasLoyaltyCampaign).to.be(false); + expect(data.HasRetentionCampaign).to.be.a('boolean'); + expect(data.HasRetentionCampaign).to.be(false); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('removeCampaign', function() { + it('should call removeCampaign successfully', function(done) { + // TODO: uncomment, update parameter values for removeCampaign call + /* + var appId = "appId_example"; + var campaignId = 56; + + instance.removeCampaign(appId, campaignId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateLoyaltyCampaign', function() { + it('should call updateLoyaltyCampaign successfully', function(done) { + // TODO: uncomment, update parameter values for updateLoyaltyCampaign call and complete the assertions + /* + var appId = "appId_example"; + var campaignId = 56; + var campaign = new Flipdish.LoyaltyCampaignBase(); + campaign.OrdersBeforeReceivingVoucher = 0; + campaign.PercentDiscountAmount = 0; + campaign.VoucherValidPeriodDays = 0; + campaign.IncludeDeliveryFee = false; + campaign.AutoApplyResultingVouchers = false; + campaign.IncludeExistingOrders = false; + campaign.IsEnabled = false; + campaign.StoreIds = [0]; + + instance.updateLoyaltyCampaign(appId, campaignId, campaign, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultLoyaltyCampaign); + expect(data.Data).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.Data.CampaignId).to.be.a('number'); + expect(data.Data.CampaignId).to.be(0); + expect(data.Data.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.Data.Statistics.VouchersIssued).to.be.a('number'); + expect(data.Data.Statistics.VouchersIssued).to.be(0); + expect(data.Data.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.Data.Statistics.VouchersRedeemed).to.be(0); + expect(data.Data.Statistics.Conversion).to.be.a('number'); + expect(data.Data.Statistics.Conversion).to.be(0.0); + expect(data.Data.Statistics.SalesGenerated).to.be.a('number'); + expect(data.Data.Statistics.SalesGenerated).to.be(0.0); + expect(data.Data.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.Data.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.Data.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.Data.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.Data.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.Data.PercentDiscountAmount).to.be.a('number'); + expect(data.Data.PercentDiscountAmount).to.be(0); + expect(data.Data.VoucherValidPeriodDays).to.be.a('number'); + expect(data.Data.VoucherValidPeriodDays).to.be(0); + expect(data.Data.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Data.IncludeDeliveryFee).to.be(false); + expect(data.Data.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.Data.AutoApplyResultingVouchers).to.be(false); + expect(data.Data.IncludeExistingOrders).to.be.a('boolean'); + expect(data.Data.IncludeExistingOrders).to.be(false); + expect(data.Data.IsEnabled).to.be.a('boolean'); + expect(data.Data.IsEnabled).to.be(false); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateRetentionCampaign', function() { + it('should call updateRetentionCampaign successfully', function(done) { + // TODO: uncomment, update parameter values for updateRetentionCampaign call and complete the assertions + /* + var appId = "appId_example"; + var campaignId = 56; + var campaign = new Flipdish.RetentionCampaignBase(); + campaign.NotifyCustomerAfterMinutes = 0; + campaign.PercentDiscountAmount = 0; + campaign.LumpDiscountAmount = 0.0; + campaign.VoucherValidPeriodDays = 0; + campaign.IncludeDeliveryFee = false; + campaign.AutoApplyResultingVouchers = false; + campaign.IncludeExistingOrders = false; + campaign.IsEnabled = false; + campaign.StoreIds = [0]; + + instance.updateRetentionCampaign(appId, campaignId, campaign, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultRetentionCampaign); + expect(data.Data).to.be.a(Flipdish.RetentionCampaign); + expect(data.Data.CampaignId).to.be.a('number'); + expect(data.Data.CampaignId).to.be(0); + expect(data.Data.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.Data.Statistics.VouchersIssued).to.be.a('number'); + expect(data.Data.Statistics.VouchersIssued).to.be(0); + expect(data.Data.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.Data.Statistics.VouchersRedeemed).to.be(0); + expect(data.Data.Statistics.Conversion).to.be.a('number'); + expect(data.Data.Statistics.Conversion).to.be(0.0); + expect(data.Data.Statistics.SalesGenerated).to.be.a('number'); + expect(data.Data.Statistics.SalesGenerated).to.be(0.0); + expect(data.Data.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.Data.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.Data.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.Data.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.Data.NotifyCustomerAfterMinutes).to.be(0); + expect(data.Data.PercentDiscountAmount).to.be.a('number'); + expect(data.Data.PercentDiscountAmount).to.be(0); + expect(data.Data.LumpDiscountAmount).to.be.a('number'); + expect(data.Data.LumpDiscountAmount).to.be(0.0); + expect(data.Data.VoucherValidPeriodDays).to.be.a('number'); + expect(data.Data.VoucherValidPeriodDays).to.be(0); + expect(data.Data.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Data.IncludeDeliveryFee).to.be(false); + expect(data.Data.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.Data.AutoApplyResultingVouchers).to.be(false); + expect(data.Data.IncludeExistingOrders).to.be.a('boolean'); + expect(data.Data.IncludeExistingOrders).to.be(false); + expect(data.Data.IsEnabled).to.be.a('boolean'); + expect(data.Data.IsEnabled).to.be(false); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/CardReadersApi.spec.js b/test/api/CardReadersApi.spec.js new file mode 100644 index 00000000..22c5b3d9 --- /dev/null +++ b/test/api/CardReadersApi.spec.js @@ -0,0 +1,210 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('CardReadersApi', function() { + describe('authorizeStripeTerminal', function() { + it('should call authorizeStripeTerminal successfully', function(done) { + // TODO: uncomment authorizeStripeTerminal call and complete the assertions + /* + + instance.authorizeStripeTerminal(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStripeTerminalPrivateKey); + expect(data.Data).to.be.a(Flipdish.StripeTerminalPrivateKey); + expect(data.Data.Location).to.be.a('string'); + expect(data.Data.Location).to.be(""); + expect(data.Data.Secret).to.be.a('string'); + expect(data.Data.Secret).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('authorizeStripeTerminal_0', function() { + it('should call authorizeStripeTerminal_0 successfully', function(done) { + // TODO: uncomment, update parameter values for authorizeStripeTerminal_0 call and complete the assertions + /* + var appId = "appId_example"; + + instance.authorizeStripeTerminal_0(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStripeTerminalPrivateKey); + expect(data.Data).to.be.a(Flipdish.StripeTerminalPrivateKey); + expect(data.Data.Location).to.be.a('string'); + expect(data.Data.Location).to.be(""); + expect(data.Data.Secret).to.be.a('string'); + expect(data.Data.Secret).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getBluetoothTerminalStatus', function() { + it('should call getBluetoothTerminalStatus successfully', function(done) { + // TODO: uncomment, update parameter values for getBluetoothTerminalStatus call and complete the assertions + /* + var appId = "appId_example"; + var deviceId = "deviceId_example"; + + instance.getBluetoothTerminalStatus(appId, deviceId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultBluetoothTerminalStatus); + expect(data.Data).to.be.a(Flipdish.BluetoothTerminalStatus); + expect(data.Data.SerialNumber).to.be.a('string'); + expect(data.Data.SerialNumber).to.be(""); + expect(data.Data.SoftwareVersion).to.be.a('string'); + expect(data.Data.SoftwareVersion).to.be(""); + expect(data.Data.DeviceType).to.be.a('string'); + expect(data.Data.DeviceType).to.be("CHIPPER_2X"); + expect(data.Data.Status).to.be.a('string'); + expect(data.Data.Status).to.be("Not_Connected"); + expect(data.Data.BatteryLevel).to.be.a('number'); + expect(data.Data.BatteryLevel).to.be(0.0); + expect(data.Data.UpdateTime).to.be.a(Date); + expect(data.Data.UpdateTime).to.be(new Date()); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('initiateBluetoothTerminalDeviceUpdateCheck', function() { + it('should call initiateBluetoothTerminalDeviceUpdateCheck successfully', function(done) { + // TODO: uncomment, update parameter values for initiateBluetoothTerminalDeviceUpdateCheck call + /* + var appId = "appId_example"; + var deviceId = "deviceId_example"; + var terminalType = "terminalType_example"; + + instance.initiateBluetoothTerminalDeviceUpdateCheck(appId, deviceId, terminalType, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('initiateKioskBluetoothPairingMode', function() { + it('should call initiateKioskBluetoothPairingMode successfully', function(done) { + // TODO: uncomment, update parameter values for initiateKioskBluetoothPairingMode call + /* + var appId = "appId_example"; + var deviceId = "deviceId_example"; + var terminalType = "terminalType_example"; + + instance.initiateKioskBluetoothPairingMode(appId, deviceId, terminalType, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('initiateKioskUpdateInstallForBluetoothTerminal', function() { + it('should call initiateKioskUpdateInstallForBluetoothTerminal successfully', function(done) { + // TODO: uncomment, update parameter values for initiateKioskUpdateInstallForBluetoothTerminal call + /* + var appId = "appId_example"; + var deviceId = "deviceId_example"; + var terminalType = "terminalType_example"; + + instance.initiateKioskUpdateInstallForBluetoothTerminal(appId, deviceId, terminalType, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('unpairCurrentlyPairedBluetoothDevice', function() { + it('should call unpairCurrentlyPairedBluetoothDevice successfully', function(done) { + // TODO: uncomment, update parameter values for unpairCurrentlyPairedBluetoothDevice call + /* + var appId = "appId_example"; + var deviceId = "deviceId_example"; + + instance.unpairCurrentlyPairedBluetoothDevice(appId, deviceId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/ContentSecurityPolicyApi.spec.js b/test/api/ContentSecurityPolicyApi.spec.js new file mode 100644 index 00000000..33551ffc --- /dev/null +++ b/test/api/ContentSecurityPolicyApi.spec.js @@ -0,0 +1,71 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('ContentSecurityPolicyApi', function() { + describe('contentSecurityPolicyReport', function() { + it('should call contentSecurityPolicyReport successfully', function(done) { + // TODO: uncomment, update parameter values for contentSecurityPolicyReport call and complete the assertions + /* + var request = new Flipdish.CspReportRequest(); + request.Csp_report = new Flipdish.CspReport(); + request.Csp_report.Document_uri = ""; + request.Csp_report.Referrer = ""; + request.Csp_report.Violated_directive = ""; + request.Csp_report.Effective_directive = ""; + request.Csp_report.Original_policy = ""; + request.Csp_report.Blocked_uri = ""; + request.Csp_report.Status_code = 0; + + instance.contentSecurityPolicyReport(request, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/CustomersApi.spec.js b/test/api/CustomersApi.spec.js new file mode 100644 index 00000000..8eb2b7f2 --- /dev/null +++ b/test/api/CustomersApi.spec.js @@ -0,0 +1,111 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('CustomersApi', function() { + describe('getCustomerById', function() { + it('should call getCustomerById successfully', function(done) { + // TODO: uncomment, update parameter values for getCustomerById call and complete the assertions + /* + var appId = "appId_example"; + var customerId = 56; + + instance.getCustomerById(appId, customerId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultCustomer); + expect(data.Data).to.be.a(Flipdish.Customer); + expect(data.Data.CustomerId).to.be.a('number'); + expect(data.Data.CustomerId).to.be(0); + expect(data.Data.RegistrationDate).to.be.a(Date); + expect(data.Data.RegistrationDate).to.be(new Date()); + expect(data.Data.CashOrdersEnabled).to.be.a('boolean'); + expect(data.Data.CashOrdersEnabled).to.be(false); + expect(data.Data.CardOrdersEnabled).to.be.a('boolean'); + expect(data.Data.CardOrdersEnabled).to.be(false); + expect(data.Data.MarketingEnabled).to.be.a('boolean'); + expect(data.Data.MarketingEnabled).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateCustomerById', function() { + it('should call updateCustomerById successfully', function(done) { + // TODO: uncomment, update parameter values for updateCustomerById call and complete the assertions + /* + var appId = "appId_example"; + var customerId = 56; + var updateCustomer = new Flipdish.CustomerUpdateModel(); + updateCustomer.CashOrdersEnabled = false; + updateCustomer.CardOrdersEnabled = false; + updateCustomer.MarketingEnabled = false; + + instance.updateCustomerById(appId, customerId, updateCustomer, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultCustomer); + expect(data.Data).to.be.a(Flipdish.Customer); + expect(data.Data.CustomerId).to.be.a('number'); + expect(data.Data.CustomerId).to.be(0); + expect(data.Data.RegistrationDate).to.be.a(Date); + expect(data.Data.RegistrationDate).to.be(new Date()); + expect(data.Data.CashOrdersEnabled).to.be.a('boolean'); + expect(data.Data.CashOrdersEnabled).to.be(false); + expect(data.Data.CardOrdersEnabled).to.be.a('boolean'); + expect(data.Data.CardOrdersEnabled).to.be(false); + expect(data.Data.MarketingEnabled).to.be.a('boolean'); + expect(data.Data.MarketingEnabled).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/DeliveryTrackingApi.spec.js b/test/api/DeliveryTrackingApi.spec.js new file mode 100644 index 00000000..df52bcb6 --- /dev/null +++ b/test/api/DeliveryTrackingApi.spec.js @@ -0,0 +1,239 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DeliveryTrackingApi(); + }); + + describe('(package)', function() { + describe('DeliveryTrackingApi', function() { + describe('assignDriverToOrder', function() { + it('should call assignDriverToOrder successfully', function(done) { + // TODO: uncomment, update parameter values for assignDriverToOrder call + /* + var appId = "appId_example"; + var orderId = 56; + var driverId = 56; + + instance.assignDriverToOrder(appId, orderId, driverId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('assignDriverToOrders', function() { + it('should call assignDriverToOrders successfully', function(done) { + // TODO: uncomment, update parameter values for assignDriverToOrders call + /* + var appId = "appId_example"; + var driverId = 56; + var orderIdAndSequenceNumbers = [new Flipdish.OrderIdAndSequenceNumber()]; + orderIdAndSequenceNumbers[0].OrderId = 0; + orderIdAndSequenceNumbers[0].Sequence = 0; + + instance.assignDriverToOrders(appId, driverId, orderIdAndSequenceNumbers, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getDrivers', function() { + it('should call getDrivers successfully', function(done) { + // TODO: uncomment, update parameter values for getDrivers call and complete the assertions + /* + var appId = "appId_example"; + var opts = {}; + opts.name = "name_example"; + opts.phoneNumber = "phoneNumber_example"; + opts.storeId = 56; + opts.presence = "presence_example"; + + instance.getDrivers(appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultDriver); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Driver); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.UserName).to.be.a('string'); + expect(data.UserName).to.be(""); + expect(data.UserPhoneNumber).to.be.a('string'); + expect(data.UserPhoneNumber).to.be(""); + { + let dataCtr = data.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DriverStore); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreName).to.be.a('string'); + expect(data.StoreName).to.be(""); + expect(data.Presence).to.be.a('string'); + expect(data.Presence).to.be("Offline"); + + } + } + expect(data.ProfileImageUrl).to.be.a('string'); + expect(data.ProfileImageUrl).to.be(""); + expect(data.DriverKey).to.be.a('string'); + expect(data.DriverKey).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('inviteDriverToApp', function() { + it('should call inviteDriverToApp successfully', function(done) { + // TODO: uncomment, update parameter values for inviteDriverToApp call and complete the assertions + /* + var appId = "appId_example"; + var driverInvitation = new Flipdish.DriverInvitation(); + driverInvitation.PhoneNumber = ""; + driverInvitation.Name = ""; + driverInvitation.StoreIds = [0]; + + instance.inviteDriverToApp(appId, driverInvitation, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultDriver); + expect(data.Data).to.be.a(Flipdish.Driver); + expect(data.Data.UserId).to.be.a('number'); + expect(data.Data.UserId).to.be(0); + expect(data.Data.UserName).to.be.a('string'); + expect(data.Data.UserName).to.be(""); + expect(data.Data.UserPhoneNumber).to.be.a('string'); + expect(data.Data.UserPhoneNumber).to.be(""); + { + let dataCtr = data.Data.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DriverStore); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreName).to.be.a('string'); + expect(data.StoreName).to.be(""); + expect(data.Presence).to.be.a('string'); + expect(data.Presence).to.be("Offline"); + + } + } + expect(data.Data.ProfileImageUrl).to.be.a('string'); + expect(data.Data.ProfileImageUrl).to.be(""); + expect(data.Data.DriverKey).to.be.a('string'); + expect(data.Data.DriverKey).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('removeDriverFromApp', function() { + it('should call removeDriverFromApp successfully', function(done) { + // TODO: uncomment, update parameter values for removeDriverFromApp call + /* + var appId = "appId_example"; + var driverId = 56; + + instance.removeDriverFromApp(appId, driverId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('unassignDriverFromOrder', function() { + it('should call unassignDriverFromOrder successfully', function(done) { + // TODO: uncomment, update parameter values for unassignDriverFromOrder call + /* + var appId = "appId_example"; + var orderId = 56; + + instance.unassignDriverFromOrder(appId, orderId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/DeliveryZoneApi.spec.js b/test/api/DeliveryZoneApi.spec.js new file mode 100644 index 00000000..28c0d563 --- /dev/null +++ b/test/api/DeliveryZoneApi.spec.js @@ -0,0 +1,177 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('DeliveryZoneApi', function() { + describe('addDeliveryZone', function() { + it('should call addDeliveryZone successfully', function(done) { + // TODO: uncomment, update parameter values for addDeliveryZone call and complete the assertions + /* + var storeId = 56; + var deliveryZoneBase = new Flipdish.DeliveryZoneBase(); + deliveryZoneBase.DeliveryFee = 0.0; + deliveryZoneBase.MinimumDeliveryOrderAmount = 0.0; + deliveryZoneBase.WellKnownText = ""; + deliveryZoneBase.IsEnabled = false; + + instance.addDeliveryZone(storeId, deliveryZoneBase, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultDeliveryZone); + expect(data.Data).to.be.a(Flipdish.DeliveryZone); + expect(data.Data.Id).to.be.a('number'); + expect(data.Data.Id).to.be(0); + expect(data.Data.DeliveryFee).to.be.a('number'); + expect(data.Data.DeliveryFee).to.be(0.0); + expect(data.Data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.Data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.Data.WellKnownText).to.be.a('string'); + expect(data.Data.WellKnownText).to.be(""); + expect(data.Data.IsEnabled).to.be.a('boolean'); + expect(data.Data.IsEnabled).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getDeliveryZones', function() { + it('should call getDeliveryZones successfully', function(done) { + // TODO: uncomment, update parameter values for getDeliveryZones call and complete the assertions + /* + var storeId = 56; + + instance.getDeliveryZones(storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultDeliveryZone); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('removeDeliveryZone', function() { + it('should call removeDeliveryZone successfully', function(done) { + // TODO: uncomment, update parameter values for removeDeliveryZone call + /* + var storeId = 56; + var deliveryZoneId = 56; + + instance.removeDeliveryZone(storeId, deliveryZoneId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateDeliveryZone', function() { + it('should call updateDeliveryZone successfully', function(done) { + // TODO: uncomment, update parameter values for updateDeliveryZone call and complete the assertions + /* + var storeId = 56; + var deliveryZoneId = 56; + var deliveryZone = new Flipdish.DeliveryZoneBase(); + deliveryZone.DeliveryFee = 0.0; + deliveryZone.MinimumDeliveryOrderAmount = 0.0; + deliveryZone.WellKnownText = ""; + deliveryZone.IsEnabled = false; + + instance.updateDeliveryZone(storeId, deliveryZoneId, deliveryZone, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultDeliveryZone); + expect(data.Data).to.be.a(Flipdish.DeliveryZone); + expect(data.Data.Id).to.be.a('number'); + expect(data.Data.Id).to.be(0); + expect(data.Data.DeliveryFee).to.be.a('number'); + expect(data.Data.DeliveryFee).to.be(0.0); + expect(data.Data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.Data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.Data.WellKnownText).to.be.a('string'); + expect(data.Data.WellKnownText).to.be(""); + expect(data.Data.IsEnabled).to.be.a('boolean'); + expect(data.Data.IsEnabled).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/DriversApi.spec.js b/test/api/DriversApi.spec.js new file mode 100644 index 00000000..2c342a9f --- /dev/null +++ b/test/api/DriversApi.spec.js @@ -0,0 +1,309 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('DriversApi', function() { + describe('addDriverNotificationToken', function() { + it('should call addDriverNotificationToken successfully', function(done) { + // TODO: uncomment, update parameter values for addDriverNotificationToken call + /* + var updateDriverToken = new Flipdish.UpdateDriverNotificationToken(); + updateDriverToken.PushNotificationsToken = ""; + + instance.addDriverNotificationToken(updateDriverToken, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('deleteDriverProfileImage', function() { + it('should call deleteDriverProfileImage successfully', function(done) { + // TODO: uncomment deleteDriverProfileImage call + /* + + instance.deleteDriverProfileImage(function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('driverLogin', function() { + it('should call driverLogin successfully', function(done) { + // TODO: uncomment, update parameter values for driverLogin call + /* + var driverLoginModel = new Flipdish.DriverLoginModel(); + driverLoginModel.PhoneNumber = ""; + driverLoginModel.Code = ""; + + instance.driverLogin(driverLoginModel, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('driverRequestLoginCodeSms', function() { + it('should call driverRequestLoginCodeSms successfully', function(done) { + // TODO: uncomment, update parameter values for driverRequestLoginCodeSms call + /* + var driverRequestLoginPinModel = new Flipdish.DriverRequestLoginPinModel(); + driverRequestLoginPinModel.PhoneNumber = ""; + + instance.driverRequestLoginCodeSms(driverRequestLoginPinModel, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getDriverProfile', function() { + it('should call getDriverProfile successfully', function(done) { + // TODO: uncomment getDriverProfile call and complete the assertions + /* + + instance.getDriverProfile(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultDriver); + expect(data.Data).to.be.a(Flipdish.Driver); + expect(data.Data.UserId).to.be.a('number'); + expect(data.Data.UserId).to.be(0); + expect(data.Data.UserName).to.be.a('string'); + expect(data.Data.UserName).to.be(""); + expect(data.Data.UserPhoneNumber).to.be.a('string'); + expect(data.Data.UserPhoneNumber).to.be(""); + { + let dataCtr = data.Data.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DriverStore); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreName).to.be.a('string'); + expect(data.StoreName).to.be(""); + expect(data.Presence).to.be.a('string'); + expect(data.Presence).to.be("Offline"); + + } + } + expect(data.Data.ProfileImageUrl).to.be.a('string'); + expect(data.Data.ProfileImageUrl).to.be(""); + expect(data.Data.DriverKey).to.be.a('string'); + expect(data.Data.DriverKey).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getStoresForDriver', function() { + it('should call getStoresForDriver successfully', function(done) { + // TODO: uncomment getStoresForDriver call and complete the assertions + /* + + instance.getStoresForDriver(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultDriverStore); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DriverStore); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreName).to.be.a('string'); + expect(data.StoreName).to.be(""); + expect(data.Presence).to.be.a('string'); + expect(data.Presence).to.be("Offline"); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('removeDriverNotificationToken', function() { + it('should call removeDriverNotificationToken successfully', function(done) { + // TODO: uncomment, update parameter values for removeDriverNotificationToken call + /* + var removeDriverToken = new Flipdish.UpdateDriverNotificationToken(); + removeDriverToken.PushNotificationsToken = ""; + + instance.removeDriverNotificationToken(removeDriverToken, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setDriverPresenceForStore', function() { + it('should call setDriverPresenceForStore successfully', function(done) { + // TODO: uncomment, update parameter values for setDriverPresenceForStore call + /* + var storeId = 56; + var presence = "presence_example"; + + instance.setDriverPresenceForStore(storeId, presence, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setDriverProfileImage', function() { + it('should call setDriverProfileImage successfully', function(done) { + // TODO: uncomment setDriverProfileImage call and complete the assertions + /* + + instance.setDriverProfileImage(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateDeliveryTrackingStatus', function() { + it('should call updateDeliveryTrackingStatus successfully', function(done) { + // TODO: uncomment, update parameter values for updateDeliveryTrackingStatus call and complete the assertions + /* + var orderId = 56; + var deliveryTrackingStatus = "deliveryTrackingStatus_example"; + + instance.updateDeliveryTrackingStatus(orderId, deliveryTrackingStatus, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateDriverProfile', function() { + it('should call updateDriverProfile successfully', function(done) { + // TODO: uncomment, update parameter values for updateDriverProfile call + /* + var updateDriverProfile = new Flipdish.UpdateDriverProfileModel(); + updateDriverProfile.Name = ""; + + instance.updateDriverProfile(updateDriverProfile, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/EventsApi.spec.js b/test/api/EventsApi.spec.js index 74f06660..67c98335 100644 --- a/test/api/EventsApi.spec.js +++ b/test/api/EventsApi.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -33,111 +33,99311 @@ 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]; - } + describe('(package)', function() { + describe('EventsApi', function() { + describe('getCustomerEvents', function() { + it('should call getCustomerEvents successfully', function(done) { + // TODO: uncomment, update parameter values for getCustomerEvents call and complete the assertions + /* + var customerId = 56; + var opts = {}; + opts.limit = 56; + opts.page = 56; + opts.start = new Date("2013-10-20T19:20:30+01:00"); + opts.end = new Date("2013-10-20T19:20:30+01:00"); + opts.orderId = 56; + opts.storeId = 56; + opts.storeGroupId = 56; + opts.userId = 56; + opts.userEmail = "userEmail_example"; + opts.userName = "userName_example"; + opts.voucherCode = "voucherCode_example"; + opts.eventType = ["eventType_example"]; + opts.flipdishEventId = "flipdishEventId_example"; - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + instance.getCustomerEvents(customerId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiEventSearchPaginationResult); + expect(data.Data).to.be.a(Flipdish.EventSearchResult); + { + let dataCtr = data.Data.AppCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AppUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Changes).to.be.a('string'); + expect(data.Changes).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AnalyticsClientEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AnalyticsClientEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.EventType).to.be.a('string'); + expect(data.EventType).to.be(""); + expect(data.AppType).to.be.a('string'); + expect(data.AppType).to.be(""); + expect(data.Metadata).to.be.a('string'); + expect(data.Metadata).to.be(""); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.Latitude).to.be.a('number'); + expect(data.Latitude).to.be(0.0); + expect(data.Longitude).to.be.a('number'); + expect(data.Longitude).to.be(0.0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderAcceptedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderAcceptedTime).to.be.a(Date); + expect(data.OrderAcceptedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDispatchedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDispatchedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderDispatchedTime).to.be.a(Date); + expect(data.OrderDispatchedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCustomerTrackingCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCustomerTrackingCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.CustomerDeliveryTrackingOrder); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.Address).to.be.a('string'); + expect(data.Order.Address).to.be(""); + expect(data.Order.DeliveryNotes).to.be.a('string'); + expect(data.Order.DeliveryNotes).to.be(""); + expect(data.Order.StorePhoneNumber).to.be.a('string'); + expect(data.Order.StorePhoneNumber).to.be(""); + expect(data.Order.AppIconUrl).to.be.a('string'); + expect(data.Order.AppIconUrl).to.be(""); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.Order.PaymentMethodDescription).to.be.a('string'); + expect(data.Order.PaymentMethodDescription).to.be(""); + expect(data.Order.LastFourDigits).to.be.a('string'); + expect(data.Order.LastFourDigits).to.be(""); + { + let dataCtr = data.Order.OrderLines; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerDeliveryTrackingOrderLine); + expect(data.ItemName).to.be.a('string'); + expect(data.ItemName).to.be(""); + { + let dataCtr = data.SelectedOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + + } + } + expect(data.Order.TotalAmount).to.be.a('number'); + expect(data.Order.TotalAmount).to.be(0.0); + expect(data.Order.Currency).to.be.a('string'); + expect(data.Order.Currency).to.be("EUR"); + expect(data.Order.Latitude).to.be.a('number'); + expect(data.Order.Latitude).to.be(0.0); + expect(data.Order.Longitude).to.be.a('number'); + expect(data.Order.Longitude).to.be(0.0); + expect(data.Order.Placed).to.be.a(Date); + expect(data.Order.Placed).to.be(new Date()); + expect(data.Order.RequestedFor).to.be.a(Date); + expect(data.Order.RequestedFor).to.be(new Date()); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.DriverName).to.be.a('string'); + expect(data.Order.DriverName).to.be(""); + expect(data.Order.DriverImage).to.be.a('string'); + expect(data.Order.DriverImage).to.be(""); + expect(data.Order.EstimatedMinutesForDelivery).to.be.a('number'); + expect(data.Order.EstimatedMinutesForDelivery).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDeliveryTrackingStatusUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDeliveryTrackingStatusUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCreatedTime).to.be.a(Date); + expect(data.OrderCreatedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRatingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRatingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Rating).to.be.a('number'); + expect(data.Rating).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRefundedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRefundedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.RefundedAmount).to.be.a('number'); + expect(data.RefundedAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRejectedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRejectedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderRejectedTime).to.be.a(Date); + expect(data.OrderRejectedTime).to.be(new Date()); + expect(data.Reason).to.be.a('string'); + expect(data.Reason).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTipUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderTipUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.TipAmount).to.be.a('number'); + expect(data.TipAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTerminalNotifications; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.EmvNotificationEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Notification).to.be.a('string'); + expect(data.Notification).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.TerminalId).to.be.a('string'); + expect(data.TerminalId).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.ExpDate).to.be.a('string'); + expect(data.ExpDate).to.be(""); + expect(data.CardType).to.be.a('string'); + expect(data.CardType).to.be(""); + expect(data.PaymentMethod).to.be.a('string'); + expect(data.PaymentMethod).to.be(""); + expect(data.AccountNumber).to.be.a('string'); + expect(data.AccountNumber).to.be(""); + expect(data.AuthCode).to.be.a('string'); + expect(data.AuthCode).to.be(""); + expect(data.ProviderMessage).to.be.a('string'); + expect(data.ProviderMessage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreAddressUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreAddressUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreAddress).to.be.a(Flipdish.StoreAddress); + expect(data.StoreAddress.AddressId).to.be.a('number'); + expect(data.StoreAddress.AddressId).to.be(0); + expect(data.StoreAddress.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.StoreAddress.Coordinates.Latitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Latitude).to.be(0.0); + expect(data.StoreAddress.Coordinates.Longitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Longitude).to.be(0.0); + expect(data.StoreAddress.Line1).to.be.a('string'); + expect(data.StoreAddress.Line1).to.be(""); + expect(data.StoreAddress.Postcode).to.be.a('string'); + expect(data.StoreAddress.Postcode).to.be(""); + expect(data.StoreAddress.City).to.be.a('string'); + expect(data.StoreAddress.City).to.be(""); + expect(data.StoreAddress.CountryCode).to.be.a('string'); + expect(data.StoreAddress.CountryCode).to.be(""); + expect(data.StoreAddress.DisplayForCustomer).to.be.a('string'); + expect(data.StoreAddress.DisplayForCustomer).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreKioskSettingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreKioskSettingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreKioskSetting).to.be.a(Flipdish.StoreKioskSetting); + expect(data.StoreKioskSetting.KioskSettingId).to.be.a('number'); + expect(data.StoreKioskSetting.KioskSettingId).to.be(0); + expect(data.StoreKioskSetting.KioskName).to.be.a('string'); + expect(data.StoreKioskSetting.KioskName).to.be(""); + expect(data.StoreKioskSetting.RequireCustomerName).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequireCustomerName).to.be(false); + expect(data.StoreKioskSetting.RequestTableNumber).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequestTableNumber).to.be(false); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be.a('boolean'); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be(false); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be.a('number'); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be(0); + expect(data.StoreKioskSetting.HydraConfigId).to.be.a('number'); + expect(data.StoreKioskSetting.HydraConfigId).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreOpeningHoursUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOpeningHoursUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.DeliveryType).to.be.a('string'); + expect(data.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursPeriodOld).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriodOld.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriodOld.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be(""); + expect(data.BusinessHoursPeriod).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriod.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.Period).to.be(""); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.Period).to.be(""); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriod.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriod.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Period).to.be(""); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreMenuAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreMenuAssignedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreArchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreArchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnarchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnarchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnpublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnpublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePreOrderConfigUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePreOrderConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PreOrderConfig).to.be.a(Flipdish.PreOrderConfig); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be.a('number'); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be(0); + expect(data.PreOrderConfig.IntervalMinutes).to.be.a('number'); + expect(data.PreOrderConfig.IntervalMinutes).to.be(0); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be.a('number'); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be(0); + expect(data.PreOrderConfig.IncludeAsap).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeAsap).to.be(false); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be(false); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be(""); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be(""); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be.a('string'); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be("SingleTime"); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be(false); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be.a('boolean'); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUploadedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUploadedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCheckpointCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCheckpointCreatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerConsentUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerConsentUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Enabled).to.be.a('boolean'); + expect(data.Enabled).to.be(false); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOnEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOnEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOffEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOffEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterAssignedToStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterAssignedToStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterUnassignedFromStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterUnassignedFromStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallStartedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallStartedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallEndedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallEndedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.SmsReceivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.SmsReceivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SmsInfo).to.be.a(Flipdish.SmsInfo); + expect(data.SmsInfo.From).to.be.a('string'); + expect(data.SmsInfo.From).to.be(""); + expect(data.SmsInfo.To).to.be.a('string'); + expect(data.SmsInfo.To).to.be(""); + expect(data.SmsInfo.Text).to.be.a('string'); + expect(data.SmsInfo.Text).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserLoginEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserLoginEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedPasswordEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserPasswordCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserAnsweredSignupQuestionsEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserAnsweredSignupQuestionsEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.SignupAnswers).to.be.a('string'); + expect(data.SignupAnswers).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherCreatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherUpdatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherDeletedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteSentEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteAcceptedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateUpdatedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateDeletedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountCreatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountUpdatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountDeletedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraRequestResetEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraRequestResetEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreUnassignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreUnassignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraSettingChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraSettingChangedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraConfig).to.be.a(Flipdish.HydraConfig); + expect(data.HydraConfig.MinimumVersion).to.be.a('string'); + expect(data.HydraConfig.MinimumVersion).to.be(""); + { + let dataCtr = data.HydraConfig.PaymentOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be("Online"); + } + } + expect(data.HydraConfig.DeviceSettings).to.be.a(Flipdish.DeviceSettings); + expect(data.HydraConfig.DeviceSettings.Volume).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Volume).to.be(0); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be(0.0); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be(0); + expect(data.HydraConfig.Version).to.be.a('string'); + expect(data.HydraConfig.Version).to.be(""); + expect(data.HydraConfig.BuildNumber).to.be.a('string'); + expect(data.HydraConfig.BuildNumber).to.be(""); + expect(data.HydraConfig.GitSha).to.be.a('string'); + expect(data.HydraConfig.GitSha).to.be(""); + expect(data.HydraConfig.GitBranch).to.be.a('string'); + expect(data.HydraConfig.GitBranch).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraUnAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraUnAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraConnectionStatusChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraConnectionStatusChangedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.HydraDeviceStatus).to.be.a('string'); + expect(data.HydraDeviceStatus).to.be("Online"); + expect(data.PollTime).to.be.a(Date); + expect(data.PollTime).to.be(new Date()); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothPairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothPairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothUnpairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothUnpairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalUpdatedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalSerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalSerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus).to.be.a(Flipdish.BluetoothTerminalStatus); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be(""); + expect(data.BluetoothTerminalStatus.DeviceType).to.be.a('string'); + expect(data.BluetoothTerminalStatus.DeviceType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalStatus.Status).to.be.a('string'); + expect(data.BluetoothTerminalStatus.Status).to.be("Not_Connected"); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be.a('number'); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be(0.0); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be.a(Date); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be(new Date()); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalInitiateUpdateCheckEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothInstallUpdateInitiateEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothInstallUpdateInitiateEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationScheduledEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationScheduledEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationSentEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DnsVerifiedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DnsVerifiedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateCreatedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateRenewedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateRenewedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteVanityUrlUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteVanityUrlUpdatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.VanityUrl).to.be.a('string'); + expect(data.VanityUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteUpdatedEvent); + expect(data.AppNameId).to.be.a('string'); + expect(data.AppNameId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCapacityUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCapacityConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCapacityConfig).to.be.a(Flipdish.StoreOrderCapacityConfigEditModel); + { + let dataCtr = data.OrderCapacityConfig.OrderCapacityPeriods; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOrderCapacityPeriod); + expect(data.MaxOrderNumberPerStoreInterval).to.be.a('number'); + expect(data.MaxOrderNumberPerStoreInterval).to.be(0); + expect(data.DayOfTheWeek).to.be.a('string'); + expect(data.DayOfTheWeek).to.be("Sunday"); + expect(data.PeriodStartHour).to.be.a('number'); + expect(data.PeriodStartHour).to.be(0); + expect(data.PeriodStartMinutes).to.be.a('number'); + expect(data.PeriodStartMinutes).to.be(0); + expect(data.PeriodEndHour).to.be.a('number'); + expect(data.PeriodEndHour).to.be(0); + expect(data.PeriodEndMinutes).to.be.a('number'); + expect(data.PeriodEndMinutes).to.be(0); + + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); - 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(); + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getEvents', function() { + it('should call getEvents successfully', function(done) { + // TODO: uncomment, update parameter values for getEvents call and complete the assertions + /* + var opts = {}; + opts.whiteLabelId = 56; + opts.customerId = 56; + opts.limit = 56; + opts.page = 56; + opts.start = new Date("2013-10-20T19:20:30+01:00"); + opts.end = new Date("2013-10-20T19:20:30+01:00"); + opts.orderId = 56; + opts.storeId = 56; + opts.storeGroupId = 56; + opts.userId = 56; + opts.userEmail = "userEmail_example"; + opts.userName = "userName_example"; + opts.voucherCode = "voucherCode_example"; + opts.eventType = ["eventType_example"]; + opts.flipdishEventId = "flipdishEventId_example"; + + instance.getEvents(opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiEventSearchPaginationResult); + expect(data.Data).to.be.a(Flipdish.EventSearchResult); + { + let dataCtr = data.Data.AppCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AppUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Changes).to.be.a('string'); + expect(data.Changes).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AnalyticsClientEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AnalyticsClientEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.EventType).to.be.a('string'); + expect(data.EventType).to.be(""); + expect(data.AppType).to.be.a('string'); + expect(data.AppType).to.be(""); + expect(data.Metadata).to.be.a('string'); + expect(data.Metadata).to.be(""); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.Latitude).to.be.a('number'); + expect(data.Latitude).to.be(0.0); + expect(data.Longitude).to.be.a('number'); + expect(data.Longitude).to.be(0.0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderAcceptedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderAcceptedTime).to.be.a(Date); + expect(data.OrderAcceptedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDispatchedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDispatchedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderDispatchedTime).to.be.a(Date); + expect(data.OrderDispatchedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCustomerTrackingCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCustomerTrackingCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.CustomerDeliveryTrackingOrder); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.Address).to.be.a('string'); + expect(data.Order.Address).to.be(""); + expect(data.Order.DeliveryNotes).to.be.a('string'); + expect(data.Order.DeliveryNotes).to.be(""); + expect(data.Order.StorePhoneNumber).to.be.a('string'); + expect(data.Order.StorePhoneNumber).to.be(""); + expect(data.Order.AppIconUrl).to.be.a('string'); + expect(data.Order.AppIconUrl).to.be(""); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.Order.PaymentMethodDescription).to.be.a('string'); + expect(data.Order.PaymentMethodDescription).to.be(""); + expect(data.Order.LastFourDigits).to.be.a('string'); + expect(data.Order.LastFourDigits).to.be(""); + { + let dataCtr = data.Order.OrderLines; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerDeliveryTrackingOrderLine); + expect(data.ItemName).to.be.a('string'); + expect(data.ItemName).to.be(""); + { + let dataCtr = data.SelectedOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + + } + } + expect(data.Order.TotalAmount).to.be.a('number'); + expect(data.Order.TotalAmount).to.be(0.0); + expect(data.Order.Currency).to.be.a('string'); + expect(data.Order.Currency).to.be("EUR"); + expect(data.Order.Latitude).to.be.a('number'); + expect(data.Order.Latitude).to.be(0.0); + expect(data.Order.Longitude).to.be.a('number'); + expect(data.Order.Longitude).to.be(0.0); + expect(data.Order.Placed).to.be.a(Date); + expect(data.Order.Placed).to.be(new Date()); + expect(data.Order.RequestedFor).to.be.a(Date); + expect(data.Order.RequestedFor).to.be(new Date()); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.DriverName).to.be.a('string'); + expect(data.Order.DriverName).to.be(""); + expect(data.Order.DriverImage).to.be.a('string'); + expect(data.Order.DriverImage).to.be(""); + expect(data.Order.EstimatedMinutesForDelivery).to.be.a('number'); + expect(data.Order.EstimatedMinutesForDelivery).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDeliveryTrackingStatusUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDeliveryTrackingStatusUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCreatedTime).to.be.a(Date); + expect(data.OrderCreatedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRatingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRatingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Rating).to.be.a('number'); + expect(data.Rating).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRefundedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRefundedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.RefundedAmount).to.be.a('number'); + expect(data.RefundedAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRejectedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRejectedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderRejectedTime).to.be.a(Date); + expect(data.OrderRejectedTime).to.be(new Date()); + expect(data.Reason).to.be.a('string'); + expect(data.Reason).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTipUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderTipUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.TipAmount).to.be.a('number'); + expect(data.TipAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTerminalNotifications; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.EmvNotificationEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Notification).to.be.a('string'); + expect(data.Notification).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.TerminalId).to.be.a('string'); + expect(data.TerminalId).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.ExpDate).to.be.a('string'); + expect(data.ExpDate).to.be(""); + expect(data.CardType).to.be.a('string'); + expect(data.CardType).to.be(""); + expect(data.PaymentMethod).to.be.a('string'); + expect(data.PaymentMethod).to.be(""); + expect(data.AccountNumber).to.be.a('string'); + expect(data.AccountNumber).to.be(""); + expect(data.AuthCode).to.be.a('string'); + expect(data.AuthCode).to.be(""); + expect(data.ProviderMessage).to.be.a('string'); + expect(data.ProviderMessage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreAddressUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreAddressUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreAddress).to.be.a(Flipdish.StoreAddress); + expect(data.StoreAddress.AddressId).to.be.a('number'); + expect(data.StoreAddress.AddressId).to.be(0); + expect(data.StoreAddress.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.StoreAddress.Coordinates.Latitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Latitude).to.be(0.0); + expect(data.StoreAddress.Coordinates.Longitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Longitude).to.be(0.0); + expect(data.StoreAddress.Line1).to.be.a('string'); + expect(data.StoreAddress.Line1).to.be(""); + expect(data.StoreAddress.Postcode).to.be.a('string'); + expect(data.StoreAddress.Postcode).to.be(""); + expect(data.StoreAddress.City).to.be.a('string'); + expect(data.StoreAddress.City).to.be(""); + expect(data.StoreAddress.CountryCode).to.be.a('string'); + expect(data.StoreAddress.CountryCode).to.be(""); + expect(data.StoreAddress.DisplayForCustomer).to.be.a('string'); + expect(data.StoreAddress.DisplayForCustomer).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreKioskSettingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreKioskSettingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreKioskSetting).to.be.a(Flipdish.StoreKioskSetting); + expect(data.StoreKioskSetting.KioskSettingId).to.be.a('number'); + expect(data.StoreKioskSetting.KioskSettingId).to.be(0); + expect(data.StoreKioskSetting.KioskName).to.be.a('string'); + expect(data.StoreKioskSetting.KioskName).to.be(""); + expect(data.StoreKioskSetting.RequireCustomerName).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequireCustomerName).to.be(false); + expect(data.StoreKioskSetting.RequestTableNumber).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequestTableNumber).to.be(false); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be.a('boolean'); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be(false); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be.a('number'); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be(0); + expect(data.StoreKioskSetting.HydraConfigId).to.be.a('number'); + expect(data.StoreKioskSetting.HydraConfigId).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreOpeningHoursUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOpeningHoursUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.DeliveryType).to.be.a('string'); + expect(data.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursPeriodOld).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriodOld.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriodOld.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be(""); + expect(data.BusinessHoursPeriod).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriod.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.Period).to.be(""); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.Period).to.be(""); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriod.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriod.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Period).to.be(""); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreMenuAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreMenuAssignedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreArchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreArchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnarchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnarchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnpublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnpublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePreOrderConfigUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePreOrderConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PreOrderConfig).to.be.a(Flipdish.PreOrderConfig); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be.a('number'); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be(0); + expect(data.PreOrderConfig.IntervalMinutes).to.be.a('number'); + expect(data.PreOrderConfig.IntervalMinutes).to.be(0); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be.a('number'); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be(0); + expect(data.PreOrderConfig.IncludeAsap).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeAsap).to.be(false); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be(false); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be(""); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be(""); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be.a('string'); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be("SingleTime"); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be(false); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be.a('boolean'); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUploadedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUploadedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCheckpointCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCheckpointCreatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerConsentUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerConsentUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Enabled).to.be.a('boolean'); + expect(data.Enabled).to.be(false); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOnEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOnEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOffEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOffEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterAssignedToStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterAssignedToStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterUnassignedFromStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterUnassignedFromStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallStartedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallStartedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallEndedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallEndedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.SmsReceivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.SmsReceivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SmsInfo).to.be.a(Flipdish.SmsInfo); + expect(data.SmsInfo.From).to.be.a('string'); + expect(data.SmsInfo.From).to.be(""); + expect(data.SmsInfo.To).to.be.a('string'); + expect(data.SmsInfo.To).to.be(""); + expect(data.SmsInfo.Text).to.be.a('string'); + expect(data.SmsInfo.Text).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserLoginEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserLoginEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedPasswordEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserPasswordCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserAnsweredSignupQuestionsEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserAnsweredSignupQuestionsEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.SignupAnswers).to.be.a('string'); + expect(data.SignupAnswers).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherCreatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherUpdatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherDeletedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteSentEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteAcceptedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateUpdatedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateDeletedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountCreatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountUpdatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountDeletedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraRequestResetEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraRequestResetEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreUnassignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreUnassignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraSettingChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraSettingChangedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraConfig).to.be.a(Flipdish.HydraConfig); + expect(data.HydraConfig.MinimumVersion).to.be.a('string'); + expect(data.HydraConfig.MinimumVersion).to.be(""); + { + let dataCtr = data.HydraConfig.PaymentOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be("Online"); + } + } + expect(data.HydraConfig.DeviceSettings).to.be.a(Flipdish.DeviceSettings); + expect(data.HydraConfig.DeviceSettings.Volume).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Volume).to.be(0); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be(0.0); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be(0); + expect(data.HydraConfig.Version).to.be.a('string'); + expect(data.HydraConfig.Version).to.be(""); + expect(data.HydraConfig.BuildNumber).to.be.a('string'); + expect(data.HydraConfig.BuildNumber).to.be(""); + expect(data.HydraConfig.GitSha).to.be.a('string'); + expect(data.HydraConfig.GitSha).to.be(""); + expect(data.HydraConfig.GitBranch).to.be.a('string'); + expect(data.HydraConfig.GitBranch).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraUnAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraUnAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraConnectionStatusChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraConnectionStatusChangedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.HydraDeviceStatus).to.be.a('string'); + expect(data.HydraDeviceStatus).to.be("Online"); + expect(data.PollTime).to.be.a(Date); + expect(data.PollTime).to.be(new Date()); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothPairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothPairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothUnpairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothUnpairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalUpdatedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalSerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalSerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus).to.be.a(Flipdish.BluetoothTerminalStatus); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be(""); + expect(data.BluetoothTerminalStatus.DeviceType).to.be.a('string'); + expect(data.BluetoothTerminalStatus.DeviceType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalStatus.Status).to.be.a('string'); + expect(data.BluetoothTerminalStatus.Status).to.be("Not_Connected"); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be.a('number'); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be(0.0); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be.a(Date); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be(new Date()); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalInitiateUpdateCheckEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothInstallUpdateInitiateEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothInstallUpdateInitiateEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationScheduledEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationScheduledEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationSentEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DnsVerifiedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DnsVerifiedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateCreatedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateRenewedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateRenewedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteVanityUrlUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteVanityUrlUpdatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.VanityUrl).to.be.a('string'); + expect(data.VanityUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteUpdatedEvent); + expect(data.AppNameId).to.be.a('string'); + expect(data.AppNameId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCapacityUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCapacityConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCapacityConfig).to.be.a(Flipdish.StoreOrderCapacityConfigEditModel); + { + let dataCtr = data.OrderCapacityConfig.OrderCapacityPeriods; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOrderCapacityPeriod); + expect(data.MaxOrderNumberPerStoreInterval).to.be.a('number'); + expect(data.MaxOrderNumberPerStoreInterval).to.be(0); + expect(data.DayOfTheWeek).to.be.a('string'); + expect(data.DayOfTheWeek).to.be("Sunday"); + expect(data.PeriodStartHour).to.be.a('number'); + expect(data.PeriodStartHour).to.be(0); + expect(data.PeriodStartMinutes).to.be.a('number'); + expect(data.PeriodStartMinutes).to.be(0); + expect(data.PeriodEndHour).to.be.a('number'); + expect(data.PeriodEndHour).to.be(0); + expect(data.PeriodEndMinutes).to.be.a('number'); + expect(data.PeriodEndMinutes).to.be(0); + + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getEventsById', function() { + it('should call getEventsById successfully', function(done) { + // TODO: uncomment, update parameter values for getEventsById call and complete the assertions + /* + var eventId = "eventId_example"; + + instance.getEventsById(eventId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.EventSearchResult); + { + let dataCtr = data.AppCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.AppUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Changes).to.be.a('string'); + expect(data.Changes).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.AnalyticsClientEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AnalyticsClientEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.EventType).to.be.a('string'); + expect(data.EventType).to.be(""); + expect(data.AppType).to.be.a('string'); + expect(data.AppType).to.be(""); + expect(data.Metadata).to.be.a('string'); + expect(data.Metadata).to.be(""); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.Latitude).to.be.a('number'); + expect(data.Latitude).to.be(0.0); + expect(data.Longitude).to.be.a('number'); + expect(data.Longitude).to.be(0.0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.OrderAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderAcceptedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderAcceptedTime).to.be.a(Date); + expect(data.OrderAcceptedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.OrderDispatchedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDispatchedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderDispatchedTime).to.be.a(Date); + expect(data.OrderDispatchedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.OrderCustomerTrackingCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCustomerTrackingCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.CustomerDeliveryTrackingOrder); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.Address).to.be.a('string'); + expect(data.Order.Address).to.be(""); + expect(data.Order.DeliveryNotes).to.be.a('string'); + expect(data.Order.DeliveryNotes).to.be(""); + expect(data.Order.StorePhoneNumber).to.be.a('string'); + expect(data.Order.StorePhoneNumber).to.be(""); + expect(data.Order.AppIconUrl).to.be.a('string'); + expect(data.Order.AppIconUrl).to.be(""); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.Order.PaymentMethodDescription).to.be.a('string'); + expect(data.Order.PaymentMethodDescription).to.be(""); + expect(data.Order.LastFourDigits).to.be.a('string'); + expect(data.Order.LastFourDigits).to.be(""); + { + let dataCtr = data.Order.OrderLines; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerDeliveryTrackingOrderLine); + expect(data.ItemName).to.be.a('string'); + expect(data.ItemName).to.be(""); + { + let dataCtr = data.SelectedOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + + } + } + expect(data.Order.TotalAmount).to.be.a('number'); + expect(data.Order.TotalAmount).to.be(0.0); + expect(data.Order.Currency).to.be.a('string'); + expect(data.Order.Currency).to.be("EUR"); + expect(data.Order.Latitude).to.be.a('number'); + expect(data.Order.Latitude).to.be(0.0); + expect(data.Order.Longitude).to.be.a('number'); + expect(data.Order.Longitude).to.be(0.0); + expect(data.Order.Placed).to.be.a(Date); + expect(data.Order.Placed).to.be(new Date()); + expect(data.Order.RequestedFor).to.be.a(Date); + expect(data.Order.RequestedFor).to.be(new Date()); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.DriverName).to.be.a('string'); + expect(data.Order.DriverName).to.be(""); + expect(data.Order.DriverImage).to.be.a('string'); + expect(data.Order.DriverImage).to.be(""); + expect(data.Order.EstimatedMinutesForDelivery).to.be.a('number'); + expect(data.Order.EstimatedMinutesForDelivery).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.OrderDeliveryTrackingStatusUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDeliveryTrackingStatusUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.OrderCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCreatedTime).to.be.a(Date); + expect(data.OrderCreatedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.OrderRatingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRatingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Rating).to.be.a('number'); + expect(data.Rating).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.OrderRefundedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRefundedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.RefundedAmount).to.be.a('number'); + expect(data.RefundedAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.OrderRejectedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRejectedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderRejectedTime).to.be.a(Date); + expect(data.OrderRejectedTime).to.be(new Date()); + expect(data.Reason).to.be.a('string'); + expect(data.Reason).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.OrderTipUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderTipUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.TipAmount).to.be.a('number'); + expect(data.TipAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.OrderTerminalNotifications; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.EmvNotificationEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Notification).to.be.a('string'); + expect(data.Notification).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.TerminalId).to.be.a('string'); + expect(data.TerminalId).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.ExpDate).to.be.a('string'); + expect(data.ExpDate).to.be(""); + expect(data.CardType).to.be.a('string'); + expect(data.CardType).to.be(""); + expect(data.PaymentMethod).to.be.a('string'); + expect(data.PaymentMethod).to.be(""); + expect(data.AccountNumber).to.be.a('string'); + expect(data.AccountNumber).to.be(""); + expect(data.AuthCode).to.be.a('string'); + expect(data.AuthCode).to.be(""); + expect(data.ProviderMessage).to.be.a('string'); + expect(data.ProviderMessage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreAddressUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreAddressUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreAddress).to.be.a(Flipdish.StoreAddress); + expect(data.StoreAddress.AddressId).to.be.a('number'); + expect(data.StoreAddress.AddressId).to.be(0); + expect(data.StoreAddress.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.StoreAddress.Coordinates.Latitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Latitude).to.be(0.0); + expect(data.StoreAddress.Coordinates.Longitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Longitude).to.be(0.0); + expect(data.StoreAddress.Line1).to.be.a('string'); + expect(data.StoreAddress.Line1).to.be(""); + expect(data.StoreAddress.Postcode).to.be.a('string'); + expect(data.StoreAddress.Postcode).to.be(""); + expect(data.StoreAddress.City).to.be.a('string'); + expect(data.StoreAddress.City).to.be(""); + expect(data.StoreAddress.CountryCode).to.be.a('string'); + expect(data.StoreAddress.CountryCode).to.be(""); + expect(data.StoreAddress.DisplayForCustomer).to.be.a('string'); + expect(data.StoreAddress.DisplayForCustomer).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreKioskSettingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreKioskSettingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreKioskSetting).to.be.a(Flipdish.StoreKioskSetting); + expect(data.StoreKioskSetting.KioskSettingId).to.be.a('number'); + expect(data.StoreKioskSetting.KioskSettingId).to.be(0); + expect(data.StoreKioskSetting.KioskName).to.be.a('string'); + expect(data.StoreKioskSetting.KioskName).to.be(""); + expect(data.StoreKioskSetting.RequireCustomerName).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequireCustomerName).to.be(false); + expect(data.StoreKioskSetting.RequestTableNumber).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequestTableNumber).to.be(false); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be.a('boolean'); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be(false); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be.a('number'); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be(0); + expect(data.StoreKioskSetting.HydraConfigId).to.be.a('number'); + expect(data.StoreKioskSetting.HydraConfigId).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.DeliveryZoneCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.DeliveryZoneUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.DeliveryZoneDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreOpeningHoursUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOpeningHoursUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.DeliveryType).to.be.a('string'); + expect(data.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursPeriodOld).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriodOld.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriodOld.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be(""); + expect(data.BusinessHoursPeriod).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriod.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.Period).to.be(""); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.Period).to.be(""); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriod.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriod.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Period).to.be(""); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreMenuAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreMenuAssignedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreBusinessHoursOverrideCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreBusinessHoursOverrideDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreArchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreArchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreUnarchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnarchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StorePublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreUnpublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnpublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StorePreOrderConfigUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePreOrderConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PreOrderConfig).to.be.a(Flipdish.PreOrderConfig); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be.a('number'); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be(0); + expect(data.PreOrderConfig.IntervalMinutes).to.be.a('number'); + expect(data.PreOrderConfig.IntervalMinutes).to.be(0); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be.a('number'); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be(0); + expect(data.PreOrderConfig.IncludeAsap).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeAsap).to.be(false); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be(false); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be(""); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be(""); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be.a('string'); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be("SingleTime"); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be(false); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be.a('boolean'); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreLogoCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreLogoUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreLogoDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuUploadedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUploadedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuSectionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuSectionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuSectionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuSectionItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuSectionItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuSectionItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuItemOptionSetCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuItemOptionSetUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuItemOptionSetDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuItemOptionSetItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuItemOptionSetItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuItemOptionSetItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.MenuCheckpointCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCheckpointCreatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreGroupCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreGroupUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.StoreGroupDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.CustomerCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.CustomerUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.CustomerConsentUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerConsentUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Enabled).to.be.a('boolean'); + expect(data.Enabled).to.be(false); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.WebhookSubscriptionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.WebhookSubscriptionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.WebhookSubscriptionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.PrinterTurnedOnEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOnEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.PrinterTurnedOffEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOffEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.PrinterAssignedToStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterAssignedToStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.PrinterUnassignedFromStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterUnassignedFromStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.PhoneCallStartedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallStartedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.PhoneCallEndedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallEndedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.LoyaltyCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.LoyaltyCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.LoyaltyCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.RetentionCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.RetentionCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.RetentionCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.SmsReceivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.SmsReceivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SmsInfo).to.be.a(Flipdish.SmsInfo); + expect(data.SmsInfo.From).to.be.a('string'); + expect(data.SmsInfo.From).to.be(""); + expect(data.SmsInfo.To).to.be.a('string'); + expect(data.SmsInfo.To).to.be(""); + expect(data.SmsInfo.Text).to.be.a('string'); + expect(data.SmsInfo.Text).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.UserLoginEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserLoginEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.UserCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.UserUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.UserDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.UserCreatedPasswordEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserPasswordCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.UserAnsweredSignupQuestionsEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserAnsweredSignupQuestionsEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.SignupAnswers).to.be.a('string'); + expect(data.SignupAnswers).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.VoucherCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherCreatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.VoucherUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherUpdatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.VoucherDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherDeletedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.TeammateInviteSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteSentEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.TeammateInviteAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteAcceptedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.TeammateUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateUpdatedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.TeammateDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateDeletedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.BankAccountCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountCreatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.BankAccountUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountUpdatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.BankAccountDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountDeletedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.HydraAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.HydraRequestResetEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraRequestResetEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.HydraStoreAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.HydraStoreUnassignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreUnassignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.HydraSettingChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraSettingChangedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraConfig).to.be.a(Flipdish.HydraConfig); + expect(data.HydraConfig.MinimumVersion).to.be.a('string'); + expect(data.HydraConfig.MinimumVersion).to.be(""); + { + let dataCtr = data.HydraConfig.PaymentOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be("Online"); + } + } + expect(data.HydraConfig.DeviceSettings).to.be.a(Flipdish.DeviceSettings); + expect(data.HydraConfig.DeviceSettings.Volume).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Volume).to.be(0); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be(0.0); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be(0); + expect(data.HydraConfig.Version).to.be.a('string'); + expect(data.HydraConfig.Version).to.be(""); + expect(data.HydraConfig.BuildNumber).to.be.a('string'); + expect(data.HydraConfig.BuildNumber).to.be(""); + expect(data.HydraConfig.GitSha).to.be.a('string'); + expect(data.HydraConfig.GitSha).to.be(""); + expect(data.HydraConfig.GitBranch).to.be.a('string'); + expect(data.HydraConfig.GitBranch).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.HydraUnAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraUnAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.HydraConnectionStatusChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraConnectionStatusChangedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.HydraDeviceStatus).to.be.a('string'); + expect(data.HydraDeviceStatus).to.be("Online"); + expect(data.PollTime).to.be.a(Date); + expect(data.PollTime).to.be(new Date()); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.KioskBluetoothPairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothPairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.KioskBluetoothUnpairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothUnpairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.KioskBluetoothTerminalUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalUpdatedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalSerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalSerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus).to.be.a(Flipdish.BluetoothTerminalStatus); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be(""); + expect(data.BluetoothTerminalStatus.DeviceType).to.be.a('string'); + expect(data.BluetoothTerminalStatus.DeviceType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalStatus.Status).to.be.a('string'); + expect(data.BluetoothTerminalStatus.Status).to.be("Not_Connected"); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be.a('number'); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be(0.0); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be.a(Date); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be(new Date()); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.KioskBluetoothTerminalInitiateUpdateCheckEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.KioskBluetoothInstallUpdateInitiateEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothInstallUpdateInitiateEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.PushNotificationScheduledEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationScheduledEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.PushNotificationSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationSentEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.PushNotificationDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.DnsVerifiedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DnsVerifiedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.CertificateCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateCreatedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.CertificateRenewedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateRenewedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.WebsiteVanityUrlUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteVanityUrlUpdatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.VanityUrl).to.be.a('string'); + expect(data.VanityUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.WebsiteUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteUpdatedEvent); + expect(data.AppNameId).to.be.a('string'); + expect(data.AppNameId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.OrderCapacityUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCapacityConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCapacityConfig).to.be.a(Flipdish.StoreOrderCapacityConfigEditModel); + { + let dataCtr = data.OrderCapacityConfig.OrderCapacityPeriods; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOrderCapacityPeriod); + expect(data.MaxOrderNumberPerStoreInterval).to.be.a('number'); + expect(data.MaxOrderNumberPerStoreInterval).to.be(0); + expect(data.DayOfTheWeek).to.be.a('string'); + expect(data.DayOfTheWeek).to.be("Sunday"); + expect(data.PeriodStartHour).to.be.a('number'); + expect(data.PeriodStartHour).to.be(0); + expect(data.PeriodStartMinutes).to.be.a('number'); + expect(data.PeriodStartMinutes).to.be(0); + expect(data.PeriodEndHour).to.be.a('number'); + expect(data.PeriodEndHour).to.be(0); + expect(data.PeriodEndMinutes).to.be.a('number'); + expect(data.PeriodEndMinutes).to.be(0); + + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getMenuEvents', function() { + it('should call getMenuEvents successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuEvents call and complete the assertions + /* + var menuId = 56; + var opts = {}; + opts.limit = 56; + opts.page = 56; + opts.start = new Date("2013-10-20T19:20:30+01:00"); + opts.end = new Date("2013-10-20T19:20:30+01:00"); + opts.orderId = 56; + opts.storeId = 56; + opts.storeGroupId = 56; + opts.userId = 56; + opts.userEmail = "userEmail_example"; + opts.userName = "userName_example"; + opts.voucherCode = "voucherCode_example"; + opts.eventType = ["eventType_example"]; + opts.flipdishEventId = "flipdishEventId_example"; + + instance.getMenuEvents(menuId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiEventSearchPaginationResult); + expect(data.Data).to.be.a(Flipdish.EventSearchResult); + { + let dataCtr = data.Data.AppCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AppUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Changes).to.be.a('string'); + expect(data.Changes).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AnalyticsClientEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AnalyticsClientEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.EventType).to.be.a('string'); + expect(data.EventType).to.be(""); + expect(data.AppType).to.be.a('string'); + expect(data.AppType).to.be(""); + expect(data.Metadata).to.be.a('string'); + expect(data.Metadata).to.be(""); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.Latitude).to.be.a('number'); + expect(data.Latitude).to.be(0.0); + expect(data.Longitude).to.be.a('number'); + expect(data.Longitude).to.be(0.0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderAcceptedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderAcceptedTime).to.be.a(Date); + expect(data.OrderAcceptedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDispatchedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDispatchedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderDispatchedTime).to.be.a(Date); + expect(data.OrderDispatchedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCustomerTrackingCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCustomerTrackingCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.CustomerDeliveryTrackingOrder); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.Address).to.be.a('string'); + expect(data.Order.Address).to.be(""); + expect(data.Order.DeliveryNotes).to.be.a('string'); + expect(data.Order.DeliveryNotes).to.be(""); + expect(data.Order.StorePhoneNumber).to.be.a('string'); + expect(data.Order.StorePhoneNumber).to.be(""); + expect(data.Order.AppIconUrl).to.be.a('string'); + expect(data.Order.AppIconUrl).to.be(""); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.Order.PaymentMethodDescription).to.be.a('string'); + expect(data.Order.PaymentMethodDescription).to.be(""); + expect(data.Order.LastFourDigits).to.be.a('string'); + expect(data.Order.LastFourDigits).to.be(""); + { + let dataCtr = data.Order.OrderLines; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerDeliveryTrackingOrderLine); + expect(data.ItemName).to.be.a('string'); + expect(data.ItemName).to.be(""); + { + let dataCtr = data.SelectedOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + + } + } + expect(data.Order.TotalAmount).to.be.a('number'); + expect(data.Order.TotalAmount).to.be(0.0); + expect(data.Order.Currency).to.be.a('string'); + expect(data.Order.Currency).to.be("EUR"); + expect(data.Order.Latitude).to.be.a('number'); + expect(data.Order.Latitude).to.be(0.0); + expect(data.Order.Longitude).to.be.a('number'); + expect(data.Order.Longitude).to.be(0.0); + expect(data.Order.Placed).to.be.a(Date); + expect(data.Order.Placed).to.be(new Date()); + expect(data.Order.RequestedFor).to.be.a(Date); + expect(data.Order.RequestedFor).to.be(new Date()); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.DriverName).to.be.a('string'); + expect(data.Order.DriverName).to.be(""); + expect(data.Order.DriverImage).to.be.a('string'); + expect(data.Order.DriverImage).to.be(""); + expect(data.Order.EstimatedMinutesForDelivery).to.be.a('number'); + expect(data.Order.EstimatedMinutesForDelivery).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDeliveryTrackingStatusUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDeliveryTrackingStatusUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCreatedTime).to.be.a(Date); + expect(data.OrderCreatedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRatingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRatingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Rating).to.be.a('number'); + expect(data.Rating).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRefundedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRefundedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.RefundedAmount).to.be.a('number'); + expect(data.RefundedAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRejectedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRejectedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderRejectedTime).to.be.a(Date); + expect(data.OrderRejectedTime).to.be(new Date()); + expect(data.Reason).to.be.a('string'); + expect(data.Reason).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTipUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderTipUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.TipAmount).to.be.a('number'); + expect(data.TipAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTerminalNotifications; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.EmvNotificationEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Notification).to.be.a('string'); + expect(data.Notification).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.TerminalId).to.be.a('string'); + expect(data.TerminalId).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.ExpDate).to.be.a('string'); + expect(data.ExpDate).to.be(""); + expect(data.CardType).to.be.a('string'); + expect(data.CardType).to.be(""); + expect(data.PaymentMethod).to.be.a('string'); + expect(data.PaymentMethod).to.be(""); + expect(data.AccountNumber).to.be.a('string'); + expect(data.AccountNumber).to.be(""); + expect(data.AuthCode).to.be.a('string'); + expect(data.AuthCode).to.be(""); + expect(data.ProviderMessage).to.be.a('string'); + expect(data.ProviderMessage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreAddressUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreAddressUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreAddress).to.be.a(Flipdish.StoreAddress); + expect(data.StoreAddress.AddressId).to.be.a('number'); + expect(data.StoreAddress.AddressId).to.be(0); + expect(data.StoreAddress.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.StoreAddress.Coordinates.Latitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Latitude).to.be(0.0); + expect(data.StoreAddress.Coordinates.Longitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Longitude).to.be(0.0); + expect(data.StoreAddress.Line1).to.be.a('string'); + expect(data.StoreAddress.Line1).to.be(""); + expect(data.StoreAddress.Postcode).to.be.a('string'); + expect(data.StoreAddress.Postcode).to.be(""); + expect(data.StoreAddress.City).to.be.a('string'); + expect(data.StoreAddress.City).to.be(""); + expect(data.StoreAddress.CountryCode).to.be.a('string'); + expect(data.StoreAddress.CountryCode).to.be(""); + expect(data.StoreAddress.DisplayForCustomer).to.be.a('string'); + expect(data.StoreAddress.DisplayForCustomer).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreKioskSettingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreKioskSettingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreKioskSetting).to.be.a(Flipdish.StoreKioskSetting); + expect(data.StoreKioskSetting.KioskSettingId).to.be.a('number'); + expect(data.StoreKioskSetting.KioskSettingId).to.be(0); + expect(data.StoreKioskSetting.KioskName).to.be.a('string'); + expect(data.StoreKioskSetting.KioskName).to.be(""); + expect(data.StoreKioskSetting.RequireCustomerName).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequireCustomerName).to.be(false); + expect(data.StoreKioskSetting.RequestTableNumber).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequestTableNumber).to.be(false); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be.a('boolean'); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be(false); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be.a('number'); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be(0); + expect(data.StoreKioskSetting.HydraConfigId).to.be.a('number'); + expect(data.StoreKioskSetting.HydraConfigId).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreOpeningHoursUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOpeningHoursUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.DeliveryType).to.be.a('string'); + expect(data.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursPeriodOld).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriodOld.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriodOld.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be(""); + expect(data.BusinessHoursPeriod).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriod.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.Period).to.be(""); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.Period).to.be(""); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriod.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriod.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Period).to.be(""); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreMenuAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreMenuAssignedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreArchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreArchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnarchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnarchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnpublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnpublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePreOrderConfigUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePreOrderConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PreOrderConfig).to.be.a(Flipdish.PreOrderConfig); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be.a('number'); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be(0); + expect(data.PreOrderConfig.IntervalMinutes).to.be.a('number'); + expect(data.PreOrderConfig.IntervalMinutes).to.be(0); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be.a('number'); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be(0); + expect(data.PreOrderConfig.IncludeAsap).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeAsap).to.be(false); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be(false); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be(""); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be(""); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be.a('string'); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be("SingleTime"); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be(false); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be.a('boolean'); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUploadedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUploadedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCheckpointCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCheckpointCreatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerConsentUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerConsentUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Enabled).to.be.a('boolean'); + expect(data.Enabled).to.be(false); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOnEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOnEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOffEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOffEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterAssignedToStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterAssignedToStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterUnassignedFromStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterUnassignedFromStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallStartedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallStartedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallEndedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallEndedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.SmsReceivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.SmsReceivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SmsInfo).to.be.a(Flipdish.SmsInfo); + expect(data.SmsInfo.From).to.be.a('string'); + expect(data.SmsInfo.From).to.be(""); + expect(data.SmsInfo.To).to.be.a('string'); + expect(data.SmsInfo.To).to.be(""); + expect(data.SmsInfo.Text).to.be.a('string'); + expect(data.SmsInfo.Text).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserLoginEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserLoginEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedPasswordEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserPasswordCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserAnsweredSignupQuestionsEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserAnsweredSignupQuestionsEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.SignupAnswers).to.be.a('string'); + expect(data.SignupAnswers).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherCreatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherUpdatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherDeletedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteSentEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteAcceptedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateUpdatedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateDeletedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountCreatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountUpdatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountDeletedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraRequestResetEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraRequestResetEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreUnassignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreUnassignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraSettingChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraSettingChangedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraConfig).to.be.a(Flipdish.HydraConfig); + expect(data.HydraConfig.MinimumVersion).to.be.a('string'); + expect(data.HydraConfig.MinimumVersion).to.be(""); + { + let dataCtr = data.HydraConfig.PaymentOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be("Online"); + } + } + expect(data.HydraConfig.DeviceSettings).to.be.a(Flipdish.DeviceSettings); + expect(data.HydraConfig.DeviceSettings.Volume).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Volume).to.be(0); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be(0.0); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be(0); + expect(data.HydraConfig.Version).to.be.a('string'); + expect(data.HydraConfig.Version).to.be(""); + expect(data.HydraConfig.BuildNumber).to.be.a('string'); + expect(data.HydraConfig.BuildNumber).to.be(""); + expect(data.HydraConfig.GitSha).to.be.a('string'); + expect(data.HydraConfig.GitSha).to.be(""); + expect(data.HydraConfig.GitBranch).to.be.a('string'); + expect(data.HydraConfig.GitBranch).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraUnAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraUnAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraConnectionStatusChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraConnectionStatusChangedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.HydraDeviceStatus).to.be.a('string'); + expect(data.HydraDeviceStatus).to.be("Online"); + expect(data.PollTime).to.be.a(Date); + expect(data.PollTime).to.be(new Date()); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothPairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothPairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothUnpairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothUnpairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalUpdatedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalSerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalSerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus).to.be.a(Flipdish.BluetoothTerminalStatus); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be(""); + expect(data.BluetoothTerminalStatus.DeviceType).to.be.a('string'); + expect(data.BluetoothTerminalStatus.DeviceType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalStatus.Status).to.be.a('string'); + expect(data.BluetoothTerminalStatus.Status).to.be("Not_Connected"); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be.a('number'); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be(0.0); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be.a(Date); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be(new Date()); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalInitiateUpdateCheckEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothInstallUpdateInitiateEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothInstallUpdateInitiateEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationScheduledEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationScheduledEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationSentEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DnsVerifiedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DnsVerifiedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateCreatedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateRenewedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateRenewedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteVanityUrlUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteVanityUrlUpdatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.VanityUrl).to.be.a('string'); + expect(data.VanityUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteUpdatedEvent); + expect(data.AppNameId).to.be.a('string'); + expect(data.AppNameId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCapacityUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCapacityConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCapacityConfig).to.be.a(Flipdish.StoreOrderCapacityConfigEditModel); + { + let dataCtr = data.OrderCapacityConfig.OrderCapacityPeriods; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOrderCapacityPeriod); + expect(data.MaxOrderNumberPerStoreInterval).to.be.a('number'); + expect(data.MaxOrderNumberPerStoreInterval).to.be(0); + expect(data.DayOfTheWeek).to.be.a('string'); + expect(data.DayOfTheWeek).to.be("Sunday"); + expect(data.PeriodStartHour).to.be.a('number'); + expect(data.PeriodStartHour).to.be(0); + expect(data.PeriodStartMinutes).to.be.a('number'); + expect(data.PeriodStartMinutes).to.be(0); + expect(data.PeriodEndHour).to.be.a('number'); + expect(data.PeriodEndHour).to.be(0); + expect(data.PeriodEndMinutes).to.be.a('number'); + expect(data.PeriodEndMinutes).to.be(0); + + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getOrderEvents', function() { + it('should call getOrderEvents successfully', function(done) { + // TODO: uncomment, update parameter values for getOrderEvents call and complete the assertions + /* + var orderId = 56; + var opts = {}; + opts.limit = 56; + opts.page = 56; + opts.start = new Date("2013-10-20T19:20:30+01:00"); + opts.end = new Date("2013-10-20T19:20:30+01:00"); + opts.orderId2 = 56; + opts.storeId = 56; + opts.storeGroupId = 56; + opts.userId = 56; + opts.userEmail = "userEmail_example"; + opts.userName = "userName_example"; + opts.voucherCode = "voucherCode_example"; + opts.eventType = ["eventType_example"]; + opts.flipdishEventId = "flipdishEventId_example"; + + instance.getOrderEvents(orderId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiEventSearchPaginationResult); + expect(data.Data).to.be.a(Flipdish.EventSearchResult); + { + let dataCtr = data.Data.AppCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AppUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Changes).to.be.a('string'); + expect(data.Changes).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AnalyticsClientEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AnalyticsClientEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.EventType).to.be.a('string'); + expect(data.EventType).to.be(""); + expect(data.AppType).to.be.a('string'); + expect(data.AppType).to.be(""); + expect(data.Metadata).to.be.a('string'); + expect(data.Metadata).to.be(""); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.Latitude).to.be.a('number'); + expect(data.Latitude).to.be(0.0); + expect(data.Longitude).to.be.a('number'); + expect(data.Longitude).to.be(0.0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderAcceptedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderAcceptedTime).to.be.a(Date); + expect(data.OrderAcceptedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDispatchedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDispatchedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderDispatchedTime).to.be.a(Date); + expect(data.OrderDispatchedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCustomerTrackingCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCustomerTrackingCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.CustomerDeliveryTrackingOrder); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.Address).to.be.a('string'); + expect(data.Order.Address).to.be(""); + expect(data.Order.DeliveryNotes).to.be.a('string'); + expect(data.Order.DeliveryNotes).to.be(""); + expect(data.Order.StorePhoneNumber).to.be.a('string'); + expect(data.Order.StorePhoneNumber).to.be(""); + expect(data.Order.AppIconUrl).to.be.a('string'); + expect(data.Order.AppIconUrl).to.be(""); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.Order.PaymentMethodDescription).to.be.a('string'); + expect(data.Order.PaymentMethodDescription).to.be(""); + expect(data.Order.LastFourDigits).to.be.a('string'); + expect(data.Order.LastFourDigits).to.be(""); + { + let dataCtr = data.Order.OrderLines; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerDeliveryTrackingOrderLine); + expect(data.ItemName).to.be.a('string'); + expect(data.ItemName).to.be(""); + { + let dataCtr = data.SelectedOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + + } + } + expect(data.Order.TotalAmount).to.be.a('number'); + expect(data.Order.TotalAmount).to.be(0.0); + expect(data.Order.Currency).to.be.a('string'); + expect(data.Order.Currency).to.be("EUR"); + expect(data.Order.Latitude).to.be.a('number'); + expect(data.Order.Latitude).to.be(0.0); + expect(data.Order.Longitude).to.be.a('number'); + expect(data.Order.Longitude).to.be(0.0); + expect(data.Order.Placed).to.be.a(Date); + expect(data.Order.Placed).to.be(new Date()); + expect(data.Order.RequestedFor).to.be.a(Date); + expect(data.Order.RequestedFor).to.be(new Date()); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.DriverName).to.be.a('string'); + expect(data.Order.DriverName).to.be(""); + expect(data.Order.DriverImage).to.be.a('string'); + expect(data.Order.DriverImage).to.be(""); + expect(data.Order.EstimatedMinutesForDelivery).to.be.a('number'); + expect(data.Order.EstimatedMinutesForDelivery).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDeliveryTrackingStatusUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDeliveryTrackingStatusUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCreatedTime).to.be.a(Date); + expect(data.OrderCreatedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRatingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRatingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Rating).to.be.a('number'); + expect(data.Rating).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRefundedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRefundedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.RefundedAmount).to.be.a('number'); + expect(data.RefundedAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRejectedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRejectedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderRejectedTime).to.be.a(Date); + expect(data.OrderRejectedTime).to.be(new Date()); + expect(data.Reason).to.be.a('string'); + expect(data.Reason).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTipUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderTipUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.TipAmount).to.be.a('number'); + expect(data.TipAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTerminalNotifications; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.EmvNotificationEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Notification).to.be.a('string'); + expect(data.Notification).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.TerminalId).to.be.a('string'); + expect(data.TerminalId).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.ExpDate).to.be.a('string'); + expect(data.ExpDate).to.be(""); + expect(data.CardType).to.be.a('string'); + expect(data.CardType).to.be(""); + expect(data.PaymentMethod).to.be.a('string'); + expect(data.PaymentMethod).to.be(""); + expect(data.AccountNumber).to.be.a('string'); + expect(data.AccountNumber).to.be(""); + expect(data.AuthCode).to.be.a('string'); + expect(data.AuthCode).to.be(""); + expect(data.ProviderMessage).to.be.a('string'); + expect(data.ProviderMessage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreAddressUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreAddressUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreAddress).to.be.a(Flipdish.StoreAddress); + expect(data.StoreAddress.AddressId).to.be.a('number'); + expect(data.StoreAddress.AddressId).to.be(0); + expect(data.StoreAddress.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.StoreAddress.Coordinates.Latitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Latitude).to.be(0.0); + expect(data.StoreAddress.Coordinates.Longitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Longitude).to.be(0.0); + expect(data.StoreAddress.Line1).to.be.a('string'); + expect(data.StoreAddress.Line1).to.be(""); + expect(data.StoreAddress.Postcode).to.be.a('string'); + expect(data.StoreAddress.Postcode).to.be(""); + expect(data.StoreAddress.City).to.be.a('string'); + expect(data.StoreAddress.City).to.be(""); + expect(data.StoreAddress.CountryCode).to.be.a('string'); + expect(data.StoreAddress.CountryCode).to.be(""); + expect(data.StoreAddress.DisplayForCustomer).to.be.a('string'); + expect(data.StoreAddress.DisplayForCustomer).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreKioskSettingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreKioskSettingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreKioskSetting).to.be.a(Flipdish.StoreKioskSetting); + expect(data.StoreKioskSetting.KioskSettingId).to.be.a('number'); + expect(data.StoreKioskSetting.KioskSettingId).to.be(0); + expect(data.StoreKioskSetting.KioskName).to.be.a('string'); + expect(data.StoreKioskSetting.KioskName).to.be(""); + expect(data.StoreKioskSetting.RequireCustomerName).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequireCustomerName).to.be(false); + expect(data.StoreKioskSetting.RequestTableNumber).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequestTableNumber).to.be(false); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be.a('boolean'); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be(false); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be.a('number'); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be(0); + expect(data.StoreKioskSetting.HydraConfigId).to.be.a('number'); + expect(data.StoreKioskSetting.HydraConfigId).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreOpeningHoursUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOpeningHoursUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.DeliveryType).to.be.a('string'); + expect(data.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursPeriodOld).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriodOld.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriodOld.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be(""); + expect(data.BusinessHoursPeriod).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriod.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.Period).to.be(""); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.Period).to.be(""); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriod.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriod.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Period).to.be(""); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreMenuAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreMenuAssignedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreArchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreArchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnarchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnarchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnpublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnpublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePreOrderConfigUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePreOrderConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PreOrderConfig).to.be.a(Flipdish.PreOrderConfig); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be.a('number'); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be(0); + expect(data.PreOrderConfig.IntervalMinutes).to.be.a('number'); + expect(data.PreOrderConfig.IntervalMinutes).to.be(0); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be.a('number'); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be(0); + expect(data.PreOrderConfig.IncludeAsap).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeAsap).to.be(false); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be(false); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be(""); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be(""); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be.a('string'); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be("SingleTime"); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be(false); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be.a('boolean'); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUploadedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUploadedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCheckpointCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCheckpointCreatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerConsentUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerConsentUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Enabled).to.be.a('boolean'); + expect(data.Enabled).to.be(false); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOnEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOnEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOffEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOffEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterAssignedToStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterAssignedToStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterUnassignedFromStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterUnassignedFromStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallStartedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallStartedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallEndedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallEndedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.SmsReceivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.SmsReceivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SmsInfo).to.be.a(Flipdish.SmsInfo); + expect(data.SmsInfo.From).to.be.a('string'); + expect(data.SmsInfo.From).to.be(""); + expect(data.SmsInfo.To).to.be.a('string'); + expect(data.SmsInfo.To).to.be(""); + expect(data.SmsInfo.Text).to.be.a('string'); + expect(data.SmsInfo.Text).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserLoginEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserLoginEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedPasswordEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserPasswordCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserAnsweredSignupQuestionsEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserAnsweredSignupQuestionsEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.SignupAnswers).to.be.a('string'); + expect(data.SignupAnswers).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherCreatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherUpdatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherDeletedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteSentEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteAcceptedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateUpdatedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateDeletedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountCreatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountUpdatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountDeletedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraRequestResetEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraRequestResetEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreUnassignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreUnassignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraSettingChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraSettingChangedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraConfig).to.be.a(Flipdish.HydraConfig); + expect(data.HydraConfig.MinimumVersion).to.be.a('string'); + expect(data.HydraConfig.MinimumVersion).to.be(""); + { + let dataCtr = data.HydraConfig.PaymentOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be("Online"); + } + } + expect(data.HydraConfig.DeviceSettings).to.be.a(Flipdish.DeviceSettings); + expect(data.HydraConfig.DeviceSettings.Volume).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Volume).to.be(0); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be(0.0); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be(0); + expect(data.HydraConfig.Version).to.be.a('string'); + expect(data.HydraConfig.Version).to.be(""); + expect(data.HydraConfig.BuildNumber).to.be.a('string'); + expect(data.HydraConfig.BuildNumber).to.be(""); + expect(data.HydraConfig.GitSha).to.be.a('string'); + expect(data.HydraConfig.GitSha).to.be(""); + expect(data.HydraConfig.GitBranch).to.be.a('string'); + expect(data.HydraConfig.GitBranch).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraUnAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraUnAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraConnectionStatusChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraConnectionStatusChangedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.HydraDeviceStatus).to.be.a('string'); + expect(data.HydraDeviceStatus).to.be("Online"); + expect(data.PollTime).to.be.a(Date); + expect(data.PollTime).to.be(new Date()); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothPairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothPairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothUnpairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothUnpairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalUpdatedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalSerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalSerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus).to.be.a(Flipdish.BluetoothTerminalStatus); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be(""); + expect(data.BluetoothTerminalStatus.DeviceType).to.be.a('string'); + expect(data.BluetoothTerminalStatus.DeviceType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalStatus.Status).to.be.a('string'); + expect(data.BluetoothTerminalStatus.Status).to.be("Not_Connected"); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be.a('number'); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be(0.0); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be.a(Date); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be(new Date()); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalInitiateUpdateCheckEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothInstallUpdateInitiateEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothInstallUpdateInitiateEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationScheduledEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationScheduledEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationSentEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DnsVerifiedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DnsVerifiedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateCreatedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateRenewedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateRenewedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteVanityUrlUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteVanityUrlUpdatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.VanityUrl).to.be.a('string'); + expect(data.VanityUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteUpdatedEvent); + expect(data.AppNameId).to.be.a('string'); + expect(data.AppNameId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCapacityUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCapacityConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCapacityConfig).to.be.a(Flipdish.StoreOrderCapacityConfigEditModel); + { + let dataCtr = data.OrderCapacityConfig.OrderCapacityPeriods; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOrderCapacityPeriod); + expect(data.MaxOrderNumberPerStoreInterval).to.be.a('number'); + expect(data.MaxOrderNumberPerStoreInterval).to.be(0); + expect(data.DayOfTheWeek).to.be.a('string'); + expect(data.DayOfTheWeek).to.be("Sunday"); + expect(data.PeriodStartHour).to.be.a('number'); + expect(data.PeriodStartHour).to.be(0); + expect(data.PeriodStartMinutes).to.be.a('number'); + expect(data.PeriodStartMinutes).to.be(0); + expect(data.PeriodEndHour).to.be.a('number'); + expect(data.PeriodEndHour).to.be(0); + expect(data.PeriodEndMinutes).to.be.a('number'); + expect(data.PeriodEndMinutes).to.be(0); + + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getOrderEventsByCustomer', function() { + it('should call getOrderEventsByCustomer successfully', function(done) { + // TODO: uncomment, update parameter values for getOrderEventsByCustomer call and complete the assertions + /* + var customerId = 56; + var opts = {}; + opts.limit = 56; + opts.page = 56; + opts.start = new Date("2013-10-20T19:20:30+01:00"); + opts.end = new Date("2013-10-20T19:20:30+01:00"); + opts.orderId = 56; + opts.storeId = 56; + opts.storeGroupId = 56; + opts.userId = 56; + opts.userEmail = "userEmail_example"; + opts.userName = "userName_example"; + opts.voucherCode = "voucherCode_example"; + opts.eventType = ["eventType_example"]; + opts.flipdishEventId = "flipdishEventId_example"; + + instance.getOrderEventsByCustomer(customerId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiEventSearchPaginationResult); + expect(data.Data).to.be.a(Flipdish.EventSearchResult); + { + let dataCtr = data.Data.AppCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AppUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Changes).to.be.a('string'); + expect(data.Changes).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AnalyticsClientEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AnalyticsClientEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.EventType).to.be.a('string'); + expect(data.EventType).to.be(""); + expect(data.AppType).to.be.a('string'); + expect(data.AppType).to.be(""); + expect(data.Metadata).to.be.a('string'); + expect(data.Metadata).to.be(""); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.Latitude).to.be.a('number'); + expect(data.Latitude).to.be(0.0); + expect(data.Longitude).to.be.a('number'); + expect(data.Longitude).to.be(0.0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderAcceptedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderAcceptedTime).to.be.a(Date); + expect(data.OrderAcceptedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDispatchedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDispatchedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderDispatchedTime).to.be.a(Date); + expect(data.OrderDispatchedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCustomerTrackingCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCustomerTrackingCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.CustomerDeliveryTrackingOrder); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.Address).to.be.a('string'); + expect(data.Order.Address).to.be(""); + expect(data.Order.DeliveryNotes).to.be.a('string'); + expect(data.Order.DeliveryNotes).to.be(""); + expect(data.Order.StorePhoneNumber).to.be.a('string'); + expect(data.Order.StorePhoneNumber).to.be(""); + expect(data.Order.AppIconUrl).to.be.a('string'); + expect(data.Order.AppIconUrl).to.be(""); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.Order.PaymentMethodDescription).to.be.a('string'); + expect(data.Order.PaymentMethodDescription).to.be(""); + expect(data.Order.LastFourDigits).to.be.a('string'); + expect(data.Order.LastFourDigits).to.be(""); + { + let dataCtr = data.Order.OrderLines; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerDeliveryTrackingOrderLine); + expect(data.ItemName).to.be.a('string'); + expect(data.ItemName).to.be(""); + { + let dataCtr = data.SelectedOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + + } + } + expect(data.Order.TotalAmount).to.be.a('number'); + expect(data.Order.TotalAmount).to.be(0.0); + expect(data.Order.Currency).to.be.a('string'); + expect(data.Order.Currency).to.be("EUR"); + expect(data.Order.Latitude).to.be.a('number'); + expect(data.Order.Latitude).to.be(0.0); + expect(data.Order.Longitude).to.be.a('number'); + expect(data.Order.Longitude).to.be(0.0); + expect(data.Order.Placed).to.be.a(Date); + expect(data.Order.Placed).to.be(new Date()); + expect(data.Order.RequestedFor).to.be.a(Date); + expect(data.Order.RequestedFor).to.be(new Date()); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.DriverName).to.be.a('string'); + expect(data.Order.DriverName).to.be(""); + expect(data.Order.DriverImage).to.be.a('string'); + expect(data.Order.DriverImage).to.be(""); + expect(data.Order.EstimatedMinutesForDelivery).to.be.a('number'); + expect(data.Order.EstimatedMinutesForDelivery).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDeliveryTrackingStatusUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDeliveryTrackingStatusUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCreatedTime).to.be.a(Date); + expect(data.OrderCreatedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRatingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRatingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Rating).to.be.a('number'); + expect(data.Rating).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRefundedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRefundedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.RefundedAmount).to.be.a('number'); + expect(data.RefundedAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRejectedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRejectedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderRejectedTime).to.be.a(Date); + expect(data.OrderRejectedTime).to.be(new Date()); + expect(data.Reason).to.be.a('string'); + expect(data.Reason).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTipUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderTipUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.TipAmount).to.be.a('number'); + expect(data.TipAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTerminalNotifications; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.EmvNotificationEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Notification).to.be.a('string'); + expect(data.Notification).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.TerminalId).to.be.a('string'); + expect(data.TerminalId).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.ExpDate).to.be.a('string'); + expect(data.ExpDate).to.be(""); + expect(data.CardType).to.be.a('string'); + expect(data.CardType).to.be(""); + expect(data.PaymentMethod).to.be.a('string'); + expect(data.PaymentMethod).to.be(""); + expect(data.AccountNumber).to.be.a('string'); + expect(data.AccountNumber).to.be(""); + expect(data.AuthCode).to.be.a('string'); + expect(data.AuthCode).to.be(""); + expect(data.ProviderMessage).to.be.a('string'); + expect(data.ProviderMessage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreAddressUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreAddressUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreAddress).to.be.a(Flipdish.StoreAddress); + expect(data.StoreAddress.AddressId).to.be.a('number'); + expect(data.StoreAddress.AddressId).to.be(0); + expect(data.StoreAddress.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.StoreAddress.Coordinates.Latitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Latitude).to.be(0.0); + expect(data.StoreAddress.Coordinates.Longitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Longitude).to.be(0.0); + expect(data.StoreAddress.Line1).to.be.a('string'); + expect(data.StoreAddress.Line1).to.be(""); + expect(data.StoreAddress.Postcode).to.be.a('string'); + expect(data.StoreAddress.Postcode).to.be(""); + expect(data.StoreAddress.City).to.be.a('string'); + expect(data.StoreAddress.City).to.be(""); + expect(data.StoreAddress.CountryCode).to.be.a('string'); + expect(data.StoreAddress.CountryCode).to.be(""); + expect(data.StoreAddress.DisplayForCustomer).to.be.a('string'); + expect(data.StoreAddress.DisplayForCustomer).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreKioskSettingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreKioskSettingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreKioskSetting).to.be.a(Flipdish.StoreKioskSetting); + expect(data.StoreKioskSetting.KioskSettingId).to.be.a('number'); + expect(data.StoreKioskSetting.KioskSettingId).to.be(0); + expect(data.StoreKioskSetting.KioskName).to.be.a('string'); + expect(data.StoreKioskSetting.KioskName).to.be(""); + expect(data.StoreKioskSetting.RequireCustomerName).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequireCustomerName).to.be(false); + expect(data.StoreKioskSetting.RequestTableNumber).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequestTableNumber).to.be(false); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be.a('boolean'); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be(false); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be.a('number'); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be(0); + expect(data.StoreKioskSetting.HydraConfigId).to.be.a('number'); + expect(data.StoreKioskSetting.HydraConfigId).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreOpeningHoursUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOpeningHoursUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.DeliveryType).to.be.a('string'); + expect(data.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursPeriodOld).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriodOld.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriodOld.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be(""); + expect(data.BusinessHoursPeriod).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriod.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.Period).to.be(""); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.Period).to.be(""); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriod.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriod.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Period).to.be(""); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreMenuAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreMenuAssignedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreArchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreArchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnarchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnarchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnpublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnpublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePreOrderConfigUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePreOrderConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PreOrderConfig).to.be.a(Flipdish.PreOrderConfig); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be.a('number'); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be(0); + expect(data.PreOrderConfig.IntervalMinutes).to.be.a('number'); + expect(data.PreOrderConfig.IntervalMinutes).to.be(0); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be.a('number'); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be(0); + expect(data.PreOrderConfig.IncludeAsap).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeAsap).to.be(false); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be(false); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be(""); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be(""); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be.a('string'); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be("SingleTime"); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be(false); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be.a('boolean'); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUploadedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUploadedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCheckpointCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCheckpointCreatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerConsentUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerConsentUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Enabled).to.be.a('boolean'); + expect(data.Enabled).to.be(false); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOnEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOnEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOffEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOffEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterAssignedToStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterAssignedToStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterUnassignedFromStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterUnassignedFromStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallStartedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallStartedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallEndedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallEndedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.SmsReceivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.SmsReceivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SmsInfo).to.be.a(Flipdish.SmsInfo); + expect(data.SmsInfo.From).to.be.a('string'); + expect(data.SmsInfo.From).to.be(""); + expect(data.SmsInfo.To).to.be.a('string'); + expect(data.SmsInfo.To).to.be(""); + expect(data.SmsInfo.Text).to.be.a('string'); + expect(data.SmsInfo.Text).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserLoginEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserLoginEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedPasswordEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserPasswordCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserAnsweredSignupQuestionsEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserAnsweredSignupQuestionsEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.SignupAnswers).to.be.a('string'); + expect(data.SignupAnswers).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherCreatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherUpdatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherDeletedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteSentEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteAcceptedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateUpdatedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateDeletedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountCreatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountUpdatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountDeletedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraRequestResetEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraRequestResetEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreUnassignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreUnassignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraSettingChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraSettingChangedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraConfig).to.be.a(Flipdish.HydraConfig); + expect(data.HydraConfig.MinimumVersion).to.be.a('string'); + expect(data.HydraConfig.MinimumVersion).to.be(""); + { + let dataCtr = data.HydraConfig.PaymentOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be("Online"); + } + } + expect(data.HydraConfig.DeviceSettings).to.be.a(Flipdish.DeviceSettings); + expect(data.HydraConfig.DeviceSettings.Volume).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Volume).to.be(0); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be(0.0); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be(0); + expect(data.HydraConfig.Version).to.be.a('string'); + expect(data.HydraConfig.Version).to.be(""); + expect(data.HydraConfig.BuildNumber).to.be.a('string'); + expect(data.HydraConfig.BuildNumber).to.be(""); + expect(data.HydraConfig.GitSha).to.be.a('string'); + expect(data.HydraConfig.GitSha).to.be(""); + expect(data.HydraConfig.GitBranch).to.be.a('string'); + expect(data.HydraConfig.GitBranch).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraUnAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraUnAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraConnectionStatusChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraConnectionStatusChangedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.HydraDeviceStatus).to.be.a('string'); + expect(data.HydraDeviceStatus).to.be("Online"); + expect(data.PollTime).to.be.a(Date); + expect(data.PollTime).to.be(new Date()); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothPairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothPairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothUnpairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothUnpairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalUpdatedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalSerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalSerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus).to.be.a(Flipdish.BluetoothTerminalStatus); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be(""); + expect(data.BluetoothTerminalStatus.DeviceType).to.be.a('string'); + expect(data.BluetoothTerminalStatus.DeviceType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalStatus.Status).to.be.a('string'); + expect(data.BluetoothTerminalStatus.Status).to.be("Not_Connected"); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be.a('number'); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be(0.0); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be.a(Date); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be(new Date()); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalInitiateUpdateCheckEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothInstallUpdateInitiateEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothInstallUpdateInitiateEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationScheduledEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationScheduledEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationSentEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DnsVerifiedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DnsVerifiedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateCreatedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateRenewedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateRenewedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteVanityUrlUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteVanityUrlUpdatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.VanityUrl).to.be.a('string'); + expect(data.VanityUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteUpdatedEvent); + expect(data.AppNameId).to.be.a('string'); + expect(data.AppNameId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCapacityUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCapacityConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCapacityConfig).to.be.a(Flipdish.StoreOrderCapacityConfigEditModel); + { + let dataCtr = data.OrderCapacityConfig.OrderCapacityPeriods; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOrderCapacityPeriod); + expect(data.MaxOrderNumberPerStoreInterval).to.be.a('number'); + expect(data.MaxOrderNumberPerStoreInterval).to.be(0); + expect(data.DayOfTheWeek).to.be.a('string'); + expect(data.DayOfTheWeek).to.be("Sunday"); + expect(data.PeriodStartHour).to.be.a('number'); + expect(data.PeriodStartHour).to.be(0); + expect(data.PeriodStartMinutes).to.be.a('number'); + expect(data.PeriodStartMinutes).to.be(0); + expect(data.PeriodEndHour).to.be.a('number'); + expect(data.PeriodEndHour).to.be(0); + expect(data.PeriodEndMinutes).to.be.a('number'); + expect(data.PeriodEndMinutes).to.be(0); + + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getStoreEvents', function() { + it('should call getStoreEvents successfully', function(done) { + // TODO: uncomment, update parameter values for getStoreEvents call and complete the assertions + /* + var storeId = 56; + var opts = {}; + opts.limit = 56; + opts.page = 56; + opts.start = new Date("2013-10-20T19:20:30+01:00"); + opts.end = new Date("2013-10-20T19:20:30+01:00"); + opts.orderId = 56; + opts.storeId2 = 56; + opts.storeGroupId = 56; + opts.userId = 56; + opts.userEmail = "userEmail_example"; + opts.userName = "userName_example"; + opts.voucherCode = "voucherCode_example"; + opts.eventType = ["eventType_example"]; + opts.flipdishEventId = "flipdishEventId_example"; + + instance.getStoreEvents(storeId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiEventSearchPaginationResult); + expect(data.Data).to.be.a(Flipdish.EventSearchResult); + { + let dataCtr = data.Data.AppCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AppUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Changes).to.be.a('string'); + expect(data.Changes).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AnalyticsClientEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AnalyticsClientEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.EventType).to.be.a('string'); + expect(data.EventType).to.be(""); + expect(data.AppType).to.be.a('string'); + expect(data.AppType).to.be(""); + expect(data.Metadata).to.be.a('string'); + expect(data.Metadata).to.be(""); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.Latitude).to.be.a('number'); + expect(data.Latitude).to.be(0.0); + expect(data.Longitude).to.be.a('number'); + expect(data.Longitude).to.be(0.0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderAcceptedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderAcceptedTime).to.be.a(Date); + expect(data.OrderAcceptedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDispatchedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDispatchedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderDispatchedTime).to.be.a(Date); + expect(data.OrderDispatchedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCustomerTrackingCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCustomerTrackingCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.CustomerDeliveryTrackingOrder); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.Address).to.be.a('string'); + expect(data.Order.Address).to.be(""); + expect(data.Order.DeliveryNotes).to.be.a('string'); + expect(data.Order.DeliveryNotes).to.be(""); + expect(data.Order.StorePhoneNumber).to.be.a('string'); + expect(data.Order.StorePhoneNumber).to.be(""); + expect(data.Order.AppIconUrl).to.be.a('string'); + expect(data.Order.AppIconUrl).to.be(""); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.Order.PaymentMethodDescription).to.be.a('string'); + expect(data.Order.PaymentMethodDescription).to.be(""); + expect(data.Order.LastFourDigits).to.be.a('string'); + expect(data.Order.LastFourDigits).to.be(""); + { + let dataCtr = data.Order.OrderLines; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerDeliveryTrackingOrderLine); + expect(data.ItemName).to.be.a('string'); + expect(data.ItemName).to.be(""); + { + let dataCtr = data.SelectedOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + + } + } + expect(data.Order.TotalAmount).to.be.a('number'); + expect(data.Order.TotalAmount).to.be(0.0); + expect(data.Order.Currency).to.be.a('string'); + expect(data.Order.Currency).to.be("EUR"); + expect(data.Order.Latitude).to.be.a('number'); + expect(data.Order.Latitude).to.be(0.0); + expect(data.Order.Longitude).to.be.a('number'); + expect(data.Order.Longitude).to.be(0.0); + expect(data.Order.Placed).to.be.a(Date); + expect(data.Order.Placed).to.be(new Date()); + expect(data.Order.RequestedFor).to.be.a(Date); + expect(data.Order.RequestedFor).to.be(new Date()); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.DriverName).to.be.a('string'); + expect(data.Order.DriverName).to.be(""); + expect(data.Order.DriverImage).to.be.a('string'); + expect(data.Order.DriverImage).to.be(""); + expect(data.Order.EstimatedMinutesForDelivery).to.be.a('number'); + expect(data.Order.EstimatedMinutesForDelivery).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDeliveryTrackingStatusUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDeliveryTrackingStatusUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCreatedTime).to.be.a(Date); + expect(data.OrderCreatedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRatingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRatingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Rating).to.be.a('number'); + expect(data.Rating).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRefundedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRefundedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.RefundedAmount).to.be.a('number'); + expect(data.RefundedAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRejectedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRejectedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderRejectedTime).to.be.a(Date); + expect(data.OrderRejectedTime).to.be(new Date()); + expect(data.Reason).to.be.a('string'); + expect(data.Reason).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTipUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderTipUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.TipAmount).to.be.a('number'); + expect(data.TipAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTerminalNotifications; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.EmvNotificationEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Notification).to.be.a('string'); + expect(data.Notification).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.TerminalId).to.be.a('string'); + expect(data.TerminalId).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.ExpDate).to.be.a('string'); + expect(data.ExpDate).to.be(""); + expect(data.CardType).to.be.a('string'); + expect(data.CardType).to.be(""); + expect(data.PaymentMethod).to.be.a('string'); + expect(data.PaymentMethod).to.be(""); + expect(data.AccountNumber).to.be.a('string'); + expect(data.AccountNumber).to.be(""); + expect(data.AuthCode).to.be.a('string'); + expect(data.AuthCode).to.be(""); + expect(data.ProviderMessage).to.be.a('string'); + expect(data.ProviderMessage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreAddressUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreAddressUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreAddress).to.be.a(Flipdish.StoreAddress); + expect(data.StoreAddress.AddressId).to.be.a('number'); + expect(data.StoreAddress.AddressId).to.be(0); + expect(data.StoreAddress.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.StoreAddress.Coordinates.Latitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Latitude).to.be(0.0); + expect(data.StoreAddress.Coordinates.Longitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Longitude).to.be(0.0); + expect(data.StoreAddress.Line1).to.be.a('string'); + expect(data.StoreAddress.Line1).to.be(""); + expect(data.StoreAddress.Postcode).to.be.a('string'); + expect(data.StoreAddress.Postcode).to.be(""); + expect(data.StoreAddress.City).to.be.a('string'); + expect(data.StoreAddress.City).to.be(""); + expect(data.StoreAddress.CountryCode).to.be.a('string'); + expect(data.StoreAddress.CountryCode).to.be(""); + expect(data.StoreAddress.DisplayForCustomer).to.be.a('string'); + expect(data.StoreAddress.DisplayForCustomer).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreKioskSettingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreKioskSettingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreKioskSetting).to.be.a(Flipdish.StoreKioskSetting); + expect(data.StoreKioskSetting.KioskSettingId).to.be.a('number'); + expect(data.StoreKioskSetting.KioskSettingId).to.be(0); + expect(data.StoreKioskSetting.KioskName).to.be.a('string'); + expect(data.StoreKioskSetting.KioskName).to.be(""); + expect(data.StoreKioskSetting.RequireCustomerName).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequireCustomerName).to.be(false); + expect(data.StoreKioskSetting.RequestTableNumber).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequestTableNumber).to.be(false); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be.a('boolean'); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be(false); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be.a('number'); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be(0); + expect(data.StoreKioskSetting.HydraConfigId).to.be.a('number'); + expect(data.StoreKioskSetting.HydraConfigId).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreOpeningHoursUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOpeningHoursUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.DeliveryType).to.be.a('string'); + expect(data.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursPeriodOld).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriodOld.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriodOld.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be(""); + expect(data.BusinessHoursPeriod).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriod.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.Period).to.be(""); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.Period).to.be(""); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriod.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriod.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Period).to.be(""); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreMenuAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreMenuAssignedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreArchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreArchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnarchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnarchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnpublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnpublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePreOrderConfigUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePreOrderConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PreOrderConfig).to.be.a(Flipdish.PreOrderConfig); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be.a('number'); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be(0); + expect(data.PreOrderConfig.IntervalMinutes).to.be.a('number'); + expect(data.PreOrderConfig.IntervalMinutes).to.be(0); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be.a('number'); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be(0); + expect(data.PreOrderConfig.IncludeAsap).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeAsap).to.be(false); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be(false); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be(""); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be(""); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be.a('string'); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be("SingleTime"); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be(false); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be.a('boolean'); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUploadedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUploadedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCheckpointCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCheckpointCreatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerConsentUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerConsentUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Enabled).to.be.a('boolean'); + expect(data.Enabled).to.be(false); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOnEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOnEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOffEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOffEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterAssignedToStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterAssignedToStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterUnassignedFromStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterUnassignedFromStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallStartedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallStartedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallEndedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallEndedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.SmsReceivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.SmsReceivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SmsInfo).to.be.a(Flipdish.SmsInfo); + expect(data.SmsInfo.From).to.be.a('string'); + expect(data.SmsInfo.From).to.be(""); + expect(data.SmsInfo.To).to.be.a('string'); + expect(data.SmsInfo.To).to.be(""); + expect(data.SmsInfo.Text).to.be.a('string'); + expect(data.SmsInfo.Text).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserLoginEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserLoginEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedPasswordEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserPasswordCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserAnsweredSignupQuestionsEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserAnsweredSignupQuestionsEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.SignupAnswers).to.be.a('string'); + expect(data.SignupAnswers).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherCreatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherUpdatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherDeletedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteSentEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteAcceptedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateUpdatedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateDeletedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountCreatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountUpdatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountDeletedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraRequestResetEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraRequestResetEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreUnassignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreUnassignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraSettingChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraSettingChangedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraConfig).to.be.a(Flipdish.HydraConfig); + expect(data.HydraConfig.MinimumVersion).to.be.a('string'); + expect(data.HydraConfig.MinimumVersion).to.be(""); + { + let dataCtr = data.HydraConfig.PaymentOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be("Online"); + } + } + expect(data.HydraConfig.DeviceSettings).to.be.a(Flipdish.DeviceSettings); + expect(data.HydraConfig.DeviceSettings.Volume).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Volume).to.be(0); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be(0.0); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be(0); + expect(data.HydraConfig.Version).to.be.a('string'); + expect(data.HydraConfig.Version).to.be(""); + expect(data.HydraConfig.BuildNumber).to.be.a('string'); + expect(data.HydraConfig.BuildNumber).to.be(""); + expect(data.HydraConfig.GitSha).to.be.a('string'); + expect(data.HydraConfig.GitSha).to.be(""); + expect(data.HydraConfig.GitBranch).to.be.a('string'); + expect(data.HydraConfig.GitBranch).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraUnAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraUnAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraConnectionStatusChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraConnectionStatusChangedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.HydraDeviceStatus).to.be.a('string'); + expect(data.HydraDeviceStatus).to.be("Online"); + expect(data.PollTime).to.be.a(Date); + expect(data.PollTime).to.be(new Date()); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothPairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothPairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothUnpairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothUnpairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalUpdatedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalSerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalSerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus).to.be.a(Flipdish.BluetoothTerminalStatus); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be(""); + expect(data.BluetoothTerminalStatus.DeviceType).to.be.a('string'); + expect(data.BluetoothTerminalStatus.DeviceType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalStatus.Status).to.be.a('string'); + expect(data.BluetoothTerminalStatus.Status).to.be("Not_Connected"); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be.a('number'); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be(0.0); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be.a(Date); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be(new Date()); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalInitiateUpdateCheckEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothInstallUpdateInitiateEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothInstallUpdateInitiateEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationScheduledEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationScheduledEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationSentEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DnsVerifiedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DnsVerifiedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateCreatedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateRenewedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateRenewedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteVanityUrlUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteVanityUrlUpdatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.VanityUrl).to.be.a('string'); + expect(data.VanityUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteUpdatedEvent); + expect(data.AppNameId).to.be.a('string'); + expect(data.AppNameId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCapacityUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCapacityConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCapacityConfig).to.be.a(Flipdish.StoreOrderCapacityConfigEditModel); + { + let dataCtr = data.OrderCapacityConfig.OrderCapacityPeriods; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOrderCapacityPeriod); + expect(data.MaxOrderNumberPerStoreInterval).to.be.a('number'); + expect(data.MaxOrderNumberPerStoreInterval).to.be(0); + expect(data.DayOfTheWeek).to.be.a('string'); + expect(data.DayOfTheWeek).to.be("Sunday"); + expect(data.PeriodStartHour).to.be.a('number'); + expect(data.PeriodStartHour).to.be(0); + expect(data.PeriodStartMinutes).to.be.a('number'); + expect(data.PeriodStartMinutes).to.be(0); + expect(data.PeriodEndHour).to.be.a('number'); + expect(data.PeriodEndHour).to.be(0); + expect(data.PeriodEndMinutes).to.be.a('number'); + expect(data.PeriodEndMinutes).to.be(0); + + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getUserEvents', function() { + it('should call getUserEvents successfully', function(done) { + // TODO: uncomment, update parameter values for getUserEvents call and complete the assertions + /* + var userId = 56; + var opts = {}; + opts.limit = 56; + opts.page = 56; + opts.start = new Date("2013-10-20T19:20:30+01:00"); + opts.end = new Date("2013-10-20T19:20:30+01:00"); + opts.orderId = 56; + opts.storeId = 56; + opts.storeGroupId = 56; + opts.userId2 = 56; + opts.userEmail = "userEmail_example"; + opts.userName = "userName_example"; + opts.voucherCode = "voucherCode_example"; + opts.eventType = ["eventType_example"]; + opts.flipdishEventId = "flipdishEventId_example"; + + instance.getUserEvents(userId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiEventSearchPaginationResult); + expect(data.Data).to.be.a(Flipdish.EventSearchResult); + { + let dataCtr = data.Data.AppCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AppUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Changes).to.be.a('string'); + expect(data.Changes).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AnalyticsClientEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AnalyticsClientEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.EventType).to.be.a('string'); + expect(data.EventType).to.be(""); + expect(data.AppType).to.be.a('string'); + expect(data.AppType).to.be(""); + expect(data.Metadata).to.be.a('string'); + expect(data.Metadata).to.be(""); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.Latitude).to.be.a('number'); + expect(data.Latitude).to.be(0.0); + expect(data.Longitude).to.be.a('number'); + expect(data.Longitude).to.be(0.0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderAcceptedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderAcceptedTime).to.be.a(Date); + expect(data.OrderAcceptedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDispatchedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDispatchedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderDispatchedTime).to.be.a(Date); + expect(data.OrderDispatchedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCustomerTrackingCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCustomerTrackingCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.CustomerDeliveryTrackingOrder); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.Address).to.be.a('string'); + expect(data.Order.Address).to.be(""); + expect(data.Order.DeliveryNotes).to.be.a('string'); + expect(data.Order.DeliveryNotes).to.be(""); + expect(data.Order.StorePhoneNumber).to.be.a('string'); + expect(data.Order.StorePhoneNumber).to.be(""); + expect(data.Order.AppIconUrl).to.be.a('string'); + expect(data.Order.AppIconUrl).to.be(""); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.Order.PaymentMethodDescription).to.be.a('string'); + expect(data.Order.PaymentMethodDescription).to.be(""); + expect(data.Order.LastFourDigits).to.be.a('string'); + expect(data.Order.LastFourDigits).to.be(""); + { + let dataCtr = data.Order.OrderLines; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerDeliveryTrackingOrderLine); + expect(data.ItemName).to.be.a('string'); + expect(data.ItemName).to.be(""); + { + let dataCtr = data.SelectedOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + + } + } + expect(data.Order.TotalAmount).to.be.a('number'); + expect(data.Order.TotalAmount).to.be(0.0); + expect(data.Order.Currency).to.be.a('string'); + expect(data.Order.Currency).to.be("EUR"); + expect(data.Order.Latitude).to.be.a('number'); + expect(data.Order.Latitude).to.be(0.0); + expect(data.Order.Longitude).to.be.a('number'); + expect(data.Order.Longitude).to.be(0.0); + expect(data.Order.Placed).to.be.a(Date); + expect(data.Order.Placed).to.be(new Date()); + expect(data.Order.RequestedFor).to.be.a(Date); + expect(data.Order.RequestedFor).to.be(new Date()); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.DriverName).to.be.a('string'); + expect(data.Order.DriverName).to.be(""); + expect(data.Order.DriverImage).to.be.a('string'); + expect(data.Order.DriverImage).to.be(""); + expect(data.Order.EstimatedMinutesForDelivery).to.be.a('number'); + expect(data.Order.EstimatedMinutesForDelivery).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDeliveryTrackingStatusUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDeliveryTrackingStatusUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCreatedTime).to.be.a(Date); + expect(data.OrderCreatedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRatingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRatingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Rating).to.be.a('number'); + expect(data.Rating).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRefundedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRefundedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.RefundedAmount).to.be.a('number'); + expect(data.RefundedAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRejectedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRejectedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderRejectedTime).to.be.a(Date); + expect(data.OrderRejectedTime).to.be(new Date()); + expect(data.Reason).to.be.a('string'); + expect(data.Reason).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTipUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderTipUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.TipAmount).to.be.a('number'); + expect(data.TipAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTerminalNotifications; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.EmvNotificationEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Notification).to.be.a('string'); + expect(data.Notification).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.TerminalId).to.be.a('string'); + expect(data.TerminalId).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.ExpDate).to.be.a('string'); + expect(data.ExpDate).to.be(""); + expect(data.CardType).to.be.a('string'); + expect(data.CardType).to.be(""); + expect(data.PaymentMethod).to.be.a('string'); + expect(data.PaymentMethod).to.be(""); + expect(data.AccountNumber).to.be.a('string'); + expect(data.AccountNumber).to.be(""); + expect(data.AuthCode).to.be.a('string'); + expect(data.AuthCode).to.be(""); + expect(data.ProviderMessage).to.be.a('string'); + expect(data.ProviderMessage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreAddressUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreAddressUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreAddress).to.be.a(Flipdish.StoreAddress); + expect(data.StoreAddress.AddressId).to.be.a('number'); + expect(data.StoreAddress.AddressId).to.be(0); + expect(data.StoreAddress.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.StoreAddress.Coordinates.Latitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Latitude).to.be(0.0); + expect(data.StoreAddress.Coordinates.Longitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Longitude).to.be(0.0); + expect(data.StoreAddress.Line1).to.be.a('string'); + expect(data.StoreAddress.Line1).to.be(""); + expect(data.StoreAddress.Postcode).to.be.a('string'); + expect(data.StoreAddress.Postcode).to.be(""); + expect(data.StoreAddress.City).to.be.a('string'); + expect(data.StoreAddress.City).to.be(""); + expect(data.StoreAddress.CountryCode).to.be.a('string'); + expect(data.StoreAddress.CountryCode).to.be(""); + expect(data.StoreAddress.DisplayForCustomer).to.be.a('string'); + expect(data.StoreAddress.DisplayForCustomer).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreKioskSettingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreKioskSettingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreKioskSetting).to.be.a(Flipdish.StoreKioskSetting); + expect(data.StoreKioskSetting.KioskSettingId).to.be.a('number'); + expect(data.StoreKioskSetting.KioskSettingId).to.be(0); + expect(data.StoreKioskSetting.KioskName).to.be.a('string'); + expect(data.StoreKioskSetting.KioskName).to.be(""); + expect(data.StoreKioskSetting.RequireCustomerName).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequireCustomerName).to.be(false); + expect(data.StoreKioskSetting.RequestTableNumber).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequestTableNumber).to.be(false); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be.a('boolean'); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be(false); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be.a('number'); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be(0); + expect(data.StoreKioskSetting.HydraConfigId).to.be.a('number'); + expect(data.StoreKioskSetting.HydraConfigId).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreOpeningHoursUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOpeningHoursUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.DeliveryType).to.be.a('string'); + expect(data.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursPeriodOld).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriodOld.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriodOld.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be(""); + expect(data.BusinessHoursPeriod).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriod.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.Period).to.be(""); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.Period).to.be(""); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriod.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriod.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Period).to.be(""); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreMenuAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreMenuAssignedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreArchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreArchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnarchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnarchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnpublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnpublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePreOrderConfigUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePreOrderConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PreOrderConfig).to.be.a(Flipdish.PreOrderConfig); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be.a('number'); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be(0); + expect(data.PreOrderConfig.IntervalMinutes).to.be.a('number'); + expect(data.PreOrderConfig.IntervalMinutes).to.be(0); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be.a('number'); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be(0); + expect(data.PreOrderConfig.IncludeAsap).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeAsap).to.be(false); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be(false); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be(""); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be(""); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be.a('string'); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be("SingleTime"); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be(false); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be.a('boolean'); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUploadedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUploadedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCheckpointCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCheckpointCreatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerConsentUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerConsentUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Enabled).to.be.a('boolean'); + expect(data.Enabled).to.be(false); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOnEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOnEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOffEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOffEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterAssignedToStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterAssignedToStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterUnassignedFromStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterUnassignedFromStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallStartedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallStartedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallEndedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallEndedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.SmsReceivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.SmsReceivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SmsInfo).to.be.a(Flipdish.SmsInfo); + expect(data.SmsInfo.From).to.be.a('string'); + expect(data.SmsInfo.From).to.be(""); + expect(data.SmsInfo.To).to.be.a('string'); + expect(data.SmsInfo.To).to.be(""); + expect(data.SmsInfo.Text).to.be.a('string'); + expect(data.SmsInfo.Text).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserLoginEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserLoginEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedPasswordEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserPasswordCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserAnsweredSignupQuestionsEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserAnsweredSignupQuestionsEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.SignupAnswers).to.be.a('string'); + expect(data.SignupAnswers).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherCreatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherUpdatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherDeletedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteSentEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteAcceptedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateUpdatedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateDeletedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountCreatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountUpdatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountDeletedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraRequestResetEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraRequestResetEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreUnassignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreUnassignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraSettingChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraSettingChangedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraConfig).to.be.a(Flipdish.HydraConfig); + expect(data.HydraConfig.MinimumVersion).to.be.a('string'); + expect(data.HydraConfig.MinimumVersion).to.be(""); + { + let dataCtr = data.HydraConfig.PaymentOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be("Online"); + } + } + expect(data.HydraConfig.DeviceSettings).to.be.a(Flipdish.DeviceSettings); + expect(data.HydraConfig.DeviceSettings.Volume).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Volume).to.be(0); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be(0.0); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be(0); + expect(data.HydraConfig.Version).to.be.a('string'); + expect(data.HydraConfig.Version).to.be(""); + expect(data.HydraConfig.BuildNumber).to.be.a('string'); + expect(data.HydraConfig.BuildNumber).to.be(""); + expect(data.HydraConfig.GitSha).to.be.a('string'); + expect(data.HydraConfig.GitSha).to.be(""); + expect(data.HydraConfig.GitBranch).to.be.a('string'); + expect(data.HydraConfig.GitBranch).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraUnAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraUnAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraConnectionStatusChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraConnectionStatusChangedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.HydraDeviceStatus).to.be.a('string'); + expect(data.HydraDeviceStatus).to.be("Online"); + expect(data.PollTime).to.be.a(Date); + expect(data.PollTime).to.be(new Date()); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothPairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothPairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothUnpairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothUnpairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalUpdatedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalSerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalSerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus).to.be.a(Flipdish.BluetoothTerminalStatus); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be(""); + expect(data.BluetoothTerminalStatus.DeviceType).to.be.a('string'); + expect(data.BluetoothTerminalStatus.DeviceType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalStatus.Status).to.be.a('string'); + expect(data.BluetoothTerminalStatus.Status).to.be("Not_Connected"); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be.a('number'); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be(0.0); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be.a(Date); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be(new Date()); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalInitiateUpdateCheckEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothInstallUpdateInitiateEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothInstallUpdateInitiateEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationScheduledEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationScheduledEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationSentEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DnsVerifiedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DnsVerifiedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateCreatedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateRenewedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateRenewedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteVanityUrlUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteVanityUrlUpdatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.VanityUrl).to.be.a('string'); + expect(data.VanityUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteUpdatedEvent); + expect(data.AppNameId).to.be.a('string'); + expect(data.AppNameId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCapacityUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCapacityConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCapacityConfig).to.be.a(Flipdish.StoreOrderCapacityConfigEditModel); + { + let dataCtr = data.OrderCapacityConfig.OrderCapacityPeriods; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOrderCapacityPeriod); + expect(data.MaxOrderNumberPerStoreInterval).to.be.a('number'); + expect(data.MaxOrderNumberPerStoreInterval).to.be(0); + expect(data.DayOfTheWeek).to.be.a('string'); + expect(data.DayOfTheWeek).to.be("Sunday"); + expect(data.PeriodStartHour).to.be.a('number'); + expect(data.PeriodStartHour).to.be(0); + expect(data.PeriodStartMinutes).to.be.a('number'); + expect(data.PeriodStartMinutes).to.be(0); + expect(data.PeriodEndHour).to.be.a('number'); + expect(data.PeriodEndHour).to.be(0); + expect(data.PeriodEndMinutes).to.be.a('number'); + expect(data.PeriodEndMinutes).to.be(0); + + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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(); + describe('getWhiteLabelEvents', function() { + it('should call getWhiteLabelEvents successfully', function(done) { + // TODO: uncomment, update parameter values for getWhiteLabelEvents call and complete the assertions + /* + var whitelabelId = 56; + var opts = {}; + opts.limit = 56; + opts.page = 56; + opts.start = new Date("2013-10-20T19:20:30+01:00"); + opts.end = new Date("2013-10-20T19:20:30+01:00"); + opts.orderId = 56; + opts.storeId = 56; + opts.storeGroupId = 56; + opts.userId = 56; + opts.userEmail = "userEmail_example"; + opts.userName = "userName_example"; + opts.voucherCode = "voucherCode_example"; + opts.eventType = ["eventType_example"]; + opts.flipdishEventId = "flipdishEventId_example"; + + instance.getWhiteLabelEvents(whitelabelId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiEventSearchPaginationResult); + expect(data.Data).to.be.a(Flipdish.EventSearchResult); + { + let dataCtr = data.Data.AppCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AppUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AppUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Changes).to.be.a('string'); + expect(data.Changes).to.be(""); + expect(data.AppName).to.be.a('string'); + expect(data.AppName).to.be(""); + expect(data.CountryId).to.be.a('string'); + expect(data.CountryId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.AnalyticsClientEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AnalyticsClientEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.EventType).to.be.a('string'); + expect(data.EventType).to.be(""); + expect(data.AppType).to.be.a('string'); + expect(data.AppType).to.be(""); + expect(data.Metadata).to.be.a('string'); + expect(data.Metadata).to.be(""); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.Latitude).to.be.a('number'); + expect(data.Latitude).to.be(0.0); + expect(data.Longitude).to.be.a('number'); + expect(data.Longitude).to.be(0.0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderAcceptedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderAcceptedTime).to.be.a(Date); + expect(data.OrderAcceptedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDispatchedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDispatchedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderDispatchedTime).to.be.a(Date); + expect(data.OrderDispatchedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCustomerTrackingCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCustomerTrackingCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.CustomerDeliveryTrackingOrder); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.Address).to.be.a('string'); + expect(data.Order.Address).to.be(""); + expect(data.Order.DeliveryNotes).to.be.a('string'); + expect(data.Order.DeliveryNotes).to.be(""); + expect(data.Order.StorePhoneNumber).to.be.a('string'); + expect(data.Order.StorePhoneNumber).to.be(""); + expect(data.Order.AppIconUrl).to.be.a('string'); + expect(data.Order.AppIconUrl).to.be(""); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.Order.PaymentMethodDescription).to.be.a('string'); + expect(data.Order.PaymentMethodDescription).to.be(""); + expect(data.Order.LastFourDigits).to.be.a('string'); + expect(data.Order.LastFourDigits).to.be(""); + { + let dataCtr = data.Order.OrderLines; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerDeliveryTrackingOrderLine); + expect(data.ItemName).to.be.a('string'); + expect(data.ItemName).to.be(""); + { + let dataCtr = data.SelectedOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + + } + } + expect(data.Order.TotalAmount).to.be.a('number'); + expect(data.Order.TotalAmount).to.be(0.0); + expect(data.Order.Currency).to.be.a('string'); + expect(data.Order.Currency).to.be("EUR"); + expect(data.Order.Latitude).to.be.a('number'); + expect(data.Order.Latitude).to.be(0.0); + expect(data.Order.Longitude).to.be.a('number'); + expect(data.Order.Longitude).to.be(0.0); + expect(data.Order.Placed).to.be.a(Date); + expect(data.Order.Placed).to.be(new Date()); + expect(data.Order.RequestedFor).to.be.a(Date); + expect(data.Order.RequestedFor).to.be(new Date()); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.DriverName).to.be.a('string'); + expect(data.Order.DriverName).to.be(""); + expect(data.Order.DriverImage).to.be.a('string'); + expect(data.Order.DriverImage).to.be(""); + expect(data.Order.EstimatedMinutesForDelivery).to.be.a('number'); + expect(data.Order.EstimatedMinutesForDelivery).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderDeliveryTrackingStatusUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderDeliveryTrackingStatusUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCreatedTime).to.be.a(Date); + expect(data.OrderCreatedTime).to.be(new Date()); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRatingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRatingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Rating).to.be.a('number'); + expect(data.Rating).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRefundedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRefundedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.RefundedAmount).to.be.a('number'); + expect(data.RefundedAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderRejectedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderRejectedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderRejectedTime).to.be.a(Date); + expect(data.OrderRejectedTime).to.be(new Date()); + expect(data.Reason).to.be.a('string'); + expect(data.Reason).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTipUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderTipUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.TipAmount).to.be.a('number'); + expect(data.TipAmount).to.be(0.0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderTerminalNotifications; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.EmvNotificationEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Notification).to.be.a('string'); + expect(data.Notification).to.be(""); + expect(data.Order).to.be.a(Flipdish.Order); + expect(data.Order.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Order.Store.Id).to.be.a('number'); + expect(data.Order.Store.Id).to.be(0); + expect(data.Order.Store.Name).to.be.a('string'); + expect(data.Order.Store.Name).to.be(""); + expect(data.Order.Store.MenuId).to.be.a('number'); + expect(data.Order.Store.MenuId).to.be(0); + { + let dataCtr = data.Order.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Order.Store.Currency).to.be.a('string'); + expect(data.Order.Store.Currency).to.be("EUR"); + expect(data.Order.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Order.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Order.Store.StoreTimezone).to.be.a('string'); + expect(data.Order.Store.StoreTimezone).to.be(""); + expect(data.Order.Store.StoreGroupId).to.be.a('number'); + expect(data.Order.Store.StoreGroupId).to.be(0); + expect(data.Order.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Order.Customer.Id).to.be.a('number'); + expect(data.Order.Customer.Id).to.be(0); + expect(data.Order.Customer.Name).to.be.a('string'); + expect(data.Order.Customer.Name).to.be(""); + expect(data.Order.Customer.EmailAddress).to.be.a('string'); + expect(data.Order.Customer.EmailAddress).to.be(""); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Order.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Order.Customer.PhoneNumber).to.be.a('string'); + expect(data.Order.Customer.PhoneNumber).to.be(""); + expect(data.Order.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Order.Voucher.Name).to.be.a('string'); + expect(data.Order.Voucher.Name).to.be(""); + expect(data.Order.Voucher.Description).to.be.a('string'); + expect(data.Order.Voucher.Description).to.be(""); + expect(data.Order.Voucher.Code).to.be.a('string'); + expect(data.Order.Voucher.Code).to.be(""); + expect(data.Order.Voucher.Amount).to.be.a('number'); + expect(data.Order.Voucher.Amount).to.be(0.0); + expect(data.Order.Voucher.Type).to.be.a('string'); + expect(data.Order.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Order.Voucher.SubType).to.be.a('string'); + expect(data.Order.Voucher.SubType).to.be("None"); + expect(data.Order.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Order.Fees.FeeAmount).to.be.a('number'); + expect(data.Order.Fees.FeeAmount).to.be(0.0); + expect(data.Order.Fees.PercentageRate).to.be.a('number'); + expect(data.Order.Fees.PercentageRate).to.be(0.0); + expect(data.Order.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Order.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Order.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Order.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Order.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Order.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Order.DeliveryLocation.Building).to.be.a('string'); + expect(data.Order.DeliveryLocation.Building).to.be(""); + expect(data.Order.DeliveryLocation.Street).to.be.a('string'); + expect(data.Order.DeliveryLocation.Street).to.be(""); + expect(data.Order.DeliveryLocation.Town).to.be.a('string'); + expect(data.Order.DeliveryLocation.Town).to.be(""); + expect(data.Order.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Order.DeliveryLocation.PostCode).to.be(""); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Order.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Order.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Order.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Order.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Latitude).to.be(0.0); + expect(data.Order.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Order.CustomerLocation.Longitude).to.be(0.0); + expect(data.Order.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Order.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Order.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Order.MaskedPhoneNumber.Code).to.be(""); + expect(data.Order.DropOffLocationId).to.be.a('number'); + expect(data.Order.DropOffLocationId).to.be(0); + expect(data.Order.DropOffLocation).to.be.a('string'); + expect(data.Order.DropOffLocation).to.be(""); + expect(data.Order.AcceptedFor).to.be.a(Date); + expect(data.Order.AcceptedFor).to.be(new Date()); + expect(data.Order.InFraudZone).to.be.a('boolean'); + expect(data.Order.InFraudZone).to.be(false); + expect(data.Order.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Order.UnusualHighValueOrder).to.be(false); + expect(data.Order.RejectedByUserId).to.be.a('number'); + expect(data.Order.RejectedByUserId).to.be(0); + expect(data.Order.OrderId).to.be.a('number'); + expect(data.Order.OrderId).to.be(0); + expect(data.Order.LocalOrderId).to.be.a('string'); + expect(data.Order.LocalOrderId).to.be(""); + expect(data.Order.DeliveryType).to.be.a('string'); + expect(data.Order.DeliveryType).to.be("Delivery"); + expect(data.Order.PickupLocationType).to.be.a('string'); + expect(data.Order.PickupLocationType).to.be("TakeOut"); + expect(data.Order.TableServiceCatagory).to.be.a('string'); + expect(data.Order.TableServiceCatagory).to.be("Generic"); + expect(data.Order.TipAmount).to.be.a('number'); + expect(data.Order.TipAmount).to.be(0.0); + expect(data.Order.DeliveryAmount).to.be.a('number'); + expect(data.Order.DeliveryAmount).to.be(0.0); + expect(data.Order.OrderItemsAmount).to.be.a('number'); + expect(data.Order.OrderItemsAmount).to.be(0.0); + expect(data.Order.Amount).to.be.a('number'); + expect(data.Order.Amount).to.be(0.0); + expect(data.Order.ProcessingFee).to.be.a('number'); + expect(data.Order.ProcessingFee).to.be(0.0); + expect(data.Order.PaymentAccountType).to.be.a('string'); + expect(data.Order.PaymentAccountType).to.be("Card"); + expect(data.Order.PaymentAccountDescription).to.be.a('string'); + expect(data.Order.PaymentAccountDescription).to.be(""); + expect(data.Order.OrderState).to.be.a('string'); + expect(data.Order.OrderState).to.be("Created"); + expect(data.Order.IsPreOrder).to.be.a('boolean'); + expect(data.Order.IsPreOrder).to.be(false); + expect(data.Order.PlacedTime).to.be.a(Date); + expect(data.Order.PlacedTime).to.be(new Date()); + expect(data.Order.RequestedForTime).to.be.a(Date); + expect(data.Order.RequestedForTime).to.be(new Date()); + expect(data.Order.ChefNote).to.be.a('string'); + expect(data.Order.ChefNote).to.be(""); + expect(data.Order.AppType).to.be.a('string'); + expect(data.Order.AppType).to.be("Unknown"); + expect(data.Order.UserRating).to.be.a('number'); + expect(data.Order.UserRating).to.be(0); + expect(data.Order.PaymentStatus).to.be.a('string'); + expect(data.Order.PaymentStatus).to.be("Paid"); + expect(data.Order.RejectionReason).to.be.a('string'); + expect(data.Order.RejectionReason).to.be("TooBusy"); + expect(data.Order.RefundedAmount).to.be.a('number'); + expect(data.Order.RefundedAmount).to.be(0.0); + expect(data.Order.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Order.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Order.DriverId).to.be.a('number'); + expect(data.Order.DriverId).to.be(0); + expect(data.Order.TotalTax).to.be.a('number'); + expect(data.Order.TotalTax).to.be(0.0); + expect(data.Order.OrderTrackingCode).to.be.a('string'); + expect(data.Order.OrderTrackingCode).to.be(""); + expect(data.TerminalId).to.be.a('string'); + expect(data.TerminalId).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.ExpDate).to.be.a('string'); + expect(data.ExpDate).to.be(""); + expect(data.CardType).to.be.a('string'); + expect(data.CardType).to.be(""); + expect(data.PaymentMethod).to.be.a('string'); + expect(data.PaymentMethod).to.be(""); + expect(data.AccountNumber).to.be.a('string'); + expect(data.AccountNumber).to.be(""); + expect(data.AuthCode).to.be.a('string'); + expect(data.AuthCode).to.be(""); + expect(data.ProviderMessage).to.be.a('string'); + expect(data.ProviderMessage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreAddressUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreAddressUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreAddress).to.be.a(Flipdish.StoreAddress); + expect(data.StoreAddress.AddressId).to.be.a('number'); + expect(data.StoreAddress.AddressId).to.be(0); + expect(data.StoreAddress.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.StoreAddress.Coordinates.Latitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Latitude).to.be(0.0); + expect(data.StoreAddress.Coordinates.Longitude).to.be.a('number'); + expect(data.StoreAddress.Coordinates.Longitude).to.be(0.0); + expect(data.StoreAddress.Line1).to.be.a('string'); + expect(data.StoreAddress.Line1).to.be(""); + expect(data.StoreAddress.Postcode).to.be.a('string'); + expect(data.StoreAddress.Postcode).to.be(""); + expect(data.StoreAddress.City).to.be.a('string'); + expect(data.StoreAddress.City).to.be(""); + expect(data.StoreAddress.CountryCode).to.be.a('string'); + expect(data.StoreAddress.CountryCode).to.be(""); + expect(data.StoreAddress.DisplayForCustomer).to.be.a('string'); + expect(data.StoreAddress.DisplayForCustomer).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreKioskSettingUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreKioskSettingUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreKioskSetting).to.be.a(Flipdish.StoreKioskSetting); + expect(data.StoreKioskSetting.KioskSettingId).to.be.a('number'); + expect(data.StoreKioskSetting.KioskSettingId).to.be(0); + expect(data.StoreKioskSetting.KioskName).to.be.a('string'); + expect(data.StoreKioskSetting.KioskName).to.be(""); + expect(data.StoreKioskSetting.RequireCustomerName).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequireCustomerName).to.be(false); + expect(data.StoreKioskSetting.RequestTableNumber).to.be.a('boolean'); + expect(data.StoreKioskSetting.RequestTableNumber).to.be(false); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be.a('boolean'); + expect(data.StoreKioskSetting.OfferDineInOrTakeawayOption).to.be(false); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be.a('number'); + expect(data.StoreKioskSetting.PhysicalRestaurantId).to.be(0); + expect(data.StoreKioskSetting.HydraConfigId).to.be.a('number'); + expect(data.StoreKioskSetting.HydraConfigId).to.be(0); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryZoneDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZoneDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DeliveryZone).to.be.a(Flipdish.DeliveryZone); + expect(data.DeliveryZone.Id).to.be.a('number'); + expect(data.DeliveryZone.Id).to.be(0); + expect(data.DeliveryZone.DeliveryFee).to.be.a('number'); + expect(data.DeliveryZone.DeliveryFee).to.be(0.0); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.DeliveryZone.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.DeliveryZone.WellKnownText).to.be.a('string'); + expect(data.DeliveryZone.WellKnownText).to.be(""); + expect(data.DeliveryZone.IsEnabled).to.be.a('boolean'); + expect(data.DeliveryZone.IsEnabled).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreOpeningHoursUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOpeningHoursUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.DeliveryType).to.be.a('string'); + expect(data.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursPeriodOld).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriodOld.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriodOld.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriodOld.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTime).to.be(""); + expect(data.BusinessHoursPeriodOld.Period).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.Period).to.be(""); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriodOld.PeriodEarly).to.be(""); + expect(data.BusinessHoursPeriod).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.BusinessHoursPeriod.Early).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Early.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.Period).to.be(""); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Early.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.Late).to.be.a(Flipdish.Range); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Late.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.Period).to.be(""); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.BusinessHoursPeriod.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.BusinessHoursPeriod.DayOfWeek).to.be.a('string'); + expect(data.BusinessHoursPeriod.DayOfWeek).to.be("Sunday"); + expect(data.BusinessHoursPeriod.StartTime).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTime).to.be(""); + expect(data.BusinessHoursPeriod.Period).to.be.a('string'); + expect(data.BusinessHoursPeriod.Period).to.be(""); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.StartTimeEarly).to.be(""); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be.a('string'); + expect(data.BusinessHoursPeriod.PeriodEarly).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreMenuAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreMenuAssignedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreBusinessHoursOverrideDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreBusinessHoursOverrideDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.BusinessHoursOverride).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverride.BusinessHoursOverrideId).to.be(0); + expect(data.BusinessHoursOverride.DeliveryType).to.be.a('string'); + expect(data.BusinessHoursOverride.DeliveryType).to.be("Delivery"); + expect(data.BusinessHoursOverride.StartTime).to.be.a(Date); + expect(data.BusinessHoursOverride.StartTime).to.be(new Date()); + expect(data.BusinessHoursOverride.EndTime).to.be.a(Date); + expect(data.BusinessHoursOverride.EndTime).to.be(new Date()); + expect(data.BusinessHoursOverride.Type).to.be.a('string'); + expect(data.BusinessHoursOverride.Type).to.be("Open"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreArchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreArchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnarchivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnarchivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUnpublishedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUnpublishedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Store).to.be.a(Flipdish.Store); + expect(data.Store.StoreId).to.be.a('number'); + expect(data.Store.StoreId).to.be(0); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Store.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Store.Address.AddressId).to.be.a('number'); + expect(data.Store.Address.AddressId).to.be(0); + expect(data.Store.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Store.Address.Line1).to.be.a('string'); + expect(data.Store.Address.Line1).to.be(""); + expect(data.Store.Address.Postcode).to.be.a('string'); + expect(data.Store.Address.Postcode).to.be(""); + expect(data.Store.Address.City).to.be.a('string'); + expect(data.Store.Address.City).to.be(""); + expect(data.Store.Address.CountryCode).to.be.a('string'); + expect(data.Store.Address.CountryCode).to.be(""); + expect(data.Store.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Store.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Store.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Store.ApmPhoneNumber).to.be.a('string'); + expect(data.Store.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Store.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Store.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Store.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Store.PrintoutLayoutType).to.be.a('string'); + expect(data.Store.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Store.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Store.MicrosoftTimeZone).to.be.a('string'); + expect(data.Store.MicrosoftTimeZone).to.be(""); + expect(data.Store.IanaTimeZone).to.be.a('string'); + expect(data.Store.IanaTimeZone).to.be(""); + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderDeliveryEnabled).to.be(false); + expect(data.Store.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderPickupEnabled).to.be(false); + expect(data.Store.LogoUrl).to.be.a('string'); + expect(data.Store.LogoUrl).to.be(""); + expect(data.Store.PhoneNumber).to.be.a('string'); + expect(data.Store.PhoneNumber).to.be(""); + expect(data.Store.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Store.AlwaysAppearOpen).to.be(false); + expect(data.Store.PreOrderEnabled).to.be.a('boolean'); + expect(data.Store.PreOrderEnabled).to.be(false); + expect(data.Store.TakeOutEnabled).to.be.a('boolean'); + expect(data.Store.TakeOutEnabled).to.be(false); + expect(data.Store.TableServiceEnabled).to.be.a('boolean'); + expect(data.Store.TableServiceEnabled).to.be(false); + expect(data.Store.DineInEnabled).to.be.a('boolean'); + expect(data.Store.DineInEnabled).to.be(false); + expect(data.Store.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Store.AllowPreOrdersAndTableService).to.be(false); + expect(data.Store.PickupEnabled).to.be.a('boolean'); + expect(data.Store.PickupEnabled).to.be(false); + expect(data.Store.DeliveryEnabled).to.be.a('boolean'); + expect(data.Store.DeliveryEnabled).to.be(false); + expect(data.Store.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CardOrderDeliveryEnabled).to.be(false); + expect(data.Store.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Store.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CardOrdersPickupEnabled).to.be(false); + expect(data.Store.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Store.CashOrdersPickupEnabled).to.be(false); + expect(data.Store.TipsEnabled).to.be.a('boolean'); + expect(data.Store.TipsEnabled).to.be(false); + expect(data.Store.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Store.AutomaticallyAcceptOrders).to.be(false); + expect(data.Store.OpenForDelivery).to.be.a('boolean'); + expect(data.Store.OpenForDelivery).to.be(false); + expect(data.Store.OpenForPickup).to.be.a('boolean'); + expect(data.Store.OpenForPickup).to.be(false); + expect(data.Store.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Store.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Store.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForPickup).to.be(false); + expect(data.Store.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Store.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Store.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Store.RequireCustomerNameForDelivery).to.be(false); + expect(data.Store.AllowChefNotes).to.be.a('boolean'); + expect(data.Store.AllowChefNotes).to.be(false); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Store.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Store.IsArchived).to.be.a('boolean'); + expect(data.Store.IsArchived).to.be(false); + expect(data.Store.IsPublished).to.be.a('boolean'); + expect(data.Store.IsPublished).to.be(false); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.EmailAddress).to.be.a('string'); + expect(data.Store.EmailAddress).to.be(""); + expect(data.Store.StaffLanguage).to.be.a('string'); + expect(data.Store.StaffLanguage).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StorePreOrderConfigUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StorePreOrderConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PreOrderConfig).to.be.a(Flipdish.PreOrderConfig); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be.a('number'); + expect(data.PreOrderConfig.LeadTimeMinutes).to.be(0); + expect(data.PreOrderConfig.IntervalMinutes).to.be.a('number'); + expect(data.PreOrderConfig.IntervalMinutes).to.be(0); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be.a('number'); + expect(data.PreOrderConfig.MaxOrderAheadDays).to.be(0); + expect(data.PreOrderConfig.IncludeAsap).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeAsap).to.be(false); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be.a('boolean'); + expect(data.PreOrderConfig.IncludeMoreGranularInitialTime).to.be(false); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimePreviousDayBasic).to.be(""); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be.a('string'); + expect(data.PreOrderConfig.CutOffTimeCurrentDayBasic).to.be(""); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be.a('string'); + expect(data.PreOrderConfig.PreOrderTimeDisplayType).to.be("SingleTime"); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.PreOrderConfig.AlwaysAppearOpen).to.be(false); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be.a('boolean'); + expect(data.PreOrderConfig.RequireExplicitSelectAlways).to.be(false); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreLogoDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreLogoDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuUploadedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuUploadedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSection).to.be.a(Flipdish.MenuSection); + expect(data.MenuSection.MenuSectionId).to.be.a('number'); + expect(data.MenuSection.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuSection.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSection.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSection.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.MenuSection.PublicId).to.be.a('string'); + expect(data.MenuSection.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSection.Name).to.be.a('string'); + expect(data.MenuSection.Name).to.be(""); + expect(data.MenuSection.Description).to.be.a('string'); + expect(data.MenuSection.Description).to.be(""); + expect(data.MenuSection.DisplayOrder).to.be.a('number'); + expect(data.MenuSection.DisplayOrder).to.be(0); + expect(data.MenuSection.IsAvailable).to.be.a('boolean'); + expect(data.MenuSection.IsAvailable).to.be(false); + expect(data.MenuSection.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.MenuSection.IsHiddenFromCustomers).to.be(false); + expect(data.MenuSection.ImageUrl).to.be.a('string'); + expect(data.MenuSection.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuSectionItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuSectionItem).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuSectionItem.MenuItemId).to.be.a('number'); + expect(data.MenuSectionItem.MenuItemId).to.be(0); + expect(data.MenuSectionItem.ActualPrice).to.be.a('number'); + expect(data.MenuSectionItem.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuSectionItem.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.MenuSectionItem.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionItem.PublicId).to.be.a('string'); + expect(data.MenuSectionItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuSectionItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuSectionItem.Name).to.be.a('string'); + expect(data.MenuSectionItem.Name).to.be(""); + expect(data.MenuSectionItem.Description).to.be.a('string'); + expect(data.MenuSectionItem.Description).to.be(""); + expect(data.MenuSectionItem.SpicinessRating).to.be.a('string'); + expect(data.MenuSectionItem.SpicinessRating).to.be("NotRated"); + expect(data.MenuSectionItem.Price).to.be.a('number'); + expect(data.MenuSectionItem.Price).to.be(0.0); + expect(data.MenuSectionItem.DisplayOrder).to.be.a('number'); + expect(data.MenuSectionItem.DisplayOrder).to.be(0); + expect(data.MenuSectionItem.Alcohol).to.be.a('boolean'); + expect(data.MenuSectionItem.Alcohol).to.be(false); + expect(data.MenuSectionItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuSectionItem.IsAvailable).to.be(false); + expect(data.MenuSectionItem.CellLayoutType).to.be.a('string'); + expect(data.MenuSectionItem.CellLayoutType).to.be("Small"); + expect(data.MenuSectionItem.DisableVouchers).to.be.a('boolean'); + expect(data.MenuSectionItem.DisableVouchers).to.be(false); + expect(data.MenuSectionItem.ImageUrl).to.be.a('string'); + expect(data.MenuSectionItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSet).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSet.MenuItemOptionSetId).to.be(0); + expect(data.MenuItemOptionSet.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSet.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSet.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuItemOptionSet.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSet.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionSet.Name).to.be.a('string'); + expect(data.MenuItemOptionSet.Name).to.be(""); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be.a('boolean'); + expect(data.MenuItemOptionSet.IsMasterOptionSet).to.be(false); + expect(data.MenuItemOptionSet.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSet.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSet.MinSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MinSelectCount).to.be(0); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be.a('number'); + expect(data.MenuItemOptionSet.MaxSelectCount).to.be(0); + expect(data.MenuItemOptionSet.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSet.CellLayoutType).to.be("Small"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemCreatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemUpdatedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuItemOptionSetItemDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItemDeletedEvent); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.MenuItemOptionSetItem).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItem.MenuItemOptionSetItemId).to.be(0); + expect(data.MenuItemOptionSetItem.PublicId).to.be.a('string'); + expect(data.MenuItemOptionSetItem.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.MenuItemOptionSetItem.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.MenuItemOptionSetItem.Name).to.be.a('string'); + expect(data.MenuItemOptionSetItem.Name).to.be(""); + expect(data.MenuItemOptionSetItem.Price).to.be.a('number'); + expect(data.MenuItemOptionSetItem.Price).to.be(0.0); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be.a('boolean'); + expect(data.MenuItemOptionSetItem.IsAvailable).to.be(false); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetItem.DisplayOrder).to.be(0); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be.a('string'); + expect(data.MenuItemOptionSetItem.CellLayoutType).to.be("Small"); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be.a('string'); + expect(data.MenuItemOptionSetItem.ImageUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.MenuCheckpointCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCheckpointCreatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Menu).to.be.a(Flipdish.Menu); + expect(data.Menu.MenuId).to.be.a('number'); + expect(data.Menu.MenuId).to.be(0); + expect(data.Menu.ModifiedTime).to.be.a(Date); + expect(data.Menu.ModifiedTime).to.be(new Date()); + expect(data.Menu.VersionNumber).to.be.a('number'); + expect(data.Menu.VersionNumber).to.be(0); + expect(data.Menu.ImageUrl).to.be.a('string'); + expect(data.Menu.ImageUrl).to.be(""); + expect(data.Menu.Name).to.be.a('string'); + expect(data.Menu.Name).to.be(""); + expect(data.Menu.Locked).to.be.a('boolean'); + expect(data.Menu.Locked).to.be(false); + { + let dataCtr = data.Menu.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Menu.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Menu.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Menu.DisplaySectionLinks).to.be(false); + expect(data.Menu.MenuSectionBehaviour).to.be.a('string'); + expect(data.Menu.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Menu.TaxType).to.be.a('string'); + expect(data.Menu.TaxType).to.be("IncludedInBasePrice"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.StoreGroupDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreGroup).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroup.StoreGroupId).to.be.a('number'); + expect(data.StoreGroup.StoreGroupId).to.be(0); + expect(data.StoreGroup.GeneralRating).to.be.a('number'); + expect(data.StoreGroup.GeneralRating).to.be(0.0); + expect(data.StoreGroup.GeneralRatingCount).to.be.a('number'); + expect(data.StoreGroup.GeneralRatingCount).to.be(0); + expect(data.StoreGroup.Name).to.be.a('string'); + expect(data.StoreGroup.Name).to.be(""); + expect(data.StoreGroup.Currency).to.be.a('string'); + expect(data.StoreGroup.Currency).to.be("EUR"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CustomerConsentUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CustomerConsentUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Enabled).to.be.a('boolean'); + expect(data.Enabled).to.be(false); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebhookSubscriptionDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscriptionDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.WebhookSubscriptionEventInfo).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.OwnerUserId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be.a('number'); + expect(data.WebhookSubscriptionEventInfo.WebhookSubscriptionId).to.be(0); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.ClientId).to.be(""); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionEventInfo.CallbackUrl).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOnEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOnEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterTurnedOffEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterTurnedOffEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterAssignedToStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterAssignedToStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PrinterUnassignedFromStoreEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PrinterUnassignedFromStoreEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Printer).to.be.a(Flipdish.Printer); + expect(data.Printer.SerialNumber).to.be.a('string'); + expect(data.Printer.SerialNumber).to.be(""); + expect(data.Printer.LastPollTime).to.be.a(Date); + expect(data.Printer.LastPollTime).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallStartedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallStartedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PhoneCallEndedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PhoneCallEndedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PhoneCall).to.be.a(Flipdish.PhoneCall); + expect(data.PhoneCall.PhoneCallId).to.be.a('number'); + expect(data.PhoneCall.PhoneCallId).to.be(0); + expect(data.PhoneCall.TimeOfCall).to.be.a(Date); + expect(data.PhoneCall.TimeOfCall).to.be(new Date()); + expect(data.PhoneCall.TimeOfCallLocal).to.be.a(Date); + expect(data.PhoneCall.TimeOfCallLocal).to.be(new Date()); + expect(data.PhoneCall.StoreId).to.be.a('number'); + expect(data.PhoneCall.StoreId).to.be(0); + expect(data.PhoneCall.StoreName).to.be.a('string'); + expect(data.PhoneCall.StoreName).to.be(""); + expect(data.PhoneCall.CallerName).to.be.a('string'); + expect(data.PhoneCall.CallerName).to.be(""); + expect(data.PhoneCall.CallerUserId).to.be.a('number'); + expect(data.PhoneCall.CallerUserId).to.be(0); + expect(data.PhoneCall.CallerNumber).to.be.a('string'); + expect(data.PhoneCall.CallerNumber).to.be(""); + expect(data.PhoneCall.CallLengthInSeconds).to.be.a('number'); + expect(data.PhoneCall.CallLengthInSeconds).to.be(0); + expect(data.PhoneCall.CallStatus).to.be.a('string'); + expect(data.PhoneCall.CallStatus).to.be("Queued"); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.LoyaltyCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.LoyaltyCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.LoyaltyCampaign).to.be.a(Flipdish.LoyaltyCampaign); + expect(data.LoyaltyCampaign.CampaignId).to.be.a('number'); + expect(data.LoyaltyCampaign.CampaignId).to.be(0); + expect(data.LoyaltyCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.Conversion).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.LoyaltyCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.LoyaltyCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be.a('number'); + expect(data.LoyaltyCampaign.OrdersBeforeReceivingVoucher).to.be(0); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.LoyaltyCampaign.PercentDiscountAmount).to.be(0); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.LoyaltyCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeDeliveryFee).to.be(false); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.LoyaltyCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IncludeExistingOrders).to.be(false); + expect(data.LoyaltyCampaign.IsEnabled).to.be.a('boolean'); + expect(data.LoyaltyCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.LoyaltyCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.RetentionCampaignUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RetentionCampaignUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.RetentionCampaign).to.be.a(Flipdish.RetentionCampaign); + expect(data.RetentionCampaign.CampaignId).to.be.a('number'); + expect(data.RetentionCampaign.CampaignId).to.be(0); + expect(data.RetentionCampaign.Statistics).to.be.a(Flipdish.CampaignStatistics); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersIssued).to.be(0); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.VouchersRedeemed).to.be(0); + expect(data.RetentionCampaign.Statistics.Conversion).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.Conversion).to.be(0.0); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.SalesGenerated).to.be(0.0); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be.a('number'); + expect(data.RetentionCampaign.Statistics.ReturnOfInvestment).to.be(0.0); + { + let dataCtr = data.RetentionCampaign.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreCampaignStartTime); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TsStart).to.be.a(Date); + expect(data.TsStart).to.be(new Date()); + + } + } + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be.a('number'); + expect(data.RetentionCampaign.NotifyCustomerAfterMinutes).to.be(0); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.PercentDiscountAmount).to.be(0); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be.a('number'); + expect(data.RetentionCampaign.LumpDiscountAmount).to.be(0.0); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be.a('number'); + expect(data.RetentionCampaign.VoucherValidPeriodDays).to.be(0); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeDeliveryFee).to.be(false); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be.a('boolean'); + expect(data.RetentionCampaign.AutoApplyResultingVouchers).to.be(false); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be.a('boolean'); + expect(data.RetentionCampaign.IncludeExistingOrders).to.be(false); + expect(data.RetentionCampaign.IsEnabled).to.be.a('boolean'); + expect(data.RetentionCampaign.IsEnabled).to.be(false); + { + let dataCtr = data.RetentionCampaign.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.SmsReceivedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.SmsReceivedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SmsInfo).to.be.a(Flipdish.SmsInfo); + expect(data.SmsInfo.From).to.be.a('string'); + expect(data.SmsInfo.From).to.be(""); + expect(data.SmsInfo.To).to.be.a('string'); + expect(data.SmsInfo.To).to.be(""); + expect(data.SmsInfo.Text).to.be.a('string'); + expect(data.SmsInfo.Text).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserLoginEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserLoginEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserCreatedPasswordEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserPasswordCreatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.UserAnsweredSignupQuestionsEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.UserAnsweredSignupQuestionsEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.SignupAnswers).to.be.a('string'); + expect(data.SignupAnswers).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherCreatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherUpdatedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.VoucherDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherDeletedEvent); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.Voucher); + expect(data.Voucher.VoucherId).to.be.a('number'); + expect(data.Voucher.VoucherId).to.be(0); + expect(data.Voucher.Status).to.be.a('string'); + expect(data.Voucher.Status).to.be("Valid"); + expect(data.Voucher.VoucherType).to.be.a('string'); + expect(data.Voucher.VoucherType).to.be("PercentageDiscount"); + expect(data.Voucher.VoucherSubType).to.be.a('string'); + expect(data.Voucher.VoucherSubType).to.be("None"); + expect(data.Voucher.Currency).to.be.a('string'); + expect(data.Voucher.Currency).to.be("EUR"); + { + let dataCtr = data.Voucher.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Voucher.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Voucher.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Voucher.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Voucher.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Voucher.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Voucher.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Voucher.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Voucher.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Voucher.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Voucher.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.ValidOnOrdersOver).to.be.a('number'); + expect(data.Voucher.ValidOnOrdersOver).to.be(0.0); + expect(data.Voucher.TakesPriority).to.be.a('boolean'); + expect(data.Voucher.TakesPriority).to.be(false); + expect(data.Voucher.IsEnabled).to.be.a('boolean'); + expect(data.Voucher.IsEnabled).to.be(false); + expect(data.Voucher.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Voucher.IsAutomaticallyApplied).to.be(false); + expect(data.Voucher.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Voucher.IncludeDeliveryFee).to.be(false); + expect(data.Voucher.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForDeliveryOrders).to.be(false); + expect(data.Voucher.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Voucher.IsValidForPickupOrders).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Voucher.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Voucher.IsValidForFirstOrderOnly).to.be(false); + expect(data.Voucher.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Voucher.IsValidOncePerCustomer).to.be(false); + expect(data.Voucher.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Voucher.IsValidOnlyOnce).to.be(false); + expect(data.Voucher.StartDate).to.be.a(Date); + expect(data.Voucher.StartDate).to.be(new Date()); + expect(data.Voucher.ExpiryDate).to.be.a(Date); + expect(data.Voucher.ExpiryDate).to.be(new Date()); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteSentEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateInviteAcceptedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateInviteAcceptedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateUpdatedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.TeammateDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.TeammateDeletedEvent); + expect(data.Teammate).to.be.a(Flipdish.Teammate); + expect(data.Teammate.TeammateId).to.be.a('string'); + expect(data.Teammate.TeammateId).to.be(""); + expect(data.Teammate.Name).to.be.a('string'); + expect(data.Teammate.Name).to.be(""); + expect(data.Teammate.LastActivity).to.be.a(Date); + expect(data.Teammate.LastActivity).to.be(new Date()); + expect(data.Teammate.AppId).to.be.a('string'); + expect(data.Teammate.AppId).to.be(""); + expect(data.Teammate.InvitationStatus).to.be.a('string'); + expect(data.Teammate.InvitationStatus).to.be("Pending"); + expect(data.Teammate.Email).to.be.a('string'); + expect(data.Teammate.Email).to.be(""); + expect(data.Teammate.AppAccessLevel).to.be.a('string'); + expect(data.Teammate.AppAccessLevel).to.be("None"); + expect(data.Teammate.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Teammate.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Teammate.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountCreatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountUpdatedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.BankAccountDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BankAccountDeletedEvent); + expect(data.BankAccount).to.be.a(Flipdish.BankAccount); + expect(data.BankAccount.Id).to.be.a('number'); + expect(data.BankAccount.Id).to.be(0); + expect(data.BankAccount.AccountName).to.be.a('string'); + expect(data.BankAccount.AccountName).to.be(""); + expect(data.BankAccount.Iban).to.be.a('string'); + expect(data.BankAccount.Iban).to.be(""); + expect(data.BankAccount.Swift).to.be.a('string'); + expect(data.BankAccount.Swift).to.be(""); + { + let dataCtr = data.BankAccount.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.BankAccount.AccountState).to.be.a('string'); + expect(data.BankAccount.AccountState).to.be("Unverified"); + { + let dataCtr = data.BankAccount.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.BankAccount.BankAddress).to.be.a('string'); + expect(data.BankAccount.BankAddress).to.be(""); + expect(data.BankAccount.BankCountryCode).to.be.a('string'); + expect(data.BankAccount.BankCountryCode).to.be(""); + expect(data.BankAccount.AccountHolderAddress).to.be.a('string'); + expect(data.BankAccount.AccountHolderAddress).to.be(""); + expect(data.BankAccount.AccountHolderCountryCode).to.be.a('string'); + expect(data.BankAccount.AccountHolderCountryCode).to.be(""); + expect(data.BankAccount.VatNumber).to.be.a('string'); + expect(data.BankAccount.VatNumber).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraRequestResetEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraRequestResetEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraStoreUnassignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreUnassignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraSettingChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraSettingChangedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraConfig).to.be.a(Flipdish.HydraConfig); + expect(data.HydraConfig.MinimumVersion).to.be.a('string'); + expect(data.HydraConfig.MinimumVersion).to.be(""); + { + let dataCtr = data.HydraConfig.PaymentOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be("Online"); + } + } + expect(data.HydraConfig.DeviceSettings).to.be.a(Flipdish.DeviceSettings); + expect(data.HydraConfig.DeviceSettings.Volume).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Volume).to.be(0); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.FontSize).to.be(0.0); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be.a('number'); + expect(data.HydraConfig.DeviceSettings.Brightness).to.be(0); + expect(data.HydraConfig.Version).to.be.a('string'); + expect(data.HydraConfig.Version).to.be(""); + expect(data.HydraConfig.BuildNumber).to.be.a('string'); + expect(data.HydraConfig.BuildNumber).to.be(""); + expect(data.HydraConfig.GitSha).to.be.a('string'); + expect(data.HydraConfig.GitSha).to.be(""); + expect(data.HydraConfig.GitBranch).to.be.a('string'); + expect(data.HydraConfig.GitBranch).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraUnAssignedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraUnAssignedEvent); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.HydraStatus).to.be.a(Flipdish.HydraStatus); + expect(data.HydraStatus.AppId).to.be.a('string'); + expect(data.HydraStatus.AppId).to.be(""); + { + let dataCtr = data.HydraStatus.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.HydraStatus.IsRegistered).to.be.a('boolean'); + expect(data.HydraStatus.IsRegistered).to.be(false); + expect(data.HydraStatus.PinCode).to.be.a('number'); + expect(data.HydraStatus.PinCode).to.be(0); + { + let dataCtr = data.HydraStatus.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.HydraStatus.UserType).to.be.a('string'); + expect(data.HydraStatus.UserType).to.be("Kiosk"); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.HydraConnectionStatusChangedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraConnectionStatusChangedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.HydraDeviceStatus).to.be.a('string'); + expect(data.HydraDeviceStatus).to.be("Online"); + expect(data.PollTime).to.be.a(Date); + expect(data.PollTime).to.be(new Date()); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothPairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothPairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothUnpairingModeEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothUnpairingModeEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalUpdatedEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalSerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalSerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus).to.be.a(Flipdish.BluetoothTerminalStatus); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SerialNumber).to.be(""); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be.a('string'); + expect(data.BluetoothTerminalStatus.SoftwareVersion).to.be(""); + expect(data.BluetoothTerminalStatus.DeviceType).to.be.a('string'); + expect(data.BluetoothTerminalStatus.DeviceType).to.be("CHIPPER_2X"); + expect(data.BluetoothTerminalStatus.Status).to.be.a('string'); + expect(data.BluetoothTerminalStatus.Status).to.be("Not_Connected"); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be.a('number'); + expect(data.BluetoothTerminalStatus.BatteryLevel).to.be(0.0); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be.a(Date); + expect(data.BluetoothTerminalStatus.UpdateTime).to.be(new Date()); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothTerminalInitiateUpdateCheckEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.KioskBluetoothInstallUpdateInitiateEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.KioskBluetoothInstallUpdateInitiateEvent); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.BluetoothTerminalType).to.be.a('string'); + expect(data.BluetoothTerminalType).to.be("CHIPPER_2X"); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationScheduledEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationScheduledEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationSentEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationSentEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.PushNotificationDeletedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationDeletedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.PushNotification).to.be.a(Flipdish.PushNotificationRequest); + expect(data.PushNotification.ScheduledTime).to.be.a(Date); + expect(data.PushNotification.ScheduledTime).to.be(new Date()); + expect(data.PushNotification.Title).to.be.a('string'); + expect(data.PushNotification.Title).to.be(""); + expect(data.PushNotification.Message).to.be.a('string'); + expect(data.PushNotification.Message).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.DnsVerifiedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DnsVerifiedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateCreatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateCreatedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.CertificateRenewedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CertificateRenewedEvent); + expect(data.Hostname).to.be.a('string'); + expect(data.Hostname).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteVanityUrlUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteVanityUrlUpdatedEvent); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.VanityUrl).to.be.a('string'); + expect(data.VanityUrl).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.WebsiteUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteUpdatedEvent); + expect(data.AppNameId).to.be.a('string'); + expect(data.AppNameId).to.be(""); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + { + let dataCtr = data.Data.OrderCapacityUpdatedEvent; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderCapacityConfigUpdatedEvent); + expect(data.EventName).to.be.a('string'); + expect(data.EventName).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.User).to.be.a(Flipdish.UserEventInfo); + expect(data.User.UserId).to.be.a('number'); + expect(data.User.UserId).to.be(0); + expect(data.User.UserName).to.be.a('string'); + expect(data.User.UserName).to.be(""); + expect(data.User.UserPhoneNumber).to.be.a('string'); + expect(data.User.UserPhoneNumber).to.be(""); + expect(data.User.UserEmail).to.be.a('string'); + expect(data.User.UserEmail).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.OrderCapacityConfig).to.be.a(Flipdish.StoreOrderCapacityConfigEditModel); + { + let dataCtr = data.OrderCapacityConfig.OrderCapacityPeriods; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOrderCapacityPeriod); + expect(data.MaxOrderNumberPerStoreInterval).to.be.a('number'); + expect(data.MaxOrderNumberPerStoreInterval).to.be(0); + expect(data.DayOfTheWeek).to.be.a('string'); + expect(data.DayOfTheWeek).to.be("Sunday"); + expect(data.PeriodStartHour).to.be.a('number'); + expect(data.PeriodStartHour).to.be(0); + expect(data.PeriodStartMinutes).to.be.a('number'); + expect(data.PeriodStartMinutes).to.be(0); + expect(data.PeriodEndHour).to.be.a('number'); + expect(data.PeriodEndHour).to.be(0); + expect(data.PeriodEndMinutes).to.be.a('number'); + expect(data.PeriodEndMinutes).to.be(0); + + } + } + expect(data.FlipdishEventId).to.be.a('string'); + expect(data.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Position).to.be.a('number'); + expect(data.Position).to.be(0); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + + } + } + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); }); }); diff --git a/test/api/FilesApi.spec.js b/test/api/FilesApi.spec.js new file mode 100644 index 00000000..74217f2f --- /dev/null +++ b/test/api/FilesApi.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('FilesApi', function() { + describe('downloadFile', function() { + it('should call downloadFile successfully', function(done) { + // TODO: uncomment, update parameter values for downloadFile call and complete the assertions + /* + var appId = "appId_example"; + var fileId = "fileId_example"; + + instance.downloadFile(appId, fileId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a('string'); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/HeartbeatApi.spec.js b/test/api/HeartbeatApi.spec.js new file mode 100644 index 00000000..314dc019 --- /dev/null +++ b/test/api/HeartbeatApi.spec.js @@ -0,0 +1,127 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('HeartbeatApi', function() { + describe('headHostname', function() { + it('should call headHostname successfully', function(done) { + // TODO: uncomment headHostname call and complete the assertions + /* + + instance.headHostname(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('headPing', function() { + it('should call headPing successfully', function(done) { + // TODO: uncomment headPing call and complete the assertions + /* + + instance.headPing(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('hostname', function() { + it('should call hostname successfully', function(done) { + // TODO: uncomment hostname call and complete the assertions + /* + + instance.hostname(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('ping', function() { + it('should call ping successfully', function(done) { + // TODO: uncomment ping call and complete the assertions + /* + + instance.ping(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/HomeApi.spec.js b/test/api/HomeApi.spec.js new file mode 100644 index 00000000..92e5805b --- /dev/null +++ b/test/api/HomeApi.spec.js @@ -0,0 +1,169 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('HomeApi', function() { + describe('completeHomeAction', function() { + it('should call completeHomeAction successfully', function(done) { + // TODO: uncomment, update parameter values for completeHomeAction call and complete the assertions + /* + var appId = "appId_example"; + var homeActionId = 56; + var isDismissed = true; + + instance.completeHomeAction(appId, homeActionId, isDismissed, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('dismissOldPortalAction', function() { + it('should call dismissOldPortalAction successfully', function(done) { + // TODO: uncomment dismissOldPortalAction call and complete the assertions + /* + + instance.dismissOldPortalAction(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getHomeActions', function() { + it('should call getHomeActions successfully', function(done) { + // TODO: uncomment, update parameter values for getHomeActions call and complete the assertions + /* + var appId = "appId_example"; + + instance.getHomeActions(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultHomeAction); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HomeAction); + expect(data.HomeActionId).to.be.a('number'); + expect(data.HomeActionId).to.be(0); + expect(data.HomeActionType).to.be.a('string'); + expect(data.HomeActionType).to.be("Portal"); + expect(data.Order).to.be.a('number'); + expect(data.Order).to.be(0); + expect(data.TitleKey).to.be.a('string'); + expect(data.TitleKey).to.be(""); + expect(data.ActionKey).to.be.a('string'); + expect(data.ActionKey).to.be(""); + expect(data.DescriptionKey).to.be.a('string'); + expect(data.DescriptionKey).to.be(""); + expect(data.Action).to.be.a('string'); + expect(data.Action).to.be(""); + expect(data.Dismissible).to.be.a('boolean'); + expect(data.Dismissible).to.be(false); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getHomeStatistics', function() { + it('should call getHomeStatistics successfully', function(done) { + // TODO: uncomment, update parameter values for getHomeStatistics call and complete the assertions + /* + var appId = "appId_example"; + + instance.getHomeStatistics(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultHomeStatistics); + expect(data.Data).to.be.a(Flipdish.HomeStatistics); + { + let dataCtr = data.Data.TotalMoneySaved; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CurrencyData); + expect(data.Currency).to.be.a('string'); + expect(data.Currency).to.be("EUR"); + expect(data.Value).to.be.a('number'); + expect(data.Value).to.be(0.0); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/HttpRequestResponseLogsApi.spec.js b/test/api/HttpRequestResponseLogsApi.spec.js index 0b51f250..9b0fd89d 100644 --- a/test/api/HttpRequestResponseLogsApi.spec.js +++ b/test/api/HttpRequestResponseLogsApi.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -33,31 +33,97 @@ instance = new Flipdish.HttpRequestResponseLogsApi(); }); - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } + describe('(package)', function() { + describe('HttpRequestResponseLogsApi', function() { + describe('getLogs', function() { + it('should call getLogs successfully', function(done) { + // TODO: uncomment, update parameter values for getLogs call and complete the assertions + /* + var start = new Date("2013-10-20T19:20:30+01:00"); + var end = new Date("2013-10-20T19:20:30+01:00"); + var appId = "appId_example"; + var opts = {}; + opts.filterByUserId = 56; + opts.guid = "guid_example"; + opts.page = 56; + opts.limit = 56; - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + instance.getLogs(start, end, appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultHttpRequestAndResponseLog); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HttpRequestAndResponseLog); + expect(data.Guid).to.be.a('string'); + expect(data.Guid).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Verb).to.be.a('string'); + expect(data.Verb).to.be(""); + expect(data.RequestUri).to.be.a('string'); + expect(data.RequestUri).to.be(""); + expect(data.StatusCode).to.be.a('number'); + expect(data.StatusCode).to.be(0); + expect(data.ReasonPhrase).to.be.a('string'); + expect(data.ReasonPhrase).to.be(""); + expect(data.CallDurationInMilliseconds).to.be.a('number'); + expect(data.CallDurationInMilliseconds).to.be("0"); + expect(data.UserId).to.be.a('string'); + expect(data.UserId).to.be(""); + expect(data.IpAddress).to.be.a('string'); + expect(data.IpAddress).to.be(""); + expect(data.CreatedDateTime).to.be.a('string'); + expect(data.CreatedDateTime).to.be(""); + { + let dataCtr = data.RequestHeaders; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.RequestBody).to.be.a('string'); + expect(data.RequestBody).to.be(""); + expect(data.RequestLength).to.be.a('number'); + expect(data.RequestLength).to.be("0"); + { + let dataCtr = data.ResponseHeaders; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.ResponseBody).to.be.a('string'); + expect(data.ResponseBody).to.be(""); + expect(data.ResponseLength).to.be.a('number'); + expect(data.ResponseLength).to.be("0"); + + } + } - describe('HttpRequestResponseLogsApi', function() { - describe('getHttpLogsByUserIdAsync', function() { - it('should call getHttpLogsByUserIdAsync successfully', function(done) { - //uncomment below and update the code to test getHttpLogsByUserIdAsync - //instance.getHttpLogsByUserIdAsync(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); }); }); diff --git a/test/api/HydraApi.spec.js b/test/api/HydraApi.spec.js new file mode 100644 index 00000000..85fa4909 --- /dev/null +++ b/test/api/HydraApi.spec.js @@ -0,0 +1,637 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('HydraApi', function() { + describe('assignEmv', function() { + it('should call assignEmv successfully', function(done) { + // TODO: uncomment, update parameter values for assignEmv call + /* + var appId = "appId_example"; + var hydraConfigId = 56; + var emvTerminalId = 56; + + instance.assignEmv(appId, hydraConfigId, emvTerminalId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('attachStoreToTerminal', function() { + it('should call attachStoreToTerminal successfully', function(done) { + // TODO: uncomment, update parameter values for attachStoreToTerminal call and complete the assertions + /* + var appId = "appId_example"; + var deviceId = "deviceId_example"; + var storeId = 56; + + instance.attachStoreToTerminal(appId, deviceId, storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultHydraStatus); + expect(data.Data).to.be.a(Flipdish.HydraStatus); + expect(data.Data.AppId).to.be.a('string'); + expect(data.Data.AppId).to.be(""); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.Data.IsRegistered).to.be.a('boolean'); + expect(data.Data.IsRegistered).to.be(false); + expect(data.Data.PinCode).to.be.a('number'); + expect(data.Data.PinCode).to.be(0); + { + let dataCtr = data.Data.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.UserType).to.be.a('string'); + expect(data.Data.UserType).to.be("Kiosk"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('cancelEmvPayment', function() { + it('should call cancelEmvPayment successfully', function(done) { + // TODO: uncomment, update parameter values for cancelEmvPayment call + /* + var orderId = 56; + var appId = "appId_example"; + + instance.cancelEmvPayment(orderId, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('detachStoreFromTerminal', function() { + it('should call detachStoreFromTerminal successfully', function(done) { + // TODO: uncomment, update parameter values for detachStoreFromTerminal call and complete the assertions + /* + var appId = "appId_example"; + var deviceId = "deviceId_example"; + var storeId = 56; + + instance.detachStoreFromTerminal(appId, deviceId, storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultHydraStatus); + expect(data.Data).to.be.a(Flipdish.HydraStatus); + expect(data.Data.AppId).to.be.a('string'); + expect(data.Data.AppId).to.be(""); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.Data.IsRegistered).to.be.a('boolean'); + expect(data.Data.IsRegistered).to.be(false); + expect(data.Data.PinCode).to.be.a('number'); + expect(data.Data.PinCode).to.be(0); + { + let dataCtr = data.Data.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.UserType).to.be.a('string'); + expect(data.Data.UserType).to.be("Kiosk"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getAttachedDevices', function() { + it('should call getAttachedDevices successfully', function(done) { + // TODO: uncomment, update parameter values for getAttachedDevices call and complete the assertions + /* + var appId = "appId_example"; + var deviceType = "deviceType_example"; + var opts = {}; + opts.pageIndex = 56; + opts.pageSize = 56; + opts.storeId = 56; + opts.deviceName = "deviceName_example"; + opts.deviceSerial = "deviceSerial_example"; + + instance.getAttachedDevices(appId, deviceType, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultHydraDeviceDetails); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraDeviceDetails); + expect(data.HydraConfigId).to.be.a('number'); + expect(data.HydraConfigId).to.be(0); + expect(data.DeviceId).to.be.a('string'); + expect(data.DeviceId).to.be(""); + expect(data.DeviceType).to.be.a('string'); + expect(data.DeviceType).to.be("Kiosk"); + expect(data.Status).to.be.a('string'); + expect(data.Status).to.be("Online"); + expect(data.DeviceName).to.be.a('string'); + expect(data.DeviceName).to.be(""); + { + let dataCtr = data.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.HydraStoreData); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreName).to.be.a('string'); + expect(data.StoreName).to.be(""); + + } + } + expect(data.LastPollUtc).to.be.a(Date); + expect(data.LastPollUtc).to.be(new Date()); + expect(data.Version).to.be.a('string'); + expect(data.Version).to.be(""); + expect(data.BuildNumber).to.be.a('string'); + expect(data.BuildNumber).to.be(""); + expect(data.GitSha).to.be.a('string'); + expect(data.GitSha).to.be(""); + expect(data.GitBranch).to.be.a('string'); + expect(data.GitBranch).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getEMVTerminalDetails', function() { + it('should call getEMVTerminalDetails successfully', function(done) { + // TODO: uncomment, update parameter values for getEMVTerminalDetails call and complete the assertions + /* + var appId = "appId_example"; + + instance.getEMVTerminalDetails(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultPaymentTerminalDetails); + expect(data.Data).to.be.a(Flipdish.PaymentTerminalDetails); + expect(data.Data.TerminalId).to.be.a('string'); + expect(data.Data.TerminalId).to.be(""); + expect(data.Data.Status).to.be.a('string'); + expect(data.Data.Status).to.be(""); + expect(data.Data.Currency).to.be.a('string'); + expect(data.Data.Currency).to.be(""); + expect(data.Data.Uri).to.be.a('string'); + expect(data.Data.Uri).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getEmvOrderState', function() { + it('should call getEmvOrderState successfully', function(done) { + // TODO: uncomment, update parameter values for getEmvOrderState call and complete the assertions + /* + var orderId = 56; + var appId = "appId_example"; + + instance.getEmvOrderState(orderId, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultPaymentTerminalTransactionDetails); + expect(data.Data).to.be.a(Flipdish.PaymentTerminalTransactionDetails); + expect(data.Data.CardSchemeName).to.be.a('string'); + expect(data.Data.CardSchemeName).to.be(""); + expect(data.Data.DateOfExpiry).to.be.a('string'); + expect(data.Data.DateOfExpiry).to.be(""); + expect(data.Data.AuthCode).to.be.a('string'); + expect(data.Data.AuthCode).to.be(""); + expect(data.Data.TransactionResult).to.be.a('string'); + expect(data.Data.TransactionResult).to.be(""); + expect(data.Data.PrimaryAccountNumber).to.be.a('string'); + expect(data.Data.PrimaryAccountNumber).to.be(""); + expect(data.Data.CardholderVerificationMethod).to.be.a('string'); + expect(data.Data.CardholderVerificationMethod).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getRegistration', function() { + it('should call getRegistration successfully', function(done) { + // TODO: uncomment getRegistration call and complete the assertions + /* + + instance.getRegistration(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultHydraStatus); + expect(data.Data).to.be.a(Flipdish.HydraStatus); + expect(data.Data.AppId).to.be.a('string'); + expect(data.Data.AppId).to.be(""); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.Data.IsRegistered).to.be.a('boolean'); + expect(data.Data.IsRegistered).to.be(false); + expect(data.Data.PinCode).to.be.a('number'); + expect(data.Data.PinCode).to.be(0); + { + let dataCtr = data.Data.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.UserType).to.be.a('string'); + expect(data.Data.UserType).to.be("Kiosk"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getSettings', function() { + it('should call getSettings successfully', function(done) { + // TODO: uncomment getSettings call and complete the assertions + /* + + instance.getSettings(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultHydraConfig); + expect(data.Data).to.be.a(Flipdish.HydraConfig); + expect(data.Data.MinimumVersion).to.be.a('string'); + expect(data.Data.MinimumVersion).to.be(""); + { + let dataCtr = data.Data.PaymentOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be("Online"); + } + } + expect(data.Data.DeviceSettings).to.be.a(Flipdish.DeviceSettings); + expect(data.Data.DeviceSettings.Volume).to.be.a('number'); + expect(data.Data.DeviceSettings.Volume).to.be(0); + expect(data.Data.DeviceSettings.FontSize).to.be.a('number'); + expect(data.Data.DeviceSettings.FontSize).to.be(0.0); + expect(data.Data.DeviceSettings.Brightness).to.be.a('number'); + expect(data.Data.DeviceSettings.Brightness).to.be(0); + expect(data.Data.Version).to.be.a('string'); + expect(data.Data.Version).to.be(""); + expect(data.Data.BuildNumber).to.be.a('string'); + expect(data.Data.BuildNumber).to.be(""); + expect(data.Data.GitSha).to.be.a('string'); + expect(data.Data.GitSha).to.be(""); + expect(data.Data.GitBranch).to.be.a('string'); + expect(data.Data.GitBranch).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('hydraCreateEmv', function() { + it('should call hydraCreateEmv successfully', function(done) { + // TODO: uncomment, update parameter values for hydraCreateEmv call and complete the assertions + /* + var appId = "appId_example"; + var emv = new Flipdish.EmvTerminal(); + emv.EmvTerminalId = 0; + emv.TerminalId = ""; + emv.Url = ""; + emv.Token = ""; + emv.SoftwareHouseId = ""; + emv.InstallerId = ""; + + instance.hydraCreateEmv(appId, emv, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('hydraDeleteEmv', function() { + it('should call hydraDeleteEmv successfully', function(done) { + // TODO: uncomment, update parameter values for hydraDeleteEmv call and complete the assertions + /* + var appId = "appId_example"; + var id = 56; + + instance.hydraDeleteEmv(appId, id, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('hydraGetEmvsForAppId', function() { + it('should call hydraGetEmvsForAppId successfully', function(done) { + // TODO: uncomment, update parameter values for hydraGetEmvsForAppId call and complete the assertions + /* + var appId = "appId_example"; + + instance.hydraGetEmvsForAppId(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultEmvTerminalWithAssignments); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.EmvTerminalWithAssignments); + expect(data.EmvTerminalId).to.be.a('string'); + expect(data.EmvTerminalId).to.be(""); + expect(data.TerminalId).to.be.a('string'); + expect(data.TerminalId).to.be(""); + expect(data.IsAssignedToHydraDevice).to.be.a('boolean'); + expect(data.IsAssignedToHydraDevice).to.be(false); + expect(data.HydraConfigId).to.be.a('number'); + expect(data.HydraConfigId).to.be(0); + expect(data.HydraDeviceId).to.be.a('string'); + expect(data.HydraDeviceId).to.be(""); + expect(data.HydraName).to.be.a('string'); + expect(data.HydraName).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('loginWithDeviceId', function() { + it('should call loginWithDeviceId successfully', function(done) { + // TODO: uncomment, update parameter values for loginWithDeviceId call + /* + var deviceId = "deviceId_example"; + var opts = {}; + opts.hydraUserType = "hydraUserType_example"; + opts.serialNumber = "serialNumber_example"; + + instance.loginWithDeviceId(deviceId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('register', function() { + it('should call register successfully', function(done) { + // TODO: uncomment, update parameter values for register call and complete the assertions + /* + var appId = "appId_example"; + var hydraRegistration = new Flipdish.HydraRegistrationRequest(); + hydraRegistration.StoreIds = [0]; + hydraRegistration.DeviceName = ""; + hydraRegistration.PinCode = 0; + + instance.register(appId, hydraRegistration, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultHydraStatus); + expect(data.Data).to.be.a(Flipdish.HydraStatus); + expect(data.Data.AppId).to.be.a('string'); + expect(data.Data.AppId).to.be(""); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.Data.IsRegistered).to.be.a('boolean'); + expect(data.Data.IsRegistered).to.be(false); + expect(data.Data.PinCode).to.be.a('number'); + expect(data.Data.PinCode).to.be(0); + { + let dataCtr = data.Data.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.UserType).to.be.a('string'); + expect(data.Data.UserType).to.be("Kiosk"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('unAssign', function() { + it('should call unAssign successfully', function(done) { + // TODO: uncomment, update parameter values for unAssign call + /* + var appId = "appId_example"; + var deviceId = "deviceId_example"; + + instance.unAssign(appId, deviceId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('unassignEmv', function() { + it('should call unassignEmv successfully', function(done) { + // TODO: uncomment, update parameter values for unassignEmv call + /* + var appId = "appId_example"; + var hydraConfigId = 56; + + instance.unassignEmv(appId, hydraConfigId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/LightspeedApi.spec.js b/test/api/LightspeedApi.spec.js new file mode 100644 index 00000000..a32f2b0e --- /dev/null +++ b/test/api/LightspeedApi.spec.js @@ -0,0 +1,230 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('LightspeedApi', function() { + describe('lightspeedGenerateMenu', function() { + it('should call lightspeedGenerateMenu successfully', function(done) { + // TODO: uncomment, update parameter values for lightspeedGenerateMenu call and complete the assertions + /* + var storeId = 56; + + instance.lightspeedGenerateMenu(storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('lightspeedGetStoreSettings', function() { + it('should call lightspeedGetStoreSettings successfully', function(done) { + // TODO: uncomment, update parameter values for lightspeedGetStoreSettings call and complete the assertions + /* + var storeId = 56; + + instance.lightspeedGetStoreSettings(storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultLightspeedSettings); + expect(data.Data).to.be.a(Flipdish.LightspeedSettings); + expect(data.Data.CompanyId).to.be.a('string'); + expect(data.Data.CompanyId).to.be(""); + expect(data.Data.UseOAuth).to.be.a('boolean'); + expect(data.Data.UseOAuth).to.be(false); + expect(data.Data.Enabled).to.be.a('boolean'); + expect(data.Data.Enabled).to.be(false); + expect(data.Data.EstimatedMinutesForDelivery).to.be.a('number'); + expect(data.Data.EstimatedMinutesForDelivery).to.be(0); + expect(data.Data.EstimatedMinutesForCollection).to.be.a('number'); + expect(data.Data.EstimatedMinutesForCollection).to.be(0); + expect(data.Data.GeographicLocation).to.be.a('string'); + expect(data.Data.GeographicLocation).to.be(""); + expect(data.Data.Establishment).to.be.a('boolean'); + expect(data.Data.Establishment).to.be(false); + expect(data.Data.VoucherId).to.be.a('string'); + expect(data.Data.VoucherId).to.be(""); + expect(data.Data.DeliveryFeeId).to.be.a('string'); + expect(data.Data.DeliveryFeeId).to.be(""); + expect(data.Data.ProcessingFeeId).to.be.a('string'); + expect(data.Data.ProcessingFeeId).to.be(""); + expect(data.Data.PriceType).to.be.a('string'); + expect(data.Data.PriceType).to.be("Default"); + expect(data.Data.MenuId).to.be.a('number'); + expect(data.Data.MenuId).to.be(0); + expect(data.Data.CollectionTableId).to.be.a('number'); + expect(data.Data.CollectionTableId).to.be(0); + expect(data.Data.DeliveryTableId).to.be.a('number'); + expect(data.Data.DeliveryTableId).to.be(0); + { + let dataCtr = data.Data.CollectionTableIds; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + { + let dataCtr = data.Data.DeliveryTableIds; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.UseTaxInclusivePrices).to.be.a('boolean'); + expect(data.Data.UseTaxInclusivePrices).to.be(false); + expect(data.Data.SkipStatusCheckAndAcceptOrderAfterSending).to.be.a('boolean'); + expect(data.Data.SkipStatusCheckAndAcceptOrderAfterSending).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('lightspeedSaveStoreSettings', function() { + it('should call lightspeedSaveStoreSettings successfully', function(done) { + // TODO: uncomment, update parameter values for lightspeedSaveStoreSettings call and complete the assertions + /* + var storeId = 56; + var lightspeedSettings = new Flipdish.LightspeedSettings(); + lightspeedSettings.CompanyId = ""; + lightspeedSettings.UseOAuth = false; + lightspeedSettings.Enabled = false; + lightspeedSettings.EstimatedMinutesForDelivery = 0; + lightspeedSettings.EstimatedMinutesForCollection = 0; + lightspeedSettings.GeographicLocation = ""; + lightspeedSettings.Establishment = false; + lightspeedSettings.VoucherId = ""; + lightspeedSettings.DeliveryFeeId = ""; + lightspeedSettings.ProcessingFeeId = ""; + lightspeedSettings.PriceType = "Default"; + lightspeedSettings.MenuId = 0; + lightspeedSettings.CollectionTableId = 0; + lightspeedSettings.DeliveryTableId = 0; + lightspeedSettings.CollectionTableIds = {key: ""}; + lightspeedSettings.DeliveryTableIds = {key: ""}; + lightspeedSettings.UseTaxInclusivePrices = false; + lightspeedSettings.SkipStatusCheckAndAcceptOrderAfterSending = false; + + instance.lightspeedSaveStoreSettings(storeId, lightspeedSettings, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultLightspeedSettings); + expect(data.Data).to.be.a(Flipdish.LightspeedSettings); + expect(data.Data.CompanyId).to.be.a('string'); + expect(data.Data.CompanyId).to.be(""); + expect(data.Data.UseOAuth).to.be.a('boolean'); + expect(data.Data.UseOAuth).to.be(false); + expect(data.Data.Enabled).to.be.a('boolean'); + expect(data.Data.Enabled).to.be(false); + expect(data.Data.EstimatedMinutesForDelivery).to.be.a('number'); + expect(data.Data.EstimatedMinutesForDelivery).to.be(0); + expect(data.Data.EstimatedMinutesForCollection).to.be.a('number'); + expect(data.Data.EstimatedMinutesForCollection).to.be(0); + expect(data.Data.GeographicLocation).to.be.a('string'); + expect(data.Data.GeographicLocation).to.be(""); + expect(data.Data.Establishment).to.be.a('boolean'); + expect(data.Data.Establishment).to.be(false); + expect(data.Data.VoucherId).to.be.a('string'); + expect(data.Data.VoucherId).to.be(""); + expect(data.Data.DeliveryFeeId).to.be.a('string'); + expect(data.Data.DeliveryFeeId).to.be(""); + expect(data.Data.ProcessingFeeId).to.be.a('string'); + expect(data.Data.ProcessingFeeId).to.be(""); + expect(data.Data.PriceType).to.be.a('string'); + expect(data.Data.PriceType).to.be("Default"); + expect(data.Data.MenuId).to.be.a('number'); + expect(data.Data.MenuId).to.be(0); + expect(data.Data.CollectionTableId).to.be.a('number'); + expect(data.Data.CollectionTableId).to.be(0); + expect(data.Data.DeliveryTableId).to.be.a('number'); + expect(data.Data.DeliveryTableId).to.be(0); + { + let dataCtr = data.Data.CollectionTableIds; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + { + let dataCtr = data.Data.DeliveryTableIds; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.UseTaxInclusivePrices).to.be.a('boolean'); + expect(data.Data.UseTaxInclusivePrices).to.be(false); + expect(data.Data.SkipStatusCheckAndAcceptOrderAfterSending).to.be.a('boolean'); + expect(data.Data.SkipStatusCheckAndAcceptOrderAfterSending).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/MenuOptionSetItemsApi.spec.js b/test/api/MenuOptionSetItemsApi.spec.js index 81ac6beb..6ed242f3 100644 --- a/test/api/MenuOptionSetItemsApi.spec.js +++ b/test/api/MenuOptionSetItemsApi.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -33,91 +33,293 @@ 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]; - } + describe('(package)', function() { + describe('MenuOptionSetItemsApi', function() { + describe('addMenuItemOptionSetItem', function() { + it('should call addMenuItemOptionSetItem successfully', function(done) { + // TODO: uncomment, update parameter values for addMenuItemOptionSetItem call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var optionSetId = 56; + var menuItemOptionSetItem = new Flipdish.MenuItemOptionSetItemBase(); + menuItemOptionSetItem.Name = ""; + menuItemOptionSetItem.Price = 0.0; + menuItemOptionSetItem.IsAvailable = false; + menuItemOptionSetItem.DisplayOrder = 0; + menuItemOptionSetItem.CellLayoutType = "Small"; + menuItemOptionSetItem.ImageUrl = ""; - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + instance.addMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItem, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); - 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(); + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('deleteOptionSetItemImage', function() { + it('should call deleteOptionSetItemImage successfully', function(done) { + // TODO: uncomment, update parameter values for deleteOptionSetItemImage call + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var optionSetId = 56; + var menuItemOptionSetItemId = 56; + + instance.deleteOptionSetItemImage(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getMenuItemOptionSetItemById', function() { + it('should call getMenuItemOptionSetItemById successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuItemOptionSetItemById call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var optionSetId = 56; + var menuItemOptionSetItemId = 56; + + instance.getMenuItemOptionSetItemById(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultMenuItemOptionSetItem); + expect(data.Data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.Data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.Data.MenuItemOptionSetItemId).to.be(0); + expect(data.Data.PublicId).to.be.a('string'); + expect(data.Data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.Price).to.be.a('number'); + expect(data.Data.Price).to.be(0.0); + expect(data.Data.IsAvailable).to.be.a('boolean'); + expect(data.Data.IsAvailable).to.be(false); + expect(data.Data.DisplayOrder).to.be.a('number'); + expect(data.Data.DisplayOrder).to.be(0); + expect(data.Data.CellLayoutType).to.be.a('string'); + expect(data.Data.CellLayoutType).to.be("Small"); + expect(data.Data.ImageUrl).to.be.a('string'); + expect(data.Data.ImageUrl).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getMenuItemOptionSetItems', function() { + it('should call getMenuItemOptionSetItems successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuItemOptionSetItems call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var optionSetId = 56; + + instance.getMenuItemOptionSetItems(menuId, menuSectionId, menuSectionItemId, optionSetId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultMenuItemOptionSetItem); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('removeMenuItemOptionSetItem', function() { + it('should call removeMenuItemOptionSetItem successfully', function(done) { + // TODO: uncomment, update parameter values for removeMenuItemOptionSetItem call + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var optionSetId = 56; + var menuItemOptionSetItemId = 56; + + instance.removeMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('setOptionSetItemTax', function() { + it('should call setOptionSetItemTax successfully', function(done) { + // TODO: uncomment, update parameter values for setOptionSetItemTax call + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var optionSetId = 56; + var menuItemOptionSetItemId = 56; + var taxRateId = 56; + + instance.setOptionSetItemTax(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, taxRateId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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(); + describe('updateMenuItemOptionSetItem', function() { + it('should call updateMenuItemOptionSetItem successfully', function(done) { + // TODO: uncomment, update parameter values for updateMenuItemOptionSetItem call + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var optionSetId = 56; + var menuItemOptionSetItemId = 56; + var menuItemOptionSetItem = new Flipdish.MenuItemOptionSetItemBase(); + menuItemOptionSetItem.Name = ""; + menuItemOptionSetItem.Price = 0.0; + menuItemOptionSetItem.IsAvailable = false; + menuItemOptionSetItem.DisplayOrder = 0; + menuItemOptionSetItem.CellLayoutType = "Small"; + menuItemOptionSetItem.ImageUrl = ""; + var opts = {}; + opts.undoAfter = 1.2; + + instance.updateMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, menuItemOptionSetItem, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('uploadOptionSetItemImage', function() { + it('should call uploadOptionSetItemImage successfully', function(done) { + // TODO: uncomment, update parameter values for uploadOptionSetItemImage call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var optionSetId = 56; + var menuItemOptionSetItemId = 56; + var Image = "/path/to/file.txt"; + + instance.uploadOptionSetItemImage(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, Image, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); }); }); diff --git a/test/api/MenuOptionSetsApi.spec.js b/test/api/MenuOptionSetsApi.spec.js index 3d51b009..0763f7a4 100644 --- a/test/api/MenuOptionSetsApi.spec.js +++ b/test/api/MenuOptionSetsApi.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -33,91 +33,316 @@ 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]; - } + describe('(package)', function() { + describe('MenuOptionSetsApi', function() { + describe('createMenuItemOptionSet', function() { + it('should call createMenuItemOptionSet successfully', function(done) { + // TODO: uncomment, update parameter values for createMenuItemOptionSet call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var menuItemOptionSet = new Flipdish.MenuItemOptionSetBase(); + menuItemOptionSet.Name = ""; + menuItemOptionSet.IsMasterOptionSet = false; + menuItemOptionSet.DisplayOrder = 0; + menuItemOptionSet.MinSelectCount = 0; + menuItemOptionSet.MaxSelectCount = 0; + menuItemOptionSet.CellLayoutType = "Small"; - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + instance.createMenuItemOptionSet(menuId, menuSectionId, menuSectionItemId, menuItemOptionSet, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); - 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(); + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('deleteMenuItemOptionSet', function() { + it('should call deleteMenuItemOptionSet successfully', function(done) { + // TODO: uncomment, update parameter values for deleteMenuItemOptionSet call + /* + var menuId = 56; + var menuSectionItemId = 56; + var menuSectionId = 56; + var optionSetId = 56; + + instance.deleteMenuItemOptionSet(menuId, menuSectionItemId, menuSectionId, optionSetId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('deleteOptionSetImage', function() { + it('should call deleteOptionSetImage successfully', function(done) { + // TODO: uncomment, update parameter values for deleteOptionSetImage call + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var optionSetId = 56; + + instance.deleteOptionSetImage(menuId, menuSectionId, menuSectionItemId, optionSetId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getMenuItemOptionSetById', function() { + it('should call getMenuItemOptionSetById successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuItemOptionSetById call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var optionSetId = 56; + + instance.getMenuItemOptionSetById(menuId, menuSectionId, menuSectionItemId, optionSetId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultMenuItemOptionSet); + expect(data.Data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.Data.MenuItemOptionSetId).to.be.a('number'); + expect(data.Data.MenuItemOptionSetId).to.be(0); + expect(data.Data.ImageUrl).to.be.a('string'); + expect(data.Data.ImageUrl).to.be(""); + { + let dataCtr = data.Data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.Data.PublicId).to.be.a('string'); + expect(data.Data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.Data.IsMasterOptionSet).to.be(false); + expect(data.Data.DisplayOrder).to.be.a('number'); + expect(data.Data.DisplayOrder).to.be(0); + expect(data.Data.MinSelectCount).to.be.a('number'); + expect(data.Data.MinSelectCount).to.be(0); + expect(data.Data.MaxSelectCount).to.be.a('number'); + expect(data.Data.MaxSelectCount).to.be(0); + expect(data.Data.CellLayoutType).to.be.a('string'); + expect(data.Data.CellLayoutType).to.be("Small"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getMenuItemOptionSets', function() { + it('should call getMenuItemOptionSets successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuItemOptionSets call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + + instance.getMenuItemOptionSets(menuId, menuSectionId, menuSectionItemId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultMenuItemOptionSet); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('updateMenuItemOptionSet', function() { + it('should call updateMenuItemOptionSet successfully', function(done) { + // TODO: uncomment, update parameter values for updateMenuItemOptionSet call + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var optionSetId = 56; + var menuItemOptionSet = new Flipdish.MenuItemOptionSetBase(); + menuItemOptionSet.Name = ""; + menuItemOptionSet.IsMasterOptionSet = false; + menuItemOptionSet.DisplayOrder = 0; + menuItemOptionSet.MinSelectCount = 0; + menuItemOptionSet.MaxSelectCount = 0; + menuItemOptionSet.CellLayoutType = "Small"; + + instance.updateMenuItemOptionSet(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSet, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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(); + describe('uploadOptionSetImage', function() { + it('should call uploadOptionSetImage successfully', function(done) { + // TODO: uncomment, update parameter values for uploadOptionSetImage call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var optionSetId = 56; + var Image = "/path/to/file.txt"; + + instance.uploadOptionSetImage(menuId, menuSectionId, menuSectionItemId, optionSetId, Image, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); }); }); diff --git a/test/api/MenuSectionItemsApi.spec.js b/test/api/MenuSectionItemsApi.spec.js index 4eecdd41..8024f656 100644 --- a/test/api/MenuSectionItemsApi.spec.js +++ b/test/api/MenuSectionItemsApi.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -33,91 +33,753 @@ 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]; - } + describe('(package)', function() { + describe('MenuSectionItemsApi', function() { + describe('cloneMenuSectionItem', function() { + it('should call cloneMenuSectionItem successfully', function(done) { + // TODO: uncomment, update parameter values for cloneMenuSectionItem call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + instance.cloneMenuSectionItem(menuId, menuSectionId, menuSectionItemId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultMenuSectionItem); + expect(data.Data).to.be.a(Flipdish.MenuSectionItem); + expect(data.Data.MenuItemId).to.be.a('number'); + expect(data.Data.MenuItemId).to.be(0); + expect(data.Data.ActualPrice).to.be.a('number'); + expect(data.Data.ActualPrice).to.be(0.0); + { + let dataCtr = data.Data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.Data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Data.PublicId).to.be.a('string'); + expect(data.Data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.Description).to.be.a('string'); + expect(data.Data.Description).to.be(""); + expect(data.Data.SpicinessRating).to.be.a('string'); + expect(data.Data.SpicinessRating).to.be("NotRated"); + expect(data.Data.Price).to.be.a('number'); + expect(data.Data.Price).to.be(0.0); + expect(data.Data.DisplayOrder).to.be.a('number'); + expect(data.Data.DisplayOrder).to.be(0); + expect(data.Data.Alcohol).to.be.a('boolean'); + expect(data.Data.Alcohol).to.be(false); + expect(data.Data.IsAvailable).to.be.a('boolean'); + expect(data.Data.IsAvailable).to.be(false); + expect(data.Data.CellLayoutType).to.be.a('string'); + expect(data.Data.CellLayoutType).to.be("Small"); + expect(data.Data.DisableVouchers).to.be.a('boolean'); + expect(data.Data.DisableVouchers).to.be(false); + expect(data.Data.ImageUrl).to.be.a('string'); + expect(data.Data.ImageUrl).to.be(""); - describe('MenuSectionItemsApi', function() { - 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(); + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('createMenuSectionItem', function() { + it('should call createMenuSectionItem successfully', function(done) { + // TODO: uncomment, update parameter values for createMenuSectionItem call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItem = new Flipdish.MenuSectionItemBase(); + menuSectionItem.Name = ""; + menuSectionItem.Description = ""; + menuSectionItem.SpicinessRating = "NotRated"; + menuSectionItem.Price = 0.0; + menuSectionItem.DisplayOrder = 0; + menuSectionItem.Alcohol = false; + menuSectionItem.IsAvailable = false; + menuSectionItem.CellLayoutType = "Small"; + menuSectionItem.DisableVouchers = false; + menuSectionItem.ImageUrl = ""; + + instance.createMenuSectionItem(menuId, menuSectionId, menuSectionItem, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('deleteMenuSectionItem', function() { + it('should call deleteMenuSectionItem successfully', function(done) { + // TODO: uncomment, update parameter values for deleteMenuSectionItem call + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + + instance.deleteMenuSectionItem(menuId, menuSectionId, menuSectionItemId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('deleteMenuSectionItemImage', function() { + it('should call deleteMenuSectionItemImage successfully', function(done) { + // TODO: uncomment, update parameter values for deleteMenuSectionItemImage call + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + + instance.deleteMenuSectionItemImage(menuId, menuSectionId, menuSectionItemId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getMenuItemById', function() { + it('should call getMenuItemById successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuItemById call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + + instance.getMenuItemById(menuId, menuSectionId, menuSectionItemId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultMenuSectionItem); + expect(data.Data).to.be.a(Flipdish.MenuSectionItem); + expect(data.Data.MenuItemId).to.be.a('number'); + expect(data.Data.MenuItemId).to.be(0); + expect(data.Data.ActualPrice).to.be.a('number'); + expect(data.Data.ActualPrice).to.be(0.0); + { + let dataCtr = data.Data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.Data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Data.PublicId).to.be.a('string'); + expect(data.Data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.Description).to.be.a('string'); + expect(data.Data.Description).to.be(""); + expect(data.Data.SpicinessRating).to.be.a('string'); + expect(data.Data.SpicinessRating).to.be("NotRated"); + expect(data.Data.Price).to.be.a('number'); + expect(data.Data.Price).to.be(0.0); + expect(data.Data.DisplayOrder).to.be.a('number'); + expect(data.Data.DisplayOrder).to.be(0); + expect(data.Data.Alcohol).to.be.a('boolean'); + expect(data.Data.Alcohol).to.be(false); + expect(data.Data.IsAvailable).to.be.a('boolean'); + expect(data.Data.IsAvailable).to.be(false); + expect(data.Data.CellLayoutType).to.be.a('string'); + expect(data.Data.CellLayoutType).to.be("Small"); + expect(data.Data.DisableVouchers).to.be.a('boolean'); + expect(data.Data.DisableVouchers).to.be(false); + expect(data.Data.ImageUrl).to.be.a('string'); + expect(data.Data.ImageUrl).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getMenuItems', function() { + it('should call getMenuItems successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuItems call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + + instance.getMenuItems(menuId, menuSectionId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultMenuSectionItem); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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(); + describe('moveMenuItem', function() { + it('should call moveMenuItem successfully', function(done) { + // TODO: uncomment, update parameter values for moveMenuItem call + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var destinationDisplayOrder = 56; + + instance.moveMenuItem(menuId, menuSectionId, menuSectionItemId, destinationDisplayOrder, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setSectionItemTax', function() { + it('should call setSectionItemTax successfully', function(done) { + // TODO: uncomment, update parameter values for setSectionItemTax call + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var taxRateId = 56; + + instance.setSectionItemTax(menuId, menuSectionId, menuSectionItemId, taxRateId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateMenuSectionItem', function() { + it('should call updateMenuSectionItem successfully', function(done) { + // TODO: uncomment, update parameter values for updateMenuSectionItem call + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var menuSectionItem = new Flipdish.MenuSectionItemBase(); + menuSectionItem.Name = ""; + menuSectionItem.Description = ""; + menuSectionItem.SpicinessRating = "NotRated"; + menuSectionItem.Price = 0.0; + menuSectionItem.DisplayOrder = 0; + menuSectionItem.Alcohol = false; + menuSectionItem.IsAvailable = false; + menuSectionItem.CellLayoutType = "Small"; + menuSectionItem.DisableVouchers = false; + menuSectionItem.ImageUrl = ""; + var opts = {}; + opts.undoAfter = 1.2; + + instance.updateMenuSectionItem(menuId, menuSectionId, menuSectionItemId, menuSectionItem, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('uploadMenuSectionItemImage', function() { + it('should call uploadMenuSectionItemImage successfully', function(done) { + // TODO: uncomment, update parameter values for uploadMenuSectionItemImage call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionItemId = 56; + var Image = "/path/to/file.txt"; + + instance.uploadMenuSectionItemImage(menuId, menuSectionId, menuSectionItemId, Image, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); }); }); diff --git a/test/api/MenuSectionsApi.spec.js b/test/api/MenuSectionsApi.spec.js index 39e4845b..810850cf 100644 --- a/test/api/MenuSectionsApi.spec.js +++ b/test/api/MenuSectionsApi.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -33,91 +33,1009 @@ 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]; - } + describe('(package)', function() { + describe('MenuSectionsApi', function() { + describe('cloneMenuSection', function() { + it('should call cloneMenuSection successfully', function(done) { + // TODO: uncomment, update parameter values for cloneMenuSection call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + instance.cloneMenuSection(menuId, menuSectionId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultMenuSection); + expect(data.Data).to.be.a(Flipdish.MenuSection); + expect(data.Data.MenuSectionId).to.be.a('number'); + expect(data.Data.MenuSectionId).to.be(0); + { + let dataCtr = data.Data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.Data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.Data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.Data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.Data.PublicId).to.be.a('string'); + expect(data.Data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.Description).to.be.a('string'); + expect(data.Data.Description).to.be(""); + expect(data.Data.DisplayOrder).to.be.a('number'); + expect(data.Data.DisplayOrder).to.be(0); + expect(data.Data.IsAvailable).to.be.a('boolean'); + expect(data.Data.IsAvailable).to.be(false); + expect(data.Data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.Data.IsHiddenFromCustomers).to.be(false); + expect(data.Data.ImageUrl).to.be.a('string'); + expect(data.Data.ImageUrl).to.be(""); - describe('MenuSectionsApi', function() { - 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(); + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('createMenuAvailabilityForDay', function() { + it('should call createMenuAvailabilityForDay successfully', function(done) { + // TODO: uncomment, update parameter values for createMenuAvailabilityForDay call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var dayOfWeek = "dayOfWeek_example"; + var businessHoursPeriod = new Flipdish.BusinessHoursPeriodBase(); + businessHoursPeriod.DayOfWeek = "Sunday"; + businessHoursPeriod.StartTime = ""; + businessHoursPeriod.Period = ""; + businessHoursPeriod.StartTimeEarly = ""; + businessHoursPeriod.PeriodEarly = ""; + + instance.createMenuAvailabilityForDay(menuId, menuSectionId, dayOfWeek, businessHoursPeriod, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('createMenuSection', function() { + it('should call createMenuSection successfully', function(done) { + // TODO: uncomment, update parameter values for createMenuSection call and complete the assertions + /* + var menuId = 56; + var menuSection = new Flipdish.MenuSectionBase(); + menuSection.Name = ""; + menuSection.Description = ""; + menuSection.DisplayOrder = 0; + menuSection.IsAvailable = false; + menuSection.IsHiddenFromCustomers = false; + menuSection.ImageUrl = ""; + + instance.createMenuSection(menuId, menuSection, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('createMenuSectionAvailability', function() { + it('should call createMenuSectionAvailability successfully', function(done) { + // TODO: uncomment, update parameter values for createMenuSectionAvailability call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var menuSectionAvailability = new Flipdish.MenuSectionAvailabilityBase(); + menuSectionAvailability.AvailabilityMode = "DisplayAlways"; + + instance.createMenuSectionAvailability(menuId, menuSectionId, menuSectionAvailability, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('deleteMenuSection', function() { + it('should call deleteMenuSection successfully', function(done) { + // TODO: uncomment, update parameter values for deleteMenuSection call + /* + var menuId = 56; + var menuSectionId = 56; + + instance.deleteMenuSection(menuId, menuSectionId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('deleteMenuSectionImage', function() { + it('should call deleteMenuSectionImage successfully', function(done) { + // TODO: uncomment, update parameter values for deleteMenuSectionImage call + /* + var menuId = 56; + var menuSectionId = 56; + + instance.deleteMenuSectionImage(menuId, menuSectionId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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(); + describe('getMenuSectionById', function() { + it('should call getMenuSectionById successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuSectionById call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + + instance.getMenuSectionById(menuId, menuSectionId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultMenuSection); + expect(data.Data).to.be.a(Flipdish.MenuSection); + expect(data.Data.MenuSectionId).to.be.a('number'); + expect(data.Data.MenuSectionId).to.be(0); + { + let dataCtr = data.Data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.Data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.Data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.Data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.Data.PublicId).to.be.a('string'); + expect(data.Data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.Description).to.be.a('string'); + expect(data.Data.Description).to.be(""); + expect(data.Data.DisplayOrder).to.be.a('number'); + expect(data.Data.DisplayOrder).to.be(0); + expect(data.Data.IsAvailable).to.be.a('boolean'); + expect(data.Data.IsAvailable).to.be(false); + expect(data.Data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.Data.IsHiddenFromCustomers).to.be(false); + expect(data.Data.ImageUrl).to.be.a('string'); + expect(data.Data.ImageUrl).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getMenuSections', function() { + it('should call getMenuSections successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuSections call and complete the assertions + /* + var menuId = 56; + + instance.getMenuSections(menuId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultMenuSection); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('menuSectionsSetItemDisplayOrders', function() { + it('should call menuSectionsSetItemDisplayOrders successfully', function(done) { + // TODO: uncomment, update parameter values for menuSectionsSetItemDisplayOrders call + /* + var menuId = 56; + var menuSectionId = 56; + var displayOrders = new Flipdish.MenuObjectDisplayOrders(); + displayOrders.DisplayOrders = [new Flipdish.ObjectDisplayOrder()]; + displayOrders.DisplayOrders[0].Id = 0; + displayOrders.DisplayOrders[0].DisplayOrder = 0; + + instance.menuSectionsSetItemDisplayOrders(menuId, menuSectionId, displayOrders, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateMenuSection', function() { + it('should call updateMenuSection successfully', function(done) { + // TODO: uncomment, update parameter values for updateMenuSection call + /* + var menuId = 56; + var menuSectionId = 56; + var menuSection = new Flipdish.MenuSectionBase(); + menuSection.Name = ""; + menuSection.Description = ""; + menuSection.DisplayOrder = 0; + menuSection.IsAvailable = false; + menuSection.IsHiddenFromCustomers = false; + menuSection.ImageUrl = ""; + var opts = {}; + opts.undoAfter = 1.2; + + instance.updateMenuSection(menuId, menuSectionId, menuSection, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('uploadMenuSectionImage', function() { + it('should call uploadMenuSectionImage successfully', function(done) { + // TODO: uncomment, update parameter values for uploadMenuSectionImage call and complete the assertions + /* + var menuId = 56; + var menuSectionId = 56; + var Image = "/path/to/file.txt"; + + instance.uploadMenuSectionImage(menuId, menuSectionId, Image, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); }); }); diff --git a/test/api/MenusApi.spec.js b/test/api/MenusApi.spec.js index c8262abf..d0ca94e9 100644 --- a/test/api/MenusApi.spec.js +++ b/test/api/MenusApi.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -33,121 +33,1468 @@ 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]; - } + describe('(package)', function() { + describe('MenusApi', function() { + describe('createDraftMenuFromExistingMenu', function() { + it('should call createDraftMenuFromExistingMenu successfully', function(done) { + // TODO: uncomment, update parameter values for createDraftMenuFromExistingMenu call and complete the assertions + /* + var menuId = 56; + var newName = "newName_example"; - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + instance.createDraftMenuFromExistingMenu(menuId, newName, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultMenu); + expect(data.Data).to.be.a(Flipdish.Menu); + expect(data.Data.MenuId).to.be.a('number'); + expect(data.Data.MenuId).to.be(0); + expect(data.Data.ModifiedTime).to.be.a(Date); + expect(data.Data.ModifiedTime).to.be(new Date()); + expect(data.Data.VersionNumber).to.be.a('number'); + expect(data.Data.VersionNumber).to.be(0); + expect(data.Data.ImageUrl).to.be.a('string'); + expect(data.Data.ImageUrl).to.be(""); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.Locked).to.be.a('boolean'); + expect(data.Data.Locked).to.be(false); + { + let dataCtr = data.Data.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Data.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Data.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Data.DisplaySectionLinks).to.be(false); + expect(data.Data.MenuSectionBehaviour).to.be.a('string'); + expect(data.Data.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Data.TaxType).to.be.a('string'); + expect(data.Data.TaxType).to.be("IncludedInBasePrice"); - describe('MenusApi', function() { - 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(); + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); - }); - describe('deleteMenuItemMetadata_0', function() { - it('should call deleteMenuItemMetadata_0 successfully', function(done) { - //uncomment below and update the code to test deleteMenuItemMetadata_0 - //instance.deleteMenuItemMetadata_0(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); + describe('createNewMenuForApp', function() { + it('should call createNewMenuForApp successfully', function(done) { + // TODO: uncomment, update parameter values for createNewMenuForApp call and complete the assertions + /* + var appId = "appId_example"; + var menu = new Flipdish.CreateFullMenu(); + menu.Name = ""; + menu.ImageUrl = ""; + menu.MenuSections = [new Flipdish.CreateFullMenuSection()]; + menu.MenuSections[0].MenuSectionAvailability = new Flipdish.MenuSectionAvailability(); + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes = [new Flipdish.BusinessHoursPeriod()]; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].Early = new Flipdish.Range(); + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].Early.StartTime = ""; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].Early.Period = ""; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].Early.DayOfWeek = "Sunday"; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].Late = new Flipdish.Range(); + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].Late.StartTime = ""; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].Late.Period = ""; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].Late.DayOfWeek = "Sunday"; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].Ranges = [new Flipdish.Range()]; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].Ranges[0].StartTime = ""; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].Ranges[0].Period = ""; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].Ranges[0].DayOfWeek = "Sunday"; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].DayOfWeek = "Sunday"; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].StartTime = ""; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].Period = ""; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].StartTimeEarly = ""; + menu.MenuSections[0].MenuSectionAvailability.AvailableTimes[0].PeriodEarly = ""; + menu.MenuSections[0].MenuSectionAvailability.AvailabilityMode = "DisplayAlways"; + menu.MenuSections[0].MenuItems = [new Flipdish.CreateFullMenuSectionItem()]; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets = [new Flipdish.CreateFullMenuItemOptionSet()]; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].MenuItemOptionSetItems = [new Flipdish.CreateFullMenuItemOptionSetItem()]; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].MenuItemOptionSetItems[0].Metadata = [new Flipdish.CreateMetadata()]; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].MenuItemOptionSetItems[0].Metadata[0].StoreId = 0; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].MenuItemOptionSetItems[0].Metadata[0].Key = ""; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].MenuItemOptionSetItems[0].Metadata[0].Value = ""; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].MenuItemOptionSetItems[0].TaxRateName = ""; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].MenuItemOptionSetItems[0].Name = ""; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].MenuItemOptionSetItems[0].Price = 0.0; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].MenuItemOptionSetItems[0].IsAvailable = false; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].MenuItemOptionSetItems[0].DisplayOrder = 0; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].MenuItemOptionSetItems[0].CellLayoutType = "Small"; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].MenuItemOptionSetItems[0].ImageUrl = ""; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].Name = ""; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].IsMasterOptionSet = false; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].DisplayOrder = 0; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].MinSelectCount = 0; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].MaxSelectCount = 0; + menu.MenuSections[0].MenuItems[0].MenuItemOptionSets[0].CellLayoutType = "Small"; + menu.MenuSections[0].MenuItems[0].Metadata = [new Flipdish.CreateMetadata()]; + menu.MenuSections[0].MenuItems[0].Metadata[0].StoreId = 0; + menu.MenuSections[0].MenuItems[0].Metadata[0].Key = ""; + menu.MenuSections[0].MenuItems[0].Metadata[0].Value = ""; + menu.MenuSections[0].MenuItems[0].TaxRateName = ""; + menu.MenuSections[0].MenuItems[0].Name = ""; + menu.MenuSections[0].MenuItems[0].Description = ""; + menu.MenuSections[0].MenuItems[0].SpicinessRating = "NotRated"; + menu.MenuSections[0].MenuItems[0].Price = 0.0; + menu.MenuSections[0].MenuItems[0].DisplayOrder = 0; + menu.MenuSections[0].MenuItems[0].Alcohol = false; + menu.MenuSections[0].MenuItems[0].IsAvailable = false; + menu.MenuSections[0].MenuItems[0].CellLayoutType = "Small"; + menu.MenuSections[0].MenuItems[0].DisableVouchers = false; + menu.MenuSections[0].MenuItems[0].ImageUrl = ""; + menu.MenuSections[0].Name = ""; + menu.MenuSections[0].Description = ""; + menu.MenuSections[0].DisplayOrder = 0; + menu.MenuSections[0].IsAvailable = false; + menu.MenuSections[0].IsHiddenFromCustomers = false; + menu.MenuSections[0].ImageUrl = ""; + menu.TaxRates = [new Flipdish.CreateMenuTaxRate()]; + menu.TaxRates[0].Name = ""; + menu.TaxRates[0].Rate = 0.0; + menu.DisplaySectionLinks = false; + menu.MenuSectionBehaviour = "ExpandSingle"; + menu.TaxType = "IncludedInBasePrice"; + + instance.createNewMenuForApp(appId, menu, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a('number'); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('deleteMenu', function() { + it('should call deleteMenu successfully', function(done) { + // TODO: uncomment, update parameter values for deleteMenu call + /* + var menuId = 56; + + instance.deleteMenu(menuId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('deleteMenuImage', function() { + it('should call deleteMenuImage successfully', function(done) { + // TODO: uncomment, update parameter values for deleteMenuImage call + /* + var menuId = 56; + + instance.deleteMenuImage(menuId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('deleteMenuItemMetadata', function() { + it('should call deleteMenuItemMetadata successfully', function(done) { + // TODO: uncomment, update parameter values for deleteMenuItemMetadata call + /* + var menuId = 56; + var storeId = 56; + var menuItemId = 56; + var key = "key_example"; + + instance.deleteMenuItemMetadata(menuId, storeId, menuItemId, key, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getAllMenuMetadataByMenuIdAndStoreId', function() { + it('should call getAllMenuMetadataByMenuIdAndStoreId successfully', function(done) { + // TODO: uncomment, update parameter values for getAllMenuMetadataByMenuIdAndStoreId call and complete the assertions + /* + var menuId = 56; + var storeId = 56; + + instance.getAllMenuMetadataByMenuIdAndStoreId(menuId, storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultAllMetadataResult); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AllMetadataResult); + { + let dataCtr = data.MenuItemMetadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Metadata); + expect(data.MenuEntityId).to.be.a('number'); + expect(data.MenuEntityId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + { + let dataCtr = data.MenuItemOptionSetItemMetadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Metadata); + expect(data.MenuEntityId).to.be.a('number'); + expect(data.MenuEntityId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getMenuById', function() { + it('should call getMenuById successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuById call and complete the assertions + /* + var menuId = 56; + + instance.getMenuById(menuId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultMenu); + expect(data.Data).to.be.a(Flipdish.Menu); + expect(data.Data.MenuId).to.be.a('number'); + expect(data.Data.MenuId).to.be(0); + expect(data.Data.ModifiedTime).to.be.a(Date); + expect(data.Data.ModifiedTime).to.be(new Date()); + expect(data.Data.VersionNumber).to.be.a('number'); + expect(data.Data.VersionNumber).to.be(0); + expect(data.Data.ImageUrl).to.be.a('string'); + expect(data.Data.ImageUrl).to.be(""); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.Locked).to.be.a('boolean'); + expect(data.Data.Locked).to.be(false); + { + let dataCtr = data.Data.MenuSections; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSection); + expect(data.MenuSectionId).to.be.a('number'); + expect(data.MenuSectionId).to.be(0); + { + let dataCtr = data.MenuItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSectionItem); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.ActualPrice).to.be.a('number'); + expect(data.ActualPrice).to.be(0.0); + { + let dataCtr = data.MenuItemOptionSets; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSet); + expect(data.MenuItemOptionSetId).to.be.a('number'); + expect(data.MenuItemOptionSetId).to.be(0); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + { + let dataCtr = data.MenuItemOptionSetItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuItemOptionSetItem); + expect(data.MenuItemOptionSetItemId).to.be.a('number'); + expect(data.MenuItemOptionSetItemId).to.be(0); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.IsMasterOptionSet).to.be.a('boolean'); + expect(data.IsMasterOptionSet).to.be(false); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.MinSelectCount).to.be.a('number'); + expect(data.MinSelectCount).to.be(0); + expect(data.MaxSelectCount).to.be.a('number'); + expect(data.MaxSelectCount).to.be(0); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + + } + } + { + let dataCtr = data.DailySpecialHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.CreateMetadata); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.SpicinessRating).to.be.a('string'); + expect(data.SpicinessRating).to.be("NotRated"); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.Alcohol).to.be.a('boolean'); + expect(data.Alcohol).to.be(false); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.CellLayoutType).to.be.a('string'); + expect(data.CellLayoutType).to.be("Small"); + expect(data.DisableVouchers).to.be.a('boolean'); + expect(data.DisableVouchers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.MenuSectionAvailability).to.be.a(Flipdish.MenuSectionAvailability); + { + let dataCtr = data.MenuSectionAvailability.AvailableTimes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuSectionAvailability.AvailabilityMode).to.be.a('string'); + expect(data.MenuSectionAvailability.AvailabilityMode).to.be("DisplayAlways"); + expect(data.PublicId).to.be.a('string'); + expect(data.PublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.DisplayOrder).to.be.a('number'); + expect(data.DisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + expect(data.IsHiddenFromCustomers).to.be.a('boolean'); + expect(data.IsHiddenFromCustomers).to.be(false); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + { + let dataCtr = data.Data.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.Data.DisplaySectionLinks).to.be.a('boolean'); + expect(data.Data.DisplaySectionLinks).to.be(false); + expect(data.Data.MenuSectionBehaviour).to.be.a('string'); + expect(data.Data.MenuSectionBehaviour).to.be("ExpandSingle"); + expect(data.Data.TaxType).to.be.a('string'); + expect(data.Data.TaxType).to.be("IncludedInBasePrice"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getMenuItemMetadata', function() { + it('should call getMenuItemMetadata successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuItemMetadata call and complete the assertions + /* + var menuId = 56; + var storeId = 56; + var menuItemId = 56; + + instance.getMenuItemMetadata(menuId, storeId, menuItemId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultMetadata); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Metadata); + expect(data.MenuEntityId).to.be.a('number'); + expect(data.MenuEntityId).to.be(0); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be(""); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getMenuItemMetadataByKey', function() { + it('should call getMenuItemMetadataByKey successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuItemMetadataByKey call + /* + var menuId = 56; + var storeId = 56; + var menuItemId = 56; + var key = "key_example"; + + instance.getMenuItemMetadataByKey(menuId, storeId, menuItemId, key, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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(); + describe('getMenuItemOptionSetItemMetadata', function() { + it('should call getMenuItemOptionSetItemMetadata successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuItemOptionSetItemMetadata call and complete the assertions + /* + var menuId = 56; + var storeId = 56; + var optionSetItemId = 56; + + instance.getMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultMetadata); + expect(data.Data).to.be.a(Flipdish.Metadata); + expect(data.Data.MenuEntityId).to.be.a('number'); + expect(data.Data.MenuEntityId).to.be(0); + expect(data.Data.Key).to.be.a('string'); + expect(data.Data.Key).to.be(""); + expect(data.Data.Value).to.be.a('string'); + expect(data.Data.Value).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getMenuStoreNames', function() { + it('should call getMenuStoreNames successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuStoreNames call and complete the assertions + /* + var menuId = 56; + + instance.getMenuStoreNames(menuId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultMenuStoreNames); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuStoreNames); + { + let dataCtr = data.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getMenuTaxDetails', function() { + it('should call getMenuTaxDetails successfully', function(done) { + // TODO: uncomment, update parameter values for getMenuTaxDetails call and complete the assertions + /* + var menuId = 56; + + instance.getMenuTaxDetails(menuId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultMenuTaxDetails); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxDetails); + { + let dataCtr = data.TaxRates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + } + } + expect(data.DisplayTax).to.be.a('boolean'); + expect(data.DisplayTax).to.be(false); + expect(data.TaxType).to.be.a('string'); + expect(data.TaxType).to.be("IncludedInBasePrice"); + { + let dataCtr = data.ItemTaxes; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.SetItemTaxes; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getMenusByAppId', function() { + it('should call getMenusByAppId successfully', function(done) { + // TODO: uncomment, update parameter values for getMenusByAppId call and complete the assertions + /* + var appId = "appId_example"; + + instance.getMenusByAppId(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultMenuSummary); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuSummary); + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.ModifiedTime).to.be.a(Date); + expect(data.ModifiedTime).to.be(new Date()); + expect(data.VersionNumber).to.be.a('number'); + expect(data.VersionNumber).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Locked).to.be.a('boolean'); + expect(data.Locked).to.be(false); + { + let dataCtr = data.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getMenusCheckpoints', function() { + it('should call getMenusCheckpoints successfully', function(done) { + // TODO: uncomment, update parameter values for getMenusCheckpoints call and complete the assertions + /* + var menuId = 56; + + instance.getMenusCheckpoints(menuId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultMenuCheckpoint); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuCheckpoint); + expect(data.MenuCheckpointId).to.be.a('number'); + expect(data.MenuCheckpointId).to.be(0); + expect(data.Time).to.be.a(Date); + expect(data.Time).to.be(new Date()); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Url).to.be.a('string'); + expect(data.Url).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('menusDeleteTaxRate', function() { + it('should call menusDeleteTaxRate successfully', function(done) { + // TODO: uncomment, update parameter values for menusDeleteTaxRate call + /* + var menuId = 56; + var taxId = 56; + + instance.menusDeleteTaxRate(menuId, taxId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('menusSetDisplayOnMenuTax', function() { + it('should call menusSetDisplayOnMenuTax successfully', function(done) { + // TODO: uncomment, update parameter values for menusSetDisplayOnMenuTax call + /* + var menuId = 56; + var show = true; + + instance.menusSetDisplayOnMenuTax(menuId, show, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('menusSetItemDisplayOrders', function() { + it('should call menusSetItemDisplayOrders successfully', function(done) { + // TODO: uncomment, update parameter values for menusSetItemDisplayOrders call + /* + var menuId = 56; + var displayOrders = new Flipdish.MenuObjectDisplayOrders(); + displayOrders.DisplayOrders = [new Flipdish.ObjectDisplayOrder()]; + displayOrders.DisplayOrders[0].Id = 0; + displayOrders.DisplayOrders[0].DisplayOrder = 0; + + instance.menusSetItemDisplayOrders(menuId, displayOrders, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('menusShowHideBulkItems', function() { + it('should call menusShowHideBulkItems successfully', function(done) { + // TODO: uncomment, update parameter values for menusShowHideBulkItems call and complete the assertions + /* + var menuId = 56; + var menuElements = [new Flipdish.MenuElementHide()]; + menuElements[0].MenuElementId = 0; + menuElements[0].MenuElementType = "MenuItem"; + var hide = true; + var undoAfter = 1.2; + + instance.menusShowHideBulkItems(menuId, menuElements, hide, undoAfter, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultMenuElementEditResponse); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.MenuElementEditResponse); + expect(data.MenuElementId).to.be.a('number'); + expect(data.MenuElementId).to.be(0); + expect(data.MenuElementType).to.be.a('string'); + expect(data.MenuElementType).to.be("MenuItem"); + expect(data.ValidationCode).to.be.a('string'); + expect(data.ValidationCode).to.be("Success"); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('menusUpdateTaxType', function() { + it('should call menusUpdateTaxType successfully', function(done) { + // TODO: uncomment, update parameter values for menusUpdateTaxType call + /* + var menuId = 56; + var type = "type_example"; + + instance.menusUpdateTaxType(menuId, type, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('menusUpsertTaxRate', function() { + it('should call menusUpsertTaxRate successfully', function(done) { + // TODO: uncomment, update parameter values for menusUpsertTaxRate call and complete the assertions + /* + var menuId = 56; + var taxRate = new Flipdish.MenuTaxRate(); + taxRate.TaxRateId = 0; + taxRate.Name = ""; + taxRate.Rate = 0.0; + + instance.menusUpsertTaxRate(menuId, taxRate, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.MenuTaxRate); + expect(data.TaxRateId).to.be.a('number'); + expect(data.TaxRateId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Rate).to.be.a('number'); + expect(data.Rate).to.be(0.0); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('restoreAMenuCheckpoint', function() { + it('should call restoreAMenuCheckpoint successfully', function(done) { + // TODO: uncomment, update parameter values for restoreAMenuCheckpoint call + /* + var menuId = 56; + var checkpointId = 56; + + instance.restoreAMenuCheckpoint(menuId, checkpointId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setMenuItemMetadata', function() { + it('should call setMenuItemMetadata successfully', function(done) { + // TODO: uncomment, update parameter values for setMenuItemMetadata call + /* + var menuId = 56; + var storeId = 56; + var menuItemId = 56; + var metadata = new Flipdish.Metadata(); + metadata.MenuEntityId = 0; + metadata.Key = ""; + metadata.Value = ""; + + instance.setMenuItemMetadata(menuId, storeId, menuItemId, metadata, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setMenuItemOptionSetItemMetadata', function() { + it('should call setMenuItemOptionSetItemMetadata successfully', function(done) { + // TODO: uncomment, update parameter values for setMenuItemOptionSetItemMetadata call + /* + var menuId = 56; + var storeId = 56; + var optionSetItemId = 56; + var metadata = new Flipdish.Metadata(); + metadata.MenuEntityId = 0; + metadata.Key = ""; + metadata.Value = ""; + + instance.setMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId, metadata, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setMenuLock', function() { + it('should call setMenuLock successfully', function(done) { + // TODO: uncomment, update parameter values for setMenuLock call + /* + var menuId = 56; + var locked = true; + + instance.setMenuLock(menuId, locked, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setMenuName', function() { + it('should call setMenuName successfully', function(done) { + // TODO: uncomment, update parameter values for setMenuName call + /* + var menuId = 56; + var name = "name_example"; + + instance.setMenuName(menuId, name, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateMenu', function() { + it('should call updateMenu successfully', function(done) { + // TODO: uncomment, update parameter values for updateMenu call + /* + var menuId = 56; + var menu = new Flipdish.MenuBase(); + menu.DisplaySectionLinks = false; + menu.MenuSectionBehaviour = "ExpandSingle"; + menu.TaxType = "IncludedInBasePrice"; + + instance.updateMenu(menuId, menu, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('uploadMenuImage', function() { + it('should call uploadMenuImage successfully', function(done) { + // TODO: uncomment, update parameter values for uploadMenuImage call and complete the assertions + /* + var menuId = 56; + var Image = "/path/to/file.txt"; + + instance.uploadMenuImage(menuId, Image, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('uploadNewMenuForApp', function() { + it('should call uploadNewMenuForApp successfully', function(done) { + // TODO: uncomment, update parameter values for uploadNewMenuForApp call and complete the assertions + /* + var appId = "appId_example"; + var Menu = "/path/to/file.txt"; + + instance.uploadNewMenuForApp(appId, Menu, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a('number'); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); }); }); diff --git a/test/api/OAuthClientsApi.spec.js b/test/api/OAuthClientsApi.spec.js index 1321c2c2..3e10559a 100644 --- a/test/api/OAuthClientsApi.spec.js +++ b/test/api/OAuthClientsApi.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -33,111 +33,327 @@ 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]; - } + describe('(package)', function() { + describe('OAuthClientsApi', function() { + describe('addRedirectUri', function() { + it('should call addRedirectUri successfully', function(done) { + // TODO: uncomment, update parameter values for addRedirectUri call and complete the assertions + /* + var oauthAppId = "oauthAppId_example"; + var uri = "uri_example"; + var appId = "appId_example"; - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + instance.addRedirectUri(oauthAppId, uri, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultOauthClientRedirectUri); + expect(data.Data).to.be.a(Flipdish.OauthClientRedirectUri); + expect(data.Data.Id).to.be.a('number'); + expect(data.Data.Id).to.be(0); + expect(data.Data.Uri).to.be.a('string'); + expect(data.Data.Uri).to.be(""); - 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(); + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); - }); - describe('createOAuthClient', function() { - it('should call createOAuthClient successfully', function(done) { - //uncomment below and update the code to test createOAuthClient - //instance.createOAuthClient(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); + describe('createOAuthApp', function() { + it('should call createOAuthApp successfully', function(done) { + // TODO: uncomment, update parameter values for createOAuthApp call + /* + var oAuthApp = new Flipdish.OAuthApp(); + oAuthApp.OauthAppId = ""; + oAuthApp.OauthAppName = ""; + oAuthApp.OwnerUserId = 0; + oAuthApp.LogoUri = ""; + oAuthApp.Flow = "AuthorizationCode"; + oAuthApp.RefreshTokenUsage = "ReUse"; + oAuthApp.AccessTokenLifetime = 0; + oAuthApp.AbsoluteRefreshTokenLifetime = 0; + var appId = "appId_example"; + + instance.createOAuthApp(oAuthApp, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); - }); - describe('deleteOAuthClient', function() { - it('should call deleteOAuthClient successfully', function(done) { - //uncomment below and update the code to test deleteOAuthClient - //instance.deleteOAuthClient(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); + describe('deleteOAuthApp', function() { + it('should call deleteOAuthApp successfully', function(done) { + // TODO: uncomment, update parameter values for deleteOAuthApp call + /* + var oauthAppId = "oauthAppId_example"; + var appId = "appId_example"; + + instance.deleteOAuthApp(oauthAppId, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getOAuthApps', function() { + it('should call getOAuthApps successfully', function(done) { + // TODO: uncomment, update parameter values for getOAuthApps call and complete the assertions + /* + var appId = "appId_example"; + var opts = {}; + opts.oauthAppName = "oauthAppName_example"; + + instance.getOAuthApps(appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultOAuthApp); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OAuthApp); + expect(data.OauthAppId).to.be.a('string'); + expect(data.OauthAppId).to.be(""); + expect(data.OauthAppName).to.be.a('string'); + expect(data.OauthAppName).to.be(""); + expect(data.OwnerUserId).to.be.a('number'); + expect(data.OwnerUserId).to.be(0); + expect(data.LogoUri).to.be.a('string'); + expect(data.LogoUri).to.be(""); + expect(data.Flow).to.be.a('string'); + expect(data.Flow).to.be("AuthorizationCode"); + expect(data.RefreshTokenUsage).to.be.a('string'); + expect(data.RefreshTokenUsage).to.be("ReUse"); + expect(data.AccessTokenLifetime).to.be.a('number'); + expect(data.AccessTokenLifetime).to.be(0); + expect(data.AbsoluteRefreshTokenLifetime).to.be.a('number'); + expect(data.AbsoluteRefreshTokenLifetime).to.be(0); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getOAuthClientByClientId', function() { + it('should call getOAuthClientByClientId successfully', function(done) { + // TODO: uncomment, update parameter values for getOAuthClientByClientId call and complete the assertions + /* + var oauthAppId = "oauthAppId_example"; + var appId = "appId_example"; + + instance.getOAuthClientByClientId(oauthAppId, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultOAuthApp); + expect(data.Data).to.be.a(Flipdish.OAuthApp); + expect(data.Data.OauthAppId).to.be.a('string'); + expect(data.Data.OauthAppId).to.be(""); + expect(data.Data.OauthAppName).to.be.a('string'); + expect(data.Data.OauthAppName).to.be(""); + expect(data.Data.OwnerUserId).to.be.a('number'); + expect(data.Data.OwnerUserId).to.be(0); + expect(data.Data.LogoUri).to.be.a('string'); + expect(data.Data.LogoUri).to.be(""); + expect(data.Data.Flow).to.be.a('string'); + expect(data.Data.Flow).to.be("AuthorizationCode"); + expect(data.Data.RefreshTokenUsage).to.be.a('string'); + expect(data.Data.RefreshTokenUsage).to.be("ReUse"); + expect(data.Data.AccessTokenLifetime).to.be.a('number'); + expect(data.Data.AccessTokenLifetime).to.be(0); + expect(data.Data.AbsoluteRefreshTokenLifetime).to.be.a('number'); + expect(data.Data.AbsoluteRefreshTokenLifetime).to.be(0); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); - }); - describe('getOAuthClients', function() { - it('should call getOAuthClients successfully', function(done) { - //uncomment below and update the code to test getOAuthClients - //instance.getOAuthClients(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); + describe('getOAuthClientSecret', function() { + it('should call getOAuthClientSecret successfully', function(done) { + // TODO: uncomment, update parameter values for getOAuthClientSecret call and complete the assertions + /* + var oauthAppId = "oauthAppId_example"; + var appId = "appId_example"; + + instance.getOAuthClientSecret(oauthAppId, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getOauthAccessToken', function() { + it('should call getOauthAccessToken successfully', function(done) { + // TODO: uncomment, update parameter values for getOauthAccessToken call and complete the assertions + /* + var oauthAppId = "oauthAppId_example"; + var appId = "appId_example"; + + instance.getOauthAccessToken(oauthAppId, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getRedirectUris', function() { + it('should call getRedirectUris successfully', function(done) { + // TODO: uncomment, update parameter values for getRedirectUris call and complete the assertions + /* + var oauthAppId = "oauthAppId_example"; + var appId = "appId_example"; + + instance.getRedirectUris(oauthAppId, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultOauthClientRedirectUri); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OauthClientRedirectUri); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.Uri).to.be.a('string'); + expect(data.Uri).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('oAuthClientsGetApplications', function() { + it('should call oAuthClientsGetApplications successfully', function(done) { + // TODO: uncomment, update parameter values for oAuthClientsGetApplications call and complete the assertions + /* + var appId = "appId_example"; + + instance.oAuthClientsGetApplications(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('removeRedirectUri', function() { + it('should call removeRedirectUri successfully', function(done) { + // TODO: uncomment, update parameter values for removeRedirectUri call + /* + var oauthAppId = "oauthAppId_example"; + var uriId = 56; + var appId = "appId_example"; + + instance.removeRedirectUri(oauthAppId, uriId, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateOAuthApp', function() { + it('should call updateOAuthApp successfully', function(done) { + // TODO: uncomment, update parameter values for updateOAuthApp call + /* + var oauthAppId = "oauthAppId_example"; + var oAuthApp = new Flipdish.OAuthApp(); + oAuthApp.OauthAppId = ""; + oAuthApp.OauthAppName = ""; + oAuthApp.OwnerUserId = 0; + oAuthApp.LogoUri = ""; + oAuthApp.Flow = "AuthorizationCode"; + oAuthApp.RefreshTokenUsage = "ReUse"; + oAuthApp.AccessTokenLifetime = 0; + oAuthApp.AbsoluteRefreshTokenLifetime = 0; + var appId = "appId_example"; + + instance.updateOAuthApp(oauthAppId, oAuthApp, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); }); }); diff --git a/test/api/OrdersApi.spec.js b/test/api/OrdersApi.spec.js index 0703dca5..6510d17b 100644 --- a/test/api/OrdersApi.spec.js +++ b/test/api/OrdersApi.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -33,71 +33,699 @@ 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]; - } + describe('(package)', function() { + describe('OrdersApi', function() { + describe('acceptOrder', function() { + it('should call acceptOrder successfully', function(done) { + // TODO: uncomment, update parameter values for acceptOrder call + /* + var id = 56; + var acceptObject = new Flipdish.Accept(); + acceptObject.EstimatedMinutesForDelivery = 0; - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + instance.acceptOrder(id, acceptObject, function(error, data, response) { + if (error) { + done(error); + return; + } - 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(); + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('dispatchOrder', function() { + it('should call dispatchOrder successfully', function(done) { + // TODO: uncomment, update parameter values for dispatchOrder call + /* + var id = 56; + + instance.dispatchOrder(id, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getOrderById', function() { + it('should call getOrderById successfully', function(done) { + // TODO: uncomment, update parameter values for getOrderById call and complete the assertions + /* + var id = 56; + + instance.getOrderById(id, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultOrder); + expect(data.Data).to.be.a(Flipdish.Order); + expect(data.Data.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Data.Store.Id).to.be.a('number'); + expect(data.Data.Store.Id).to.be(0); + expect(data.Data.Store.Name).to.be.a('string'); + expect(data.Data.Store.Name).to.be(""); + expect(data.Data.Store.MenuId).to.be.a('number'); + expect(data.Data.Store.MenuId).to.be(0); + { + let dataCtr = data.Data.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.Store.Currency).to.be.a('string'); + expect(data.Data.Store.Currency).to.be("EUR"); + expect(data.Data.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Data.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Data.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Data.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Data.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Data.Store.StoreTimezone).to.be.a('string'); + expect(data.Data.Store.StoreTimezone).to.be(""); + expect(data.Data.Store.StoreGroupId).to.be.a('number'); + expect(data.Data.Store.StoreGroupId).to.be(0); + expect(data.Data.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Data.Customer.Id).to.be.a('number'); + expect(data.Data.Customer.Id).to.be(0); + expect(data.Data.Customer.Name).to.be.a('string'); + expect(data.Data.Customer.Name).to.be(""); + expect(data.Data.Customer.EmailAddress).to.be.a('string'); + expect(data.Data.Customer.EmailAddress).to.be(""); + expect(data.Data.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Data.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Data.Customer.PhoneNumber).to.be.a('string'); + expect(data.Data.Customer.PhoneNumber).to.be(""); + expect(data.Data.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Data.Voucher.Name).to.be.a('string'); + expect(data.Data.Voucher.Name).to.be(""); + expect(data.Data.Voucher.Description).to.be.a('string'); + expect(data.Data.Voucher.Description).to.be(""); + expect(data.Data.Voucher.Code).to.be.a('string'); + expect(data.Data.Voucher.Code).to.be(""); + expect(data.Data.Voucher.Amount).to.be.a('number'); + expect(data.Data.Voucher.Amount).to.be(0.0); + expect(data.Data.Voucher.Type).to.be.a('string'); + expect(data.Data.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Data.Voucher.SubType).to.be.a('string'); + expect(data.Data.Voucher.SubType).to.be("None"); + expect(data.Data.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Data.Fees.FeeAmount).to.be.a('number'); + expect(data.Data.Fees.FeeAmount).to.be(0.0); + expect(data.Data.Fees.PercentageRate).to.be.a('number'); + expect(data.Data.Fees.PercentageRate).to.be(0.0); + expect(data.Data.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Data.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.Data.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.Data.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.Data.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Data.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.Data.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.Data.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.Data.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.Data.DeliveryLocation.Building).to.be.a('string'); + expect(data.Data.DeliveryLocation.Building).to.be(""); + expect(data.Data.DeliveryLocation.Street).to.be.a('string'); + expect(data.Data.DeliveryLocation.Street).to.be(""); + expect(data.Data.DeliveryLocation.Town).to.be.a('string'); + expect(data.Data.DeliveryLocation.Town).to.be(""); + expect(data.Data.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.Data.DeliveryLocation.PostCode).to.be(""); + expect(data.Data.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.Data.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.Data.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.Data.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.Data.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.Data.CustomerLocation.Latitude).to.be.a('number'); + expect(data.Data.CustomerLocation.Latitude).to.be(0.0); + expect(data.Data.CustomerLocation.Longitude).to.be.a('number'); + expect(data.Data.CustomerLocation.Longitude).to.be(0.0); + expect(data.Data.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.Data.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.Data.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.Data.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.Data.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.Data.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.Data.MaskedPhoneNumber.Code).to.be(""); + expect(data.Data.DropOffLocationId).to.be.a('number'); + expect(data.Data.DropOffLocationId).to.be(0); + expect(data.Data.DropOffLocation).to.be.a('string'); + expect(data.Data.DropOffLocation).to.be(""); + expect(data.Data.AcceptedFor).to.be.a(Date); + expect(data.Data.AcceptedFor).to.be(new Date()); + expect(data.Data.InFraudZone).to.be.a('boolean'); + expect(data.Data.InFraudZone).to.be(false); + expect(data.Data.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.Data.UnusualHighValueOrder).to.be(false); + expect(data.Data.RejectedByUserId).to.be.a('number'); + expect(data.Data.RejectedByUserId).to.be(0); + expect(data.Data.OrderId).to.be.a('number'); + expect(data.Data.OrderId).to.be(0); + expect(data.Data.LocalOrderId).to.be.a('string'); + expect(data.Data.LocalOrderId).to.be(""); + expect(data.Data.DeliveryType).to.be.a('string'); + expect(data.Data.DeliveryType).to.be("Delivery"); + expect(data.Data.PickupLocationType).to.be.a('string'); + expect(data.Data.PickupLocationType).to.be("TakeOut"); + expect(data.Data.TableServiceCatagory).to.be.a('string'); + expect(data.Data.TableServiceCatagory).to.be("Generic"); + expect(data.Data.TipAmount).to.be.a('number'); + expect(data.Data.TipAmount).to.be(0.0); + expect(data.Data.DeliveryAmount).to.be.a('number'); + expect(data.Data.DeliveryAmount).to.be(0.0); + expect(data.Data.OrderItemsAmount).to.be.a('number'); + expect(data.Data.OrderItemsAmount).to.be(0.0); + expect(data.Data.Amount).to.be.a('number'); + expect(data.Data.Amount).to.be(0.0); + expect(data.Data.ProcessingFee).to.be.a('number'); + expect(data.Data.ProcessingFee).to.be(0.0); + expect(data.Data.PaymentAccountType).to.be.a('string'); + expect(data.Data.PaymentAccountType).to.be("Card"); + expect(data.Data.PaymentAccountDescription).to.be.a('string'); + expect(data.Data.PaymentAccountDescription).to.be(""); + expect(data.Data.OrderState).to.be.a('string'); + expect(data.Data.OrderState).to.be("Created"); + expect(data.Data.IsPreOrder).to.be.a('boolean'); + expect(data.Data.IsPreOrder).to.be(false); + expect(data.Data.PlacedTime).to.be.a(Date); + expect(data.Data.PlacedTime).to.be(new Date()); + expect(data.Data.RequestedForTime).to.be.a(Date); + expect(data.Data.RequestedForTime).to.be(new Date()); + expect(data.Data.ChefNote).to.be.a('string'); + expect(data.Data.ChefNote).to.be(""); + expect(data.Data.AppType).to.be.a('string'); + expect(data.Data.AppType).to.be("Unknown"); + expect(data.Data.UserRating).to.be.a('number'); + expect(data.Data.UserRating).to.be(0); + expect(data.Data.PaymentStatus).to.be.a('string'); + expect(data.Data.PaymentStatus).to.be("Paid"); + expect(data.Data.RejectionReason).to.be.a('string'); + expect(data.Data.RejectionReason).to.be("TooBusy"); + expect(data.Data.RefundedAmount).to.be.a('number'); + expect(data.Data.RefundedAmount).to.be(0.0); + expect(data.Data.DeliveryTrackingStatus).to.be.a('string'); + expect(data.Data.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.Data.DriverId).to.be.a('number'); + expect(data.Data.DriverId).to.be(0); + expect(data.Data.TotalTax).to.be.a('number'); + expect(data.Data.TotalTax).to.be(0.0); + expect(data.Data.OrderTrackingCode).to.be.a('string'); + expect(data.Data.OrderTrackingCode).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getOrders', function() { + it('should call getOrders successfully', function(done) { + // TODO: uncomment, update parameter values for getOrders call and complete the assertions + /* + var opts = {}; + opts.physicalRestaurantId = [3.4]; + opts.state = ["state_example"]; + opts.from = new Date("2013-10-20T19:20:30+01:00"); + opts.to = new Date("2013-10-20T19:20:30+01:00"); + opts.page = 56; + opts.limit = 56; + + instance.getOrders(opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultOrder); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Order); + expect(data.Store).to.be.a(Flipdish.StoreSummary); + expect(data.Store.Id).to.be.a('number'); + expect(data.Store.Id).to.be(0); + expect(data.Store.Name).to.be.a('string'); + expect(data.Store.Name).to.be(""); + expect(data.Store.MenuId).to.be.a('number'); + expect(data.Store.MenuId).to.be(0); + { + let dataCtr = data.Store.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Store.Currency).to.be.a('string'); + expect(data.Store.Currency).to.be("EUR"); + expect(data.Store.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Store.Coordinates.Latitude).to.be.a('number'); + expect(data.Store.Coordinates.Latitude).to.be(0.0); + expect(data.Store.Coordinates.Longitude).to.be.a('number'); + expect(data.Store.Coordinates.Longitude).to.be(0.0); + expect(data.Store.StoreTimezone).to.be.a('string'); + expect(data.Store.StoreTimezone).to.be(""); + expect(data.Store.StoreGroupId).to.be.a('number'); + expect(data.Store.StoreGroupId).to.be(0); + expect(data.Customer).to.be.a(Flipdish.CustomerSummary); + expect(data.Customer.Id).to.be.a('number'); + expect(data.Customer.Id).to.be(0); + expect(data.Customer.Name).to.be.a('string'); + expect(data.Customer.Name).to.be(""); + expect(data.Customer.EmailAddress).to.be.a('string'); + expect(data.Customer.EmailAddress).to.be(""); + expect(data.Customer.PhoneNumberLocalFormat).to.be.a('string'); + expect(data.Customer.PhoneNumberLocalFormat).to.be(""); + expect(data.Customer.PhoneNumber).to.be.a('string'); + expect(data.Customer.PhoneNumber).to.be(""); + expect(data.Voucher).to.be.a(Flipdish.OrderVoucherSummary); + expect(data.Voucher.Name).to.be.a('string'); + expect(data.Voucher.Name).to.be(""); + expect(data.Voucher.Description).to.be.a('string'); + expect(data.Voucher.Description).to.be(""); + expect(data.Voucher.Code).to.be.a('string'); + expect(data.Voucher.Code).to.be(""); + expect(data.Voucher.Amount).to.be.a('number'); + expect(data.Voucher.Amount).to.be(0.0); + expect(data.Voucher.Type).to.be.a('string'); + expect(data.Voucher.Type).to.be("PercentageDiscount"); + expect(data.Voucher.SubType).to.be.a('string'); + expect(data.Voucher.SubType).to.be("None"); + expect(data.Fees).to.be.a(Flipdish.FeeSummary); + expect(data.Fees.FeeAmount).to.be.a('number'); + expect(data.Fees.FeeAmount).to.be(0.0); + expect(data.Fees.PercentageRate).to.be.a('number'); + expect(data.Fees.PercentageRate).to.be(0.0); + expect(data.Fees.PerTransactionFee).to.be.a('number'); + expect(data.Fees.PerTransactionFee).to.be(0.0); + { + let dataCtr = data.OrderItems; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItem); + { + let dataCtr = data.OrderItemOptions; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderItemOption); + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemOptionPublicId).to.be.a('string'); + expect(data.MenuItemOptionPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuItemOptionId).to.be.a('number'); + expect(data.MenuItemOptionId).to.be(0); + expect(data.IsMasterOptionSetItem).to.be.a('boolean'); + expect(data.IsMasterOptionSetItem).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.MenuItemOptionDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionDisplayOrder).to.be(0); + expect(data.MenuItemOptionSetDisplayOrder).to.be.a('number'); + expect(data.MenuItemOptionSetDisplayOrder).to.be(0); + + } + } + { + let dataCtr = data.Metadata; + expect(dataCtr).to.be.an(Object); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.MenuItemPublicId).to.be.a('string'); + expect(data.MenuItemPublicId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.MenuSectionName).to.be.a('string'); + expect(data.MenuSectionName).to.be(""); + expect(data.MenuSectionDisplayOrder).to.be.a('number'); + expect(data.MenuSectionDisplayOrder).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.Price).to.be.a('number'); + expect(data.Price).to.be(0.0); + expect(data.PriceIncludingOptionSetItems).to.be.a('number'); + expect(data.PriceIncludingOptionSetItems).to.be(0.0); + expect(data.MenuItemId).to.be.a('number'); + expect(data.MenuItemId).to.be(0); + expect(data.MenuItemDisplayOrder).to.be.a('number'); + expect(data.MenuItemDisplayOrder).to.be(0); + expect(data.IsAvailable).to.be.a('boolean'); + expect(data.IsAvailable).to.be(false); + + } + } + expect(data.DeliveryLocation).to.be.a(Flipdish.DeliveryLocation); + expect(data.DeliveryLocation.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.DeliveryLocation.Coordinates.Latitude).to.be.a('number'); + expect(data.DeliveryLocation.Coordinates.Latitude).to.be(0.0); + expect(data.DeliveryLocation.Coordinates.Longitude).to.be.a('number'); + expect(data.DeliveryLocation.Coordinates.Longitude).to.be(0.0); + expect(data.DeliveryLocation.Building).to.be.a('string'); + expect(data.DeliveryLocation.Building).to.be(""); + expect(data.DeliveryLocation.Street).to.be.a('string'); + expect(data.DeliveryLocation.Street).to.be(""); + expect(data.DeliveryLocation.Town).to.be.a('string'); + expect(data.DeliveryLocation.Town).to.be(""); + expect(data.DeliveryLocation.PostCode).to.be.a('string'); + expect(data.DeliveryLocation.PostCode).to.be(""); + expect(data.DeliveryLocation.DeliveryInstructions).to.be.a('string'); + expect(data.DeliveryLocation.DeliveryInstructions).to.be(""); + expect(data.DeliveryLocation.PrettyAddressString).to.be.a('string'); + expect(data.DeliveryLocation.PrettyAddressString).to.be(""); + expect(data.CustomerLocation).to.be.a(Flipdish.Coordinates); + expect(data.CustomerLocation.Latitude).to.be.a('number'); + expect(data.CustomerLocation.Latitude).to.be(0.0); + expect(data.CustomerLocation.Longitude).to.be.a('number'); + expect(data.CustomerLocation.Longitude).to.be(0.0); + expect(data.MaskedPhoneNumber).to.be.a(Flipdish.MaskedPhoneNumber); + expect(data.MaskedPhoneNumber.IsEnabled).to.be.a('boolean'); + expect(data.MaskedPhoneNumber.IsEnabled).to.be(false); + expect(data.MaskedPhoneNumber.PhoneNumber).to.be.a('string'); + expect(data.MaskedPhoneNumber.PhoneNumber).to.be(""); + expect(data.MaskedPhoneNumber.Code).to.be.a('string'); + expect(data.MaskedPhoneNumber.Code).to.be(""); + expect(data.DropOffLocationId).to.be.a('number'); + expect(data.DropOffLocationId).to.be(0); + expect(data.DropOffLocation).to.be.a('string'); + expect(data.DropOffLocation).to.be(""); + expect(data.AcceptedFor).to.be.a(Date); + expect(data.AcceptedFor).to.be(new Date()); + expect(data.InFraudZone).to.be.a('boolean'); + expect(data.InFraudZone).to.be(false); + expect(data.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.UnusualHighValueOrder).to.be(false); + expect(data.RejectedByUserId).to.be.a('number'); + expect(data.RejectedByUserId).to.be(0); + expect(data.OrderId).to.be.a('number'); + expect(data.OrderId).to.be(0); + expect(data.LocalOrderId).to.be.a('string'); + expect(data.LocalOrderId).to.be(""); + expect(data.DeliveryType).to.be.a('string'); + expect(data.DeliveryType).to.be("Delivery"); + expect(data.PickupLocationType).to.be.a('string'); + expect(data.PickupLocationType).to.be("TakeOut"); + expect(data.TableServiceCatagory).to.be.a('string'); + expect(data.TableServiceCatagory).to.be("Generic"); + expect(data.TipAmount).to.be.a('number'); + expect(data.TipAmount).to.be(0.0); + expect(data.DeliveryAmount).to.be.a('number'); + expect(data.DeliveryAmount).to.be(0.0); + expect(data.OrderItemsAmount).to.be.a('number'); + expect(data.OrderItemsAmount).to.be(0.0); + expect(data.Amount).to.be.a('number'); + expect(data.Amount).to.be(0.0); + expect(data.ProcessingFee).to.be.a('number'); + expect(data.ProcessingFee).to.be(0.0); + expect(data.PaymentAccountType).to.be.a('string'); + expect(data.PaymentAccountType).to.be("Card"); + expect(data.PaymentAccountDescription).to.be.a('string'); + expect(data.PaymentAccountDescription).to.be(""); + expect(data.OrderState).to.be.a('string'); + expect(data.OrderState).to.be("Created"); + expect(data.IsPreOrder).to.be.a('boolean'); + expect(data.IsPreOrder).to.be(false); + expect(data.PlacedTime).to.be.a(Date); + expect(data.PlacedTime).to.be(new Date()); + expect(data.RequestedForTime).to.be.a(Date); + expect(data.RequestedForTime).to.be(new Date()); + expect(data.ChefNote).to.be.a('string'); + expect(data.ChefNote).to.be(""); + expect(data.AppType).to.be.a('string'); + expect(data.AppType).to.be("Unknown"); + expect(data.UserRating).to.be.a('number'); + expect(data.UserRating).to.be(0); + expect(data.PaymentStatus).to.be.a('string'); + expect(data.PaymentStatus).to.be("Paid"); + expect(data.RejectionReason).to.be.a('string'); + expect(data.RejectionReason).to.be("TooBusy"); + expect(data.RefundedAmount).to.be.a('number'); + expect(data.RefundedAmount).to.be(0.0); + expect(data.DeliveryTrackingStatus).to.be.a('string'); + expect(data.DeliveryTrackingStatus).to.be("Unassigned"); + expect(data.DriverId).to.be.a('number'); + expect(data.DriverId).to.be(0); + expect(data.TotalTax).to.be.a('number'); + expect(data.TotalTax).to.be(0.0); + expect(data.OrderTrackingCode).to.be.a('string'); + expect(data.OrderTrackingCode).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getOrdersSummary', function() { + it('should call getOrdersSummary successfully', function(done) { + // TODO: uncomment, update parameter values for getOrdersSummary call and complete the assertions + /* + var appId = "appId_example"; + var opts = {}; + opts.searchQuery = "searchQuery_example"; + opts.physicalRestaurantId = [3.4]; + opts.state = ["state_example"]; + opts.page = 56; + opts.limit = 56; + opts.orderByRequestedForTime = true; + + instance.getOrdersSummary(appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultOrderSummary); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.OrderSummary); + expect(data.OrderId).to.be.a('number'); + expect(data.OrderId).to.be(0); + expect(data.DeliveryType).to.be.a('string'); + expect(data.DeliveryType).to.be("Delivery"); + expect(data.PickupLocationType).to.be.a('string'); + expect(data.PickupLocationType).to.be("TakeOut"); + expect(data.TableServiceCatagory).to.be.a('string'); + expect(data.TableServiceCatagory).to.be("Generic"); + expect(data.OrderState).to.be.a('string'); + expect(data.OrderState).to.be("Created"); + expect(data.RequestedForTime).to.be.a(Date); + expect(data.RequestedForTime).to.be(new Date()); + expect(data.StoreName).to.be.a('string'); + expect(data.StoreName).to.be(""); + expect(data.StoreIanaTimeZone).to.be.a('string'); + expect(data.StoreIanaTimeZone).to.be(""); + expect(data.CustomerName).to.be.a('string'); + expect(data.CustomerName).to.be(""); + expect(data.CustomerPhoneNumber).to.be.a('string'); + expect(data.CustomerPhoneNumber).to.be(""); + expect(data.Amount).to.be.a('number'); + expect(data.Amount).to.be(0.0); + expect(data.RefundedAmount).to.be.a('number'); + expect(data.RefundedAmount).to.be(0.0); + expect(data.PaymentAccountType).to.be.a('string'); + expect(data.PaymentAccountType).to.be("Card"); + expect(data.PaymentStatus).to.be.a('string'); + expect(data.PaymentStatus).to.be("Paid"); + expect(data.Currency).to.be.a('string'); + expect(data.Currency).to.be("EUR"); + expect(data.AppType).to.be.a('string'); + expect(data.AppType).to.be("Unknown"); + expect(data.LocalOrderId).to.be.a('string'); + expect(data.LocalOrderId).to.be(""); + expect(data.DropOffLocationId).to.be.a('number'); + expect(data.DropOffLocationId).to.be(0); + expect(data.DropOffLocation).to.be.a('string'); + expect(data.DropOffLocation).to.be(""); + expect(data.AcceptedFor).to.be.a(Date); + expect(data.AcceptedFor).to.be(new Date()); + expect(data.InFraudZone).to.be.a('boolean'); + expect(data.InFraudZone).to.be(false); + expect(data.UnusualHighValueOrder).to.be.a('boolean'); + expect(data.UnusualHighValueOrder).to.be(false); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('refundOrder', function() { + it('should call refundOrder successfully', function(done) { + // TODO: uncomment, update parameter values for refundOrder call + /* + var id = 56; + var refundObject = new Flipdish.Refund(); + refundObject.RefundReason = ""; + refundObject.RefundAmount = 0.0; + refundObject.NotifyCustomer = false; + + instance.refundOrder(id, refundObject, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('rejectOrder', function() { + it('should call rejectOrder successfully', function(done) { + // TODO: uncomment, update parameter values for rejectOrder call + /* + var id = 56; + var rejectObject = new Flipdish.Reject(); + rejectObject.RejectReason = "TooBusy"; + rejectObject.DoNotNotifyCustomer = false; + + instance.rejectOrder(id, rejectObject, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); }); }); diff --git a/test/api/PaymentsApi.spec.js b/test/api/PaymentsApi.spec.js new file mode 100644 index 00000000..42b40098 --- /dev/null +++ b/test/api/PaymentsApi.spec.js @@ -0,0 +1,67 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('PaymentsApi', function() { + describe('getOrderPaymentInformation', function() { + it('should call getOrderPaymentInformation successfully', function(done) { + // TODO: uncomment, update parameter values for getOrderPaymentInformation call and complete the assertions + /* + var orderId = 56; + + instance.getOrderPaymentInformation(orderId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultOrderPaymentInformation); + expect(data.Data).to.be.a(Flipdish.OrderPaymentInformation); + expect(data.Data.OrderId).to.be.a('number'); + expect(data.Data.OrderId).to.be(0); + expect(data.Data.PaymentRefundable).to.be.a('boolean'); + expect(data.Data.PaymentRefundable).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/PayoutsApi.spec.js b/test/api/PayoutsApi.spec.js new file mode 100644 index 00000000..0e24563f --- /dev/null +++ b/test/api/PayoutsApi.spec.js @@ -0,0 +1,713 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('PayoutsApi', function() { + describe('exportPayoutChargebacks', function() { + it('should call exportPayoutChargebacks successfully', function(done) { + // TODO: uncomment, update parameter values for exportPayoutChargebacks call and complete the assertions + /* + var appId = "appId_example"; + var bankAccountId = 56; + var payoutId = 56; + var opts = {}; + opts.storeIds = [3.4]; + + instance.exportPayoutChargebacks(appId, bankAccountId, payoutId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a('string'); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('exportPayoutOrders', function() { + it('should call exportPayoutOrders successfully', function(done) { + // TODO: uncomment, update parameter values for exportPayoutOrders call and complete the assertions + /* + var appId = "appId_example"; + var bankAccountId = 56; + var payoutId = 56; + var opts = {}; + opts.storeIds = [3.4]; + + instance.exportPayoutOrders(appId, bankAccountId, payoutId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a('string'); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('exportPayoutOtherCharges', function() { + it('should call exportPayoutOtherCharges successfully', function(done) { + // TODO: uncomment, update parameter values for exportPayoutOtherCharges call and complete the assertions + /* + var appId = "appId_example"; + var bankAccountId = 56; + var payoutId = 56; + var opts = {}; + opts.storeIds = [3.4]; + + instance.exportPayoutOtherCharges(appId, bankAccountId, payoutId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a('string'); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('exportPayoutRefunds', function() { + it('should call exportPayoutRefunds successfully', function(done) { + // TODO: uncomment, update parameter values for exportPayoutRefunds call and complete the assertions + /* + var appId = "appId_example"; + var bankAccountId = 56; + var payoutId = 56; + var opts = {}; + opts.storeIds = [3.4]; + + instance.exportPayoutRefunds(appId, bankAccountId, payoutId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a('string'); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('exportPayoutStores', function() { + it('should call exportPayoutStores successfully', function(done) { + // TODO: uncomment, update parameter values for exportPayoutStores call and complete the assertions + /* + var appId = "appId_example"; + var bankAccountId = 56; + var payoutId = 56; + var opts = {}; + opts.storeIds = [3.4]; + + instance.exportPayoutStores(appId, bankAccountId, payoutId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a('string'); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getPayout', function() { + it('should call getPayout successfully', function(done) { + // TODO: uncomment, update parameter values for getPayout call and complete the assertions + /* + var appId = "appId_example"; + var bankAccountId = 56; + var payoutId = 56; + + instance.getPayout(appId, bankAccountId, payoutId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.PayoutDetail); + expect(data.PayoutId).to.be.a('number'); + expect(data.PayoutId).to.be(0); + expect(data.BankAccountId).to.be.a('number'); + expect(data.BankAccountId).to.be(0); + expect(data.AccountName).to.be.a('string'); + expect(data.AccountName).to.be(""); + expect(data.PayoutStatus).to.be.a('string'); + expect(data.PayoutStatus).to.be("Pending"); + expect(data.CreatedDate).to.be.a(Date); + expect(data.CreatedDate).to.be(new Date()); + expect(data.PeriodStartTime).to.be.a(Date); + expect(data.PeriodStartTime).to.be(new Date()); + expect(data.PeriodEndTime).to.be.a(Date); + expect(data.PeriodEndTime).to.be(new Date()); + expect(data.DestinationBank).to.be.a('string'); + expect(data.DestinationBank).to.be(""); + expect(data.DestinationAccount).to.be.a('string'); + expect(data.DestinationAccount).to.be(""); + expect(data.PayoutType).to.be.a('string'); + expect(data.PayoutType).to.be("Internal"); + expect(data.Currency).to.be.a('string'); + expect(data.Currency).to.be("EUR"); + { + let dataCtr = data.PayoutStores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PayoutStore); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreName).to.be.a('string'); + expect(data.StoreName).to.be(""); + expect(data.Amount).to.be.a('number'); + expect(data.Amount).to.be(0.0); + expect(data.OnlineRevenue).to.be.a(Flipdish.RevenueDetail); + expect(data.OnlineRevenue.OnlineSalesAmount).to.be.a('number'); + expect(data.OnlineRevenue.OnlineSalesAmount).to.be(0.0); + expect(data.OnlineRevenue.OnlineSalesTax).to.be.a('number'); + expect(data.OnlineRevenue.OnlineSalesTax).to.be(0.0); + expect(data.OnlineRevenue.OnlineSalesIncludingTax).to.be.a('number'); + expect(data.OnlineRevenue.OnlineSalesIncludingTax).to.be(0.0); + expect(data.OnlineRevenue.OnlineSalesFeesBaseAmount).to.be.a('number'); + expect(data.OnlineRevenue.OnlineSalesFeesBaseAmount).to.be(0.0); + expect(data.OnlineRevenue.CashSalesAmount).to.be.a('number'); + expect(data.OnlineRevenue.CashSalesAmount).to.be(0.0); + expect(data.OnlineRevenue.CashSalesTax).to.be.a('number'); + expect(data.OnlineRevenue.CashSalesTax).to.be(0.0); + expect(data.OnlineRevenue.CashSalesIncludingTax).to.be.a('number'); + expect(data.OnlineRevenue.CashSalesIncludingTax).to.be(0.0); + expect(data.OnlineRevenue.CashSalesFeesBaseAmount).to.be.a('number'); + expect(data.OnlineRevenue.CashSalesFeesBaseAmount).to.be(0.0); + expect(data.OnlineRevenue.TotalSalesIncludingTax).to.be.a('number'); + expect(data.OnlineRevenue.TotalSalesIncludingTax).to.be(0.0); + expect(data.OnlineRevenue.OnlineSalesDeliveryCharges).to.be.a('number'); + expect(data.OnlineRevenue.OnlineSalesDeliveryCharges).to.be(0.0); + expect(data.OnlineRevenue.OnlineSalesTips).to.be.a('number'); + expect(data.OnlineRevenue.OnlineSalesTips).to.be(0.0); + expect(data.OnlineRevenue.TotalOnlineRevenue).to.be.a('number'); + expect(data.OnlineRevenue.TotalOnlineRevenue).to.be(0.0); + expect(data.Revenue).to.be.a(Flipdish.RevenueDetail); + expect(data.Revenue.OnlineSalesAmount).to.be.a('number'); + expect(data.Revenue.OnlineSalesAmount).to.be(0.0); + expect(data.Revenue.OnlineSalesTax).to.be.a('number'); + expect(data.Revenue.OnlineSalesTax).to.be(0.0); + expect(data.Revenue.OnlineSalesIncludingTax).to.be.a('number'); + expect(data.Revenue.OnlineSalesIncludingTax).to.be(0.0); + expect(data.Revenue.OnlineSalesFeesBaseAmount).to.be.a('number'); + expect(data.Revenue.OnlineSalesFeesBaseAmount).to.be(0.0); + expect(data.Revenue.CashSalesAmount).to.be.a('number'); + expect(data.Revenue.CashSalesAmount).to.be(0.0); + expect(data.Revenue.CashSalesTax).to.be.a('number'); + expect(data.Revenue.CashSalesTax).to.be(0.0); + expect(data.Revenue.CashSalesIncludingTax).to.be.a('number'); + expect(data.Revenue.CashSalesIncludingTax).to.be(0.0); + expect(data.Revenue.CashSalesFeesBaseAmount).to.be.a('number'); + expect(data.Revenue.CashSalesFeesBaseAmount).to.be(0.0); + expect(data.Revenue.TotalSalesIncludingTax).to.be.a('number'); + expect(data.Revenue.TotalSalesIncludingTax).to.be(0.0); + expect(data.Revenue.OnlineSalesDeliveryCharges).to.be.a('number'); + expect(data.Revenue.OnlineSalesDeliveryCharges).to.be(0.0); + expect(data.Revenue.OnlineSalesTips).to.be.a('number'); + expect(data.Revenue.OnlineSalesTips).to.be(0.0); + expect(data.Revenue.TotalOnlineRevenue).to.be.a('number'); + expect(data.Revenue.TotalOnlineRevenue).to.be(0.0); + expect(data.RevenueAdjustments).to.be.a(Flipdish.RevenueAdjustmentsDetails); + expect(data.RevenueAdjustments.OnlineSalesRefundedAmount).to.be.a('number'); + expect(data.RevenueAdjustments.OnlineSalesRefundedAmount).to.be(0.0); + expect(data.RevenueAdjustments.CashSalesRefundedAmount).to.be.a('number'); + expect(data.RevenueAdjustments.CashSalesRefundedAmount).to.be(0.0); + expect(data.RevenueAdjustments.CustomerCashFees).to.be.a('number'); + expect(data.RevenueAdjustments.CustomerCashFees).to.be(0.0); + expect(data.RevenueAdjustments.RefundsCount).to.be.a('number'); + expect(data.RevenueAdjustments.RefundsCount).to.be(0); + expect(data.RevenueAdjustments.TotalOnlineRevenueAdjustments).to.be.a('number'); + expect(data.RevenueAdjustments.TotalOnlineRevenueAdjustments).to.be(0.0); + expect(data.FlipdishFees).to.be.a(Flipdish.FlipdishFeesDetails); + expect(data.FlipdishFees.OnlineSalesFees).to.be.a('number'); + expect(data.FlipdishFees.OnlineSalesFees).to.be(0.0); + expect(data.FlipdishFees.CashSalesFees).to.be.a('number'); + expect(data.FlipdishFees.CashSalesFees).to.be(0.0); + expect(data.FlipdishFees.TotalSalesFees).to.be.a('number'); + expect(data.FlipdishFees.TotalSalesFees).to.be(0.0); + expect(data.FlipdishFees.OnlineSalesRefundedFees).to.be.a('number'); + expect(data.FlipdishFees.OnlineSalesRefundedFees).to.be(0.0); + expect(data.FlipdishFees.CashSalesRefundedFees).to.be.a('number'); + expect(data.FlipdishFees.CashSalesRefundedFees).to.be(0.0); + expect(data.FlipdishFees.SalesFeesVat).to.be.a('number'); + expect(data.FlipdishFees.SalesFeesVat).to.be(0.0); + expect(data.FlipdishFees.TotalFees).to.be.a('number'); + expect(data.FlipdishFees.TotalFees).to.be(0.0); + expect(data.Chargebacks).to.be.a(Flipdish.ChargebackDetails); + expect(data.Chargebacks.ChargebackAmount).to.be.a('number'); + expect(data.Chargebacks.ChargebackAmount).to.be(0.0); + expect(data.Chargebacks.ChargebackRefundedFees).to.be.a('number'); + expect(data.Chargebacks.ChargebackRefundedFees).to.be(0.0); + expect(data.Chargebacks.ChargebacksCount).to.be.a('number'); + expect(data.Chargebacks.ChargebacksCount).to.be(0); + expect(data.Chargebacks.TotalChargebackCost).to.be.a('number'); + expect(data.Chargebacks.TotalChargebackCost).to.be(0.0); + expect(data.OtherCharges).to.be.a(Flipdish.OtherChargesDetails); + expect(data.OtherCharges.TotalOtherCharges).to.be.a('number'); + expect(data.OtherCharges.TotalOtherCharges).to.be(0.0); + expect(data.OtherCharges.ChargesCount).to.be.a('number'); + expect(data.OtherCharges.ChargesCount).to.be(0); + expect(data.Balance).to.be.a(Flipdish.BalanceDetails); + expect(data.Balance.OpeningBalance).to.be.a('number'); + expect(data.Balance.OpeningBalance).to.be(0.0); + expect(data.Balance.ClosingBalance).to.be.a('number'); + expect(data.Balance.ClosingBalance).to.be(0.0); + + } + } + expect(data.Amount).to.be.a('number'); + expect(data.Amount).to.be(0.0); + expect(data.CutoffDate).to.be.a(Date); + expect(data.CutoffDate).to.be(new Date()); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getPayoutChargebacks', function() { + it('should call getPayoutChargebacks successfully', function(done) { + // TODO: uncomment, update parameter values for getPayoutChargebacks call and complete the assertions + /* + var appId = "appId_example"; + var bankAccountId = 56; + var payoutId = 56; + var opts = {}; + opts.page = 56; + opts.limit = 56; + opts.storeIds = [3.4]; + + instance.getPayoutChargebacks(appId, bankAccountId, payoutId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultPayoutChargeback); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PayoutChargeback); + expect(data.OrderId).to.be.a('number'); + expect(data.OrderId).to.be(0); + expect(data.OrderCurrency).to.be.a('string'); + expect(data.OrderCurrency).to.be("EUR"); + expect(data.PayoutId).to.be.a('number'); + expect(data.PayoutId).to.be(0); + expect(data.OrderDate).to.be.a(Date); + expect(data.OrderDate).to.be(new Date()); + expect(data.OrderType).to.be.a('string'); + expect(data.OrderType).to.be("Cash"); + expect(data.ChargebackDate).to.be.a(Date); + expect(data.ChargebackDate).to.be(new Date()); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.ChargebackAmount).to.be.a('number'); + expect(data.ChargebackAmount).to.be(0.0); + expect(data.RefundedFees).to.be.a('number'); + expect(data.RefundedFees).to.be(0.0); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getPayoutOrders', function() { + it('should call getPayoutOrders successfully', function(done) { + // TODO: uncomment, update parameter values for getPayoutOrders call and complete the assertions + /* + var appId = "appId_example"; + var bankAccountId = 56; + var payoutId = 56; + var opts = {}; + opts.page = 56; + opts.limit = 56; + opts.storeIds = [3.4]; + + instance.getPayoutOrders(appId, bankAccountId, payoutId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultPayoutOrder); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PayoutOrder); + expect(data.OrderId).to.be.a('number'); + expect(data.OrderId).to.be(0); + expect(data.PayoutId).to.be.a('number'); + expect(data.PayoutId).to.be(0); + expect(data.OrderDate).to.be.a(Date); + expect(data.OrderDate).to.be(new Date()); + expect(data.OrderType).to.be.a('string'); + expect(data.OrderType).to.be("Cash"); + expect(data.OrderCurrency).to.be.a('string'); + expect(data.OrderCurrency).to.be("EUR"); + expect(data.Sales).to.be.a('number'); + expect(data.Sales).to.be(0.0); + expect(data.SalesTax).to.be.a('number'); + expect(data.SalesTax).to.be(0.0); + expect(data.DeliveryCharges).to.be.a('number'); + expect(data.DeliveryCharges).to.be(0.0); + expect(data.Tips).to.be.a('number'); + expect(data.Tips).to.be(0.0); + expect(data.Voucher).to.be.a('number'); + expect(data.Voucher).to.be(0.0); + expect(data.FlatFeeExcludingVat).to.be.a('number'); + expect(data.FlatFeeExcludingVat).to.be(0.0); + expect(data.FlatFeeExcludingVAT).to.be.a('number'); + expect(data.FlatFeeExcludingVAT).to.be(0.0); + expect(data.PercentageFeeExcludingVat).to.be.a('number'); + expect(data.PercentageFeeExcludingVat).to.be(0.0); + expect(data.PercentageFeeExcludingVAT).to.be.a('number'); + expect(data.PercentageFeeExcludingVAT).to.be(0.0); + expect(data.Vat).to.be.a('number'); + expect(data.Vat).to.be(0.0); + expect(data.TotalFees).to.be.a('number'); + expect(data.TotalFees).to.be(0.0); + expect(data.CashFeeChargedToCustomer).to.be.a('number'); + expect(data.CashFeeChargedToCustomer).to.be(0.0); + expect(data.NetSales).to.be.a('number'); + expect(data.NetSales).to.be(0.0); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getPayoutOtherCharges', function() { + it('should call getPayoutOtherCharges successfully', function(done) { + // TODO: uncomment, update parameter values for getPayoutOtherCharges call and complete the assertions + /* + var appId = "appId_example"; + var bankAccountId = 56; + var payoutId = 56; + var opts = {}; + opts.page = 56; + opts.limit = 56; + opts.storeIds = [3.4]; + + instance.getPayoutOtherCharges(appId, bankAccountId, payoutId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultPayoutOtherCharge); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PayoutOtherCharge); + expect(data.ChargeId).to.be.a('number'); + expect(data.ChargeId).to.be(0); + expect(data.Amount).to.be.a('number'); + expect(data.Amount).to.be(0.0); + expect(data.Currency).to.be.a('string'); + expect(data.Currency).to.be("EUR"); + expect(data.PayoutId).to.be.a('number'); + expect(data.PayoutId).to.be(0); + expect(data.ChargeDate).to.be.a(Date); + expect(data.ChargeDate).to.be(new Date()); + expect(data.ChargeType).to.be.a('string'); + expect(data.ChargeType).to.be("Other"); + expect(data.ChargeDescription).to.be.a('string'); + expect(data.ChargeDescription).to.be(""); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getPayoutRefunds', function() { + it('should call getPayoutRefunds successfully', function(done) { + // TODO: uncomment, update parameter values for getPayoutRefunds call and complete the assertions + /* + var appId = "appId_example"; + var bankAccountId = 56; + var payoutId = 56; + var opts = {}; + opts.page = 56; + opts.limit = 56; + opts.storeIds = [3.4]; + + instance.getPayoutRefunds(appId, bankAccountId, payoutId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultPayoutRefund); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PayoutRefund); + expect(data.OrderId).to.be.a('number'); + expect(data.OrderId).to.be(0); + expect(data.OrderCurrency).to.be.a('string'); + expect(data.OrderCurrency).to.be("EUR"); + expect(data.PayoutId).to.be.a('number'); + expect(data.PayoutId).to.be(0); + expect(data.OrderDate).to.be.a(Date); + expect(data.OrderDate).to.be(new Date()); + expect(data.OrderType).to.be.a('string'); + expect(data.OrderType).to.be("Cash"); + expect(data.RefundDate).to.be.a(Date); + expect(data.RefundDate).to.be(new Date()); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.TotalRefund).to.be.a('number'); + expect(data.TotalRefund).to.be(0.0); + expect(data.RefundedFees).to.be.a('number'); + expect(data.RefundedFees).to.be(0.0); + expect(data.RefundedAmount).to.be.a('number'); + expect(data.RefundedAmount).to.be(0.0); + expect(data.CashFeeRefundedToCustomer).to.be.a('number'); + expect(data.CashFeeRefundedToCustomer).to.be(0.0); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getPayoutSummaries', function() { + it('should call getPayoutSummaries successfully', function(done) { + // TODO: uncomment, update parameter values for getPayoutSummaries call and complete the assertions + /* + var appId = "appId_example"; + var opts = {}; + opts.bankAccountId = 56; + opts.payeeBankAccountDataId = 56; + opts.startDate = new Date("2013-10-20T19:20:30+01:00"); + opts.endDate = new Date("2013-10-20T19:20:30+01:00"); + opts.status = "status_example"; + + instance.getPayoutSummaries(appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultPayoutSummary); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PayoutSummary); + expect(data.PayoutStatus).to.be.a('string'); + expect(data.PayoutStatus).to.be("Pending"); + expect(data.TotalAmount).to.be.a('number'); + expect(data.TotalAmount).to.be(0.0); + expect(data.Currency).to.be.a('string'); + expect(data.Currency).to.be("EUR"); + expect(data.TotalCount).to.be.a('number'); + expect(data.TotalCount).to.be(0); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getPayouts', function() { + it('should call getPayouts successfully', function(done) { + // TODO: uncomment, update parameter values for getPayouts call and complete the assertions + /* + var appId = "appId_example"; + var opts = {}; + opts.bankAccountId = 56; + opts.payeeBankAccountDataId = 56; + opts.startDate = new Date("2013-10-20T19:20:30+01:00"); + opts.endDate = new Date("2013-10-20T19:20:30+01:00"); + opts.status = "status_example"; + opts.page = 56; + opts.limit = 56; + + instance.getPayouts(appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultPayout); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Payout); + expect(data.PayoutId).to.be.a('number'); + expect(data.PayoutId).to.be(0); + expect(data.PayeeBankAccountId).to.be.a('number'); + expect(data.PayeeBankAccountId).to.be(0); + expect(data.AccountName).to.be.a('string'); + expect(data.AccountName).to.be(""); + expect(data.PayoutStatus).to.be.a('string'); + expect(data.PayoutStatus).to.be("Pending"); + expect(data.CreatedDate).to.be.a(Date); + expect(data.CreatedDate).to.be(new Date()); + expect(data.PeriodStartTime).to.be.a(Date); + expect(data.PeriodStartTime).to.be(new Date()); + expect(data.PeriodEndTime).to.be.a(Date); + expect(data.PeriodEndTime).to.be(new Date()); + expect(data.DestinationBank).to.be.a('string'); + expect(data.DestinationBank).to.be(""); + expect(data.DestinationAccount).to.be.a('string'); + expect(data.DestinationAccount).to.be(""); + expect(data.Amount).to.be.a('number'); + expect(data.Amount).to.be(0.0); + expect(data.PayoutType).to.be.a('string'); + expect(data.PayoutType).to.be("Internal"); + expect(data.Currency).to.be.a('string'); + expect(data.Currency).to.be("EUR"); + expect(data.CutoffDate).to.be.a(Date); + expect(data.CutoffDate).to.be(new Date()); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/ProcessingFeeConfigsApi.spec.js b/test/api/ProcessingFeeConfigsApi.spec.js new file mode 100644 index 00000000..90d8a5b4 --- /dev/null +++ b/test/api/ProcessingFeeConfigsApi.spec.js @@ -0,0 +1,80 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('ProcessingFeeConfigsApi', function() { + describe('getProcessingFeeConfigsByStoreIds', function() { + it('should call getProcessingFeeConfigsByStoreIds successfully', function(done) { + // TODO: uncomment, update parameter values for getProcessingFeeConfigsByStoreIds call and complete the assertions + /* + var storeIds = [3.4]; + + instance.getProcessingFeeConfigsByStoreIds(storeIds, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultProcessingFeeConfig); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.ProcessingFeeConfig); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PaymentAccountType).to.be.a('string'); + expect(data.PaymentAccountType).to.be("Card"); + expect(data.PercentFee).to.be.a('number'); + expect(data.PercentFee).to.be(0.0); + expect(data.FixedFee).to.be.a('number'); + expect(data.FixedFee).to.be(0.0); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/PushNotificationsApi.spec.js b/test/api/PushNotificationsApi.spec.js new file mode 100644 index 00000000..8727cd5e --- /dev/null +++ b/test/api/PushNotificationsApi.spec.js @@ -0,0 +1,184 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('PushNotificationsApi', function() { + describe('deletePushNotification', function() { + it('should call deletePushNotification successfully', function(done) { + // TODO: uncomment, update parameter values for deletePushNotification call + /* + var appId = "appId_example"; + var scheduledPushNotificationId = 56; + + instance.deletePushNotification(appId, scheduledPushNotificationId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getPushNotifications', function() { + it('should call getPushNotifications successfully', function(done) { + // TODO: uncomment, update parameter values for getPushNotifications call and complete the assertions + /* + var appId = "appId_example"; + var opts = {}; + opts.page = 56; + opts.limit = 56; + + instance.getPushNotifications(appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultPushNotificationResponse); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PushNotificationResponse); + expect(data.Sent).to.be.a('boolean'); + expect(data.Sent).to.be(false); + expect(data.ScheduledPushNotificationId).to.be.a('number'); + expect(data.ScheduledPushNotificationId).to.be(0); + expect(data.ScheduledTime).to.be.a(Date); + expect(data.ScheduledTime).to.be(new Date()); + expect(data.Title).to.be.a('string'); + expect(data.Title).to.be(""); + expect(data.Message).to.be.a('string'); + expect(data.Message).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('schedulePushNotification', function() { + it('should call schedulePushNotification successfully', function(done) { + // TODO: uncomment, update parameter values for schedulePushNotification call and complete the assertions + /* + var appId = "appId_example"; + var notification = new Flipdish.PushNotificationRequest(); + notification.ScheduledTime = new Date(); + notification.Title = ""; + notification.Message = ""; + + instance.schedulePushNotification(appId, notification, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultPushNotificationResponse); + expect(data.Data).to.be.a(Flipdish.PushNotificationResponse); + expect(data.Data.Sent).to.be.a('boolean'); + expect(data.Data.Sent).to.be(false); + expect(data.Data.ScheduledPushNotificationId).to.be.a('number'); + expect(data.Data.ScheduledPushNotificationId).to.be(0); + expect(data.Data.ScheduledTime).to.be.a(Date); + expect(data.Data.ScheduledTime).to.be(new Date()); + expect(data.Data.Title).to.be.a('string'); + expect(data.Data.Title).to.be(""); + expect(data.Data.Message).to.be.a('string'); + expect(data.Data.Message).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updatePushNotification', function() { + it('should call updatePushNotification successfully', function(done) { + // TODO: uncomment, update parameter values for updatePushNotification call and complete the assertions + /* + var appId = "appId_example"; + var scheduledPushNotificationId = 56; + var notification = new Flipdish.PushNotificationRequest(); + notification.ScheduledTime = new Date(); + notification.Title = ""; + notification.Message = ""; + + instance.updatePushNotification(appId, scheduledPushNotificationId, notification, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultPushNotificationResponse); + expect(data.Data).to.be.a(Flipdish.PushNotificationResponse); + expect(data.Data.Sent).to.be.a('boolean'); + expect(data.Data.Sent).to.be(false); + expect(data.Data.ScheduledPushNotificationId).to.be.a('number'); + expect(data.Data.ScheduledPushNotificationId).to.be(0); + expect(data.Data.ScheduledTime).to.be.a(Date); + expect(data.Data.ScheduledTime).to.be(new Date()); + expect(data.Data.Title).to.be.a('string'); + expect(data.Data.Title).to.be(""); + expect(data.Data.Message).to.be.a('string'); + expect(data.Data.Message).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/StoreGroupsApi.spec.js b/test/api/StoreGroupsApi.spec.js new file mode 100644 index 00000000..b68947c2 --- /dev/null +++ b/test/api/StoreGroupsApi.spec.js @@ -0,0 +1,291 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('StoreGroupsApi', function() { + describe('createStoreGroup', function() { + it('should call createStoreGroup successfully', function(done) { + // TODO: uncomment, update parameter values for createStoreGroup call and complete the assertions + /* + var appNameId = "appNameId_example"; + var storeGroup = new Flipdish.StoreGroupBase(); + storeGroup.Name = ""; + storeGroup.Currency = "EUR"; + + instance.createStoreGroup(appNameId, storeGroup, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStoreGroup); + expect(data.Data).to.be.a(Flipdish.StoreGroup); + expect(data.Data.StoreGroupId).to.be.a('number'); + expect(data.Data.StoreGroupId).to.be(0); + expect(data.Data.GeneralRating).to.be.a('number'); + expect(data.Data.GeneralRating).to.be(0.0); + expect(data.Data.GeneralRatingCount).to.be.a('number'); + expect(data.Data.GeneralRatingCount).to.be(0); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.Currency).to.be.a('string'); + expect(data.Data.Currency).to.be("EUR"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getStoreGroup', function() { + it('should call getStoreGroup successfully', function(done) { + // TODO: uncomment, update parameter values for getStoreGroup call and complete the assertions + /* + var storeGroupId = 56; + + instance.getStoreGroup(storeGroupId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStoreGroup); + expect(data.Data).to.be.a(Flipdish.StoreGroup); + expect(data.Data.StoreGroupId).to.be.a('number'); + expect(data.Data.StoreGroupId).to.be(0); + expect(data.Data.GeneralRating).to.be.a('number'); + expect(data.Data.GeneralRating).to.be(0.0); + expect(data.Data.GeneralRatingCount).to.be.a('number'); + expect(data.Data.GeneralRatingCount).to.be(0); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.Currency).to.be.a('string'); + expect(data.Data.Currency).to.be("EUR"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getStoreGroups', function() { + it('should call getStoreGroups successfully', function(done) { + // TODO: uncomment, update parameter values for getStoreGroups call and complete the assertions + /* + var appNameId = "appNameId_example"; + var opts = {}; + opts.searchQuery = "searchQuery_example"; + opts.page = 56; + opts.limit = 56; + + instance.getStoreGroups(appNameId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultStoreGroup); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroup); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.GeneralRating).to.be.a('number'); + expect(data.GeneralRating).to.be(0.0); + expect(data.GeneralRatingCount).to.be.a('number'); + expect(data.GeneralRatingCount).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Currency).to.be.a('string'); + expect(data.Currency).to.be("EUR"); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getStoreGroupsExtended', function() { + it('should call getStoreGroupsExtended successfully', function(done) { + // TODO: uncomment, update parameter values for getStoreGroupsExtended call and complete the assertions + /* + var appNameId = "appNameId_example"; + var opts = {}; + opts.searchQuery = "searchQuery_example"; + opts.page = 56; + opts.limit = 56; + opts.groupingRadius = 56; + + instance.getStoreGroupsExtended(appNameId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultStoreGroupExtended); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreGroupExtended); + expect(data.TotalStores).to.be.a('number'); + expect(data.TotalStores).to.be(0); + { + let dataCtr = data.GroupedCoordinates; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.GroupedCoordinates); + expect(data.Latitude).to.be.a('number'); + expect(data.Latitude).to.be(0.0); + expect(data.Longitude).to.be.a('number'); + expect(data.Longitude).to.be(0.0); + expect(data.Count).to.be.a('number'); + expect(data.Count).to.be(0); + + } + } + { + let dataCtr = data.StoreHeaders; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreHeader); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + + } + } + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.GeneralRating).to.be.a('number'); + expect(data.GeneralRating).to.be(0.0); + expect(data.GeneralRatingCount).to.be.a('number'); + expect(data.GeneralRatingCount).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.Currency).to.be.a('string'); + expect(data.Currency).to.be("EUR"); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('removeStoreGroup', function() { + it('should call removeStoreGroup successfully', function(done) { + // TODO: uncomment, update parameter values for removeStoreGroup call + /* + var storeGroupId = 56; + + instance.removeStoreGroup(storeGroupId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateStoreGroup', function() { + it('should call updateStoreGroup successfully', function(done) { + // TODO: uncomment, update parameter values for updateStoreGroup call and complete the assertions + /* + var storeGroupId = 56; + var storeGroup = new Flipdish.StoreGroupBase(); + storeGroup.Name = ""; + storeGroup.Currency = "EUR"; + + instance.updateStoreGroup(storeGroupId, storeGroup, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStoreGroupBase); + expect(data.Data).to.be.a(Flipdish.StoreGroupBase); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.Currency).to.be.a('string'); + expect(data.Data.Currency).to.be("EUR"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/StoreOrderCapacityApi.spec.js b/test/api/StoreOrderCapacityApi.spec.js new file mode 100644 index 00000000..bcc9cd7d --- /dev/null +++ b/test/api/StoreOrderCapacityApi.spec.js @@ -0,0 +1,122 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('StoreOrderCapacityApi', function() { + describe('getStoreOrderCapacity', function() { + it('should call getStoreOrderCapacity successfully', function(done) { + // TODO: uncomment, update parameter values for getStoreOrderCapacity call and complete the assertions + /* + var appId = "appId_example"; + var storeId = 56; + var deliveryType = "deliveryType_example"; + + instance.getStoreOrderCapacity(appId, storeId, deliveryType, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStoreOrderCapacityConfig); + expect(data.Data).to.be.a(Flipdish.StoreOrderCapacityConfig); + expect(data.Data.StoreId).to.be.a('number'); + expect(data.Data.StoreId).to.be(0); + expect(data.Data.DeliveryType).to.be.a('string'); + expect(data.Data.DeliveryType).to.be("Delivery"); + expect(data.Data.StoreIntervalInMinutes).to.be.a('number'); + expect(data.Data.StoreIntervalInMinutes).to.be(0); + { + let dataCtr = data.Data.OrderCapacityPeriods; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreOrderCapacityPeriod); + expect(data.MaxOrderNumberPerStoreInterval).to.be.a('number'); + expect(data.MaxOrderNumberPerStoreInterval).to.be(0); + expect(data.DayOfTheWeek).to.be.a('string'); + expect(data.DayOfTheWeek).to.be("Sunday"); + expect(data.PeriodStartHour).to.be.a('number'); + expect(data.PeriodStartHour).to.be(0); + expect(data.PeriodStartMinutes).to.be.a('number'); + expect(data.PeriodStartMinutes).to.be(0); + expect(data.PeriodEndHour).to.be.a('number'); + expect(data.PeriodEndHour).to.be(0); + expect(data.PeriodEndMinutes).to.be.a('number'); + expect(data.PeriodEndMinutes).to.be(0); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateStoreOrderCapacityConfig', function() { + it('should call updateStoreOrderCapacityConfig successfully', function(done) { + // TODO: uncomment, update parameter values for updateStoreOrderCapacityConfig call + /* + var storeId = 56; + var deliveryType = "deliveryType_example"; + var newOrderCapacityConfig = new Flipdish.StoreOrderCapacityConfigEditModel(); + newOrderCapacityConfig.OrderCapacityPeriods = [new Flipdish.StoreOrderCapacityPeriod()]; + newOrderCapacityConfig.OrderCapacityPeriods[0].MaxOrderNumberPerStoreInterval = 0; + newOrderCapacityConfig.OrderCapacityPeriods[0].DayOfTheWeek = "Sunday"; + newOrderCapacityConfig.OrderCapacityPeriods[0].PeriodStartHour = 0; + newOrderCapacityConfig.OrderCapacityPeriods[0].PeriodStartMinutes = 0; + newOrderCapacityConfig.OrderCapacityPeriods[0].PeriodEndHour = 0; + newOrderCapacityConfig.OrderCapacityPeriods[0].PeriodEndMinutes = 0; + var appId = "appId_example"; + + instance.updateStoreOrderCapacityConfig(storeId, deliveryType, newOrderCapacityConfig, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/StoresApi.spec.js b/test/api/StoresApi.spec.js index 89da9899..b08ecc6b 100644 --- a/test/api/StoresApi.spec.js +++ b/test/api/StoresApi.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -33,41 +33,2510 @@ 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]; - } + describe('(package)', function() { + describe('StoresApi', function() { + describe('archiveStore', function() { + it('should call archiveStore successfully', function(done) { + // TODO: uncomment, update parameter values for archiveStore call + /* + var storeId = 56; - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + instance.archiveStore(storeId, function(error, data, response) { + if (error) { + done(error); + return; + } - describe('StoresApi', function() { - 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(); + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('assignMenu', function() { + it('should call assignMenu successfully', function(done) { + // TODO: uncomment, update parameter values for assignMenu call and complete the assertions + /* + var storeId = 56; + var menuId = 56; + + instance.assignMenu(storeId, menuId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultRestApiDefaultResponse); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RestApiDefaultResponse); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('cloneStore', function() { + it('should call cloneStore successfully', function(done) { + // TODO: uncomment, update parameter values for cloneStore call and complete the assertions + /* + var storeId = 56; + var settings = new Flipdish.StoreCloneSettings(); + settings.TargetStoreGroupId = 0; + + instance.cloneStore(storeId, settings, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStore); + expect(data.Data).to.be.a(Flipdish.Store); + expect(data.Data.StoreId).to.be.a('number'); + expect(data.Data.StoreId).to.be(0); + expect(data.Data.StoreGroupId).to.be.a('number'); + expect(data.Data.StoreGroupId).to.be(0); + expect(data.Data.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Data.Address.AddressId).to.be.a('number'); + expect(data.Data.Address.AddressId).to.be(0); + expect(data.Data.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Data.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Data.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Data.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Data.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Data.Address.Line1).to.be.a('string'); + expect(data.Data.Address.Line1).to.be(""); + expect(data.Data.Address.Postcode).to.be.a('string'); + expect(data.Data.Address.Postcode).to.be(""); + expect(data.Data.Address.City).to.be.a('string'); + expect(data.Data.Address.City).to.be(""); + expect(data.Data.Address.CountryCode).to.be.a('string'); + expect(data.Data.Address.CountryCode).to.be(""); + expect(data.Data.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Data.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Data.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Data.ApmPhoneNumber).to.be.a('string'); + expect(data.Data.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Data.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Data.MenuId).to.be.a('number'); + expect(data.Data.MenuId).to.be(0); + expect(data.Data.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Data.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Data.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Data.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Data.PrintoutLayoutType).to.be.a('string'); + expect(data.Data.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Data.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Data.MicrosoftTimeZone).to.be.a('string'); + expect(data.Data.MicrosoftTimeZone).to.be(""); + expect(data.Data.IanaTimeZone).to.be.a('string'); + expect(data.Data.IanaTimeZone).to.be(""); + expect(data.Data.Currency).to.be.a('string'); + expect(data.Data.Currency).to.be("EUR"); + expect(data.Data.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Data.PreOrderDeliveryEnabled).to.be(false); + expect(data.Data.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Data.PreOrderPickupEnabled).to.be(false); + expect(data.Data.LogoUrl).to.be.a('string'); + expect(data.Data.LogoUrl).to.be(""); + expect(data.Data.PhoneNumber).to.be.a('string'); + expect(data.Data.PhoneNumber).to.be(""); + expect(data.Data.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Data.AlwaysAppearOpen).to.be(false); + expect(data.Data.PreOrderEnabled).to.be.a('boolean'); + expect(data.Data.PreOrderEnabled).to.be(false); + expect(data.Data.TakeOutEnabled).to.be.a('boolean'); + expect(data.Data.TakeOutEnabled).to.be(false); + expect(data.Data.TableServiceEnabled).to.be.a('boolean'); + expect(data.Data.TableServiceEnabled).to.be(false); + expect(data.Data.DineInEnabled).to.be.a('boolean'); + expect(data.Data.DineInEnabled).to.be(false); + expect(data.Data.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Data.AllowPreOrdersAndTableService).to.be(false); + expect(data.Data.PickupEnabled).to.be.a('boolean'); + expect(data.Data.PickupEnabled).to.be(false); + expect(data.Data.DeliveryEnabled).to.be.a('boolean'); + expect(data.Data.DeliveryEnabled).to.be(false); + expect(data.Data.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Data.CardOrderDeliveryEnabled).to.be(false); + expect(data.Data.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Data.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Data.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Data.CardOrdersPickupEnabled).to.be(false); + expect(data.Data.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Data.CashOrdersPickupEnabled).to.be(false); + expect(data.Data.TipsEnabled).to.be.a('boolean'); + expect(data.Data.TipsEnabled).to.be(false); + expect(data.Data.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Data.AutomaticallyAcceptOrders).to.be(false); + expect(data.Data.OpenForDelivery).to.be.a('boolean'); + expect(data.Data.OpenForDelivery).to.be(false); + expect(data.Data.OpenForPickup).to.be.a('boolean'); + expect(data.Data.OpenForPickup).to.be(false); + expect(data.Data.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Data.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Data.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Data.RequireCustomerNameForPickup).to.be(false); + expect(data.Data.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Data.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Data.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Data.RequireCustomerNameForDelivery).to.be(false); + expect(data.Data.AllowChefNotes).to.be.a('boolean'); + expect(data.Data.AllowChefNotes).to.be(false); + expect(data.Data.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Data.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Data.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Data.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Data.IsArchived).to.be.a('boolean'); + expect(data.Data.IsArchived).to.be(false); + expect(data.Data.IsPublished).to.be.a('boolean'); + expect(data.Data.IsPublished).to.be(false); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.EmailAddress).to.be.a('string'); + expect(data.Data.EmailAddress).to.be(""); + expect(data.Data.StaffLanguage).to.be.a('string'); + expect(data.Data.StaffLanguage).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('createBusinessHoursOverrideByStoreId', function() { + it('should call createBusinessHoursOverrideByStoreId successfully', function(done) { + // TODO: uncomment, update parameter values for createBusinessHoursOverrideByStoreId call and complete the assertions + /* + var storeId = 56; + var businessHoursOverride = new Flipdish.BusinessHoursOverrideBase(); + businessHoursOverride.DeliveryType = "Delivery"; + businessHoursOverride.StartTime = new Date(); + businessHoursOverride.EndTime = new Date(); + businessHoursOverride.Type = "Open"; + + instance.createBusinessHoursOverrideByStoreId(storeId, businessHoursOverride, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultBusinessHoursOverride); + expect(data.Data).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.Data.BusinessHoursOverrideId).to.be.a('number'); + expect(data.Data.BusinessHoursOverrideId).to.be(0); + expect(data.Data.DeliveryType).to.be.a('string'); + expect(data.Data.DeliveryType).to.be("Delivery"); + expect(data.Data.StartTime).to.be.a(Date); + expect(data.Data.StartTime).to.be(new Date()); + expect(data.Data.EndTime).to.be.a(Date); + expect(data.Data.EndTime).to.be(new Date()); + expect(data.Data.Type).to.be.a('string'); + expect(data.Data.Type).to.be("Open"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('createStore', function() { + it('should call createStore successfully', function(done) { + // TODO: uncomment, update parameter values for createStore call and complete the assertions + /* + var storeGroupId = 56; + var store = new Flipdish.StoreCreateBase(); + store.Name = ""; + store.EmailAddress = ""; + store.StaffLanguage = ""; + + instance.createStore(storeGroupId, store, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStore); + expect(data.Data).to.be.a(Flipdish.Store); + expect(data.Data.StoreId).to.be.a('number'); + expect(data.Data.StoreId).to.be(0); + expect(data.Data.StoreGroupId).to.be.a('number'); + expect(data.Data.StoreGroupId).to.be(0); + expect(data.Data.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Data.Address.AddressId).to.be.a('number'); + expect(data.Data.Address.AddressId).to.be(0); + expect(data.Data.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Data.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Data.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Data.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Data.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Data.Address.Line1).to.be.a('string'); + expect(data.Data.Address.Line1).to.be(""); + expect(data.Data.Address.Postcode).to.be.a('string'); + expect(data.Data.Address.Postcode).to.be(""); + expect(data.Data.Address.City).to.be.a('string'); + expect(data.Data.Address.City).to.be(""); + expect(data.Data.Address.CountryCode).to.be.a('string'); + expect(data.Data.Address.CountryCode).to.be(""); + expect(data.Data.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Data.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Data.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Data.ApmPhoneNumber).to.be.a('string'); + expect(data.Data.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Data.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Data.MenuId).to.be.a('number'); + expect(data.Data.MenuId).to.be(0); + expect(data.Data.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Data.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Data.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Data.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Data.PrintoutLayoutType).to.be.a('string'); + expect(data.Data.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Data.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Data.MicrosoftTimeZone).to.be.a('string'); + expect(data.Data.MicrosoftTimeZone).to.be(""); + expect(data.Data.IanaTimeZone).to.be.a('string'); + expect(data.Data.IanaTimeZone).to.be(""); + expect(data.Data.Currency).to.be.a('string'); + expect(data.Data.Currency).to.be("EUR"); + expect(data.Data.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Data.PreOrderDeliveryEnabled).to.be(false); + expect(data.Data.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Data.PreOrderPickupEnabled).to.be(false); + expect(data.Data.LogoUrl).to.be.a('string'); + expect(data.Data.LogoUrl).to.be(""); + expect(data.Data.PhoneNumber).to.be.a('string'); + expect(data.Data.PhoneNumber).to.be(""); + expect(data.Data.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Data.AlwaysAppearOpen).to.be(false); + expect(data.Data.PreOrderEnabled).to.be.a('boolean'); + expect(data.Data.PreOrderEnabled).to.be(false); + expect(data.Data.TakeOutEnabled).to.be.a('boolean'); + expect(data.Data.TakeOutEnabled).to.be(false); + expect(data.Data.TableServiceEnabled).to.be.a('boolean'); + expect(data.Data.TableServiceEnabled).to.be(false); + expect(data.Data.DineInEnabled).to.be.a('boolean'); + expect(data.Data.DineInEnabled).to.be(false); + expect(data.Data.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Data.AllowPreOrdersAndTableService).to.be(false); + expect(data.Data.PickupEnabled).to.be.a('boolean'); + expect(data.Data.PickupEnabled).to.be(false); + expect(data.Data.DeliveryEnabled).to.be.a('boolean'); + expect(data.Data.DeliveryEnabled).to.be(false); + expect(data.Data.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Data.CardOrderDeliveryEnabled).to.be(false); + expect(data.Data.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Data.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Data.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Data.CardOrdersPickupEnabled).to.be(false); + expect(data.Data.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Data.CashOrdersPickupEnabled).to.be(false); + expect(data.Data.TipsEnabled).to.be.a('boolean'); + expect(data.Data.TipsEnabled).to.be(false); + expect(data.Data.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Data.AutomaticallyAcceptOrders).to.be(false); + expect(data.Data.OpenForDelivery).to.be.a('boolean'); + expect(data.Data.OpenForDelivery).to.be(false); + expect(data.Data.OpenForPickup).to.be.a('boolean'); + expect(data.Data.OpenForPickup).to.be(false); + expect(data.Data.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Data.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Data.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Data.RequireCustomerNameForPickup).to.be(false); + expect(data.Data.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Data.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Data.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Data.RequireCustomerNameForDelivery).to.be(false); + expect(data.Data.AllowChefNotes).to.be.a('boolean'); + expect(data.Data.AllowChefNotes).to.be(false); + expect(data.Data.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Data.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Data.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Data.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Data.IsArchived).to.be.a('boolean'); + expect(data.Data.IsArchived).to.be(false); + expect(data.Data.IsPublished).to.be.a('boolean'); + expect(data.Data.IsPublished).to.be(false); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.EmailAddress).to.be.a('string'); + expect(data.Data.EmailAddress).to.be(""); + expect(data.Data.StaffLanguage).to.be.a('string'); + expect(data.Data.StaffLanguage).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('deleteBusinessHoursOverride', function() { + it('should call deleteBusinessHoursOverride successfully', function(done) { + // TODO: uncomment, update parameter values for deleteBusinessHoursOverride call and complete the assertions + /* + var storeId = 56; + var businessHoursOverrideId = 56; + + instance.deleteBusinessHoursOverride(storeId, businessHoursOverrideId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultRestApiDefaultResponse); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RestApiDefaultResponse); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getBankAccountForStore', function() { + it('should call getBankAccountForStore successfully', function(done) { + // TODO: uncomment, update parameter values for getBankAccountForStore call and complete the assertions + /* + var storeId = 56; + + instance.getBankAccountForStore(storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultAssignedBankAccount); + expect(data.Data).to.be.a(Flipdish.AssignedBankAccount); + expect(data.Data.Id).to.be.a('number'); + expect(data.Data.Id).to.be(0); + expect(data.Data.BankAccountName).to.be.a('string'); + expect(data.Data.BankAccountName).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getBusinessHours', function() { + it('should call getBusinessHours successfully', function(done) { + // TODO: uncomment, update parameter values for getBusinessHours call and complete the assertions + /* + var storeId = 56; + var deliveryType = "deliveryType_example"; + + instance.getBusinessHours(storeId, deliveryType, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultBusinessHoursPeriod); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getBusinessHoursOverrideByStoreId', function() { + it('should call getBusinessHoursOverrideByStoreId successfully', function(done) { + // TODO: uncomment, update parameter values for getBusinessHoursOverrideByStoreId call and complete the assertions + /* + var storeId = 56; + var opts = {}; + opts.after = new Date("2013-10-20T19:20:30+01:00"); + opts.page = 56; + opts.limit = 56; + + instance.getBusinessHoursOverrideByStoreId(storeId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultBusinessHoursOverride); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursOverride); + expect(data.BusinessHoursOverrideId).to.be.a('number'); + expect(data.BusinessHoursOverrideId).to.be(0); + expect(data.DeliveryType).to.be.a('string'); + expect(data.DeliveryType).to.be("Delivery"); + expect(data.StartTime).to.be.a(Date); + expect(data.StartTime).to.be(new Date()); + expect(data.EndTime).to.be.a(Date); + expect(data.EndTime).to.be(new Date()); + expect(data.Type).to.be.a('string'); + expect(data.Type).to.be("Open"); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getEndOfDayReport', function() { + it('should call getEndOfDayReport successfully', function(done) { + // TODO: uncomment, update parameter values for getEndOfDayReport call and complete the assertions + /* + var storeId = 56; + var opts = {}; + opts._date = new Date("2013-10-20T19:20:30+01:00"); + + instance.getEndOfDayReport(storeId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStoreEndOfDayReport); + expect(data.Data).to.be.a(Flipdish.StoreEndOfDayReport); + expect(data.Data.StoreId).to.be.a('number'); + expect(data.Data.StoreId).to.be(0); + expect(data.Data.StoreName).to.be.a('string'); + expect(data.Data.StoreName).to.be(""); + expect(data.Data.Currency).to.be.a('string'); + expect(data.Data.Currency).to.be("EUR"); + expect(data.Data.OrderCount).to.be.a('number'); + expect(data.Data.OrderCount).to.be(0); + expect(data.Data.OrderValue).to.be.a('number'); + expect(data.Data.OrderValue).to.be(0.0); + expect(data.Data.OrderValueExcludingDeliveryFees).to.be.a('number'); + expect(data.Data.OrderValueExcludingDeliveryFees).to.be(0.0); + expect(data.Data.CollectionOrderCount).to.be.a('number'); + expect(data.Data.CollectionOrderCount).to.be(0); + expect(data.Data.CollectionCashOrderCount).to.be.a('number'); + expect(data.Data.CollectionCashOrderCount).to.be(0); + expect(data.Data.CollectionPaidOnlineOrderCount).to.be.a('number'); + expect(data.Data.CollectionPaidOnlineOrderCount).to.be(0); + expect(data.Data.CollectionOrderValue).to.be.a('number'); + expect(data.Data.CollectionOrderValue).to.be(0.0); + expect(data.Data.CollectionCashOrderValue).to.be.a('number'); + expect(data.Data.CollectionCashOrderValue).to.be(0.0); + expect(data.Data.CollectionPaidOnlineOrderValue).to.be.a('number'); + expect(data.Data.CollectionPaidOnlineOrderValue).to.be(0.0); + expect(data.Data.DeliveryOrderCount).to.be.a('number'); + expect(data.Data.DeliveryOrderCount).to.be(0); + expect(data.Data.DeliveryCashOrderCount).to.be.a('number'); + expect(data.Data.DeliveryCashOrderCount).to.be(0); + expect(data.Data.DeliveryPaidOnlineOrderCount).to.be.a('number'); + expect(data.Data.DeliveryPaidOnlineOrderCount).to.be(0); + expect(data.Data.DeliveryOrderValue).to.be.a('number'); + expect(data.Data.DeliveryOrderValue).to.be(0.0); + expect(data.Data.DeliveryCashOrderValue).to.be.a('number'); + expect(data.Data.DeliveryCashOrderValue).to.be(0.0); + expect(data.Data.DeliveryPaidOnlineOrderValue).to.be.a('number'); + expect(data.Data.DeliveryPaidOnlineOrderValue).to.be(0.0); + expect(data.Data.PaidOnlineOrderCount).to.be.a('number'); + expect(data.Data.PaidOnlineOrderCount).to.be(0); + expect(data.Data.CashOrderCount).to.be.a('number'); + expect(data.Data.CashOrderCount).to.be(0); + expect(data.Data.PaidOnlineOrderValue).to.be.a('number'); + expect(data.Data.PaidOnlineOrderValue).to.be(0.0); + expect(data.Data.CashOrderValue).to.be.a('number'); + expect(data.Data.CashOrderValue).to.be(0.0); + expect(data.Data.PaidOnlineOrderValueExcludingDeliveryFees).to.be.a('number'); + expect(data.Data.PaidOnlineOrderValueExcludingDeliveryFees).to.be(0.0); + expect(data.Data.CashOrderValueExcludingDeliveryFees).to.be.a('number'); + expect(data.Data.CashOrderValueExcludingDeliveryFees).to.be(0.0); + expect(data.Data.StartTime).to.be.a(Date); + expect(data.Data.StartTime).to.be(new Date()); + expect(data.Data.EndTime).to.be.a(Date); + expect(data.Data.EndTime).to.be(new Date()); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getPreOrderConfig', function() { + it('should call getPreOrderConfig successfully', function(done) { + // TODO: uncomment, update parameter values for getPreOrderConfig call and complete the assertions + /* + var storeId = 56; + var deliveryType = "deliveryType_example"; + + instance.getPreOrderConfig(storeId, deliveryType, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultPreOrderConfig); + expect(data.Data).to.be.a(Flipdish.PreOrderConfig); + expect(data.Data.LeadTimeMinutes).to.be.a('number'); + expect(data.Data.LeadTimeMinutes).to.be(0); + expect(data.Data.IntervalMinutes).to.be.a('number'); + expect(data.Data.IntervalMinutes).to.be(0); + expect(data.Data.MaxOrderAheadDays).to.be.a('number'); + expect(data.Data.MaxOrderAheadDays).to.be(0); + expect(data.Data.IncludeAsap).to.be.a('boolean'); + expect(data.Data.IncludeAsap).to.be(false); + expect(data.Data.IncludeMoreGranularInitialTime).to.be.a('boolean'); + expect(data.Data.IncludeMoreGranularInitialTime).to.be(false); + expect(data.Data.CutOffTimePreviousDayBasic).to.be.a('string'); + expect(data.Data.CutOffTimePreviousDayBasic).to.be(""); + expect(data.Data.CutOffTimeCurrentDayBasic).to.be.a('string'); + expect(data.Data.CutOffTimeCurrentDayBasic).to.be(""); + expect(data.Data.PreOrderTimeDisplayType).to.be.a('string'); + expect(data.Data.PreOrderTimeDisplayType).to.be("SingleTime"); + expect(data.Data.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Data.AlwaysAppearOpen).to.be(false); + expect(data.Data.RequireExplicitSelectAlways).to.be.a('boolean'); + expect(data.Data.RequireExplicitSelectAlways).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getPreOrderPreview', function() { + it('should call getPreOrderPreview successfully', function(done) { + // TODO: uncomment, update parameter values for getPreOrderPreview call and complete the assertions + /* + var storeId = 56; + var deliveryType = "deliveryType_example"; + var opts = {}; + opts.preOrderConfig_leadTimeMinutes = 56; + opts.preOrderConfig_intervalMinutes = 56; + opts.preOrderConfig_maxOrderAheadDays = 56; + opts.preOrderConfig_includeAsap = true; + opts.preOrderConfig_includeMoreGranularInitialTime = true; + opts.preOrderConfig_cutOffTimePreviousDayBasic = "preOrderConfig_cutOffTimePreviousDayBasic_example"; + opts.preOrderConfig_cutOffTimeCurrentDayBasic = "preOrderConfig_cutOffTimeCurrentDayBasic_example"; + opts.preOrderConfig_preOrderTimeDisplayType = "preOrderConfig_preOrderTimeDisplayType_example"; + opts.preOrderConfig_alwaysAppearOpen = true; + opts.preOrderConfig_requireExplicitSelectAlways = true; + + instance.getPreOrderPreview(storeId, deliveryType, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultPreOrderTime); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.PreOrderTime); + expect(data.StartTime).to.be.a(Date); + expect(data.StartTime).to.be(new Date()); + expect(data.EndTime).to.be.a(Date); + expect(data.EndTime).to.be(new Date()); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getProcessingFeeConfigsByStoreId', function() { + it('should call getProcessingFeeConfigsByStoreId successfully', function(done) { + // TODO: uncomment, update parameter values for getProcessingFeeConfigsByStoreId call and complete the assertions + /* + var storeId = 56; + var opts = {}; + opts.appNameId = "appNameId_example"; + + instance.getProcessingFeeConfigsByStoreId(storeId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultProcessingFeeConfig); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.ProcessingFeeConfig); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.PaymentAccountType).to.be.a('string'); + expect(data.PaymentAccountType).to.be("Card"); + expect(data.PercentFee).to.be.a('number'); + expect(data.PercentFee).to.be(0.0); + expect(data.FixedFee).to.be.a('number'); + expect(data.FixedFee).to.be(0.0); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getProcessingFeeConfigsByStoreIdAndPaymentAccountType', function() { + it('should call getProcessingFeeConfigsByStoreIdAndPaymentAccountType successfully', function(done) { + // TODO: uncomment, update parameter values for getProcessingFeeConfigsByStoreIdAndPaymentAccountType call and complete the assertions + /* + var storeId = 56; + var paymentAccountType = "paymentAccountType_example"; + var opts = {}; + opts.appNameId = "appNameId_example"; + + instance.getProcessingFeeConfigsByStoreIdAndPaymentAccountType(storeId, paymentAccountType, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultProcessingFeeConfig); + expect(data.Data).to.be.a(Flipdish.ProcessingFeeConfig); + expect(data.Data.StoreId).to.be.a('number'); + expect(data.Data.StoreId).to.be(0); + expect(data.Data.PaymentAccountType).to.be.a('string'); + expect(data.Data.PaymentAccountType).to.be("Card"); + expect(data.Data.PercentFee).to.be.a('number'); + expect(data.Data.PercentFee).to.be(0.0); + expect(data.Data.FixedFee).to.be.a('number'); + expect(data.Data.FixedFee).to.be(0.0); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getStoreById', function() { + it('should call getStoreById successfully', function(done) { + // TODO: uncomment, update parameter values for getStoreById call and complete the assertions + /* + var storeId = 56; + + instance.getStoreById(storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStore); + expect(data.Data).to.be.a(Flipdish.Store); + expect(data.Data.StoreId).to.be.a('number'); + expect(data.Data.StoreId).to.be(0); + expect(data.Data.StoreGroupId).to.be.a('number'); + expect(data.Data.StoreGroupId).to.be(0); + expect(data.Data.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Data.Address.AddressId).to.be.a('number'); + expect(data.Data.Address.AddressId).to.be(0); + expect(data.Data.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Data.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Data.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Data.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Data.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Data.Address.Line1).to.be.a('string'); + expect(data.Data.Address.Line1).to.be(""); + expect(data.Data.Address.Postcode).to.be.a('string'); + expect(data.Data.Address.Postcode).to.be(""); + expect(data.Data.Address.City).to.be.a('string'); + expect(data.Data.Address.City).to.be(""); + expect(data.Data.Address.CountryCode).to.be.a('string'); + expect(data.Data.Address.CountryCode).to.be(""); + expect(data.Data.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Data.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Data.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Data.ApmPhoneNumber).to.be.a('string'); + expect(data.Data.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Data.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Data.MenuId).to.be.a('number'); + expect(data.Data.MenuId).to.be(0); + expect(data.Data.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Data.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Data.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Data.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Data.PrintoutLayoutType).to.be.a('string'); + expect(data.Data.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Data.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Data.MicrosoftTimeZone).to.be.a('string'); + expect(data.Data.MicrosoftTimeZone).to.be(""); + expect(data.Data.IanaTimeZone).to.be.a('string'); + expect(data.Data.IanaTimeZone).to.be(""); + expect(data.Data.Currency).to.be.a('string'); + expect(data.Data.Currency).to.be("EUR"); + expect(data.Data.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Data.PreOrderDeliveryEnabled).to.be(false); + expect(data.Data.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Data.PreOrderPickupEnabled).to.be(false); + expect(data.Data.LogoUrl).to.be.a('string'); + expect(data.Data.LogoUrl).to.be(""); + expect(data.Data.PhoneNumber).to.be.a('string'); + expect(data.Data.PhoneNumber).to.be(""); + expect(data.Data.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Data.AlwaysAppearOpen).to.be(false); + expect(data.Data.PreOrderEnabled).to.be.a('boolean'); + expect(data.Data.PreOrderEnabled).to.be(false); + expect(data.Data.TakeOutEnabled).to.be.a('boolean'); + expect(data.Data.TakeOutEnabled).to.be(false); + expect(data.Data.TableServiceEnabled).to.be.a('boolean'); + expect(data.Data.TableServiceEnabled).to.be(false); + expect(data.Data.DineInEnabled).to.be.a('boolean'); + expect(data.Data.DineInEnabled).to.be(false); + expect(data.Data.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Data.AllowPreOrdersAndTableService).to.be(false); + expect(data.Data.PickupEnabled).to.be.a('boolean'); + expect(data.Data.PickupEnabled).to.be(false); + expect(data.Data.DeliveryEnabled).to.be.a('boolean'); + expect(data.Data.DeliveryEnabled).to.be(false); + expect(data.Data.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Data.CardOrderDeliveryEnabled).to.be(false); + expect(data.Data.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Data.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Data.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Data.CardOrdersPickupEnabled).to.be(false); + expect(data.Data.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Data.CashOrdersPickupEnabled).to.be(false); + expect(data.Data.TipsEnabled).to.be.a('boolean'); + expect(data.Data.TipsEnabled).to.be(false); + expect(data.Data.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Data.AutomaticallyAcceptOrders).to.be(false); + expect(data.Data.OpenForDelivery).to.be.a('boolean'); + expect(data.Data.OpenForDelivery).to.be(false); + expect(data.Data.OpenForPickup).to.be.a('boolean'); + expect(data.Data.OpenForPickup).to.be(false); + expect(data.Data.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Data.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Data.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Data.RequireCustomerNameForPickup).to.be(false); + expect(data.Data.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Data.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Data.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Data.RequireCustomerNameForDelivery).to.be(false); + expect(data.Data.AllowChefNotes).to.be.a('boolean'); + expect(data.Data.AllowChefNotes).to.be(false); + expect(data.Data.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Data.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Data.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Data.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Data.IsArchived).to.be.a('boolean'); + expect(data.Data.IsArchived).to.be(false); + expect(data.Data.IsPublished).to.be.a('boolean'); + expect(data.Data.IsPublished).to.be(false); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.EmailAddress).to.be.a('string'); + expect(data.Data.EmailAddress).to.be(""); + expect(data.Data.StaffLanguage).to.be.a('string'); + expect(data.Data.StaffLanguage).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getStoreHeadersByAppId', function() { + it('should call getStoreHeadersByAppId successfully', function(done) { + // TODO: uncomment, update parameter values for getStoreHeadersByAppId call and complete the assertions + /* + var appId = "appId_example"; + var opts = {}; + opts.storeNameQuery = "storeNameQuery_example"; + opts.page = 56; + opts.limit = 56; + + instance.getStoreHeadersByAppId(appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultStoreHeader); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreHeader); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getStoreNetSales', function() { + it('should call getStoreNetSales successfully', function(done) { + // TODO: uncomment, update parameter values for getStoreNetSales call and complete the assertions + /* + var appId = "appId_example"; + var storeId = [3.4]; + + instance.getStoreNetSales(appId, storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultStoreStatistics); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreStatistics); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreDataPoint); + expect(data.Day).to.be.a(Date); + expect(data.Day).to.be(new Date()); + expect(data.Value).to.be.a('number'); + expect(data.Value).to.be(0.0); + + } + } + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getStores', function() { + it('should call getStores successfully', function(done) { + // TODO: uncomment, update parameter values for getStores call and complete the assertions + /* + var opts = {}; + opts.searchQuery = "searchQuery_example"; + opts.page = 56; + opts.limit = 56; + opts.storeGroupId = 56; + + instance.getStores(opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultStore); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Store); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Address.AddressId).to.be.a('number'); + expect(data.Address.AddressId).to.be(0); + expect(data.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Address.Line1).to.be.a('string'); + expect(data.Address.Line1).to.be(""); + expect(data.Address.Postcode).to.be.a('string'); + expect(data.Address.Postcode).to.be(""); + expect(data.Address.City).to.be.a('string'); + expect(data.Address.City).to.be(""); + expect(data.Address.CountryCode).to.be.a('string'); + expect(data.Address.CountryCode).to.be(""); + expect(data.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.ApmPhoneNumber).to.be.a('string'); + expect(data.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.PrintoutLayoutType).to.be.a('string'); + expect(data.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.MicrosoftTimeZone).to.be.a('string'); + expect(data.MicrosoftTimeZone).to.be(""); + expect(data.IanaTimeZone).to.be.a('string'); + expect(data.IanaTimeZone).to.be(""); + expect(data.Currency).to.be.a('string'); + expect(data.Currency).to.be("EUR"); + expect(data.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.PreOrderDeliveryEnabled).to.be(false); + expect(data.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.PreOrderPickupEnabled).to.be(false); + expect(data.LogoUrl).to.be.a('string'); + expect(data.LogoUrl).to.be(""); + expect(data.PhoneNumber).to.be.a('string'); + expect(data.PhoneNumber).to.be(""); + expect(data.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.AlwaysAppearOpen).to.be(false); + expect(data.PreOrderEnabled).to.be.a('boolean'); + expect(data.PreOrderEnabled).to.be(false); + expect(data.TakeOutEnabled).to.be.a('boolean'); + expect(data.TakeOutEnabled).to.be(false); + expect(data.TableServiceEnabled).to.be.a('boolean'); + expect(data.TableServiceEnabled).to.be(false); + expect(data.DineInEnabled).to.be.a('boolean'); + expect(data.DineInEnabled).to.be(false); + expect(data.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.AllowPreOrdersAndTableService).to.be(false); + expect(data.PickupEnabled).to.be.a('boolean'); + expect(data.PickupEnabled).to.be(false); + expect(data.DeliveryEnabled).to.be.a('boolean'); + expect(data.DeliveryEnabled).to.be(false); + expect(data.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.CardOrderDeliveryEnabled).to.be(false); + expect(data.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.CashOrdersDeliveryEnabled).to.be(false); + expect(data.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.CardOrdersPickupEnabled).to.be(false); + expect(data.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.CashOrdersPickupEnabled).to.be(false); + expect(data.TipsEnabled).to.be.a('boolean'); + expect(data.TipsEnabled).to.be(false); + expect(data.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.AutomaticallyAcceptOrders).to.be(false); + expect(data.OpenForDelivery).to.be.a('boolean'); + expect(data.OpenForDelivery).to.be(false); + expect(data.OpenForPickup).to.be.a('boolean'); + expect(data.OpenForPickup).to.be(false); + expect(data.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.MinimumPickupOrderAmount).to.be(0.0); + expect(data.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.RequireCustomerNameForPickup).to.be(false); + expect(data.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.GdprCustomerPhoneNumbers).to.be(false); + expect(data.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.RequireCustomerNameForDelivery).to.be(false); + expect(data.AllowChefNotes).to.be.a('boolean'); + expect(data.AllowChefNotes).to.be(false); + expect(data.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.IsArchived).to.be.a('boolean'); + expect(data.IsArchived).to.be(false); + expect(data.IsPublished).to.be.a('boolean'); + expect(data.IsPublished).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.EmailAddress).to.be.a('string'); + expect(data.EmailAddress).to.be(""); + expect(data.StaffLanguage).to.be.a('string'); + expect(data.StaffLanguage).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getStoresByAppId', function() { + it('should call getStoresByAppId successfully', function(done) { + // TODO: uncomment, update parameter values for getStoresByAppId call and complete the assertions + /* + var appId = "appId_example"; + var opts = {}; + opts.searchQuery = "searchQuery_example"; + opts.page = 56; + opts.limit = 56; + + instance.getStoresByAppId(appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultStore); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Store); + expect(data.StoreId).to.be.a('number'); + expect(data.StoreId).to.be(0); + expect(data.StoreGroupId).to.be.a('number'); + expect(data.StoreGroupId).to.be(0); + expect(data.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Address.AddressId).to.be.a('number'); + expect(data.Address.AddressId).to.be(0); + expect(data.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Address.Line1).to.be.a('string'); + expect(data.Address.Line1).to.be(""); + expect(data.Address.Postcode).to.be.a('string'); + expect(data.Address.Postcode).to.be(""); + expect(data.Address.City).to.be.a('string'); + expect(data.Address.City).to.be(""); + expect(data.Address.CountryCode).to.be.a('string'); + expect(data.Address.CountryCode).to.be(""); + expect(data.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.ApmPhoneNumber).to.be.a('string'); + expect(data.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.MenuId).to.be.a('number'); + expect(data.MenuId).to.be(0); + expect(data.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.PrintoutLayoutType).to.be.a('string'); + expect(data.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.MicrosoftTimeZone).to.be.a('string'); + expect(data.MicrosoftTimeZone).to.be(""); + expect(data.IanaTimeZone).to.be.a('string'); + expect(data.IanaTimeZone).to.be(""); + expect(data.Currency).to.be.a('string'); + expect(data.Currency).to.be("EUR"); + expect(data.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.PreOrderDeliveryEnabled).to.be(false); + expect(data.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.PreOrderPickupEnabled).to.be(false); + expect(data.LogoUrl).to.be.a('string'); + expect(data.LogoUrl).to.be(""); + expect(data.PhoneNumber).to.be.a('string'); + expect(data.PhoneNumber).to.be(""); + expect(data.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.AlwaysAppearOpen).to.be(false); + expect(data.PreOrderEnabled).to.be.a('boolean'); + expect(data.PreOrderEnabled).to.be(false); + expect(data.TakeOutEnabled).to.be.a('boolean'); + expect(data.TakeOutEnabled).to.be(false); + expect(data.TableServiceEnabled).to.be.a('boolean'); + expect(data.TableServiceEnabled).to.be(false); + expect(data.DineInEnabled).to.be.a('boolean'); + expect(data.DineInEnabled).to.be(false); + expect(data.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.AllowPreOrdersAndTableService).to.be(false); + expect(data.PickupEnabled).to.be.a('boolean'); + expect(data.PickupEnabled).to.be(false); + expect(data.DeliveryEnabled).to.be.a('boolean'); + expect(data.DeliveryEnabled).to.be(false); + expect(data.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.CardOrderDeliveryEnabled).to.be(false); + expect(data.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.CashOrdersDeliveryEnabled).to.be(false); + expect(data.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.CardOrdersPickupEnabled).to.be(false); + expect(data.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.CashOrdersPickupEnabled).to.be(false); + expect(data.TipsEnabled).to.be.a('boolean'); + expect(data.TipsEnabled).to.be(false); + expect(data.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.AutomaticallyAcceptOrders).to.be(false); + expect(data.OpenForDelivery).to.be.a('boolean'); + expect(data.OpenForDelivery).to.be(false); + expect(data.OpenForPickup).to.be.a('boolean'); + expect(data.OpenForPickup).to.be(false); + expect(data.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.MinimumPickupOrderAmount).to.be(0.0); + expect(data.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.RequireCustomerNameForPickup).to.be(false); + expect(data.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.GdprCustomerPhoneNumbers).to.be(false); + expect(data.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.RequireCustomerNameForDelivery).to.be(false); + expect(data.AllowChefNotes).to.be.a('boolean'); + expect(data.AllowChefNotes).to.be(false); + expect(data.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.IsArchived).to.be.a('boolean'); + expect(data.IsArchived).to.be(false); + expect(data.IsPublished).to.be.a('boolean'); + expect(data.IsPublished).to.be(false); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.EmailAddress).to.be.a('string'); + expect(data.EmailAddress).to.be(""); + expect(data.StaffLanguage).to.be.a('string'); + expect(data.StaffLanguage).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('publishStore', function() { + it('should call publishStore successfully', function(done) { + // TODO: uncomment, update parameter values for publishStore call + /* + var storeId = 56; + + instance.publishStore(storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setBusinessHours', function() { + it('should call setBusinessHours successfully', function(done) { + // TODO: uncomment, update parameter values for setBusinessHours call and complete the assertions + /* + var storeId = 56; + var deliveryType = "deliveryType_example"; + var businessHoursPeriod = new Flipdish.BusinessHoursPeriodBase(); + businessHoursPeriod.DayOfWeek = "Sunday"; + businessHoursPeriod.StartTime = ""; + businessHoursPeriod.Period = ""; + businessHoursPeriod.StartTimeEarly = ""; + businessHoursPeriod.PeriodEarly = ""; + + instance.setBusinessHours(storeId, deliveryType, businessHoursPeriod, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultBusinessHoursPeriod); + expect(data.Data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Data.Early).to.be.a(Flipdish.Range); + expect(data.Data.Early.StartTime).to.be.a('string'); + expect(data.Data.Early.StartTime).to.be(""); + expect(data.Data.Early.Period).to.be.a('string'); + expect(data.Data.Early.Period).to.be(""); + expect(data.Data.Early.DayOfWeek).to.be.a('string'); + expect(data.Data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Data.Late).to.be.a(Flipdish.Range); + expect(data.Data.Late.StartTime).to.be.a('string'); + expect(data.Data.Late.StartTime).to.be(""); + expect(data.Data.Late.Period).to.be.a('string'); + expect(data.Data.Late.Period).to.be(""); + expect(data.Data.Late.DayOfWeek).to.be.a('string'); + expect(data.Data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.Data.DayOfWeek).to.be.a('string'); + expect(data.Data.DayOfWeek).to.be("Sunday"); + expect(data.Data.StartTime).to.be.a('string'); + expect(data.Data.StartTime).to.be(""); + expect(data.Data.Period).to.be.a('string'); + expect(data.Data.Period).to.be(""); + expect(data.Data.StartTimeEarly).to.be.a('string'); + expect(data.Data.StartTimeEarly).to.be(""); + expect(data.Data.PeriodEarly).to.be.a('string'); + expect(data.Data.PeriodEarly).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setPreOrdeEnabled', function() { + it('should call setPreOrdeEnabled successfully', function(done) { + // TODO: uncomment, update parameter values for setPreOrdeEnabled call and complete the assertions + /* + var storeId = 56; + var deliveryType = "deliveryType_example"; + var enabled = true; + + instance.setPreOrdeEnabled(storeId, deliveryType, enabled, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultRestApiDefaultResponse); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RestApiDefaultResponse); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('unpublishStore', function() { + it('should call unpublishStore successfully', function(done) { + // TODO: uncomment, update parameter values for unpublishStore call + /* + var storeId = 56; + + instance.unpublishStore(storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updatePreOrderConfig', function() { + it('should call updatePreOrderConfig successfully', function(done) { + // TODO: uncomment, update parameter values for updatePreOrderConfig call and complete the assertions + /* + var storeId = 56; + var deliveryType = "deliveryType_example"; + var preOrderConfig = new Flipdish.PreOrderConfig(); + preOrderConfig.LeadTimeMinutes = 0; + preOrderConfig.IntervalMinutes = 0; + preOrderConfig.MaxOrderAheadDays = 0; + preOrderConfig.IncludeAsap = false; + preOrderConfig.IncludeMoreGranularInitialTime = false; + preOrderConfig.CutOffTimePreviousDayBasic = ""; + preOrderConfig.CutOffTimeCurrentDayBasic = ""; + preOrderConfig.PreOrderTimeDisplayType = "SingleTime"; + preOrderConfig.AlwaysAppearOpen = false; + preOrderConfig.RequireExplicitSelectAlways = false; + + instance.updatePreOrderConfig(storeId, deliveryType, preOrderConfig, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultRestApiDefaultResponse); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.RestApiDefaultResponse); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateStore', function() { + it('should call updateStore successfully', function(done) { + // TODO: uncomment, update parameter values for updateStore call and complete the assertions + /* + var storeId = 56; + var store = new Flipdish.StoreBase(); + store.PhoneNumber = ""; + store.AlwaysAppearOpen = false; + store.PreOrderEnabled = false; + store.TakeOutEnabled = false; + store.TableServiceEnabled = false; + store.DineInEnabled = false; + store.AllowPreOrdersAndTableService = false; + store.PickupEnabled = false; + store.DeliveryEnabled = false; + store.CardOrderDeliveryEnabled = false; + store.CashOrdersDeliveryEnabled = false; + store.CardOrdersPickupEnabled = false; + store.CashOrdersPickupEnabled = false; + store.TipsEnabled = false; + store.AutomaticallyAcceptOrders = false; + store.OpenForDelivery = false; + store.OpenForPickup = false; + store.MinimumPickupOrderAmount = 0.0; + store.RequireCustomerNameForPickup = false; + store.GdprCustomerPhoneNumbers = false; + store.RequireCustomerNameForDelivery = false; + store.AllowChefNotes = false; + store.EtaInPickupConfirmationSmsEnabled = false; + store.EtaInDeliveryConfirmationSmsEnabled = false; + store.IsArchived = false; + store.IsPublished = false; + store.Name = ""; + store.EmailAddress = ""; + store.StaffLanguage = ""; + + instance.updateStore(storeId, store, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStore); + expect(data.Data).to.be.a(Flipdish.Store); + expect(data.Data.StoreId).to.be.a('number'); + expect(data.Data.StoreId).to.be(0); + expect(data.Data.StoreGroupId).to.be.a('number'); + expect(data.Data.StoreGroupId).to.be(0); + expect(data.Data.Address).to.be.a(Flipdish.StoreAddress); + expect(data.Data.Address.AddressId).to.be.a('number'); + expect(data.Data.Address.AddressId).to.be(0); + expect(data.Data.Address.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Data.Address.Coordinates.Latitude).to.be.a('number'); + expect(data.Data.Address.Coordinates.Latitude).to.be(0.0); + expect(data.Data.Address.Coordinates.Longitude).to.be.a('number'); + expect(data.Data.Address.Coordinates.Longitude).to.be(0.0); + expect(data.Data.Address.Line1).to.be.a('string'); + expect(data.Data.Address.Line1).to.be(""); + expect(data.Data.Address.Postcode).to.be.a('string'); + expect(data.Data.Address.Postcode).to.be(""); + expect(data.Data.Address.City).to.be.a('string'); + expect(data.Data.Address.City).to.be(""); + expect(data.Data.Address.CountryCode).to.be.a('string'); + expect(data.Data.Address.CountryCode).to.be(""); + expect(data.Data.Address.DisplayForCustomer).to.be.a('string'); + expect(data.Data.Address.DisplayForCustomer).to.be(""); + { + let dataCtr = data.Data.DeliveryZones; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.DeliveryZone); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.DeliveryFee).to.be.a('number'); + expect(data.DeliveryFee).to.be(0.0); + expect(data.MinimumDeliveryOrderAmount).to.be.a('number'); + expect(data.MinimumDeliveryOrderAmount).to.be(0.0); + expect(data.WellKnownText).to.be.a('string'); + expect(data.WellKnownText).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + expect(data.Data.ApmPhoneNumber).to.be.a('string'); + expect(data.Data.ApmPhoneNumber).to.be(""); + { + let dataCtr = data.Data.PickupHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + { + let dataCtr = data.Data.DeliveryHours; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.BusinessHoursPeriod); + expect(data.Early).to.be.a(Flipdish.Range); + expect(data.Early.StartTime).to.be.a('string'); + expect(data.Early.StartTime).to.be(""); + expect(data.Early.Period).to.be.a('string'); + expect(data.Early.Period).to.be(""); + expect(data.Early.DayOfWeek).to.be.a('string'); + expect(data.Early.DayOfWeek).to.be("Sunday"); + expect(data.Late).to.be.a(Flipdish.Range); + expect(data.Late.StartTime).to.be.a('string'); + expect(data.Late.StartTime).to.be(""); + expect(data.Late.Period).to.be.a('string'); + expect(data.Late.Period).to.be(""); + expect(data.Late.DayOfWeek).to.be.a('string'); + expect(data.Late.DayOfWeek).to.be("Sunday"); + { + let dataCtr = data.Ranges; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Range); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + + } + } + expect(data.DayOfWeek).to.be.a('string'); + expect(data.DayOfWeek).to.be("Sunday"); + expect(data.StartTime).to.be.a('string'); + expect(data.StartTime).to.be(""); + expect(data.Period).to.be.a('string'); + expect(data.Period).to.be(""); + expect(data.StartTimeEarly).to.be.a('string'); + expect(data.StartTimeEarly).to.be(""); + expect(data.PeriodEarly).to.be.a('string'); + expect(data.PeriodEarly).to.be(""); + + } + } + expect(data.Data.MenuId).to.be.a('number'); + expect(data.Data.MenuId).to.be(0); + expect(data.Data.OrderConfirmationMessageOverrideDelivery).to.be.a('string'); + expect(data.Data.OrderConfirmationMessageOverrideDelivery).to.be(""); + expect(data.Data.OrderConfirmationMessageOverridePickup).to.be.a('string'); + expect(data.Data.OrderConfirmationMessageOverridePickup).to.be(""); + expect(data.Data.PrintoutLayoutType).to.be.a('string'); + expect(data.Data.PrintoutLayoutType).to.be("Default"); + { + let dataCtr = data.Data.StoreNotes; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.StoreNote); + expect(data.UserId).to.be.a('number'); + expect(data.UserId).to.be(0); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Note).to.be.a('string'); + expect(data.Note).to.be(""); + + } + } + expect(data.Data.MicrosoftTimeZone).to.be.a('string'); + expect(data.Data.MicrosoftTimeZone).to.be(""); + expect(data.Data.IanaTimeZone).to.be.a('string'); + expect(data.Data.IanaTimeZone).to.be(""); + expect(data.Data.Currency).to.be.a('string'); + expect(data.Data.Currency).to.be("EUR"); + expect(data.Data.PreOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Data.PreOrderDeliveryEnabled).to.be(false); + expect(data.Data.PreOrderPickupEnabled).to.be.a('boolean'); + expect(data.Data.PreOrderPickupEnabled).to.be(false); + expect(data.Data.LogoUrl).to.be.a('string'); + expect(data.Data.LogoUrl).to.be(""); + expect(data.Data.PhoneNumber).to.be.a('string'); + expect(data.Data.PhoneNumber).to.be(""); + expect(data.Data.AlwaysAppearOpen).to.be.a('boolean'); + expect(data.Data.AlwaysAppearOpen).to.be(false); + expect(data.Data.PreOrderEnabled).to.be.a('boolean'); + expect(data.Data.PreOrderEnabled).to.be(false); + expect(data.Data.TakeOutEnabled).to.be.a('boolean'); + expect(data.Data.TakeOutEnabled).to.be(false); + expect(data.Data.TableServiceEnabled).to.be.a('boolean'); + expect(data.Data.TableServiceEnabled).to.be(false); + expect(data.Data.DineInEnabled).to.be.a('boolean'); + expect(data.Data.DineInEnabled).to.be(false); + expect(data.Data.AllowPreOrdersAndTableService).to.be.a('boolean'); + expect(data.Data.AllowPreOrdersAndTableService).to.be(false); + expect(data.Data.PickupEnabled).to.be.a('boolean'); + expect(data.Data.PickupEnabled).to.be(false); + expect(data.Data.DeliveryEnabled).to.be.a('boolean'); + expect(data.Data.DeliveryEnabled).to.be(false); + expect(data.Data.CardOrderDeliveryEnabled).to.be.a('boolean'); + expect(data.Data.CardOrderDeliveryEnabled).to.be(false); + expect(data.Data.CashOrdersDeliveryEnabled).to.be.a('boolean'); + expect(data.Data.CashOrdersDeliveryEnabled).to.be(false); + expect(data.Data.CardOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Data.CardOrdersPickupEnabled).to.be(false); + expect(data.Data.CashOrdersPickupEnabled).to.be.a('boolean'); + expect(data.Data.CashOrdersPickupEnabled).to.be(false); + expect(data.Data.TipsEnabled).to.be.a('boolean'); + expect(data.Data.TipsEnabled).to.be(false); + expect(data.Data.AutomaticallyAcceptOrders).to.be.a('boolean'); + expect(data.Data.AutomaticallyAcceptOrders).to.be(false); + expect(data.Data.OpenForDelivery).to.be.a('boolean'); + expect(data.Data.OpenForDelivery).to.be(false); + expect(data.Data.OpenForPickup).to.be.a('boolean'); + expect(data.Data.OpenForPickup).to.be(false); + expect(data.Data.MinimumPickupOrderAmount).to.be.a('number'); + expect(data.Data.MinimumPickupOrderAmount).to.be(0.0); + expect(data.Data.RequireCustomerNameForPickup).to.be.a('boolean'); + expect(data.Data.RequireCustomerNameForPickup).to.be(false); + expect(data.Data.GdprCustomerPhoneNumbers).to.be.a('boolean'); + expect(data.Data.GdprCustomerPhoneNumbers).to.be(false); + expect(data.Data.RequireCustomerNameForDelivery).to.be.a('boolean'); + expect(data.Data.RequireCustomerNameForDelivery).to.be(false); + expect(data.Data.AllowChefNotes).to.be.a('boolean'); + expect(data.Data.AllowChefNotes).to.be(false); + expect(data.Data.EtaInPickupConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Data.EtaInPickupConfirmationSmsEnabled).to.be(false); + expect(data.Data.EtaInDeliveryConfirmationSmsEnabled).to.be.a('boolean'); + expect(data.Data.EtaInDeliveryConfirmationSmsEnabled).to.be(false); + expect(data.Data.IsArchived).to.be.a('boolean'); + expect(data.Data.IsArchived).to.be(false); + expect(data.Data.IsPublished).to.be.a('boolean'); + expect(data.Data.IsPublished).to.be(false); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.EmailAddress).to.be.a('string'); + expect(data.Data.EmailAddress).to.be(""); + expect(data.Data.StaffLanguage).to.be.a('string'); + expect(data.Data.StaffLanguage).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateStoreAddress', function() { + it('should call updateStoreAddress successfully', function(done) { + // TODO: uncomment, update parameter values for updateStoreAddress call and complete the assertions + /* + var storeId = 56; + var storeAddress = new Flipdish.StoreAddressBase(); + storeAddress.Line1 = ""; + storeAddress.Postcode = ""; + storeAddress.City = ""; + storeAddress.CountryCode = ""; + storeAddress.DisplayForCustomer = ""; + + instance.updateStoreAddress(storeId, storeAddress, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStoreAddress); + expect(data.Data).to.be.a(Flipdish.StoreAddress); + expect(data.Data.AddressId).to.be.a('number'); + expect(data.Data.AddressId).to.be(0); + expect(data.Data.Coordinates).to.be.a(Flipdish.Coordinates); + expect(data.Data.Coordinates.Latitude).to.be.a('number'); + expect(data.Data.Coordinates.Latitude).to.be(0.0); + expect(data.Data.Coordinates.Longitude).to.be.a('number'); + expect(data.Data.Coordinates.Longitude).to.be(0.0); + expect(data.Data.Line1).to.be.a('string'); + expect(data.Data.Line1).to.be(""); + expect(data.Data.Postcode).to.be.a('string'); + expect(data.Data.Postcode).to.be(""); + expect(data.Data.City).to.be.a('string'); + expect(data.Data.City).to.be(""); + expect(data.Data.CountryCode).to.be.a('string'); + expect(data.Data.CountryCode).to.be(""); + expect(data.Data.DisplayForCustomer).to.be.a('string'); + expect(data.Data.DisplayForCustomer).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateStoreAddressCoordinates', function() { + it('should call updateStoreAddressCoordinates successfully', function(done) { + // TODO: uncomment, update parameter values for updateStoreAddressCoordinates call and complete the assertions + /* + var storeId = 56; + var coordinates = new Flipdish.Coordinates(); + coordinates.Latitude = 0.0; + coordinates.Longitude = 0.0; + var opts = {}; + opts.appNameId = "appNameId_example"; + + instance.updateStoreAddressCoordinates(storeId, coordinates, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultCoordinates); + expect(data.Data).to.be.a(Flipdish.Coordinates); + expect(data.Data.Latitude).to.be.a('number'); + expect(data.Data.Latitude).to.be(0.0); + expect(data.Data.Longitude).to.be.a('number'); + expect(data.Data.Longitude).to.be(0.0); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); }); }); diff --git a/test/api/StripeCustomConnectApi.spec.js b/test/api/StripeCustomConnectApi.spec.js new file mode 100644 index 00000000..06207e26 --- /dev/null +++ b/test/api/StripeCustomConnectApi.spec.js @@ -0,0 +1,430 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('StripeCustomConnectApi', function() { + describe('createBankAccountAndConnectedAccount', function() { + it('should call createBankAccountAndConnectedAccount successfully', function(done) { + // TODO: uncomment, update parameter values for createBankAccountAndConnectedAccount call and complete the assertions + /* + var appId = "appId_example"; + var account = new Flipdish.BankAccountCreate(); + account.BankAddress = ""; + account.BankCountryCode = ""; + account.AccountHolderAddress = ""; + account.AccountHolderCountryCode = ""; + account.VatNumber = ""; + account.CurrencyCode = "EUR"; + account.StoreIds = [0]; + account.BankName = ""; + account.AccountName = ""; + account.Iban = ""; + account.Swift = ""; + account.NationalClearingCode = ""; + account.PopulatedAccountFields = [new Flipdish.AccountFieldKeyValuePair()]; + account.PopulatedAccountFields[0].Key = "Iban"; + account.PopulatedAccountFields[0].Value = ""; + account.RejectionReason = ""; + account.BusinessType = "Individual"; + + instance.createBankAccountAndConnectedAccount(appId, account, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultBankAccountDetail); + expect(data.Data).to.be.a(Flipdish.BankAccountDetail); + expect(data.Data.Id).to.be.a('number'); + expect(data.Data.Id).to.be(0); + { + let dataCtr = data.Data.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.AccountState).to.be.a('string'); + expect(data.Data.AccountState).to.be("Unverified"); + expect(data.Data.StripeConnectedAccountInfo).to.be.a(Flipdish.StripeConnectedAccountInfo); + expect(data.Data.StripeConnectedAccountInfo.AccountStatus).to.be.a('string'); + expect(data.Data.StripeConnectedAccountInfo.AccountStatus).to.be("Disabled"); + expect(data.Data.StripeConnectedAccountInfo.StripeId).to.be.a('string'); + expect(data.Data.StripeConnectedAccountInfo.StripeId).to.be(""); + expect(data.Data.StripeConnectedAccountInfo.CardPaymentStatus).to.be.a('string'); + expect(data.Data.StripeConnectedAccountInfo.CardPaymentStatus).to.be("Inactive"); + expect(data.Data.BankAddress).to.be.a('string'); + expect(data.Data.BankAddress).to.be(""); + expect(data.Data.BankCountryCode).to.be.a('string'); + expect(data.Data.BankCountryCode).to.be(""); + expect(data.Data.AccountHolderAddress).to.be.a('string'); + expect(data.Data.AccountHolderAddress).to.be(""); + expect(data.Data.AccountHolderCountryCode).to.be.a('string'); + expect(data.Data.AccountHolderCountryCode).to.be(""); + expect(data.Data.VatNumber).to.be.a('string'); + expect(data.Data.VatNumber).to.be(""); + expect(data.Data.CurrencyCode).to.be.a('string'); + expect(data.Data.CurrencyCode).to.be("EUR"); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.Data.BankName).to.be.a('string'); + expect(data.Data.BankName).to.be(""); + expect(data.Data.AccountName).to.be.a('string'); + expect(data.Data.AccountName).to.be(""); + expect(data.Data.Iban).to.be.a('string'); + expect(data.Data.Iban).to.be(""); + expect(data.Data.Swift).to.be.a('string'); + expect(data.Data.Swift).to.be(""); + expect(data.Data.NationalClearingCode).to.be.a('string'); + expect(data.Data.NationalClearingCode).to.be(""); + { + let dataCtr = data.Data.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Data.RejectionReason).to.be.a('string'); + expect(data.Data.RejectionReason).to.be(""); + expect(data.Data.BusinessType).to.be.a('string'); + expect(data.Data.BusinessType).to.be("Individual"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('createStripeConnectedAccount', function() { + it('should call createStripeConnectedAccount successfully', function(done) { + // TODO: uncomment, update parameter values for createStripeConnectedAccount call and complete the assertions + /* + var appId = "appId_example"; + var bankAccountId = 56; + + instance.createStripeConnectedAccount(appId, bankAccountId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStripeConnectedAccount); + expect(data.Data).to.be.a(Flipdish.StripeConnectedAccount); + expect(data.Data.FlipdishConnectedAccountId).to.be.a('number'); + expect(data.Data.FlipdishConnectedAccountId).to.be(0); + expect(data.Data.StripeId).to.be.a('string'); + expect(data.Data.StripeId).to.be(""); + expect(data.Data.WhitelabelConfigId).to.be.a('number'); + expect(data.Data.WhitelabelConfigId).to.be(0); + expect(data.Data.CardPaymentsStatus).to.be.a('string'); + expect(data.Data.CardPaymentsStatus).to.be("Inactive"); + expect(data.Data.TransfersStatus).to.be.a('string'); + expect(data.Data.TransfersStatus).to.be("Inactive"); + expect(data.Data.AccountStatus).to.be.a('string'); + expect(data.Data.AccountStatus).to.be("Disabled"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('createStripeConnectedAccountLink', function() { + it('should call createStripeConnectedAccountLink successfully', function(done) { + // TODO: uncomment, update parameter values for createStripeConnectedAccountLink call and complete the assertions + /* + var appId = "appId_example"; + var stripeConnectedAccountId = "stripeConnectedAccountId_example"; + var stripeAccountLinkRequest = new Flipdish.StripeAccountLinkRequest(); + stripeAccountLinkRequest.StripeId = ""; + stripeAccountLinkRequest.ReturnUrl = ""; + stripeAccountLinkRequest.Collect = "CurrentlyDue"; + stripeAccountLinkRequest.Type = "Onboarding"; + + instance.createStripeConnectedAccountLink(appId, stripeConnectedAccountId, stripeAccountLinkRequest, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStripeConnectedAccount); + expect(data.Data).to.be.a(Flipdish.StripeConnectedAccount); + expect(data.Data.FlipdishConnectedAccountId).to.be.a('number'); + expect(data.Data.FlipdishConnectedAccountId).to.be(0); + expect(data.Data.StripeId).to.be.a('string'); + expect(data.Data.StripeId).to.be(""); + expect(data.Data.WhitelabelConfigId).to.be.a('number'); + expect(data.Data.WhitelabelConfigId).to.be(0); + expect(data.Data.CardPaymentsStatus).to.be.a('string'); + expect(data.Data.CardPaymentsStatus).to.be("Inactive"); + expect(data.Data.TransfersStatus).to.be.a('string'); + expect(data.Data.TransfersStatus).to.be("Inactive"); + expect(data.Data.AccountStatus).to.be.a('string'); + expect(data.Data.AccountStatus).to.be("Disabled"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getVerificationStatus', function() { + it('should call getVerificationStatus successfully', function(done) { + // TODO: uncomment, update parameter values for getVerificationStatus call and complete the assertions + /* + var appId = "appId_example"; + var stripeConnectedAccountId = "stripeConnectedAccountId_example"; + + instance.getVerificationStatus(appId, stripeConnectedAccountId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStripeConnectedAccount); + expect(data.Data).to.be.a(Flipdish.StripeConnectedAccount); + expect(data.Data.FlipdishConnectedAccountId).to.be.a('number'); + expect(data.Data.FlipdishConnectedAccountId).to.be(0); + expect(data.Data.StripeId).to.be.a('string'); + expect(data.Data.StripeId).to.be(""); + expect(data.Data.WhitelabelConfigId).to.be.a('number'); + expect(data.Data.WhitelabelConfigId).to.be(0); + expect(data.Data.CardPaymentsStatus).to.be.a('string'); + expect(data.Data.CardPaymentsStatus).to.be("Inactive"); + expect(data.Data.TransfersStatus).to.be.a('string'); + expect(data.Data.TransfersStatus).to.be("Inactive"); + expect(data.Data.AccountStatus).to.be.a('string'); + expect(data.Data.AccountStatus).to.be("Disabled"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setBankAccountBusinessType', function() { + it('should call setBankAccountBusinessType successfully', function(done) { + // TODO: uncomment, update parameter values for setBankAccountBusinessType call and complete the assertions + /* + var appId = "appId_example"; + var bankAccountId = 56; + var businessType = "businessType_example"; + + instance.setBankAccountBusinessType(appId, bankAccountId, businessType, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultBankAccountDetail); + expect(data.Data).to.be.a(Flipdish.BankAccountDetail); + expect(data.Data.Id).to.be.a('number'); + expect(data.Data.Id).to.be(0); + { + let dataCtr = data.Data.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.AccountState).to.be.a('string'); + expect(data.Data.AccountState).to.be("Unverified"); + expect(data.Data.StripeConnectedAccountInfo).to.be.a(Flipdish.StripeConnectedAccountInfo); + expect(data.Data.StripeConnectedAccountInfo.AccountStatus).to.be.a('string'); + expect(data.Data.StripeConnectedAccountInfo.AccountStatus).to.be("Disabled"); + expect(data.Data.StripeConnectedAccountInfo.StripeId).to.be.a('string'); + expect(data.Data.StripeConnectedAccountInfo.StripeId).to.be(""); + expect(data.Data.StripeConnectedAccountInfo.CardPaymentStatus).to.be.a('string'); + expect(data.Data.StripeConnectedAccountInfo.CardPaymentStatus).to.be("Inactive"); + expect(data.Data.BankAddress).to.be.a('string'); + expect(data.Data.BankAddress).to.be(""); + expect(data.Data.BankCountryCode).to.be.a('string'); + expect(data.Data.BankCountryCode).to.be(""); + expect(data.Data.AccountHolderAddress).to.be.a('string'); + expect(data.Data.AccountHolderAddress).to.be(""); + expect(data.Data.AccountHolderCountryCode).to.be.a('string'); + expect(data.Data.AccountHolderCountryCode).to.be(""); + expect(data.Data.VatNumber).to.be.a('string'); + expect(data.Data.VatNumber).to.be(""); + expect(data.Data.CurrencyCode).to.be.a('string'); + expect(data.Data.CurrencyCode).to.be("EUR"); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + expect(data.Data.BankName).to.be.a('string'); + expect(data.Data.BankName).to.be(""); + expect(data.Data.AccountName).to.be.a('string'); + expect(data.Data.AccountName).to.be(""); + expect(data.Data.Iban).to.be.a('string'); + expect(data.Data.Iban).to.be(""); + expect(data.Data.Swift).to.be.a('string'); + expect(data.Data.Swift).to.be(""); + expect(data.Data.NationalClearingCode).to.be.a('string'); + expect(data.Data.NationalClearingCode).to.be(""); + { + let dataCtr = data.Data.PopulatedAccountFields; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.AccountFieldKeyValuePair); + expect(data.Key).to.be.a('string'); + expect(data.Key).to.be("Iban"); + expect(data.Value).to.be.a('string'); + expect(data.Value).to.be(""); + + } + } + expect(data.Data.RejectionReason).to.be.a('string'); + expect(data.Data.RejectionReason).to.be(""); + expect(data.Data.BusinessType).to.be.a('string'); + expect(data.Data.BusinessType).to.be("Individual"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('stripeCustomConnectRefresh', function() { + it('should call stripeCustomConnectRefresh successfully', function(done) { + // TODO: uncomment, update parameter values for stripeCustomConnectRefresh call and complete the assertions + /* + var linkRequestId = 56; + var appId = "appId_example"; + + instance.stripeCustomConnectRefresh(linkRequestId, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateBankAccountDetails', function() { + it('should call updateBankAccountDetails successfully', function(done) { + // TODO: uncomment, update parameter values for updateBankAccountDetails call and complete the assertions + /* + var appId = "appId_example"; + var bankAccountId = 56; + var updateRequest = new Flipdish.BankAccountDetailsUpdateRequest(); + updateRequest.BankAddress = ""; + updateRequest.AccountHolderAddress = ""; + updateRequest.VatNumber = ""; + updateRequest.StoreIds = [0]; + updateRequest.BankName = ""; + updateRequest.AccountName = ""; + updateRequest.Iban = ""; + updateRequest.Swift = ""; + updateRequest.NationalClearingCode = ""; + updateRequest.PopulatedAccountFields = [new Flipdish.AccountFieldKeyValuePair()]; + updateRequest.PopulatedAccountFields[0].Key = "Iban"; + updateRequest.PopulatedAccountFields[0].Value = ""; + updateRequest.RejectionReason = ""; + updateRequest.BusinessType = "Individual"; + + instance.updateBankAccountDetails(appId, bankAccountId, updateRequest, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStripeConnectedAccount); + expect(data.Data).to.be.a(Flipdish.StripeConnectedAccount); + expect(data.Data.FlipdishConnectedAccountId).to.be.a('number'); + expect(data.Data.FlipdishConnectedAccountId).to.be(0); + expect(data.Data.StripeId).to.be.a('string'); + expect(data.Data.StripeId).to.be(""); + expect(data.Data.WhitelabelConfigId).to.be.a('number'); + expect(data.Data.WhitelabelConfigId).to.be(0); + expect(data.Data.CardPaymentsStatus).to.be.a('string'); + expect(data.Data.CardPaymentsStatus).to.be("Inactive"); + expect(data.Data.TransfersStatus).to.be.a('string'); + expect(data.Data.TransfersStatus).to.be("Inactive"); + expect(data.Data.AccountStatus).to.be.a('string'); + expect(data.Data.AccountStatus).to.be("Disabled"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/StuartApi.spec.js b/test/api/StuartApi.spec.js new file mode 100644 index 00000000..dd7eaee5 --- /dev/null +++ b/test/api/StuartApi.spec.js @@ -0,0 +1,340 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('StuartApi', function() { + describe('stuartCancelJob', function() { + it('should call stuartCancelJob successfully', function(done) { + // TODO: uncomment, update parameter values for stuartCancelJob call and complete the assertions + /* + var jobId = 56; + var storeId = 56; + + instance.stuartCancelJob(jobId, storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('stuartGetJob', function() { + it('should call stuartGetJob successfully', function(done) { + // TODO: uncomment, update parameter values for stuartGetJob call and complete the assertions + /* + var jobId = 56; + var storeId = 56; + + instance.stuartGetJob(jobId, storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultJobResponse); + expect(data.Data).to.be.a(Flipdish.JobResponse); + expect(data.Data.Id).to.be.a('number'); + expect(data.Data.Id).to.be(0); + expect(data.Data.CreatedAt).to.be.a(Date); + expect(data.Data.CreatedAt).to.be(new Date()); + expect(data.Data.Status).to.be.a('string'); + expect(data.Data.Status).to.be(""); + expect(data.Data.PackageType).to.be.a('string'); + expect(data.Data.PackageType).to.be(""); + expect(data.Data.TransportType).to.be.a('string'); + expect(data.Data.TransportType).to.be(""); + expect(data.Data.AssignmentCode).to.be.a('string'); + expect(data.Data.AssignmentCode).to.be(""); + expect(data.Data.PickupAt).to.be.a('string'); + expect(data.Data.PickupAt).to.be(""); + expect(data.Data.DropoffAt).to.be.a('string'); + expect(data.Data.DropoffAt).to.be(""); + expect(data.Data.Comment).to.be.a('string'); + expect(data.Data.Comment).to.be(""); + expect(data.Data.Distance).to.be.a('number'); + expect(data.Data.Distance).to.be(0.0); + expect(data.Data.Duration).to.be.a('number'); + expect(data.Data.Duration).to.be(0); + { + let dataCtr = data.Data.Deliveries; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.JobDelivery); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.Status).to.be.a('string'); + expect(data.Status).to.be(""); + expect(data.PickedAt).to.be.a('string'); + expect(data.PickedAt).to.be(""); + expect(data.DeliveredAt).to.be.a('string'); + expect(data.DeliveredAt).to.be(""); + expect(data.TrackingUrl).to.be.a('string'); + expect(data.TrackingUrl).to.be(""); + expect(data.ClientReference).to.be.a('string'); + expect(data.ClientReference).to.be(""); + expect(data.PackageDescription).to.be.a('string'); + expect(data.PackageDescription).to.be(""); + expect(data.PackageType).to.be.a('string'); + expect(data.PackageType).to.be(""); + expect(data.Pickup).to.be.a(Flipdish.JobDeliveryDetail); + expect(data.Pickup.Id).to.be.a('number'); + expect(data.Pickup.Id).to.be(0); + expect(data.Pickup.Latitude).to.be.a('number'); + expect(data.Pickup.Latitude).to.be(0.0); + expect(data.Pickup.Longitude).to.be.a('number'); + expect(data.Pickup.Longitude).to.be(0.0); + expect(data.Pickup.Comment).to.be.a('string'); + expect(data.Pickup.Comment).to.be(""); + expect(data.Pickup.Address).to.be.a(Flipdish.JobAddress); + expect(data.Pickup.Address.Street).to.be.a('string'); + expect(data.Pickup.Address.Street).to.be(""); + expect(data.Pickup.Address.Postcode).to.be.a('string'); + expect(data.Pickup.Address.Postcode).to.be(""); + expect(data.Pickup.Address.City).to.be.a('string'); + expect(data.Pickup.Address.City).to.be(""); + expect(data.Pickup.Address.Country).to.be.a('string'); + expect(data.Pickup.Address.Country).to.be(""); + expect(data.Pickup.Address.Zone).to.be.a('string'); + expect(data.Pickup.Address.Zone).to.be(""); + expect(data.Pickup.Address.FormattedAddress).to.be.a('string'); + expect(data.Pickup.Address.FormattedAddress).to.be(""); + expect(data.Pickup.Contact).to.be.a(Flipdish.JobContact); + expect(data.Pickup.Contact.Firstname).to.be.a('string'); + expect(data.Pickup.Contact.Firstname).to.be(""); + expect(data.Pickup.Contact.Lastname).to.be.a('string'); + expect(data.Pickup.Contact.Lastname).to.be(""); + expect(data.Pickup.Contact.Phone).to.be.a('string'); + expect(data.Pickup.Contact.Phone).to.be(""); + expect(data.Pickup.Contact.Email).to.be.a('string'); + expect(data.Pickup.Contact.Email).to.be(""); + expect(data.Pickup.Contact.Company).to.be.a('string'); + expect(data.Pickup.Contact.Company).to.be(""); + expect(data.Pickup.Contact.CompanyName).to.be.a('string'); + expect(data.Pickup.Contact.CompanyName).to.be(""); + expect(data.Dropoff).to.be.a(Flipdish.JobDeliveryDetail); + expect(data.Dropoff.Id).to.be.a('number'); + expect(data.Dropoff.Id).to.be(0); + expect(data.Dropoff.Latitude).to.be.a('number'); + expect(data.Dropoff.Latitude).to.be(0.0); + expect(data.Dropoff.Longitude).to.be.a('number'); + expect(data.Dropoff.Longitude).to.be(0.0); + expect(data.Dropoff.Comment).to.be.a('string'); + expect(data.Dropoff.Comment).to.be(""); + expect(data.Dropoff.Address).to.be.a(Flipdish.JobAddress); + expect(data.Dropoff.Address.Street).to.be.a('string'); + expect(data.Dropoff.Address.Street).to.be(""); + expect(data.Dropoff.Address.Postcode).to.be.a('string'); + expect(data.Dropoff.Address.Postcode).to.be(""); + expect(data.Dropoff.Address.City).to.be.a('string'); + expect(data.Dropoff.Address.City).to.be(""); + expect(data.Dropoff.Address.Country).to.be.a('string'); + expect(data.Dropoff.Address.Country).to.be(""); + expect(data.Dropoff.Address.Zone).to.be.a('string'); + expect(data.Dropoff.Address.Zone).to.be(""); + expect(data.Dropoff.Address.FormattedAddress).to.be.a('string'); + expect(data.Dropoff.Address.FormattedAddress).to.be(""); + expect(data.Dropoff.Contact).to.be.a(Flipdish.JobContact); + expect(data.Dropoff.Contact.Firstname).to.be.a('string'); + expect(data.Dropoff.Contact.Firstname).to.be(""); + expect(data.Dropoff.Contact.Lastname).to.be.a('string'); + expect(data.Dropoff.Contact.Lastname).to.be(""); + expect(data.Dropoff.Contact.Phone).to.be.a('string'); + expect(data.Dropoff.Contact.Phone).to.be(""); + expect(data.Dropoff.Contact.Email).to.be.a('string'); + expect(data.Dropoff.Contact.Email).to.be(""); + expect(data.Dropoff.Contact.Company).to.be.a('string'); + expect(data.Dropoff.Contact.Company).to.be(""); + expect(data.Dropoff.Contact.CompanyName).to.be.a('string'); + expect(data.Dropoff.Contact.CompanyName).to.be(""); + expect(data.Eta).to.be.a(Flipdish.JobEta); + expect(data.Eta.Pickup).to.be.a('string'); + expect(data.Eta.Pickup).to.be(""); + expect(data.Eta.Dropoff).to.be.a('string'); + expect(data.Eta.Dropoff).to.be(""); + expect(data.Cancellation).to.be.a(Flipdish.JobCancellation); + expect(data.Cancellation.CanceledBy).to.be.a('string'); + expect(data.Cancellation.CanceledBy).to.be(""); + expect(data.Cancellation.ReasonKey).to.be.a('string'); + expect(data.Cancellation.ReasonKey).to.be(""); + expect(data.Cancellation.Comment).to.be.a('string'); + expect(data.Cancellation.Comment).to.be(""); + expect(data.Proof).to.be.a(Flipdish.JobProof); + expect(data.Proof.SignatureUrl).to.be.a('string'); + expect(data.Proof.SignatureUrl).to.be(""); + + } + } + expect(data.Data.Pricing).to.be.a(Flipdish.JobPricing); + expect(data.Data.Pricing.Currency).to.be.a('string'); + expect(data.Data.Pricing.Currency).to.be(""); + expect(data.Data.Pricing.TaxPercentage).to.be.a('number'); + expect(data.Data.Pricing.TaxPercentage).to.be(0.0); + expect(data.Data.Pricing.PriceTaxIncluded).to.be.a('number'); + expect(data.Data.Pricing.PriceTaxIncluded).to.be(0.0); + expect(data.Data.Pricing.PriceTaxExcluded).to.be.a('number'); + expect(data.Data.Pricing.PriceTaxExcluded).to.be(0.0); + expect(data.Data.Pricing.TaxAmount).to.be.a('number'); + expect(data.Data.Pricing.TaxAmount).to.be(0.0); + expect(data.Data.Pricing.InvoiceUrl).to.be.a('string'); + expect(data.Data.Pricing.InvoiceUrl).to.be(""); + expect(data.Data.Driver).to.be.a(Flipdish.JobDriver); + expect(data.Data.Driver.Id).to.be.a('number'); + expect(data.Data.Driver.Id).to.be(0); + expect(data.Data.Driver.DisplayName).to.be.a('string'); + expect(data.Data.Driver.DisplayName).to.be(""); + expect(data.Data.Driver.Phone).to.be.a('string'); + expect(data.Data.Driver.Phone).to.be(""); + expect(data.Data.Driver.PictureUrl).to.be.a('string'); + expect(data.Data.Driver.PictureUrl).to.be(""); + expect(data.Data.Driver.TransportType).to.be.a('string'); + expect(data.Data.Driver.TransportType).to.be(""); + expect(data.Data.Driver.Latitude).to.be.a('number'); + expect(data.Data.Driver.Latitude).to.be(0.0); + expect(data.Data.Driver.Longitude).to.be.a('number'); + expect(data.Data.Driver.Longitude).to.be(0.0); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('stuartGetStuartSettings', function() { + it('should call stuartGetStuartSettings successfully', function(done) { + // TODO: uncomment, update parameter values for stuartGetStuartSettings call and complete the assertions + /* + var storeId = 56; + + instance.stuartGetStuartSettings(storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultStuartSettings); + expect(data.Data).to.be.a(Flipdish.StuartSettings); + expect(data.Data.ClientId).to.be.a('string'); + expect(data.Data.ClientId).to.be(""); + expect(data.Data.ClientSecret).to.be.a('string'); + expect(data.Data.ClientSecret).to.be(""); + expect(data.Data.Enabled).to.be.a('boolean'); + expect(data.Data.Enabled).to.be(false); + expect(data.Data.WebhookUrlBasicAuthentication).to.be.a('string'); + expect(data.Data.WebhookUrlBasicAuthentication).to.be(""); + expect(data.Data.MinutesToPickupBeforeThanDeliveryTime).to.be.a('number'); + expect(data.Data.MinutesToPickupBeforeThanDeliveryTime).to.be(0); + expect(data.Data.PackageType).to.be.a('string'); + expect(data.Data.PackageType).to.be("Xsmall"); + expect(data.Data.TransportType).to.be.a('string'); + expect(data.Data.TransportType).to.be("Bike"); + expect(data.Data.CancelOrderIfStuartCancelDelivery).to.be.a('boolean'); + expect(data.Data.CancelOrderIfStuartCancelDelivery).to.be(false); + expect(data.Data.TransportPrices).to.be.a(Flipdish.StuartSettingsTransportPrices); + expect(data.Data.TransportPrices.Bike).to.be.a('number'); + expect(data.Data.TransportPrices.Bike).to.be(0.0); + expect(data.Data.TransportPrices.Cargobike).to.be.a('number'); + expect(data.Data.TransportPrices.Cargobike).to.be(0.0); + expect(data.Data.TransportPrices.Cargobikexl).to.be.a('number'); + expect(data.Data.TransportPrices.Cargobikexl).to.be(0.0); + expect(data.Data.TransportPrices.Motorbike).to.be.a('number'); + expect(data.Data.TransportPrices.Motorbike).to.be(0.0); + expect(data.Data.TransportPrices.Motorbikexl).to.be.a('number'); + expect(data.Data.TransportPrices.Motorbikexl).to.be(0.0); + expect(data.Data.TransportPrices.Car).to.be.a('number'); + expect(data.Data.TransportPrices.Car).to.be(0.0); + expect(data.Data.TransportPrices.Van).to.be.a('number'); + expect(data.Data.TransportPrices.Van).to.be(0.0); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('stuartPostStuartSettings', function() { + it('should call stuartPostStuartSettings successfully', function(done) { + // TODO: uncomment, update parameter values for stuartPostStuartSettings call and complete the assertions + /* + var storeId = 56; + var stuartSettings = new Flipdish.StuartSettings(); + stuartSettings.ClientId = ""; + stuartSettings.ClientSecret = ""; + stuartSettings.Enabled = false; + stuartSettings.WebhookUrlBasicAuthentication = ""; + stuartSettings.MinutesToPickupBeforeThanDeliveryTime = 0; + stuartSettings.PackageType = "Xsmall"; + stuartSettings.TransportType = "Bike"; + stuartSettings.CancelOrderIfStuartCancelDelivery = false; + stuartSettings.TransportPrices = new Flipdish.StuartSettingsTransportPrices(); + stuartSettings.TransportPrices.Bike = 0.0; + stuartSettings.TransportPrices.Cargobike = 0.0; + stuartSettings.TransportPrices.Cargobikexl = 0.0; + stuartSettings.TransportPrices.Motorbike = 0.0; + stuartSettings.TransportPrices.Motorbikexl = 0.0; + stuartSettings.TransportPrices.Car = 0.0; + stuartSettings.TransportPrices.Van = 0.0; + + instance.stuartPostStuartSettings(storeId, stuartSettings, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Object); + // expect(data).to.be(null); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/TeammatesApi.spec.js b/test/api/TeammatesApi.spec.js new file mode 100644 index 00000000..35791694 --- /dev/null +++ b/test/api/TeammatesApi.spec.js @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('TeammatesApi', function() { + describe('createTeammate', function() { + it('should call createTeammate successfully', function(done) { + // TODO: uncomment, update parameter values for createTeammate call and complete the assertions + /* + var appId = "appId_example"; + var teammate = new Flipdish.CreateTeammate(); + teammate.Email = ""; + teammate.AppAccessLevel = "None"; + teammate.HasAccessToAllStores = false; + teammate.StoreIds = [0]; + + instance.createTeammate(appId, teammate, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultTeammate); + expect(data.Data).to.be.a(Flipdish.Teammate); + expect(data.Data.TeammateId).to.be.a('string'); + expect(data.Data.TeammateId).to.be(""); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.LastActivity).to.be.a(Date); + expect(data.Data.LastActivity).to.be(new Date()); + expect(data.Data.AppId).to.be.a('string'); + expect(data.Data.AppId).to.be(""); + expect(data.Data.InvitationStatus).to.be.a('string'); + expect(data.Data.InvitationStatus).to.be("Pending"); + expect(data.Data.Email).to.be.a('string'); + expect(data.Data.Email).to.be(""); + expect(data.Data.AppAccessLevel).to.be.a('string'); + expect(data.Data.AppAccessLevel).to.be("None"); + expect(data.Data.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Data.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('deleteTeammate', function() { + it('should call deleteTeammate successfully', function(done) { + // TODO: uncomment, update parameter values for deleteTeammate call + /* + var appId = "appId_example"; + var id = "id_example"; + + instance.deleteTeammate(appId, id, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getTeammateByAppIdAndTeammateId', function() { + it('should call getTeammateByAppIdAndTeammateId successfully', function(done) { + // TODO: uncomment, update parameter values for getTeammateByAppIdAndTeammateId call and complete the assertions + /* + var appId = "appId_example"; + var id = "id_example"; + + instance.getTeammateByAppIdAndTeammateId(appId, id, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultTeammate); + expect(data.Data).to.be.a(Flipdish.Teammate); + expect(data.Data.TeammateId).to.be.a('string'); + expect(data.Data.TeammateId).to.be(""); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.LastActivity).to.be.a(Date); + expect(data.Data.LastActivity).to.be(new Date()); + expect(data.Data.AppId).to.be.a('string'); + expect(data.Data.AppId).to.be(""); + expect(data.Data.InvitationStatus).to.be.a('string'); + expect(data.Data.InvitationStatus).to.be("Pending"); + expect(data.Data.Email).to.be.a('string'); + expect(data.Data.Email).to.be(""); + expect(data.Data.AppAccessLevel).to.be.a('string'); + expect(data.Data.AppAccessLevel).to.be("None"); + expect(data.Data.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Data.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getTeammatesByAppId', function() { + it('should call getTeammatesByAppId successfully', function(done) { + // TODO: uncomment, update parameter values for getTeammatesByAppId call and complete the assertions + /* + var appId = "appId_example"; + + instance.getTeammatesByAppId(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultTeammate); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.Teammate); + expect(data.TeammateId).to.be.a('string'); + expect(data.TeammateId).to.be(""); + expect(data.Name).to.be.a('string'); + expect(data.Name).to.be(""); + expect(data.LastActivity).to.be.a(Date); + expect(data.LastActivity).to.be(new Date()); + expect(data.AppId).to.be.a('string'); + expect(data.AppId).to.be(""); + expect(data.InvitationStatus).to.be.a('string'); + expect(data.InvitationStatus).to.be("Pending"); + expect(data.Email).to.be.a('string'); + expect(data.Email).to.be(""); + expect(data.AppAccessLevel).to.be.a('string'); + expect(data.AppAccessLevel).to.be("None"); + expect(data.HasAccessToAllStores).to.be.a('boolean'); + expect(data.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('redeemInvitation', function() { + it('should call redeemInvitation successfully', function(done) { + // TODO: uncomment, update parameter values for redeemInvitation call and complete the assertions + /* + var otc = "otc_example"; + var appId = "appId_example"; + + instance.redeemInvitation(otc, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultRedeemInvitationResult); + expect(data.Data).to.be.a(Flipdish.RedeemInvitationResult); + expect(data.Data.AppId).to.be.a('string'); + expect(data.Data.AppId).to.be(""); + expect(data.Data.InvitationStatus).to.be.a('string'); + expect(data.Data.InvitationStatus).to.be("Pending"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateTeammate', function() { + it('should call updateTeammate successfully', function(done) { + // TODO: uncomment, update parameter values for updateTeammate call and complete the assertions + /* + var appId = "appId_example"; + var id = "id_example"; + var teammate = new Flipdish.TeammateBase(); + teammate.AppAccessLevel = "None"; + teammate.HasAccessToAllStores = false; + teammate.StoreIds = [0]; + + instance.updateTeammate(appId, id, teammate, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultTeammate); + expect(data.Data).to.be.a(Flipdish.Teammate); + expect(data.Data.TeammateId).to.be.a('string'); + expect(data.Data.TeammateId).to.be(""); + expect(data.Data.Name).to.be.a('string'); + expect(data.Data.Name).to.be(""); + expect(data.Data.LastActivity).to.be.a(Date); + expect(data.Data.LastActivity).to.be(new Date()); + expect(data.Data.AppId).to.be.a('string'); + expect(data.Data.AppId).to.be(""); + expect(data.Data.InvitationStatus).to.be.a('string'); + expect(data.Data.InvitationStatus).to.be("Pending"); + expect(data.Data.Email).to.be.a('string'); + expect(data.Data.Email).to.be(""); + expect(data.Data.AppAccessLevel).to.be.a('string'); + expect(data.Data.AppAccessLevel).to.be("None"); + expect(data.Data.HasAccessToAllStores).to.be.a('boolean'); + expect(data.Data.HasAccessToAllStores).to.be(false); + { + let dataCtr = data.Data.StoreIds; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/api/UsersApi.spec.js b/test/api/UsersApi.spec.js index 374c03fc..4677b664 100644 --- a/test/api/UsersApi.spec.js +++ b/test/api/UsersApi.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -33,31 +33,61 @@ 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]; - } + describe('(package)', function() { + describe('UsersApi', function() { + describe('getPreviousOrderCountForStore', function() { + it('should call getPreviousOrderCountForStore successfully', function(done) { + // TODO: uncomment, update parameter values for getPreviousOrderCountForStore call and complete the assertions + /* + var userId = 56; + var storeId = 56; - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + instance.getPreviousOrderCountForStore(userId, storeId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringResult); + expect(data.Data).to.be.a('string'); + expect(data.Data).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getRoles', function() { + it('should call getRoles successfully', function(done) { + // TODO: uncomment getRoles call and complete the assertions + /* + + instance.getRoles(function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringArrayResult); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } - describe('UsersApi', function() { - 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(); + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); }); }); diff --git a/test/api/VouchersApi.spec.js b/test/api/VouchersApi.spec.js index 23ebaa1f..7bb9f7d9 100644 --- a/test/api/VouchersApi.spec.js +++ b/test/api/VouchersApi.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -33,81 +33,480 @@ 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]; - } + describe('(package)', function() { + describe('VouchersApi', function() { + describe('createVoucher', function() { + it('should call createVoucher successfully', function(done) { + // TODO: uncomment, update parameter values for createVoucher call and complete the assertions + /* + var appId = "appId_example"; + var voucher = new Flipdish.CreateVoucher(); + voucher.VoucherType = "PercentageDiscount"; + voucher.Stores = [0]; + voucher.AddItemDetails = new Flipdish.AddItemDetails(); + voucher.AddItemDetails.PromotionalItemId = 0; + voucher.AddItemDetails.PromotionalItemName = ""; + voucher.CreditNoteDetails = new Flipdish.CreditNoteDetails(); + voucher.CreditNoteDetails.RemainingCredit = 0.0; + voucher.LumpDiscountDetails = new Flipdish.LumpDiscountDetails(); + voucher.LumpDiscountDetails.DiscountAmount = 0.0; + voucher.PercentDiscountDetails = new Flipdish.PercentDiscountDetails(); + voucher.PercentDiscountDetails.PercentageDiscount = 0; + voucher.Code = ""; + voucher.Description = ""; + voucher.ValidOnOrdersOver = 0.0; + voucher.TakesPriority = false; + voucher.IsEnabled = false; + voucher.IsAutomaticallyApplied = false; + voucher.IncludeDeliveryFee = false; + voucher.IsValidForDeliveryOrders = false; + voucher.IsValidForPickupOrders = false; + voucher.IsValidForOrdersPayedOnline = false; + voucher.IsValidForOrdersPayedByCash = false; + voucher.IsValidForFirstOrderOnly = false; + voucher.IsValidOncePerCustomer = false; + voucher.IsValidOnlyOnce = false; + voucher.StartDate = new Date(); + voucher.ExpiryDate = new Date(); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + instance.createVoucher(appId, voucher, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultVoucherWithStats); + expect(data.Data).to.be.a(Flipdish.VoucherWithStats); + expect(data.Data.TotalUsed).to.be.a('number'); + expect(data.Data.TotalUsed).to.be(0); + expect(data.Data.TotalCustomers).to.be.a('number'); + expect(data.Data.TotalCustomers).to.be(0); + expect(data.Data.TotalAmountFromOrders).to.be.a('number'); + expect(data.Data.TotalAmountFromOrders).to.be(0.0); + expect(data.Data.TotalDiscounted).to.be.a('number'); + expect(data.Data.TotalDiscounted).to.be(0.0); + expect(data.Data.AverageOrderSize).to.be.a('number'); + expect(data.Data.AverageOrderSize).to.be(0.0); + expect(data.Data.VoucherId).to.be.a('number'); + expect(data.Data.VoucherId).to.be(0); + expect(data.Data.Status).to.be.a('string'); + expect(data.Data.Status).to.be("Valid"); + expect(data.Data.VoucherType).to.be.a('string'); + expect(data.Data.VoucherType).to.be("PercentageDiscount"); + expect(data.Data.VoucherSubType).to.be.a('string'); + expect(data.Data.VoucherSubType).to.be("None"); + expect(data.Data.Currency).to.be.a('string'); + expect(data.Data.Currency).to.be("EUR"); + { + let dataCtr = data.Data.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Data.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Data.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Data.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Data.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Data.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Data.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Data.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Data.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Data.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Data.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Data.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Data.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Data.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Data.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Data.Code).to.be.a('string'); + expect(data.Data.Code).to.be(""); + expect(data.Data.Description).to.be.a('string'); + expect(data.Data.Description).to.be(""); + expect(data.Data.ValidOnOrdersOver).to.be.a('number'); + expect(data.Data.ValidOnOrdersOver).to.be(0.0); + expect(data.Data.TakesPriority).to.be.a('boolean'); + expect(data.Data.TakesPriority).to.be(false); + expect(data.Data.IsEnabled).to.be.a('boolean'); + expect(data.Data.IsEnabled).to.be(false); + expect(data.Data.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Data.IsAutomaticallyApplied).to.be(false); + expect(data.Data.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Data.IncludeDeliveryFee).to.be(false); + expect(data.Data.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Data.IsValidForDeliveryOrders).to.be(false); + expect(data.Data.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Data.IsValidForPickupOrders).to.be(false); + expect(data.Data.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Data.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Data.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Data.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Data.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Data.IsValidForFirstOrderOnly).to.be(false); + expect(data.Data.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Data.IsValidOncePerCustomer).to.be(false); + expect(data.Data.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Data.IsValidOnlyOnce).to.be(false); + expect(data.Data.StartDate).to.be.a(Date); + expect(data.Data.StartDate).to.be(new Date()); + expect(data.Data.ExpiryDate).to.be.a(Date); + expect(data.Data.ExpiryDate).to.be(new Date()); - describe('VouchersApi', function() { - describe('deleteVoucherMetadata', function() { - it('should call deleteVoucherMetadata successfully', function(done) { - //uncomment below and update the code to test deleteVoucherMetadata - //instance.deleteVoucherMetadata(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getVoucherMetadata', function() { - it('should call getVoucherMetadata successfully', function(done) { - //uncomment below and update the code to test getVoucherMetadata - //instance.getVoucherMetadata(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); + describe('getVoucherById', function() { + it('should call getVoucherById successfully', function(done) { + // TODO: uncomment, update parameter values for getVoucherById call and complete the assertions + /* + var voucherId = 56; + + instance.getVoucherById(voucherId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultVoucherWithStats); + expect(data.Data).to.be.a(Flipdish.VoucherWithStats); + expect(data.Data.TotalUsed).to.be.a('number'); + expect(data.Data.TotalUsed).to.be(0); + expect(data.Data.TotalCustomers).to.be.a('number'); + expect(data.Data.TotalCustomers).to.be(0); + expect(data.Data.TotalAmountFromOrders).to.be.a('number'); + expect(data.Data.TotalAmountFromOrders).to.be(0.0); + expect(data.Data.TotalDiscounted).to.be.a('number'); + expect(data.Data.TotalDiscounted).to.be(0.0); + expect(data.Data.AverageOrderSize).to.be.a('number'); + expect(data.Data.AverageOrderSize).to.be(0.0); + expect(data.Data.VoucherId).to.be.a('number'); + expect(data.Data.VoucherId).to.be(0); + expect(data.Data.Status).to.be.a('string'); + expect(data.Data.Status).to.be("Valid"); + expect(data.Data.VoucherType).to.be.a('string'); + expect(data.Data.VoucherType).to.be("PercentageDiscount"); + expect(data.Data.VoucherSubType).to.be.a('string'); + expect(data.Data.VoucherSubType).to.be("None"); + expect(data.Data.Currency).to.be.a('string'); + expect(data.Data.Currency).to.be("EUR"); + { + let dataCtr = data.Data.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Data.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Data.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Data.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Data.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Data.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Data.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Data.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Data.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Data.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Data.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Data.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Data.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Data.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Data.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Data.Code).to.be.a('string'); + expect(data.Data.Code).to.be(""); + expect(data.Data.Description).to.be.a('string'); + expect(data.Data.Description).to.be(""); + expect(data.Data.ValidOnOrdersOver).to.be.a('number'); + expect(data.Data.ValidOnOrdersOver).to.be(0.0); + expect(data.Data.TakesPriority).to.be.a('boolean'); + expect(data.Data.TakesPriority).to.be(false); + expect(data.Data.IsEnabled).to.be.a('boolean'); + expect(data.Data.IsEnabled).to.be(false); + expect(data.Data.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Data.IsAutomaticallyApplied).to.be(false); + expect(data.Data.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Data.IncludeDeliveryFee).to.be(false); + expect(data.Data.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Data.IsValidForDeliveryOrders).to.be(false); + expect(data.Data.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Data.IsValidForPickupOrders).to.be(false); + expect(data.Data.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Data.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Data.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Data.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Data.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Data.IsValidForFirstOrderOnly).to.be(false); + expect(data.Data.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Data.IsValidOncePerCustomer).to.be(false); + expect(data.Data.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Data.IsValidOnlyOnce).to.be(false); + expect(data.Data.StartDate).to.be.a(Date); + expect(data.Data.StartDate).to.be(new Date()); + expect(data.Data.ExpiryDate).to.be.a(Date); + expect(data.Data.ExpiryDate).to.be(new Date()); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); - }); - describe('getVoucherMetadata_0', function() { - it('should call getVoucherMetadata_0 successfully', function(done) { - //uncomment below and update the code to test getVoucherMetadata_0 - //instance.getVoucherMetadata_0(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); + describe('getVoucherStatsById', function() { + it('should call getVoucherStatsById successfully', function(done) { + // TODO: uncomment, update parameter values for getVoucherStatsById call and complete the assertions + /* + var voucherId = 56; + var aggregateDataBy = "aggregateDataBy_example"; + var opts = {}; + opts.dataPointLimit = 56; + + instance.getVoucherStatsById(voucherId, aggregateDataBy, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiArrayResultVoucherDataPoint); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherDataPoint); + expect(data.PeriodStart).to.be.a(Date); + expect(data.PeriodStart).to.be(new Date()); + expect(data.PeriodLengthInDays).to.be.a('number'); + expect(data.PeriodLengthInDays).to.be(0); + expect(data.Value).to.be.a('number'); + expect(data.Value).to.be(0); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getVouchers', function() { + it('should call getVouchers successfully', function(done) { + // TODO: uncomment, update parameter values for getVouchers call and complete the assertions + /* + var appId = "appId_example"; + var opts = {}; + opts.pageIndex = 56; + opts.pageSize = 56; + opts.searchCodes = ["searchCodes_example"]; + opts.statusSearch = ["statusSearch_example"]; + opts.typeSearch = ["typeSearch_example"]; + opts.subTypeSearch = ["subTypeSearch_example"]; + opts.storeIds = [3.4]; + + instance.getVouchers(appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultVoucherSummary); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.VoucherSummary); + expect(data.VoucherId).to.be.a('number'); + expect(data.VoucherId).to.be(0); + expect(data.Code).to.be.a('string'); + expect(data.Code).to.be(""); + expect(data.Status).to.be.a('string'); + expect(data.Status).to.be("Valid"); + expect(data.VoucherType).to.be.a('string'); + expect(data.VoucherType).to.be("PercentageDiscount"); + expect(data.VoucherSubType).to.be.a('string'); + expect(data.VoucherSubType).to.be("None"); + expect(data.Description).to.be.a('string'); + expect(data.Description).to.be(""); + expect(data.IsEnabled).to.be.a('boolean'); + expect(data.IsEnabled).to.be(false); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); - }); - describe('setVoucherMetadata', function() { - it('should call setVoucherMetadata successfully', function(done) { - //uncomment below and update the code to test setVoucherMetadata - //instance.setVoucherMetadata(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); + describe('updateVoucher', function() { + it('should call updateVoucher successfully', function(done) { + // TODO: uncomment, update parameter values for updateVoucher call and complete the assertions + /* + var voucherId = 56; + var voucher = new Flipdish.VoucherBase(); + voucher.Code = ""; + voucher.Description = ""; + voucher.ValidOnOrdersOver = 0.0; + voucher.TakesPriority = false; + voucher.IsEnabled = false; + voucher.IsAutomaticallyApplied = false; + voucher.IncludeDeliveryFee = false; + voucher.IsValidForDeliveryOrders = false; + voucher.IsValidForPickupOrders = false; + voucher.IsValidForOrdersPayedOnline = false; + voucher.IsValidForOrdersPayedByCash = false; + voucher.IsValidForFirstOrderOnly = false; + voucher.IsValidOncePerCustomer = false; + voucher.IsValidOnlyOnce = false; + voucher.StartDate = new Date(); + voucher.ExpiryDate = new Date(); + var opts = {}; + opts.storeId = [3.4]; + opts.percentValue = 56; + opts.lumpValue = 1.2; + opts.freeItemId = 56; + + instance.updateVoucher(voucherId, voucher, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultVoucherWithStats); + expect(data.Data).to.be.a(Flipdish.VoucherWithStats); + expect(data.Data.TotalUsed).to.be.a('number'); + expect(data.Data.TotalUsed).to.be(0); + expect(data.Data.TotalCustomers).to.be.a('number'); + expect(data.Data.TotalCustomers).to.be(0); + expect(data.Data.TotalAmountFromOrders).to.be.a('number'); + expect(data.Data.TotalAmountFromOrders).to.be(0.0); + expect(data.Data.TotalDiscounted).to.be.a('number'); + expect(data.Data.TotalDiscounted).to.be(0.0); + expect(data.Data.AverageOrderSize).to.be.a('number'); + expect(data.Data.AverageOrderSize).to.be(0.0); + expect(data.Data.VoucherId).to.be.a('number'); + expect(data.Data.VoucherId).to.be(0); + expect(data.Data.Status).to.be.a('string'); + expect(data.Data.Status).to.be("Valid"); + expect(data.Data.VoucherType).to.be.a('string'); + expect(data.Data.VoucherType).to.be("PercentageDiscount"); + expect(data.Data.VoucherSubType).to.be.a('string'); + expect(data.Data.VoucherSubType).to.be("None"); + expect(data.Data.Currency).to.be.a('string'); + expect(data.Data.Currency).to.be("EUR"); + { + let dataCtr = data.Data.Stores; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('number'); + expect(data).to.be(0); + } + } + { + let dataCtr = data.Data.StoreNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.Data.AddItemDetails).to.be.a(Flipdish.AddItemDetails); + expect(data.Data.AddItemDetails.PromotionalItemId).to.be.a('number'); + expect(data.Data.AddItemDetails.PromotionalItemId).to.be(0); + expect(data.Data.AddItemDetails.PromotionalItemName).to.be.a('string'); + expect(data.Data.AddItemDetails.PromotionalItemName).to.be(""); + expect(data.Data.CreditNoteDetails).to.be.a(Flipdish.CreditNoteDetails); + expect(data.Data.CreditNoteDetails.RemainingCredit).to.be.a('number'); + expect(data.Data.CreditNoteDetails.RemainingCredit).to.be(0.0); + expect(data.Data.LumpDiscountDetails).to.be.a(Flipdish.LumpDiscountDetails); + expect(data.Data.LumpDiscountDetails.DiscountAmount).to.be.a('number'); + expect(data.Data.LumpDiscountDetails.DiscountAmount).to.be(0.0); + expect(data.Data.PercentDiscountDetails).to.be.a(Flipdish.PercentDiscountDetails); + expect(data.Data.PercentDiscountDetails.PercentageDiscount).to.be.a('number'); + expect(data.Data.PercentDiscountDetails.PercentageDiscount).to.be(0); + expect(data.Data.Code).to.be.a('string'); + expect(data.Data.Code).to.be(""); + expect(data.Data.Description).to.be.a('string'); + expect(data.Data.Description).to.be(""); + expect(data.Data.ValidOnOrdersOver).to.be.a('number'); + expect(data.Data.ValidOnOrdersOver).to.be(0.0); + expect(data.Data.TakesPriority).to.be.a('boolean'); + expect(data.Data.TakesPriority).to.be(false); + expect(data.Data.IsEnabled).to.be.a('boolean'); + expect(data.Data.IsEnabled).to.be(false); + expect(data.Data.IsAutomaticallyApplied).to.be.a('boolean'); + expect(data.Data.IsAutomaticallyApplied).to.be(false); + expect(data.Data.IncludeDeliveryFee).to.be.a('boolean'); + expect(data.Data.IncludeDeliveryFee).to.be(false); + expect(data.Data.IsValidForDeliveryOrders).to.be.a('boolean'); + expect(data.Data.IsValidForDeliveryOrders).to.be(false); + expect(data.Data.IsValidForPickupOrders).to.be.a('boolean'); + expect(data.Data.IsValidForPickupOrders).to.be(false); + expect(data.Data.IsValidForOrdersPayedOnline).to.be.a('boolean'); + expect(data.Data.IsValidForOrdersPayedOnline).to.be(false); + expect(data.Data.IsValidForOrdersPayedByCash).to.be.a('boolean'); + expect(data.Data.IsValidForOrdersPayedByCash).to.be(false); + expect(data.Data.IsValidForFirstOrderOnly).to.be.a('boolean'); + expect(data.Data.IsValidForFirstOrderOnly).to.be(false); + expect(data.Data.IsValidOncePerCustomer).to.be.a('boolean'); + expect(data.Data.IsValidOncePerCustomer).to.be(false); + expect(data.Data.IsValidOnlyOnce).to.be.a('boolean'); + expect(data.Data.IsValidOnlyOnce).to.be(false); + expect(data.Data.StartDate).to.be.a(Date); + expect(data.Data.StartDate).to.be(new Date()); + expect(data.Data.ExpiryDate).to.be.a(Date); + expect(data.Data.ExpiryDate).to.be(new Date()); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); }); }); diff --git a/test/api/WebhooksApi.spec.js b/test/api/WebhooksApi.spec.js index 444c797c..bb03475c 100644 --- a/test/api/WebhooksApi.spec.js +++ b/test/api/WebhooksApi.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -33,111 +33,375 @@ 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]; - } + describe('(package)', function() { + describe('WebhooksApi', function() { + describe('craeteWebhookSubscription', function() { + it('should call craeteWebhookSubscription successfully', function(done) { + // TODO: uncomment, update parameter values for craeteWebhookSubscription call and complete the assertions + /* + var oauthAppId = "oauthAppId_example"; + var webhookSubscription = new Flipdish.WebhookSubscription(); + webhookSubscription.Id = 0; + webhookSubscription.OwnerUserId = 0; + webhookSubscription.Version = ""; + webhookSubscription.EventNames = [""]; + webhookSubscription.CallbackUrl = ""; + webhookSubscription.Enabled = false; + webhookSubscription.VerifyToken = ""; + var appId = "appId_example"; - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + instance.craeteWebhookSubscription(oauthAppId, webhookSubscription, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiIntegerResult); + expect(data.Data).to.be.a('number'); + expect(data.Data).to.be(0); - describe('WebhooksApi', function() { - describe('craeteWebhookSubscription', function() { - it('should call craeteWebhookSubscription successfully', function(done) { - //uncomment below and update the code to test craeteWebhookSubscription - //instance.craeteWebhookSubscription(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('createWebhookSubscriptionEventNames', function() { + it('should call createWebhookSubscriptionEventNames successfully', function(done) { + // TODO: uncomment, update parameter values for createWebhookSubscriptionEventNames call + /* + var oauthAppId = "oauthAppId_example"; + var webhookSubscriptionId = 56; + var eventName = "eventName_example"; + var appId = "appId_example"; + + instance.createWebhookSubscriptionEventNames(oauthAppId, webhookSubscriptionId, eventName, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('deleteWebhookSubscription', function() { + it('should call deleteWebhookSubscription successfully', function(done) { + // TODO: uncomment, update parameter values for deleteWebhookSubscription call + /* + var oauthAppId = "oauthAppId_example"; + var webhookSubscriptionId = 56; + var appId = "appId_example"; + + instance.deleteWebhookSubscription(oauthAppId, webhookSubscriptionId, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('deleteWebhookSubscriptionEventName', function() { + it('should call deleteWebhookSubscriptionEventName successfully', function(done) { + // TODO: uncomment, update parameter values for deleteWebhookSubscriptionEventName call + /* + var oauthAppId = "oauthAppId_example"; + var webhookSubscriptionId = 56; + var eventName = "eventName_example"; + var appId = "appId_example"; + + instance.deleteWebhookSubscriptionEventName(oauthAppId, webhookSubscriptionId, eventName, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getWebhookEventNames', function() { + it('should call getWebhookEventNames successfully', function(done) { + // TODO: uncomment, update parameter values for getWebhookEventNames call and complete the assertions + /* + var appId = "appId_example"; + + instance.getWebhookEventNames(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringArrayResult); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getWebhookEventNamesBySubscriptionId', function() { + it('should call getWebhookEventNamesBySubscriptionId successfully', function(done) { + // TODO: uncomment, update parameter values for getWebhookEventNamesBySubscriptionId call and complete the assertions + /* + var oauthAppId = "oauthAppId_example"; + var webhookSubscriptionId = 56; + var appId = "appId_example"; + + instance.getWebhookEventNamesBySubscriptionId(oauthAppId, webhookSubscriptionId, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiStringArrayResult); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getWebhookEventSample', function() { + it('should call getWebhookEventSample successfully', function(done) { + // TODO: uncomment, update parameter values for getWebhookEventSample call and complete the assertions + /* + var eventName = "eventName_example"; + var appId = "appId_example"; + var oauthAppId = "oauthAppId_example"; + var webhookSubscriptionId = "webhookSubscriptionId_example"; + var opts = {}; + opts.version = "version_example"; + + instance.getWebhookEventSample(eventName, appId, oauthAppId, webhookSubscriptionId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.WebhookEventSample); + expect(data.Type).to.be.a('string'); + expect(data.Type).to.be(""); + expect(data.CreateTime).to.be.a(Date); + expect(data.CreateTime).to.be(new Date()); + expect(data.Body).to.be.a(Flipdish.FlipdishEventBase); + expect(data.Body.EventName).to.be.a('string'); + expect(data.Body.EventName).to.be(""); + expect(data.Body.FlipdishEventId).to.be.a('string'); + expect(data.Body.FlipdishEventId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Body.CreateTime).to.be.a(Date); + expect(data.Body.CreateTime).to.be(new Date()); + expect(data.Body.Position).to.be.a('number'); + expect(data.Body.Position).to.be(0); + expect(data.Body.AppId).to.be.a('string'); + expect(data.Body.AppId).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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('getWebhookLogs', function() { + it('should call getWebhookLogs successfully', function(done) { + // TODO: uncomment, update parameter values for getWebhookLogs call and complete the assertions + /* + var oauthAppId = "oauthAppId_example"; + var webhookSubscriptionId = 56; + var start = new Date("2013-10-20T19:20:30+01:00"); + var end = new Date("2013-10-20T19:20:30+01:00"); + var appId = "appId_example"; + var opts = {}; + opts.page = 56; + opts.limit = 56; + + instance.getWebhookLogs(oauthAppId, webhookSubscriptionId, start, end, appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultWebhookLog); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookLog); + expect(data.WebhookSubscriptionOwnerUserId).to.be.a('number'); + expect(data.WebhookSubscriptionOwnerUserId).to.be(0); + expect(data.EventCreated).to.be.a('string'); + expect(data.EventCreated).to.be(""); + expect(data.WebhookTriggered).to.be.a('string'); + expect(data.WebhookTriggered).to.be(""); + expect(data.WebhookEventName).to.be.a('string'); + expect(data.WebhookEventName).to.be(""); + expect(data.WebhookSubscriptionCallbackUrl).to.be.a('string'); + expect(data.WebhookSubscriptionCallbackUrl).to.be(""); + expect(data.HttpResponseStatusCode).to.be.a('string'); + expect(data.HttpResponseStatusCode).to.be(""); + expect(data.HttpResponseStatus).to.be.a('string'); + expect(data.HttpResponseStatus).to.be(""); + expect(data.RequestHeaders).to.be.a('string'); + expect(data.RequestHeaders).to.be(""); + expect(data.RequestBody).to.be.a('string'); + expect(data.RequestBody).to.be(""); + expect(data.ResponseHeaders).to.be.a('string'); + expect(data.ResponseHeaders).to.be(""); + expect(data.ResponseBody).to.be.a('string'); + expect(data.ResponseBody).to.be(""); + expect(data.Duration).to.be.a('string'); + expect(data.Duration).to.be(""); + expect(data.RetryCount).to.be.a('number'); + expect(data.RetryCount).to.be(0); + expect(data.FlipdishWebhookId).to.be.a('string'); + expect(data.FlipdishWebhookId).to.be("00000000-0000-0000-0000-000000000000"); + expect(data.Version).to.be.a('string'); + expect(data.Version).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + 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(); + describe('getWebhookSubscriptions', function() { + it('should call getWebhookSubscriptions successfully', function(done) { + // TODO: uncomment, update parameter values for getWebhookSubscriptions call and complete the assertions + /* + var oauthAppId = "oauthAppId_example"; + var appId = "appId_example"; + var opts = {}; + opts.page = 56; + opts.limit = 56; + + instance.getWebhookSubscriptions(oauthAppId, appId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiPaginationResultWebhookSubscription); + expect(data.Page).to.be.a('number'); + expect(data.Page).to.be(0); + expect(data.Limit).to.be.a('number'); + expect(data.Limit).to.be(0); + expect(data.TotalRecordCount).to.be.a('number'); + expect(data.TotalRecordCount).to.be(0); + { + let dataCtr = data.Data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebhookSubscription); + expect(data.Id).to.be.a('number'); + expect(data.Id).to.be(0); + expect(data.OwnerUserId).to.be.a('number'); + expect(data.OwnerUserId).to.be(0); + expect(data.Version).to.be.a('string'); + expect(data.Version).to.be(""); + { + let dataCtr = data.EventNames; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a('string'); + expect(data).to.be(""); + } + } + expect(data.CallbackUrl).to.be.a('string'); + expect(data.CallbackUrl).to.be(""); + expect(data.Enabled).to.be.a('boolean'); + expect(data.Enabled).to.be(false); + expect(data.VerifyToken).to.be.a('string'); + expect(data.VerifyToken).to.be(""); + + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('updateWebhookSubscription', function() { + it('should call updateWebhookSubscription successfully', function(done) { + // TODO: uncomment, update parameter values for updateWebhookSubscription call + /* + var oauthAppId = "oauthAppId_example"; + var webhookSubscriptionId = 56; + var webhookSubscription = new Flipdish.WebhookSubscription(); + webhookSubscription.Id = 0; + webhookSubscription.OwnerUserId = 0; + webhookSubscription.Version = ""; + webhookSubscription.EventNames = [""]; + webhookSubscription.CallbackUrl = ""; + webhookSubscription.Enabled = false; + webhookSubscription.VerifyToken = ""; + var appId = "appId_example"; + + instance.updateWebhookSubscription(oauthAppId, webhookSubscriptionId, webhookSubscription, appId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); }); }); }); diff --git a/test/api/WebsiteApi.spec.js b/test/api/WebsiteApi.spec.js new file mode 100644 index 00000000..7a668ddc --- /dev/null +++ b/test/api/WebsiteApi.spec.js @@ -0,0 +1,340 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } 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(); + }); + + describe('(package)', function() { + describe('WebsiteApi', function() { + describe('addTestimonial', function() { + it('should call addTestimonial successfully', function(done) { + // TODO: uncomment, update parameter values for addTestimonial call and complete the assertions + /* + var appId = "appId_example"; + var testimonial = new Flipdish.WebsiteTestimonialBase(); + testimonial.Author = ""; + testimonial.Message = ""; + + instance.addTestimonial(appId, testimonial, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultWebsiteTestimonial); + expect(data.Data).to.be.a(Flipdish.WebsiteTestimonial); + expect(data.Data.TestimonialId).to.be.a('number'); + expect(data.Data.TestimonialId).to.be(0); + expect(data.Data.Author).to.be.a('string'); + expect(data.Data.Author).to.be(""); + expect(data.Data.Message).to.be.a('string'); + expect(data.Data.Message).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('deleteTestimonial', function() { + it('should call deleteTestimonial successfully', function(done) { + // TODO: uncomment, update parameter values for deleteTestimonial call + /* + var appId = "appId_example"; + var testimonialId = 56; + + instance.deleteTestimonial(appId, testimonialId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('deleteWebsiteImage', function() { + it('should call deleteWebsiteImage successfully', function(done) { + // TODO: uncomment, update parameter values for deleteWebsiteImage call + /* + var appId = "appId_example"; + var imageId = 56; + + instance.deleteWebsiteImage(appId, imageId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('editTestimonial', function() { + it('should call editTestimonial successfully', function(done) { + // TODO: uncomment, update parameter values for editTestimonial call and complete the assertions + /* + var appId = "appId_example"; + var testimonialId = 56; + var testimonial = new Flipdish.WebsiteTestimonialBase(); + testimonial.Author = ""; + testimonial.Message = ""; + + instance.editTestimonial(appId, testimonialId, testimonial, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultWebsiteTestimonial); + expect(data.Data).to.be.a(Flipdish.WebsiteTestimonial); + expect(data.Data.TestimonialId).to.be.a('number'); + expect(data.Data.TestimonialId).to.be(0); + expect(data.Data.Author).to.be.a('string'); + expect(data.Data.Author).to.be(""); + expect(data.Data.Message).to.be.a('string'); + expect(data.Data.Message).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('getIndexConfiguration', function() { + it('should call getIndexConfiguration successfully', function(done) { + // TODO: uncomment, update parameter values for getIndexConfiguration call and complete the assertions + /* + var appId = "appId_example"; + + instance.getIndexConfiguration(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultIndexPage); + expect(data.Data).to.be.a(Flipdish.IndexPage); + { + let dataCtr = data.Data.Testimonials; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteTestimonial); + expect(data.TestimonialId).to.be.a('number'); + expect(data.TestimonialId).to.be(0); + expect(data.Author).to.be.a('string'); + expect(data.Author).to.be(""); + expect(data.Message).to.be.a('string'); + expect(data.Message).to.be(""); + + } + } + { + let dataCtr = data.Data.Images; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(Flipdish.WebsiteImage); + expect(data.ImageId).to.be.a('number'); + expect(data.ImageId).to.be(0); + expect(data.ImageLocation).to.be.a('string'); + expect(data.ImageLocation).to.be("IndexHeader"); + expect(data.ImageUrl).to.be.a('string'); + expect(data.ImageUrl).to.be(""); + + } + } + expect(data.Data.AboutSectionEnabled).to.be.a('boolean'); + expect(data.Data.AboutSectionEnabled).to.be(false); + expect(data.Data.AboutSectionTitle).to.be.a('string'); + expect(data.Data.AboutSectionTitle).to.be(""); + expect(data.Data.AboutSectionSubtitle).to.be.a('string'); + expect(data.Data.AboutSectionSubtitle).to.be(""); + expect(data.Data.AboutSectionLeftTitle).to.be.a('string'); + expect(data.Data.AboutSectionLeftTitle).to.be(""); + expect(data.Data.AboutSectionLeftBody).to.be.a('string'); + expect(data.Data.AboutSectionLeftBody).to.be(""); + expect(data.Data.AboutSectionRightTitle).to.be.a('string'); + expect(data.Data.AboutSectionRightTitle).to.be(""); + expect(data.Data.AboutSectionRightBody).to.be.a('string'); + expect(data.Data.AboutSectionRightBody).to.be(""); + expect(data.Data.OpeningHoursEnabled).to.be.a('boolean'); + expect(data.Data.OpeningHoursEnabled).to.be(false); + expect(data.Data.MenuPreviewEnabled).to.be.a('boolean'); + expect(data.Data.MenuPreviewEnabled).to.be(false); + expect(data.Data.GalleryEnabled).to.be.a('boolean'); + expect(data.Data.GalleryEnabled).to.be(false); + expect(data.Data.TestimonialsEnabled).to.be.a('boolean'); + expect(data.Data.TestimonialsEnabled).to.be(false); + expect(data.Data.ContactFormEnabled).to.be.a('boolean'); + expect(data.Data.ContactFormEnabled).to.be(false); + expect(data.Data.ContactFormEmail).to.be.a('string'); + expect(data.Data.ContactFormEmail).to.be(""); + expect(data.Data.MapEnabled).to.be.a('boolean'); + expect(data.Data.MapEnabled).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('setIndexConfiguration', function() { + it('should call setIndexConfiguration successfully', function(done) { + // TODO: uncomment, update parameter values for setIndexConfiguration call and complete the assertions + /* + var appId = "appId_example"; + var indexPage = new Flipdish.IndexPageBase(); + indexPage.AboutSectionEnabled = false; + indexPage.AboutSectionTitle = ""; + indexPage.AboutSectionSubtitle = ""; + indexPage.AboutSectionLeftTitle = ""; + indexPage.AboutSectionLeftBody = ""; + indexPage.AboutSectionRightTitle = ""; + indexPage.AboutSectionRightBody = ""; + indexPage.OpeningHoursEnabled = false; + indexPage.MenuPreviewEnabled = false; + indexPage.GalleryEnabled = false; + indexPage.TestimonialsEnabled = false; + indexPage.ContactFormEnabled = false; + indexPage.ContactFormEmail = ""; + indexPage.MapEnabled = false; + + instance.setIndexConfiguration(appId, indexPage, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultIndexPageBase); + expect(data.Data).to.be.a(Flipdish.IndexPageBase); + expect(data.Data.AboutSectionEnabled).to.be.a('boolean'); + expect(data.Data.AboutSectionEnabled).to.be(false); + expect(data.Data.AboutSectionTitle).to.be.a('string'); + expect(data.Data.AboutSectionTitle).to.be(""); + expect(data.Data.AboutSectionSubtitle).to.be.a('string'); + expect(data.Data.AboutSectionSubtitle).to.be(""); + expect(data.Data.AboutSectionLeftTitle).to.be.a('string'); + expect(data.Data.AboutSectionLeftTitle).to.be(""); + expect(data.Data.AboutSectionLeftBody).to.be.a('string'); + expect(data.Data.AboutSectionLeftBody).to.be(""); + expect(data.Data.AboutSectionRightTitle).to.be.a('string'); + expect(data.Data.AboutSectionRightTitle).to.be(""); + expect(data.Data.AboutSectionRightBody).to.be.a('string'); + expect(data.Data.AboutSectionRightBody).to.be(""); + expect(data.Data.OpeningHoursEnabled).to.be.a('boolean'); + expect(data.Data.OpeningHoursEnabled).to.be(false); + expect(data.Data.MenuPreviewEnabled).to.be.a('boolean'); + expect(data.Data.MenuPreviewEnabled).to.be(false); + expect(data.Data.GalleryEnabled).to.be.a('boolean'); + expect(data.Data.GalleryEnabled).to.be(false); + expect(data.Data.TestimonialsEnabled).to.be.a('boolean'); + expect(data.Data.TestimonialsEnabled).to.be(false); + expect(data.Data.ContactFormEnabled).to.be.a('boolean'); + expect(data.Data.ContactFormEnabled).to.be(false); + expect(data.Data.ContactFormEmail).to.be.a('string'); + expect(data.Data.ContactFormEmail).to.be(""); + expect(data.Data.MapEnabled).to.be.a('boolean'); + expect(data.Data.MapEnabled).to.be(false); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('uploadWebsiteImage', function() { + it('should call uploadWebsiteImage successfully', function(done) { + // TODO: uncomment, update parameter values for uploadWebsiteImage call and complete the assertions + /* + var appId = "appId_example"; + var imageLocation = "imageLocation_example"; + var Image = "/path/to/file.txt"; + + instance.uploadWebsiteImage(appId, imageLocation, Image, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(Flipdish.RestApiResultWebsiteImage); + expect(data.Data).to.be.a(Flipdish.WebsiteImage); + expect(data.Data.ImageId).to.be.a('number'); + expect(data.Data.ImageId).to.be(0); + expect(data.Data.ImageLocation).to.be.a('string'); + expect(data.Data.ImageLocation).to.be("IndexHeader"); + expect(data.Data.ImageUrl).to.be.a('string'); + expect(data.Data.ImageUrl).to.be(""); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('websiteCheckNow', function() { + it('should call websiteCheckNow successfully', function(done) { + // TODO: uncomment, update parameter values for websiteCheckNow call + /* + var appId = "appId_example"; + + instance.websiteCheckNow(appId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/assert-equals.js b/test/assert-equals.js new file mode 100644 index 00000000..b95cd5f0 --- /dev/null +++ b/test/assert-equals.js @@ -0,0 +1,81 @@ +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(); + } else { + // Browser globals (root is window) + root.assertEquals = factory(); + } +}(this, function() { + 'use strict'; + + var assertEquals = function(expected, actual, ptr) { + if (!ptr) + ptr = ""; + if (actual === expected) + return; + if (expected instanceof Date || actual instanceof Date) { + expected = toISODateString(expected); + actual = toISODateString(actual); + if (actual !== expected) + fail(expected, actual, ptr, "date value incorrect;"); + } + if (!expected || !actual || typeof expected != 'object' && typeof actual != 'object') { + if (typeof actual != typeof expected) + fail(typeof expected, typeof actual, ptr, "value type incorrect;"); + if (actual != expected) + fail(expected, actual, ptr, "value incorrect;"); + } + return checkObject(expected, actual, ptr); + } + + function toISODateString(value) { + if (value instanceof Date) { + // JavaScript's ISO string contains a milliseconds component that must be stripped out. + value = value.toISOString().replace('.000', ''); + } + return value; + } + + function checkObject(expected, actual, ptr) { + if (undefOrNull(expected) || undefOrNull(actual)) + fail(expected, actual, ptr, "missing value;"); + if (typeof expected !== typeof actual) + fail(typeof expected, typeof actual, ptr, "wrong type;"); + if (expected.prototype !== actual.prototype) + fail(expected.prototype, actual.prototype, ptr, "wrong prototype;"); + try { + var expectedKeys = Object.keys(expected); + var actualKeys = Object.keys(actual); + } catch (e) { + fail(expectedKeys, actualKeys, ptr, "wrong keys;"); + } + if (actualKeys.length != expectedKeys.length) + fail(expectedKeys.length, actualKeys.length, ptr, "key count incorrect;"); + expectedKeys.sort(); + actualKeys.sort(); + for (var i = 0; i < expectedKeys.length; i++) { + if (actualKeys[i] != expectedKeys[i]) + fail(expectedKeys, actualKeys, ptr, "wrong keys;"); + } + for (i = 0; i < expectedKeys.length; i++) { + var key = expectedKeys[i]; + assertEquals(expected[key], actual[key], ptr + '/' + key); + } + } + + function undefOrNull(v) { + return v === undefined || v === null; + } + + function fail(expected, actual, ptr, msg) { + var text = ptr + ' ' + msg + " expected: " + expected + ", actual: " + actual; + console.log(text); + throw new Error(text); + } + + return assertEquals; +})); diff --git a/test/model/Accept.spec.js b/test/model/Accept.spec.js index e8d04d9b..55978ae2 100644 --- a/test/model/Accept.spec.js +++ b/test/model/Accept.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('Accept', function() { + beforeEach(function() { + instance = new Flipdish.Accept(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of Accept', function() { + // TODO: update the code to test Accept + expect(instance).to.be.a(Flipdish.Accept); + }); - 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() { + // TODO: update the code to test the property EstimatedMinutesForDelivery + expect(instance).to.have.property('EstimatedMinutesForDelivery'); + // expect(instance.EstimatedMinutesForDelivery).to.be(expectedValueLiteral); + }); - it('should have the property estimatedMinutesForDelivery (base name: "EstimatedMinutesForDelivery")', function() { - // uncomment below and update the code to test the property estimatedMinutesForDelivery - //var instane = new Flipdish.Accept(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/AccountDetail.spec.js b/test/model/AccountDetail.spec.js new file mode 100644 index 00000000..599849a1 --- /dev/null +++ b/test/model/AccountDetail.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('AccountDetail', function() { + beforeEach(function() { + instance = new Flipdish.AccountDetail(); + }); + + it('should create an instance of AccountDetail', function() { + // TODO: update the code to test AccountDetail + expect(instance).to.be.a(Flipdish.AccountDetail); + }); + + it('should have the property Email (base name: "Email")', function() { + // TODO: update the code to test the property Email + expect(instance).to.have.property('Email'); + // expect(instance.Email).to.be(expectedValueLiteral); + }); + + it('should have the property SignupSteps (base name: "SignupSteps")', function() { + // TODO: update the code to test the property SignupSteps + expect(instance).to.have.property('SignupSteps'); + // expect(instance.SignupSteps).to.be(expectedValueLiteral); + }); + + it('should have the property IsVerified (base name: "IsVerified")', function() { + // TODO: update the code to test the property IsVerified + expect(instance).to.have.property('IsVerified'); + // expect(instance.IsVerified).to.be(expectedValueLiteral); + }); + + it('should have the property IsSelfServeUser (base name: "IsSelfServeUser")', function() { + // TODO: update the code to test the property IsSelfServeUser + expect(instance).to.have.property('IsSelfServeUser'); + // expect(instance.IsSelfServeUser).to.be(expectedValueLiteral); + }); + + it('should have the property AccountId (base name: "AccountId")', function() { + // TODO: update the code to test the property AccountId + expect(instance).to.have.property('AccountId'); + // expect(instance.AccountId).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Language (base name: "Language")', function() { + // TODO: update the code to test the property Language + expect(instance).to.have.property('Language'); + // expect(instance.Language).to.be(expectedValueLiteral); + }); + + it('should have the property TimeZoneInfoId (base name: "TimeZoneInfoId")', function() { + // TODO: update the code to test the property TimeZoneInfoId + expect(instance).to.have.property('TimeZoneInfoId'); + // expect(instance.TimeZoneInfoId).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayTimesInUserLocalTimeZone (base name: "DisplayTimesInUserLocalTimeZone")', function() { + // TODO: update the code to test the property DisplayTimesInUserLocalTimeZone + expect(instance).to.have.property('DisplayTimesInUserLocalTimeZone'); + // expect(instance.DisplayTimesInUserLocalTimeZone).to.be(expectedValueLiteral); + }); + + it('should have the property ShowHiddenFeatures (base name: "ShowHiddenFeatures")', function() { + // TODO: update the code to test the property ShowHiddenFeatures + expect(instance).to.have.property('ShowHiddenFeatures'); + // expect(instance.ShowHiddenFeatures).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/AccountDetailBase.spec.js b/test/model/AccountDetailBase.spec.js new file mode 100644 index 00000000..709fe441 --- /dev/null +++ b/test/model/AccountDetailBase.spec.js @@ -0,0 +1,76 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('AccountDetailBase', function() { + beforeEach(function() { + instance = new Flipdish.AccountDetailBase(); + }); + + it('should create an instance of AccountDetailBase', function() { + // TODO: update the code to test AccountDetailBase + expect(instance).to.be.a(Flipdish.AccountDetailBase); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Language (base name: "Language")', function() { + // TODO: update the code to test the property Language + expect(instance).to.have.property('Language'); + // expect(instance.Language).to.be(expectedValueLiteral); + }); + + it('should have the property TimeZoneInfoId (base name: "TimeZoneInfoId")', function() { + // TODO: update the code to test the property TimeZoneInfoId + expect(instance).to.have.property('TimeZoneInfoId'); + // expect(instance.TimeZoneInfoId).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayTimesInUserLocalTimeZone (base name: "DisplayTimesInUserLocalTimeZone")', function() { + // TODO: update the code to test the property DisplayTimesInUserLocalTimeZone + expect(instance).to.have.property('DisplayTimesInUserLocalTimeZone'); + // expect(instance.DisplayTimesInUserLocalTimeZone).to.be(expectedValueLiteral); + }); + + it('should have the property ShowHiddenFeatures (base name: "ShowHiddenFeatures")', function() { + // TODO: update the code to test the property ShowHiddenFeatures + expect(instance).to.have.property('ShowHiddenFeatures'); + // expect(instance.ShowHiddenFeatures).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/AccountFieldDefinition.spec.js b/test/model/AccountFieldDefinition.spec.js new file mode 100644 index 00000000..1d60bc81 --- /dev/null +++ b/test/model/AccountFieldDefinition.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('AccountFieldDefinition', function() { + beforeEach(function() { + instance = new Flipdish.AccountFieldDefinition(); + }); + + it('should create an instance of AccountFieldDefinition', function() { + // TODO: update the code to test AccountFieldDefinition + expect(instance).to.be.a(Flipdish.AccountFieldDefinition); + }); + + it('should have the property Key (base name: "Key")', function() { + // TODO: update the code to test the property Key + expect(instance).to.have.property('Key'); + // expect(instance.Key).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayName (base name: "DisplayName")', function() { + // TODO: update the code to test the property DisplayName + expect(instance).to.have.property('DisplayName'); + // expect(instance.DisplayName).to.be(expectedValueLiteral); + }); + + it('should have the property Type (base name: "Type")', function() { + // TODO: update the code to test the property Type + expect(instance).to.have.property('Type'); + // expect(instance.Type).to.be(expectedValueLiteral); + }); + + it('should have the property MinLength (base name: "MinLength")', function() { + // TODO: update the code to test the property MinLength + expect(instance).to.have.property('MinLength'); + // expect(instance.MinLength).to.be(expectedValueLiteral); + }); + + it('should have the property MaxLength (base name: "MaxLength")', function() { + // TODO: update the code to test the property MaxLength + expect(instance).to.have.property('MaxLength'); + // expect(instance.MaxLength).to.be(expectedValueLiteral); + }); + + it('should have the property DigitsOnly (base name: "DigitsOnly")', function() { + // TODO: update the code to test the property DigitsOnly + expect(instance).to.have.property('DigitsOnly'); + // expect(instance.DigitsOnly).to.be(expectedValueLiteral); + }); + + it('should have the property Regex (base name: "Regex")', function() { + // TODO: update the code to test the property Regex + expect(instance).to.have.property('Regex'); + // expect(instance.Regex).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/AccountFieldKeyValuePair.spec.js b/test/model/AccountFieldKeyValuePair.spec.js new file mode 100644 index 00000000..558e76d1 --- /dev/null +++ b/test/model/AccountFieldKeyValuePair.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('AccountFieldKeyValuePair', function() { + beforeEach(function() { + instance = new Flipdish.AccountFieldKeyValuePair(); + }); + + it('should create an instance of AccountFieldKeyValuePair', function() { + // TODO: update the code to test AccountFieldKeyValuePair + expect(instance).to.be.a(Flipdish.AccountFieldKeyValuePair); + }); + + it('should have the property Key (base name: "Key")', function() { + // TODO: update the code to test the property Key + expect(instance).to.have.property('Key'); + // expect(instance.Key).to.be(expectedValueLiteral); + }); + + it('should have the property Value (base name: "Value")', function() { + // TODO: update the code to test the property Value + expect(instance).to.have.property('Value'); + // expect(instance.Value).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/AccountFieldsDefinitions.spec.js b/test/model/AccountFieldsDefinitions.spec.js new file mode 100644 index 00000000..5334abec --- /dev/null +++ b/test/model/AccountFieldsDefinitions.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('AccountFieldsDefinitions', function() { + beforeEach(function() { + instance = new Flipdish.AccountFieldsDefinitions(); + }); + + it('should create an instance of AccountFieldsDefinitions', function() { + // TODO: update the code to test AccountFieldsDefinitions + expect(instance).to.be.a(Flipdish.AccountFieldsDefinitions); + }); + + it('should have the property DefinitionsPerCountry (base name: "DefinitionsPerCountry")', function() { + // TODO: update the code to test the property DefinitionsPerCountry + expect(instance).to.have.property('DefinitionsPerCountry'); + // expect(instance.DefinitionsPerCountry).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/AddItemDetails.spec.js b/test/model/AddItemDetails.spec.js new file mode 100644 index 00000000..1ba844ce --- /dev/null +++ b/test/model/AddItemDetails.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('AddItemDetails', function() { + beforeEach(function() { + instance = new Flipdish.AddItemDetails(); + }); + + it('should create an instance of AddItemDetails', function() { + // TODO: update the code to test AddItemDetails + expect(instance).to.be.a(Flipdish.AddItemDetails); + }); + + it('should have the property PromotionalItemId (base name: "PromotionalItemId")', function() { + // TODO: update the code to test the property PromotionalItemId + expect(instance).to.have.property('PromotionalItemId'); + // expect(instance.PromotionalItemId).to.be(expectedValueLiteral); + }); + + it('should have the property PromotionalItemName (base name: "PromotionalItemName")', function() { + // TODO: update the code to test the property PromotionalItemName + expect(instance).to.have.property('PromotionalItemName'); + // expect(instance.PromotionalItemName).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/AllMetadataResult.spec.js b/test/model/AllMetadataResult.spec.js new file mode 100644 index 00000000..a5cefecd --- /dev/null +++ b/test/model/AllMetadataResult.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('AllMetadataResult', function() { + beforeEach(function() { + instance = new Flipdish.AllMetadataResult(); + }); + + it('should create an instance of AllMetadataResult', function() { + // TODO: update the code to test AllMetadataResult + expect(instance).to.be.a(Flipdish.AllMetadataResult); + }); + + it('should have the property MenuItemMetadata (base name: "MenuItemMetadata")', function() { + // TODO: update the code to test the property MenuItemMetadata + expect(instance).to.have.property('MenuItemMetadata'); + // expect(instance.MenuItemMetadata).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSetItemMetadata (base name: "MenuItemOptionSetItemMetadata")', function() { + // TODO: update the code to test the property MenuItemOptionSetItemMetadata + expect(instance).to.have.property('MenuItemOptionSetItemMetadata'); + // expect(instance.MenuItemOptionSetItemMetadata).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/AnalyticsClientEvent.spec.js b/test/model/AnalyticsClientEvent.spec.js new file mode 100644 index 00000000..930024a9 --- /dev/null +++ b/test/model/AnalyticsClientEvent.spec.js @@ -0,0 +1,112 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('AnalyticsClientEvent', function() { + beforeEach(function() { + instance = new Flipdish.AnalyticsClientEvent(); + }); + + it('should create an instance of AnalyticsClientEvent', function() { + // TODO: update the code to test AnalyticsClientEvent + expect(instance).to.be.a(Flipdish.AnalyticsClientEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property EventType (base name: "EventType")', function() { + // TODO: update the code to test the property EventType + expect(instance).to.have.property('EventType'); + // expect(instance.EventType).to.be(expectedValueLiteral); + }); + + it('should have the property AppType (base name: "AppType")', function() { + // TODO: update the code to test the property AppType + expect(instance).to.have.property('AppType'); + // expect(instance.AppType).to.be(expectedValueLiteral); + }); + + it('should have the property Metadata (base name: "Metadata")', function() { + // TODO: update the code to test the property Metadata + expect(instance).to.have.property('Metadata'); + // expect(instance.Metadata).to.be(expectedValueLiteral); + }); + + it('should have the property UserId (base name: "UserId")', function() { + // TODO: update the code to test the property UserId + expect(instance).to.have.property('UserId'); + // expect(instance.UserId).to.be(expectedValueLiteral); + }); + + it('should have the property Latitude (base name: "Latitude")', function() { + // TODO: update the code to test the property Latitude + expect(instance).to.have.property('Latitude'); + // expect(instance.Latitude).to.be(expectedValueLiteral); + }); + + it('should have the property Longitude (base name: "Longitude")', function() { + // TODO: update the code to test the property Longitude + expect(instance).to.have.property('Longitude'); + // expect(instance.Longitude).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/ApmCurrencyDataPoint.spec.js b/test/model/ApmCurrencyDataPoint.spec.js new file mode 100644 index 00000000..3476ca86 --- /dev/null +++ b/test/model/ApmCurrencyDataPoint.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('ApmCurrencyDataPoint', function() { + beforeEach(function() { + instance = new Flipdish.ApmCurrencyDataPoint(); + }); + + it('should create an instance of ApmCurrencyDataPoint', function() { + // TODO: update the code to test ApmCurrencyDataPoint + expect(instance).to.be.a(Flipdish.ApmCurrencyDataPoint); + }); + + it('should have the property PeriodStart (base name: "PeriodStart")', function() { + // TODO: update the code to test the property PeriodStart + expect(instance).to.have.property('PeriodStart'); + // expect(instance.PeriodStart).to.be(expectedValueLiteral); + }); + + it('should have the property PeriodLengthInDays (base name: "PeriodLengthInDays")', function() { + // TODO: update the code to test the property PeriodLengthInDays + expect(instance).to.have.property('PeriodLengthInDays'); + // expect(instance.PeriodLengthInDays).to.be(expectedValueLiteral); + }); + + it('should have the property CurrencyData (base name: "CurrencyData")', function() { + // TODO: update the code to test the property CurrencyData + expect(instance).to.have.property('CurrencyData'); + // expect(instance.CurrencyData).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/ApmDataPoint.spec.js b/test/model/ApmDataPoint.spec.js new file mode 100644 index 00000000..b04a3809 --- /dev/null +++ b/test/model/ApmDataPoint.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('ApmDataPoint', function() { + beforeEach(function() { + instance = new Flipdish.ApmDataPoint(); + }); + + it('should create an instance of ApmDataPoint', function() { + // TODO: update the code to test ApmDataPoint + expect(instance).to.be.a(Flipdish.ApmDataPoint); + }); + + it('should have the property PeriodStart (base name: "PeriodStart")', function() { + // TODO: update the code to test the property PeriodStart + expect(instance).to.have.property('PeriodStart'); + // expect(instance.PeriodStart).to.be(expectedValueLiteral); + }); + + it('should have the property PeriodLengthInDays (base name: "PeriodLengthInDays")', function() { + // TODO: update the code to test the property PeriodLengthInDays + expect(instance).to.have.property('PeriodLengthInDays'); + // expect(instance.PeriodLengthInDays).to.be(expectedValueLiteral); + }); + + it('should have the property Value (base name: "Value")', function() { + // TODO: update the code to test the property Value + expect(instance).to.have.property('Value'); + // expect(instance.Value).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/ApmHourlyDataPoint.spec.js b/test/model/ApmHourlyDataPoint.spec.js new file mode 100644 index 00000000..97c0d9f2 --- /dev/null +++ b/test/model/ApmHourlyDataPoint.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('ApmHourlyDataPoint', function() { + beforeEach(function() { + instance = new Flipdish.ApmHourlyDataPoint(); + }); + + it('should create an instance of ApmHourlyDataPoint', function() { + // TODO: update the code to test ApmHourlyDataPoint + expect(instance).to.be.a(Flipdish.ApmHourlyDataPoint); + }); + + it('should have the property Day (base name: "Day")', function() { + // TODO: update the code to test the property Day + expect(instance).to.have.property('Day'); + // expect(instance.Day).to.be(expectedValueLiteral); + }); + + it('should have the property Hour (base name: "Hour")', function() { + // TODO: update the code to test the property Hour + expect(instance).to.have.property('Hour'); + // expect(instance.Hour).to.be(expectedValueLiteral); + }); + + it('should have the property TotalValue (base name: "TotalValue")', function() { + // TODO: update the code to test the property TotalValue + expect(instance).to.have.property('TotalValue'); + // expect(instance.TotalValue).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/ApmStatistics.spec.js b/test/model/ApmStatistics.spec.js new file mode 100644 index 00000000..c628c5c5 --- /dev/null +++ b/test/model/ApmStatistics.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('ApmStatistics', function() { + beforeEach(function() { + instance = new Flipdish.ApmStatistics(); + }); + + it('should create an instance of ApmStatistics', function() { + // TODO: update the code to test ApmStatistics + expect(instance).to.be.a(Flipdish.ApmStatistics); + }); + + it('should have the property EstimatedMinutesSaved (base name: "EstimatedMinutesSaved")', function() { + // TODO: update the code to test the property EstimatedMinutesSaved + expect(instance).to.have.property('EstimatedMinutesSaved'); + // expect(instance.EstimatedMinutesSaved).to.be(expectedValueLiteral); + }); + + it('should have the property EstimatedMinutesCouldSaved (base name: "EstimatedMinutesCouldSaved")', function() { + // TODO: update the code to test the property EstimatedMinutesCouldSaved + expect(instance).to.have.property('EstimatedMinutesCouldSaved'); + // expect(instance.EstimatedMinutesCouldSaved).to.be(expectedValueLiteral); + }); + + it('should have the property CurrencyData (base name: "CurrencyData")', function() { + // TODO: update the code to test the property CurrencyData + expect(instance).to.have.property('CurrencyData'); + // expect(instance.CurrencyData).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/ApmStatus.spec.js b/test/model/ApmStatus.spec.js new file mode 100644 index 00000000..fd4dd963 --- /dev/null +++ b/test/model/ApmStatus.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('ApmStatus', function() { + beforeEach(function() { + instance = new Flipdish.ApmStatus(); + }); + + it('should create an instance of ApmStatus', function() { + // TODO: update the code to test ApmStatus + expect(instance).to.be.a(Flipdish.ApmStatus); + }); + + it('should have the property IsApmEnabled (base name: "IsApmEnabled")', function() { + // TODO: update the code to test the property IsApmEnabled + expect(instance).to.have.property('IsApmEnabled'); + // expect(instance.IsApmEnabled).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/App.spec.js b/test/model/App.spec.js new file mode 100644 index 00000000..3340b9bf --- /dev/null +++ b/test/model/App.spec.js @@ -0,0 +1,160 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('App', function() { + beforeEach(function() { + instance = new Flipdish.App(); + }); + + it('should create an instance of App', function() { + // TODO: update the code to test App + expect(instance).to.be.a(Flipdish.App); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + it('should have the property HasIosApp (base name: "HasIosApp")', function() { + // TODO: update the code to test the property HasIosApp + expect(instance).to.have.property('HasIosApp'); + // expect(instance.HasIosApp).to.be(expectedValueLiteral); + }); + + it('should have the property HasAndroidApp (base name: "HasAndroidApp")', function() { + // TODO: update the code to test the property HasAndroidApp + expect(instance).to.have.property('HasAndroidApp'); + // expect(instance.HasAndroidApp).to.be(expectedValueLiteral); + }); + + it('should have the property CountryId (base name: "CountryId")', function() { + // TODO: update the code to test the property CountryId + expect(instance).to.have.property('CountryId'); + // expect(instance.CountryId).to.be(expectedValueLiteral); + }); + + it('should have the property LogoImageUrl (base name: "LogoImageUrl")', function() { + // TODO: update the code to test the property LogoImageUrl + expect(instance).to.have.property('LogoImageUrl'); + // expect(instance.LogoImageUrl).to.be(expectedValueLiteral); + }); + + it('should have the property Languages (base name: "Languages")', function() { + // TODO: update the code to test the property Languages + expect(instance).to.have.property('Languages'); + // expect(instance.Languages).to.be(expectedValueLiteral); + }); + + it('should have the property AvailableAppLanguages (base name: "AvailableAppLanguages")', function() { + // TODO: update the code to test the property AvailableAppLanguages + expect(instance).to.have.property('AvailableAppLanguages'); + // expect(instance.AvailableAppLanguages).to.be(expectedValueLiteral); + }); + + it('should have the property AppAccessLevel (base name: "AppAccessLevel")', function() { + // TODO: update the code to test the property AppAccessLevel + expect(instance).to.have.property('AppAccessLevel'); + // expect(instance.AppAccessLevel).to.be(expectedValueLiteral); + }); + + it('should have the property AppResourceSet (base name: "AppResourceSet")', function() { + // TODO: update the code to test the property AppResourceSet + expect(instance).to.have.property('AppResourceSet'); + // expect(instance.AppResourceSet).to.be(expectedValueLiteral); + }); + + it('should have the property Features (base name: "Features")', function() { + // TODO: update the code to test the property Features + expect(instance).to.have.property('Features'); + // expect(instance.Features).to.be(expectedValueLiteral); + }); + + it('should have the property MapCenter (base name: "MapCenter")', function() { + // TODO: update the code to test the property MapCenter + expect(instance).to.have.property('MapCenter'); + // expect(instance.MapCenter).to.be(expectedValueLiteral); + }); + + it('should have the property MapNorthEast (base name: "MapNorthEast")', function() { + // TODO: update the code to test the property MapNorthEast + expect(instance).to.have.property('MapNorthEast'); + // expect(instance.MapNorthEast).to.be(expectedValueLiteral); + }); + + it('should have the property MapSouthWest (base name: "MapSouthWest")', function() { + // TODO: update the code to test the property MapSouthWest + expect(instance).to.have.property('MapSouthWest'); + // expect(instance.MapSouthWest).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property HostName (base name: "HostName")', function() { + // TODO: update the code to test the property HostName + expect(instance).to.have.property('HostName'); + // expect(instance.HostName).to.be(expectedValueLiteral); + }); + + it('should have the property MainColor (base name: "MainColor")', function() { + // TODO: update the code to test the property MainColor + expect(instance).to.have.property('MainColor'); + // expect(instance.MainColor).to.be(expectedValueLiteral); + }); + + it('should have the property ApplicationCategory (base name: "ApplicationCategory")', function() { + // TODO: update the code to test the property ApplicationCategory + expect(instance).to.have.property('ApplicationCategory'); + // expect(instance.ApplicationCategory).to.be(expectedValueLiteral); + }); + + it('should have the property IsPanaceaEnabled (base name: "IsPanaceaEnabled")', function() { + // TODO: update the code to test the property IsPanaceaEnabled + expect(instance).to.have.property('IsPanaceaEnabled'); + // expect(instance.IsPanaceaEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property CookieConsentPromptEnabled (base name: "CookieConsentPromptEnabled")', function() { + // TODO: update the code to test the property CookieConsentPromptEnabled + expect(instance).to.have.property('CookieConsentPromptEnabled'); + // expect(instance.CookieConsentPromptEnabled).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/AppCompliance.spec.js b/test/model/AppCompliance.spec.js new file mode 100644 index 00000000..ed32f81f --- /dev/null +++ b/test/model/AppCompliance.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('AppCompliance', function() { + beforeEach(function() { + instance = new Flipdish.AppCompliance(); + }); + + it('should create an instance of AppCompliance', function() { + // TODO: update the code to test AppCompliance + expect(instance).to.be.a(Flipdish.AppCompliance); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + it('should have the property ComplianceType (base name: "ComplianceType")', function() { + // TODO: update the code to test the property ComplianceType + expect(instance).to.have.property('ComplianceType'); + // expect(instance.ComplianceType).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/AppConfigUpdateModel.spec.js b/test/model/AppConfigUpdateModel.spec.js new file mode 100644 index 00000000..d1eb47db --- /dev/null +++ b/test/model/AppConfigUpdateModel.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('AppConfigUpdateModel', function() { + beforeEach(function() { + instance = new Flipdish.AppConfigUpdateModel(); + }); + + it('should create an instance of AppConfigUpdateModel', function() { + // TODO: update the code to test AppConfigUpdateModel + expect(instance).to.be.a(Flipdish.AppConfigUpdateModel); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property HostName (base name: "HostName")', function() { + // TODO: update the code to test the property HostName + expect(instance).to.have.property('HostName'); + // expect(instance.HostName).to.be(expectedValueLiteral); + }); + + it('should have the property MainColor (base name: "MainColor")', function() { + // TODO: update the code to test the property MainColor + expect(instance).to.have.property('MainColor'); + // expect(instance.MainColor).to.be(expectedValueLiteral); + }); + + it('should have the property ApplicationCategory (base name: "ApplicationCategory")', function() { + // TODO: update the code to test the property ApplicationCategory + expect(instance).to.have.property('ApplicationCategory'); + // expect(instance.ApplicationCategory).to.be(expectedValueLiteral); + }); + + it('should have the property IsPanaceaEnabled (base name: "IsPanaceaEnabled")', function() { + // TODO: update the code to test the property IsPanaceaEnabled + expect(instance).to.have.property('IsPanaceaEnabled'); + // expect(instance.IsPanaceaEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property CookieConsentPromptEnabled (base name: "CookieConsentPromptEnabled")', function() { + // TODO: update the code to test the property CookieConsentPromptEnabled + expect(instance).to.have.property('CookieConsentPromptEnabled'); + // expect(instance.CookieConsentPromptEnabled).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/AppCreatedEvent.spec.js b/test/model/AppCreatedEvent.spec.js new file mode 100644 index 00000000..cf8aad41 --- /dev/null +++ b/test/model/AppCreatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('AppCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.AppCreatedEvent(); + }); + + it('should create an instance of AppCreatedEvent', function() { + // TODO: update the code to test AppCreatedEvent + expect(instance).to.be.a(Flipdish.AppCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property AppName (base name: "AppName")', function() { + // TODO: update the code to test the property AppName + expect(instance).to.have.property('AppName'); + // expect(instance.AppName).to.be(expectedValueLiteral); + }); + + it('should have the property CountryId (base name: "CountryId")', function() { + // TODO: update the code to test the property CountryId + expect(instance).to.have.property('CountryId'); + // expect(instance.CountryId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/AppUpdatedEvent.spec.js b/test/model/AppUpdatedEvent.spec.js new file mode 100644 index 00000000..14d7f3a8 --- /dev/null +++ b/test/model/AppUpdatedEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('AppUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.AppUpdatedEvent(); + }); + + it('should create an instance of AppUpdatedEvent', function() { + // TODO: update the code to test AppUpdatedEvent + expect(instance).to.be.a(Flipdish.AppUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property Changes (base name: "Changes")', function() { + // TODO: update the code to test the property Changes + expect(instance).to.have.property('Changes'); + // expect(instance.Changes).to.be(expectedValueLiteral); + }); + + it('should have the property AppName (base name: "AppName")', function() { + // TODO: update the code to test the property AppName + expect(instance).to.have.property('AppName'); + // expect(instance.AppName).to.be(expectedValueLiteral); + }); + + it('should have the property CountryId (base name: "CountryId")', function() { + // TODO: update the code to test the property CountryId + expect(instance).to.have.property('CountryId'); + // expect(instance.CountryId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/AssignedBankAccount.spec.js b/test/model/AssignedBankAccount.spec.js new file mode 100644 index 00000000..3b8bdae0 --- /dev/null +++ b/test/model/AssignedBankAccount.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('AssignedBankAccount', function() { + beforeEach(function() { + instance = new Flipdish.AssignedBankAccount(); + }); + + it('should create an instance of AssignedBankAccount', function() { + // TODO: update the code to test AssignedBankAccount + expect(instance).to.be.a(Flipdish.AssignedBankAccount); + }); + + it('should have the property Id (base name: "Id")', function() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); + + it('should have the property BankAccountName (base name: "BankAccountName")', function() { + // TODO: update the code to test the property BankAccountName + expect(instance).to.have.property('BankAccountName'); + // expect(instance.BankAccountName).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/BalanceDetails.spec.js b/test/model/BalanceDetails.spec.js new file mode 100644 index 00000000..9a227576 --- /dev/null +++ b/test/model/BalanceDetails.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('BalanceDetails', function() { + beforeEach(function() { + instance = new Flipdish.BalanceDetails(); + }); + + it('should create an instance of BalanceDetails', function() { + // TODO: update the code to test BalanceDetails + expect(instance).to.be.a(Flipdish.BalanceDetails); + }); + + it('should have the property OpeningBalance (base name: "OpeningBalance")', function() { + // TODO: update the code to test the property OpeningBalance + expect(instance).to.have.property('OpeningBalance'); + // expect(instance.OpeningBalance).to.be(expectedValueLiteral); + }); + + it('should have the property ClosingBalance (base name: "ClosingBalance")', function() { + // TODO: update the code to test the property ClosingBalance + expect(instance).to.have.property('ClosingBalance'); + // expect(instance.ClosingBalance).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/BankAccount.spec.js b/test/model/BankAccount.spec.js new file mode 100644 index 00000000..9f5be0fb --- /dev/null +++ b/test/model/BankAccount.spec.js @@ -0,0 +1,118 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('BankAccount', function() { + beforeEach(function() { + instance = new Flipdish.BankAccount(); + }); + + it('should create an instance of BankAccount', function() { + // TODO: update the code to test BankAccount + expect(instance).to.be.a(Flipdish.BankAccount); + }); + + it('should have the property Id (base name: "Id")', function() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // TODO: update the code to test the property AccountName + expect(instance).to.have.property('AccountName'); + // expect(instance.AccountName).to.be(expectedValueLiteral); + }); + + it('should have the property Iban (base name: "Iban")', function() { + // TODO: update the code to test the property Iban + expect(instance).to.have.property('Iban'); + // expect(instance.Iban).to.be(expectedValueLiteral); + }); + + it('should have the property Swift (base name: "Swift")', function() { + // TODO: update the code to test the property Swift + expect(instance).to.have.property('Swift'); + // expect(instance.Swift).to.be(expectedValueLiteral); + }); + + it('should have the property PopulatedAccountFields (base name: "PopulatedAccountFields")', function() { + // TODO: update the code to test the property PopulatedAccountFields + expect(instance).to.have.property('PopulatedAccountFields'); + // expect(instance.PopulatedAccountFields).to.be(expectedValueLiteral); + }); + + it('should have the property AccountState (base name: "AccountState")', function() { + // TODO: update the code to test the property AccountState + expect(instance).to.have.property('AccountState'); + // expect(instance.AccountState).to.be(expectedValueLiteral); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // TODO: update the code to test the property StoreNames + expect(instance).to.have.property('StoreNames'); + // expect(instance.StoreNames).to.be(expectedValueLiteral); + }); + + it('should have the property BankAddress (base name: "BankAddress")', function() { + // TODO: update the code to test the property BankAddress + expect(instance).to.have.property('BankAddress'); + // expect(instance.BankAddress).to.be(expectedValueLiteral); + }); + + it('should have the property BankCountryCode (base name: "BankCountryCode")', function() { + // TODO: update the code to test the property BankCountryCode + expect(instance).to.have.property('BankCountryCode'); + // expect(instance.BankCountryCode).to.be(expectedValueLiteral); + }); + + it('should have the property AccountHolderAddress (base name: "AccountHolderAddress")', function() { + // TODO: update the code to test the property AccountHolderAddress + expect(instance).to.have.property('AccountHolderAddress'); + // expect(instance.AccountHolderAddress).to.be(expectedValueLiteral); + }); + + it('should have the property AccountHolderCountryCode (base name: "AccountHolderCountryCode")', function() { + // TODO: update the code to test the property AccountHolderCountryCode + expect(instance).to.have.property('AccountHolderCountryCode'); + // expect(instance.AccountHolderCountryCode).to.be(expectedValueLiteral); + }); + + it('should have the property VatNumber (base name: "VatNumber")', function() { + // TODO: update the code to test the property VatNumber + expect(instance).to.have.property('VatNumber'); + // expect(instance.VatNumber).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/BankAccountCreate.spec.js b/test/model/BankAccountCreate.spec.js new file mode 100644 index 00000000..f0b238e3 --- /dev/null +++ b/test/model/BankAccountCreate.spec.js @@ -0,0 +1,136 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('BankAccountCreate', function() { + beforeEach(function() { + instance = new Flipdish.BankAccountCreate(); + }); + + it('should create an instance of BankAccountCreate', function() { + // TODO: update the code to test BankAccountCreate + expect(instance).to.be.a(Flipdish.BankAccountCreate); + }); + + it('should have the property BankAddress (base name: "BankAddress")', function() { + // TODO: update the code to test the property BankAddress + expect(instance).to.have.property('BankAddress'); + // expect(instance.BankAddress).to.be(expectedValueLiteral); + }); + + it('should have the property BankCountryCode (base name: "BankCountryCode")', function() { + // TODO: update the code to test the property BankCountryCode + expect(instance).to.have.property('BankCountryCode'); + // expect(instance.BankCountryCode).to.be(expectedValueLiteral); + }); + + it('should have the property AccountHolderAddress (base name: "AccountHolderAddress")', function() { + // TODO: update the code to test the property AccountHolderAddress + expect(instance).to.have.property('AccountHolderAddress'); + // expect(instance.AccountHolderAddress).to.be(expectedValueLiteral); + }); + + it('should have the property AccountHolderCountryCode (base name: "AccountHolderCountryCode")', function() { + // TODO: update the code to test the property AccountHolderCountryCode + expect(instance).to.have.property('AccountHolderCountryCode'); + // expect(instance.AccountHolderCountryCode).to.be(expectedValueLiteral); + }); + + it('should have the property VatNumber (base name: "VatNumber")', function() { + // TODO: update the code to test the property VatNumber + expect(instance).to.have.property('VatNumber'); + // expect(instance.VatNumber).to.be(expectedValueLiteral); + }); + + it('should have the property CurrencyCode (base name: "CurrencyCode")', function() { + // TODO: update the code to test the property CurrencyCode + expect(instance).to.have.property('CurrencyCode'); + // expect(instance.CurrencyCode).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + it('should have the property BankName (base name: "BankName")', function() { + // TODO: update the code to test the property BankName + expect(instance).to.have.property('BankName'); + // expect(instance.BankName).to.be(expectedValueLiteral); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // TODO: update the code to test the property AccountName + expect(instance).to.have.property('AccountName'); + // expect(instance.AccountName).to.be(expectedValueLiteral); + }); + + it('should have the property Iban (base name: "Iban")', function() { + // TODO: update the code to test the property Iban + expect(instance).to.have.property('Iban'); + // expect(instance.Iban).to.be(expectedValueLiteral); + }); + + it('should have the property Swift (base name: "Swift")', function() { + // TODO: update the code to test the property Swift + expect(instance).to.have.property('Swift'); + // expect(instance.Swift).to.be(expectedValueLiteral); + }); + + it('should have the property NationalClearingCode (base name: "NationalClearingCode")', function() { + // TODO: update the code to test the property NationalClearingCode + expect(instance).to.have.property('NationalClearingCode'); + // expect(instance.NationalClearingCode).to.be(expectedValueLiteral); + }); + + it('should have the property PopulatedAccountFields (base name: "PopulatedAccountFields")', function() { + // TODO: update the code to test the property PopulatedAccountFields + expect(instance).to.have.property('PopulatedAccountFields'); + // expect(instance.PopulatedAccountFields).to.be(expectedValueLiteral); + }); + + it('should have the property RejectionReason (base name: "RejectionReason")', function() { + // TODO: update the code to test the property RejectionReason + expect(instance).to.have.property('RejectionReason'); + // expect(instance.RejectionReason).to.be(expectedValueLiteral); + }); + + it('should have the property BusinessType (base name: "BusinessType")', function() { + // TODO: update the code to test the property BusinessType + expect(instance).to.have.property('BusinessType'); + // expect(instance.BusinessType).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/BankAccountCreatedEvent.spec.js b/test/model/BankAccountCreatedEvent.spec.js new file mode 100644 index 00000000..ba9fa0b3 --- /dev/null +++ b/test/model/BankAccountCreatedEvent.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('BankAccountCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.BankAccountCreatedEvent(); + }); + + it('should create an instance of BankAccountCreatedEvent', function() { + // TODO: update the code to test BankAccountCreatedEvent + expect(instance).to.be.a(Flipdish.BankAccountCreatedEvent); + }); + + it('should have the property BankAccount (base name: "BankAccount")', function() { + // TODO: update the code to test the property BankAccount + expect(instance).to.have.property('BankAccount'); + // expect(instance.BankAccount).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/BankAccountDeletedEvent.spec.js b/test/model/BankAccountDeletedEvent.spec.js new file mode 100644 index 00000000..73103187 --- /dev/null +++ b/test/model/BankAccountDeletedEvent.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('BankAccountDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.BankAccountDeletedEvent(); + }); + + it('should create an instance of BankAccountDeletedEvent', function() { + // TODO: update the code to test BankAccountDeletedEvent + expect(instance).to.be.a(Flipdish.BankAccountDeletedEvent); + }); + + it('should have the property BankAccount (base name: "BankAccount")', function() { + // TODO: update the code to test the property BankAccount + expect(instance).to.have.property('BankAccount'); + // expect(instance.BankAccount).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/BankAccountDetail.spec.js b/test/model/BankAccountDetail.spec.js new file mode 100644 index 00000000..3a506c44 --- /dev/null +++ b/test/model/BankAccountDetail.spec.js @@ -0,0 +1,160 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('BankAccountDetail', function() { + beforeEach(function() { + instance = new Flipdish.BankAccountDetail(); + }); + + it('should create an instance of BankAccountDetail', function() { + // TODO: update the code to test BankAccountDetail + expect(instance).to.be.a(Flipdish.BankAccountDetail); + }); + + it('should have the property Id (base name: "Id")', function() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // TODO: update the code to test the property StoreNames + expect(instance).to.have.property('StoreNames'); + // expect(instance.StoreNames).to.be(expectedValueLiteral); + }); + + it('should have the property AccountState (base name: "AccountState")', function() { + // TODO: update the code to test the property AccountState + expect(instance).to.have.property('AccountState'); + // expect(instance.AccountState).to.be(expectedValueLiteral); + }); + + it('should have the property StripeConnectedAccountInfo (base name: "StripeConnectedAccountInfo")', function() { + // TODO: update the code to test the property StripeConnectedAccountInfo + expect(instance).to.have.property('StripeConnectedAccountInfo'); + // expect(instance.StripeConnectedAccountInfo).to.be(expectedValueLiteral); + }); + + it('should have the property BankAddress (base name: "BankAddress")', function() { + // TODO: update the code to test the property BankAddress + expect(instance).to.have.property('BankAddress'); + // expect(instance.BankAddress).to.be(expectedValueLiteral); + }); + + it('should have the property BankCountryCode (base name: "BankCountryCode")', function() { + // TODO: update the code to test the property BankCountryCode + expect(instance).to.have.property('BankCountryCode'); + // expect(instance.BankCountryCode).to.be(expectedValueLiteral); + }); + + it('should have the property AccountHolderAddress (base name: "AccountHolderAddress")', function() { + // TODO: update the code to test the property AccountHolderAddress + expect(instance).to.have.property('AccountHolderAddress'); + // expect(instance.AccountHolderAddress).to.be(expectedValueLiteral); + }); + + it('should have the property AccountHolderCountryCode (base name: "AccountHolderCountryCode")', function() { + // TODO: update the code to test the property AccountHolderCountryCode + expect(instance).to.have.property('AccountHolderCountryCode'); + // expect(instance.AccountHolderCountryCode).to.be(expectedValueLiteral); + }); + + it('should have the property VatNumber (base name: "VatNumber")', function() { + // TODO: update the code to test the property VatNumber + expect(instance).to.have.property('VatNumber'); + // expect(instance.VatNumber).to.be(expectedValueLiteral); + }); + + it('should have the property CurrencyCode (base name: "CurrencyCode")', function() { + // TODO: update the code to test the property CurrencyCode + expect(instance).to.have.property('CurrencyCode'); + // expect(instance.CurrencyCode).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + it('should have the property BankName (base name: "BankName")', function() { + // TODO: update the code to test the property BankName + expect(instance).to.have.property('BankName'); + // expect(instance.BankName).to.be(expectedValueLiteral); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // TODO: update the code to test the property AccountName + expect(instance).to.have.property('AccountName'); + // expect(instance.AccountName).to.be(expectedValueLiteral); + }); + + it('should have the property Iban (base name: "Iban")', function() { + // TODO: update the code to test the property Iban + expect(instance).to.have.property('Iban'); + // expect(instance.Iban).to.be(expectedValueLiteral); + }); + + it('should have the property Swift (base name: "Swift")', function() { + // TODO: update the code to test the property Swift + expect(instance).to.have.property('Swift'); + // expect(instance.Swift).to.be(expectedValueLiteral); + }); + + it('should have the property NationalClearingCode (base name: "NationalClearingCode")', function() { + // TODO: update the code to test the property NationalClearingCode + expect(instance).to.have.property('NationalClearingCode'); + // expect(instance.NationalClearingCode).to.be(expectedValueLiteral); + }); + + it('should have the property PopulatedAccountFields (base name: "PopulatedAccountFields")', function() { + // TODO: update the code to test the property PopulatedAccountFields + expect(instance).to.have.property('PopulatedAccountFields'); + // expect(instance.PopulatedAccountFields).to.be(expectedValueLiteral); + }); + + it('should have the property RejectionReason (base name: "RejectionReason")', function() { + // TODO: update the code to test the property RejectionReason + expect(instance).to.have.property('RejectionReason'); + // expect(instance.RejectionReason).to.be(expectedValueLiteral); + }); + + it('should have the property BusinessType (base name: "BusinessType")', function() { + // TODO: update the code to test the property BusinessType + expect(instance).to.have.property('BusinessType'); + // expect(instance.BusinessType).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/BankAccountDetailsUpdateRequest.spec.js b/test/model/BankAccountDetailsUpdateRequest.spec.js new file mode 100644 index 00000000..a2b0722b --- /dev/null +++ b/test/model/BankAccountDetailsUpdateRequest.spec.js @@ -0,0 +1,118 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('BankAccountDetailsUpdateRequest', function() { + beforeEach(function() { + instance = new Flipdish.BankAccountDetailsUpdateRequest(); + }); + + it('should create an instance of BankAccountDetailsUpdateRequest', function() { + // TODO: update the code to test BankAccountDetailsUpdateRequest + expect(instance).to.be.a(Flipdish.BankAccountDetailsUpdateRequest); + }); + + it('should have the property BankAddress (base name: "BankAddress")', function() { + // TODO: update the code to test the property BankAddress + expect(instance).to.have.property('BankAddress'); + // expect(instance.BankAddress).to.be(expectedValueLiteral); + }); + + it('should have the property AccountHolderAddress (base name: "AccountHolderAddress")', function() { + // TODO: update the code to test the property AccountHolderAddress + expect(instance).to.have.property('AccountHolderAddress'); + // expect(instance.AccountHolderAddress).to.be(expectedValueLiteral); + }); + + it('should have the property VatNumber (base name: "VatNumber")', function() { + // TODO: update the code to test the property VatNumber + expect(instance).to.have.property('VatNumber'); + // expect(instance.VatNumber).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + it('should have the property BankName (base name: "BankName")', function() { + // TODO: update the code to test the property BankName + expect(instance).to.have.property('BankName'); + // expect(instance.BankName).to.be(expectedValueLiteral); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // TODO: update the code to test the property AccountName + expect(instance).to.have.property('AccountName'); + // expect(instance.AccountName).to.be(expectedValueLiteral); + }); + + it('should have the property Iban (base name: "Iban")', function() { + // TODO: update the code to test the property Iban + expect(instance).to.have.property('Iban'); + // expect(instance.Iban).to.be(expectedValueLiteral); + }); + + it('should have the property Swift (base name: "Swift")', function() { + // TODO: update the code to test the property Swift + expect(instance).to.have.property('Swift'); + // expect(instance.Swift).to.be(expectedValueLiteral); + }); + + it('should have the property NationalClearingCode (base name: "NationalClearingCode")', function() { + // TODO: update the code to test the property NationalClearingCode + expect(instance).to.have.property('NationalClearingCode'); + // expect(instance.NationalClearingCode).to.be(expectedValueLiteral); + }); + + it('should have the property PopulatedAccountFields (base name: "PopulatedAccountFields")', function() { + // TODO: update the code to test the property PopulatedAccountFields + expect(instance).to.have.property('PopulatedAccountFields'); + // expect(instance.PopulatedAccountFields).to.be(expectedValueLiteral); + }); + + it('should have the property RejectionReason (base name: "RejectionReason")', function() { + // TODO: update the code to test the property RejectionReason + expect(instance).to.have.property('RejectionReason'); + // expect(instance.RejectionReason).to.be(expectedValueLiteral); + }); + + it('should have the property BusinessType (base name: "BusinessType")', function() { + // TODO: update the code to test the property BusinessType + expect(instance).to.have.property('BusinessType'); + // expect(instance.BusinessType).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/BankAccountSummary.spec.js b/test/model/BankAccountSummary.spec.js new file mode 100644 index 00000000..99f25844 --- /dev/null +++ b/test/model/BankAccountSummary.spec.js @@ -0,0 +1,118 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('BankAccountSummary', function() { + beforeEach(function() { + instance = new Flipdish.BankAccountSummary(); + }); + + it('should create an instance of BankAccountSummary', function() { + // TODO: update the code to test BankAccountSummary + expect(instance).to.be.a(Flipdish.BankAccountSummary); + }); + + it('should have the property Id (base name: "Id")', function() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // TODO: update the code to test the property StoreNames + expect(instance).to.have.property('StoreNames'); + // expect(instance.StoreNames).to.be(expectedValueLiteral); + }); + + it('should have the property AccountState (base name: "AccountState")', function() { + // TODO: update the code to test the property AccountState + expect(instance).to.have.property('AccountState'); + // expect(instance.AccountState).to.be(expectedValueLiteral); + }); + + it('should have the property CurrencyCode (base name: "CurrencyCode")', function() { + // TODO: update the code to test the property CurrencyCode + expect(instance).to.have.property('CurrencyCode'); + // expect(instance.CurrencyCode).to.be(expectedValueLiteral); + }); + + it('should have the property StripeConnectedAccountInfo (base name: "StripeConnectedAccountInfo")', function() { + // TODO: update the code to test the property StripeConnectedAccountInfo + expect(instance).to.have.property('StripeConnectedAccountInfo'); + // expect(instance.StripeConnectedAccountInfo).to.be(expectedValueLiteral); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // TODO: update the code to test the property AccountName + expect(instance).to.have.property('AccountName'); + // expect(instance.AccountName).to.be(expectedValueLiteral); + }); + + it('should have the property Iban (base name: "Iban")', function() { + // TODO: update the code to test the property Iban + expect(instance).to.have.property('Iban'); + // expect(instance.Iban).to.be(expectedValueLiteral); + }); + + it('should have the property Swift (base name: "Swift")', function() { + // TODO: update the code to test the property Swift + expect(instance).to.have.property('Swift'); + // expect(instance.Swift).to.be(expectedValueLiteral); + }); + + it('should have the property NationalClearingCode (base name: "NationalClearingCode")', function() { + // TODO: update the code to test the property NationalClearingCode + expect(instance).to.have.property('NationalClearingCode'); + // expect(instance.NationalClearingCode).to.be(expectedValueLiteral); + }); + + it('should have the property PopulatedAccountFields (base name: "PopulatedAccountFields")', function() { + // TODO: update the code to test the property PopulatedAccountFields + expect(instance).to.have.property('PopulatedAccountFields'); + // expect(instance.PopulatedAccountFields).to.be(expectedValueLiteral); + }); + + it('should have the property RejectionReason (base name: "RejectionReason")', function() { + // TODO: update the code to test the property RejectionReason + expect(instance).to.have.property('RejectionReason'); + // expect(instance.RejectionReason).to.be(expectedValueLiteral); + }); + + it('should have the property BusinessType (base name: "BusinessType")', function() { + // TODO: update the code to test the property BusinessType + expect(instance).to.have.property('BusinessType'); + // expect(instance.BusinessType).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/BankAccountUpdatedEvent.spec.js b/test/model/BankAccountUpdatedEvent.spec.js new file mode 100644 index 00000000..4f08e02e --- /dev/null +++ b/test/model/BankAccountUpdatedEvent.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('BankAccountUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.BankAccountUpdatedEvent(); + }); + + it('should create an instance of BankAccountUpdatedEvent', function() { + // TODO: update the code to test BankAccountUpdatedEvent + expect(instance).to.be.a(Flipdish.BankAccountUpdatedEvent); + }); + + it('should have the property BankAccount (base name: "BankAccount")', function() { + // TODO: update the code to test the property BankAccount + expect(instance).to.have.property('BankAccount'); + // expect(instance.BankAccount).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/BluetoothTerminalStatus.spec.js b/test/model/BluetoothTerminalStatus.spec.js new file mode 100644 index 00000000..6a9cb4d0 --- /dev/null +++ b/test/model/BluetoothTerminalStatus.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('BluetoothTerminalStatus', function() { + beforeEach(function() { + instance = new Flipdish.BluetoothTerminalStatus(); + }); + + it('should create an instance of BluetoothTerminalStatus', function() { + // TODO: update the code to test BluetoothTerminalStatus + expect(instance).to.be.a(Flipdish.BluetoothTerminalStatus); + }); + + it('should have the property SerialNumber (base name: "SerialNumber")', function() { + // TODO: update the code to test the property SerialNumber + expect(instance).to.have.property('SerialNumber'); + // expect(instance.SerialNumber).to.be(expectedValueLiteral); + }); + + it('should have the property SoftwareVersion (base name: "SoftwareVersion")', function() { + // TODO: update the code to test the property SoftwareVersion + expect(instance).to.have.property('SoftwareVersion'); + // expect(instance.SoftwareVersion).to.be(expectedValueLiteral); + }); + + it('should have the property DeviceType (base name: "DeviceType")', function() { + // TODO: update the code to test the property DeviceType + expect(instance).to.have.property('DeviceType'); + // expect(instance.DeviceType).to.be(expectedValueLiteral); + }); + + it('should have the property Status (base name: "Status")', function() { + // TODO: update the code to test the property Status + expect(instance).to.have.property('Status'); + // expect(instance.Status).to.be(expectedValueLiteral); + }); + + it('should have the property BatteryLevel (base name: "BatteryLevel")', function() { + // TODO: update the code to test the property BatteryLevel + expect(instance).to.have.property('BatteryLevel'); + // expect(instance.BatteryLevel).to.be(expectedValueLiteral); + }); + + it('should have the property UpdateTime (base name: "UpdateTime")', function() { + // TODO: update the code to test the property UpdateTime + expect(instance).to.have.property('UpdateTime'); + // expect(instance.UpdateTime).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/BusinessHoursOverride.spec.js b/test/model/BusinessHoursOverride.spec.js new file mode 100644 index 00000000..40f7542d --- /dev/null +++ b/test/model/BusinessHoursOverride.spec.js @@ -0,0 +1,76 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('BusinessHoursOverride', function() { + beforeEach(function() { + instance = new Flipdish.BusinessHoursOverride(); + }); + + it('should create an instance of BusinessHoursOverride', function() { + // TODO: update the code to test BusinessHoursOverride + expect(instance).to.be.a(Flipdish.BusinessHoursOverride); + }); + + it('should have the property BusinessHoursOverrideId (base name: "BusinessHoursOverrideId")', function() { + // TODO: update the code to test the property BusinessHoursOverrideId + expect(instance).to.have.property('BusinessHoursOverrideId'); + // expect(instance.BusinessHoursOverrideId).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryType (base name: "DeliveryType")', function() { + // TODO: update the code to test the property DeliveryType + expect(instance).to.have.property('DeliveryType'); + // expect(instance.DeliveryType).to.be(expectedValueLiteral); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // TODO: update the code to test the property StartTime + expect(instance).to.have.property('StartTime'); + // expect(instance.StartTime).to.be(expectedValueLiteral); + }); + + it('should have the property EndTime (base name: "EndTime")', function() { + // TODO: update the code to test the property EndTime + expect(instance).to.have.property('EndTime'); + // expect(instance.EndTime).to.be(expectedValueLiteral); + }); + + it('should have the property Type (base name: "Type")', function() { + // TODO: update the code to test the property Type + expect(instance).to.have.property('Type'); + // expect(instance.Type).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/BusinessHoursOverrideBase.spec.js b/test/model/BusinessHoursOverrideBase.spec.js new file mode 100644 index 00000000..2f64fdbb --- /dev/null +++ b/test/model/BusinessHoursOverrideBase.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('BusinessHoursOverrideBase', function() { + beforeEach(function() { + instance = new Flipdish.BusinessHoursOverrideBase(); + }); + + it('should create an instance of BusinessHoursOverrideBase', function() { + // TODO: update the code to test BusinessHoursOverrideBase + expect(instance).to.be.a(Flipdish.BusinessHoursOverrideBase); + }); + + it('should have the property DeliveryType (base name: "DeliveryType")', function() { + // TODO: update the code to test the property DeliveryType + expect(instance).to.have.property('DeliveryType'); + // expect(instance.DeliveryType).to.be(expectedValueLiteral); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // TODO: update the code to test the property StartTime + expect(instance).to.have.property('StartTime'); + // expect(instance.StartTime).to.be(expectedValueLiteral); + }); + + it('should have the property EndTime (base name: "EndTime")', function() { + // TODO: update the code to test the property EndTime + expect(instance).to.have.property('EndTime'); + // expect(instance.EndTime).to.be(expectedValueLiteral); + }); + + it('should have the property Type (base name: "Type")', function() { + // TODO: update the code to test the property Type + expect(instance).to.have.property('Type'); + // expect(instance.Type).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/BusinessHoursPeriod.spec.js b/test/model/BusinessHoursPeriod.spec.js index 8815b287..601a4cf5 100644 --- a/test/model/BusinessHoursPeriod.spec.js +++ b/test/model/BusinessHoursPeriod.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,81 +29,66 @@ 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 dayOfWeek (base name: "DayOfWeek")', function() { - // uncomment below and update the code to test the property dayOfWeek - //var instane = 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 instane = new Flipdish.BusinessHoursPeriod(); - //expect(instance).to.be(); - }); + describe('(package)', function() { + describe('BusinessHoursPeriod', function() { + beforeEach(function() { + instance = new Flipdish.BusinessHoursPeriod(); + }); + + it('should create an instance of BusinessHoursPeriod', function() { + // TODO: update the code to test BusinessHoursPeriod + expect(instance).to.be.a(Flipdish.BusinessHoursPeriod); + }); + + it('should have the property Early (base name: "Early")', function() { + // TODO: update the code to test the property Early + expect(instance).to.have.property('Early'); + // expect(instance.Early).to.be(expectedValueLiteral); + }); + + it('should have the property Late (base name: "Late")', function() { + // TODO: update the code to test the property Late + expect(instance).to.have.property('Late'); + // expect(instance.Late).to.be(expectedValueLiteral); + }); + + it('should have the property Ranges (base name: "Ranges")', function() { + // TODO: update the code to test the property Ranges + expect(instance).to.have.property('Ranges'); + // expect(instance.Ranges).to.be(expectedValueLiteral); + }); + + it('should have the property DayOfWeek (base name: "DayOfWeek")', function() { + // TODO: update the code to test the property DayOfWeek + expect(instance).to.have.property('DayOfWeek'); + // expect(instance.DayOfWeek).to.be(expectedValueLiteral); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // TODO: update the code to test the property StartTime + expect(instance).to.have.property('StartTime'); + // expect(instance.StartTime).to.be(expectedValueLiteral); + }); + + it('should have the property Period (base name: "Period")', function() { + // TODO: update the code to test the property Period + expect(instance).to.have.property('Period'); + // expect(instance.Period).to.be(expectedValueLiteral); + }); + + it('should have the property StartTimeEarly (base name: "StartTimeEarly")', function() { + // TODO: update the code to test the property StartTimeEarly + expect(instance).to.have.property('StartTimeEarly'); + // expect(instance.StartTimeEarly).to.be(expectedValueLiteral); + }); + + it('should have the property PeriodEarly (base name: "PeriodEarly")', function() { + // TODO: update the code to test the property PeriodEarly + expect(instance).to.have.property('PeriodEarly'); + // expect(instance.PeriodEarly).to.be(expectedValueLiteral); + }); - it('should have the property period (base name: "Period")', function() { - // uncomment below and update the code to test the property period - //var instane = 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 instane = 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 instane = new Flipdish.BusinessHoursPeriod(); - //expect(instance).to.be(); - }); - - it('should have the property early (base name: "Early")', function() { - // uncomment below and update the code to test the property early - //var instane = 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 instane = 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 instane = 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..ff8a174a --- /dev/null +++ b/test/model/BusinessHoursPeriodBase.spec.js @@ -0,0 +1,76 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('BusinessHoursPeriodBase', function() { + beforeEach(function() { + instance = new Flipdish.BusinessHoursPeriodBase(); + }); + + it('should create an instance of BusinessHoursPeriodBase', function() { + // TODO: update the code to test BusinessHoursPeriodBase + expect(instance).to.be.a(Flipdish.BusinessHoursPeriodBase); + }); + + it('should have the property DayOfWeek (base name: "DayOfWeek")', function() { + // TODO: update the code to test the property DayOfWeek + expect(instance).to.have.property('DayOfWeek'); + // expect(instance.DayOfWeek).to.be(expectedValueLiteral); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // TODO: update the code to test the property StartTime + expect(instance).to.have.property('StartTime'); + // expect(instance.StartTime).to.be(expectedValueLiteral); + }); + + it('should have the property Period (base name: "Period")', function() { + // TODO: update the code to test the property Period + expect(instance).to.have.property('Period'); + // expect(instance.Period).to.be(expectedValueLiteral); + }); + + it('should have the property StartTimeEarly (base name: "StartTimeEarly")', function() { + // TODO: update the code to test the property StartTimeEarly + expect(instance).to.have.property('StartTimeEarly'); + // expect(instance.StartTimeEarly).to.be(expectedValueLiteral); + }); + + it('should have the property PeriodEarly (base name: "PeriodEarly")', function() { + // TODO: update the code to test the property PeriodEarly + expect(instance).to.have.property('PeriodEarly'); + // expect(instance.PeriodEarly).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CampaignCreatedEvent.spec.js b/test/model/CampaignCreatedEvent.spec.js deleted file mode 100644 index a68bfe49..00000000 --- a/test/model/CampaignCreatedEvent.spec.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Flipdish Open API v1.0 - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.Flipdish); - } -}(this, function(expect, Flipdish) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Flipdish.CampaignCreatedEvent(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CampaignCreatedEvent', function() { - it('should create an instance of CampaignCreatedEvent', function() { - // uncomment below and update the code to test CampaignCreatedEvent - //var instane = new Flipdish.CampaignCreatedEvent(); - //expect(instance).to.be.a(Flipdish.CampaignCreatedEvent); - }); - - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.CampaignCreatedEvent(); - //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 instane = new Flipdish.CampaignCreatedEvent(); - //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 instane = new Flipdish.CampaignCreatedEvent(); - //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 instane = new Flipdish.CampaignCreatedEvent(); - //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 instane = new Flipdish.CampaignCreatedEvent(); - //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 instane = new Flipdish.CampaignCreatedEvent(); - //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 instane = new Flipdish.CampaignCreatedEvent(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CampaignStatistics.spec.js b/test/model/CampaignStatistics.spec.js new file mode 100644 index 00000000..7a35e637 --- /dev/null +++ b/test/model/CampaignStatistics.spec.js @@ -0,0 +1,76 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CampaignStatistics', function() { + beforeEach(function() { + instance = new Flipdish.CampaignStatistics(); + }); + + it('should create an instance of CampaignStatistics', function() { + // TODO: update the code to test CampaignStatistics + expect(instance).to.be.a(Flipdish.CampaignStatistics); + }); + + it('should have the property VouchersIssued (base name: "VouchersIssued")', function() { + // TODO: update the code to test the property VouchersIssued + expect(instance).to.have.property('VouchersIssued'); + // expect(instance.VouchersIssued).to.be(expectedValueLiteral); + }); + + it('should have the property VouchersRedeemed (base name: "VouchersRedeemed")', function() { + // TODO: update the code to test the property VouchersRedeemed + expect(instance).to.have.property('VouchersRedeemed'); + // expect(instance.VouchersRedeemed).to.be(expectedValueLiteral); + }); + + it('should have the property Conversion (base name: "Conversion")', function() { + // TODO: update the code to test the property Conversion + expect(instance).to.have.property('Conversion'); + // expect(instance.Conversion).to.be(expectedValueLiteral); + }); + + it('should have the property SalesGenerated (base name: "SalesGenerated")', function() { + // TODO: update the code to test the property SalesGenerated + expect(instance).to.have.property('SalesGenerated'); + // expect(instance.SalesGenerated).to.be(expectedValueLiteral); + }); + + it('should have the property ReturnOfInvestment (base name: "ReturnOfInvestment")', function() { + // TODO: update the code to test the property ReturnOfInvestment + expect(instance).to.have.property('ReturnOfInvestment'); + // expect(instance.ReturnOfInvestment).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CertificateCreatedEvent.spec.js b/test/model/CertificateCreatedEvent.spec.js new file mode 100644 index 00000000..042af8aa --- /dev/null +++ b/test/model/CertificateCreatedEvent.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CertificateCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.CertificateCreatedEvent(); + }); + + it('should create an instance of CertificateCreatedEvent', function() { + // TODO: update the code to test CertificateCreatedEvent + expect(instance).to.be.a(Flipdish.CertificateCreatedEvent); + }); + + it('should have the property Hostname (base name: "Hostname")', function() { + // TODO: update the code to test the property Hostname + expect(instance).to.have.property('Hostname'); + // expect(instance.Hostname).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CertificateRenewedEvent.spec.js b/test/model/CertificateRenewedEvent.spec.js new file mode 100644 index 00000000..e7c70cb0 --- /dev/null +++ b/test/model/CertificateRenewedEvent.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CertificateRenewedEvent', function() { + beforeEach(function() { + instance = new Flipdish.CertificateRenewedEvent(); + }); + + it('should create an instance of CertificateRenewedEvent', function() { + // TODO: update the code to test CertificateRenewedEvent + expect(instance).to.be.a(Flipdish.CertificateRenewedEvent); + }); + + it('should have the property Hostname (base name: "Hostname")', function() { + // TODO: update the code to test the property Hostname + expect(instance).to.have.property('Hostname'); + // expect(instance.Hostname).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/ChangePasswordModel.spec.js b/test/model/ChangePasswordModel.spec.js new file mode 100644 index 00000000..7a9656a3 --- /dev/null +++ b/test/model/ChangePasswordModel.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('ChangePasswordModel', function() { + beforeEach(function() { + instance = new Flipdish.ChangePasswordModel(); + }); + + it('should create an instance of ChangePasswordModel', function() { + // TODO: update the code to test ChangePasswordModel + expect(instance).to.be.a(Flipdish.ChangePasswordModel); + }); + + it('should have the property OldPassword (base name: "OldPassword")', function() { + // TODO: update the code to test the property OldPassword + expect(instance).to.have.property('OldPassword'); + // expect(instance.OldPassword).to.be(expectedValueLiteral); + }); + + it('should have the property NewPassword (base name: "NewPassword")', function() { + // TODO: update the code to test the property NewPassword + expect(instance).to.have.property('NewPassword'); + // expect(instance.NewPassword).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/ChargebackDetails.spec.js b/test/model/ChargebackDetails.spec.js new file mode 100644 index 00000000..d318c412 --- /dev/null +++ b/test/model/ChargebackDetails.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('ChargebackDetails', function() { + beforeEach(function() { + instance = new Flipdish.ChargebackDetails(); + }); + + it('should create an instance of ChargebackDetails', function() { + // TODO: update the code to test ChargebackDetails + expect(instance).to.be.a(Flipdish.ChargebackDetails); + }); + + it('should have the property ChargebackAmount (base name: "ChargebackAmount")', function() { + // TODO: update the code to test the property ChargebackAmount + expect(instance).to.have.property('ChargebackAmount'); + // expect(instance.ChargebackAmount).to.be(expectedValueLiteral); + }); + + it('should have the property ChargebackRefundedFees (base name: "ChargebackRefundedFees")', function() { + // TODO: update the code to test the property ChargebackRefundedFees + expect(instance).to.have.property('ChargebackRefundedFees'); + // expect(instance.ChargebackRefundedFees).to.be(expectedValueLiteral); + }); + + it('should have the property ChargebacksCount (base name: "ChargebacksCount")', function() { + // TODO: update the code to test the property ChargebacksCount + expect(instance).to.have.property('ChargebacksCount'); + // expect(instance.ChargebacksCount).to.be(expectedValueLiteral); + }); + + it('should have the property TotalChargebackCost (base name: "TotalChargebackCost")', function() { + // TODO: update the code to test the property TotalChargebackCost + expect(instance).to.have.property('TotalChargebackCost'); + // expect(instance.TotalChargebackCost).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/Coordinates.spec.js b/test/model/Coordinates.spec.js index b2f88c10..8813e1ad 100644 --- a/test/model/Coordinates.spec.js +++ b/test/model/Coordinates.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,45 +29,30 @@ 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('(package)', function() { + describe('Coordinates', function() { + beforeEach(function() { + instance = new Flipdish.Coordinates(); + }); + + it('should create an instance of Coordinates', function() { + // TODO: update the code to test Coordinates + expect(instance).to.be.a(Flipdish.Coordinates); + }); + + it('should have the property Latitude (base name: "Latitude")', function() { + // TODO: update the code to test the property Latitude + expect(instance).to.have.property('Latitude'); + // expect(instance.Latitude).to.be(expectedValueLiteral); + }); + + it('should have the property Longitude (base name: "Longitude")', function() { + // TODO: update the code to test the property Longitude + expect(instance).to.have.property('Longitude'); + // expect(instance.Longitude).to.be(expectedValueLiteral); + }); - 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 instane = 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 instane = new Flipdish.Coordinates(); - //expect(instance).to.be(); - }); - }); })); diff --git a/test/model/CountryWithAccountFieldsDefinitions.spec.js b/test/model/CountryWithAccountFieldsDefinitions.spec.js new file mode 100644 index 00000000..f7466188 --- /dev/null +++ b/test/model/CountryWithAccountFieldsDefinitions.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CountryWithAccountFieldsDefinitions', function() { + beforeEach(function() { + instance = new Flipdish.CountryWithAccountFieldsDefinitions(); + }); + + it('should create an instance of CountryWithAccountFieldsDefinitions', function() { + // TODO: update the code to test CountryWithAccountFieldsDefinitions + expect(instance).to.be.a(Flipdish.CountryWithAccountFieldsDefinitions); + }); + + it('should have the property CountryCode (base name: "CountryCode")', function() { + // TODO: update the code to test the property CountryCode + expect(instance).to.have.property('CountryCode'); + // expect(instance.CountryCode).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayName (base name: "DisplayName")', function() { + // TODO: update the code to test the property DisplayName + expect(instance).to.have.property('DisplayName'); + // expect(instance.DisplayName).to.be(expectedValueLiteral); + }); + + it('should have the property SupportType (base name: "SupportType")', function() { + // TODO: update the code to test the property SupportType + expect(instance).to.have.property('SupportType'); + // expect(instance.SupportType).to.be(expectedValueLiteral); + }); + + it('should have the property FieldDefinitions (base name: "FieldDefinitions")', function() { + // TODO: update the code to test the property FieldDefinitions + expect(instance).to.have.property('FieldDefinitions'); + // expect(instance.FieldDefinitions).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CreateAccountModel.spec.js b/test/model/CreateAccountModel.spec.js new file mode 100644 index 00000000..f9e81511 --- /dev/null +++ b/test/model/CreateAccountModel.spec.js @@ -0,0 +1,76 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CreateAccountModel', function() { + beforeEach(function() { + instance = new Flipdish.CreateAccountModel(); + }); + + it('should create an instance of CreateAccountModel', function() { + // TODO: update the code to test CreateAccountModel + expect(instance).to.be.a(Flipdish.CreateAccountModel); + }); + + it('should have the property Email (base name: "Email")', function() { + // TODO: update the code to test the property Email + expect(instance).to.have.property('Email'); + // expect(instance.Email).to.be(expectedValueLiteral); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // TODO: update the code to test the property StoreName + expect(instance).to.have.property('StoreName'); + // expect(instance.StoreName).to.be(expectedValueLiteral); + }); + + it('should have the property LanguageId (base name: "LanguageId")', function() { + // TODO: update the code to test the property LanguageId + expect(instance).to.have.property('LanguageId'); + // expect(instance.LanguageId).to.be(expectedValueLiteral); + }); + + it('should have the property Rid (base name: "Rid")', function() { + // TODO: update the code to test the property Rid + expect(instance).to.have.property('Rid'); + // expect(instance.Rid).to.be(expectedValueLiteral); + }); + + it('should have the property Cid (base name: "Cid")', function() { + // TODO: update the code to test the property Cid + expect(instance).to.have.property('Cid'); + // expect(instance.Cid).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CreateFullMenu.spec.js b/test/model/CreateFullMenu.spec.js new file mode 100644 index 00000000..1305e8c9 --- /dev/null +++ b/test/model/CreateFullMenu.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CreateFullMenu', function() { + beforeEach(function() { + instance = new Flipdish.CreateFullMenu(); + }); + + it('should create an instance of CreateFullMenu', function() { + // TODO: update the code to test CreateFullMenu + expect(instance).to.be.a(Flipdish.CreateFullMenu); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // TODO: update the code to test the property ImageUrl + expect(instance).to.have.property('ImageUrl'); + // expect(instance.ImageUrl).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSections (base name: "MenuSections")', function() { + // TODO: update the code to test the property MenuSections + expect(instance).to.have.property('MenuSections'); + // expect(instance.MenuSections).to.be(expectedValueLiteral); + }); + + it('should have the property TaxRates (base name: "TaxRates")', function() { + // TODO: update the code to test the property TaxRates + expect(instance).to.have.property('TaxRates'); + // expect(instance.TaxRates).to.be(expectedValueLiteral); + }); + + it('should have the property DisplaySectionLinks (base name: "DisplaySectionLinks")', function() { + // TODO: update the code to test the property DisplaySectionLinks + expect(instance).to.have.property('DisplaySectionLinks'); + // expect(instance.DisplaySectionLinks).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSectionBehaviour (base name: "MenuSectionBehaviour")', function() { + // TODO: update the code to test the property MenuSectionBehaviour + expect(instance).to.have.property('MenuSectionBehaviour'); + // expect(instance.MenuSectionBehaviour).to.be(expectedValueLiteral); + }); + + it('should have the property TaxType (base name: "TaxType")', function() { + // TODO: update the code to test the property TaxType + expect(instance).to.have.property('TaxType'); + // expect(instance.TaxType).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CreateFullMenuItemOptionSet.spec.js b/test/model/CreateFullMenuItemOptionSet.spec.js new file mode 100644 index 00000000..a855c99b --- /dev/null +++ b/test/model/CreateFullMenuItemOptionSet.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CreateFullMenuItemOptionSet', function() { + beforeEach(function() { + instance = new Flipdish.CreateFullMenuItemOptionSet(); + }); + + it('should create an instance of CreateFullMenuItemOptionSet', function() { + // TODO: update the code to test CreateFullMenuItemOptionSet + expect(instance).to.be.a(Flipdish.CreateFullMenuItemOptionSet); + }); + + it('should have the property MenuItemOptionSetItems (base name: "MenuItemOptionSetItems")', function() { + // TODO: update the code to test the property MenuItemOptionSetItems + expect(instance).to.have.property('MenuItemOptionSetItems'); + // expect(instance.MenuItemOptionSetItems).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property IsMasterOptionSet (base name: "IsMasterOptionSet")', function() { + // TODO: update the code to test the property IsMasterOptionSet + expect(instance).to.have.property('IsMasterOptionSet'); + // expect(instance.IsMasterOptionSet).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // TODO: update the code to test the property DisplayOrder + expect(instance).to.have.property('DisplayOrder'); + // expect(instance.DisplayOrder).to.be(expectedValueLiteral); + }); + + it('should have the property MinSelectCount (base name: "MinSelectCount")', function() { + // TODO: update the code to test the property MinSelectCount + expect(instance).to.have.property('MinSelectCount'); + // expect(instance.MinSelectCount).to.be(expectedValueLiteral); + }); + + it('should have the property MaxSelectCount (base name: "MaxSelectCount")', function() { + // TODO: update the code to test the property MaxSelectCount + expect(instance).to.have.property('MaxSelectCount'); + // expect(instance.MaxSelectCount).to.be(expectedValueLiteral); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // TODO: update the code to test the property CellLayoutType + expect(instance).to.have.property('CellLayoutType'); + // expect(instance.CellLayoutType).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CreateFullMenuItemOptionSetItem.spec.js b/test/model/CreateFullMenuItemOptionSetItem.spec.js new file mode 100644 index 00000000..2a866aa3 --- /dev/null +++ b/test/model/CreateFullMenuItemOptionSetItem.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CreateFullMenuItemOptionSetItem', function() { + beforeEach(function() { + instance = new Flipdish.CreateFullMenuItemOptionSetItem(); + }); + + it('should create an instance of CreateFullMenuItemOptionSetItem', function() { + // TODO: update the code to test CreateFullMenuItemOptionSetItem + expect(instance).to.be.a(Flipdish.CreateFullMenuItemOptionSetItem); + }); + + it('should have the property Metadata (base name: "Metadata")', function() { + // TODO: update the code to test the property Metadata + expect(instance).to.have.property('Metadata'); + // expect(instance.Metadata).to.be(expectedValueLiteral); + }); + + it('should have the property TaxRateName (base name: "TaxRateName")', function() { + // TODO: update the code to test the property TaxRateName + expect(instance).to.have.property('TaxRateName'); + // expect(instance.TaxRateName).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Price (base name: "Price")', function() { + // TODO: update the code to test the property Price + expect(instance).to.have.property('Price'); + // expect(instance.Price).to.be(expectedValueLiteral); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // TODO: update the code to test the property IsAvailable + expect(instance).to.have.property('IsAvailable'); + // expect(instance.IsAvailable).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // TODO: update the code to test the property DisplayOrder + expect(instance).to.have.property('DisplayOrder'); + // expect(instance.DisplayOrder).to.be(expectedValueLiteral); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // TODO: update the code to test the property CellLayoutType + expect(instance).to.have.property('CellLayoutType'); + // expect(instance.CellLayoutType).to.be(expectedValueLiteral); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // TODO: update the code to test the property ImageUrl + expect(instance).to.have.property('ImageUrl'); + // expect(instance.ImageUrl).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CreateFullMenuSection.spec.js b/test/model/CreateFullMenuSection.spec.js new file mode 100644 index 00000000..f58d2037 --- /dev/null +++ b/test/model/CreateFullMenuSection.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CreateFullMenuSection', function() { + beforeEach(function() { + instance = new Flipdish.CreateFullMenuSection(); + }); + + it('should create an instance of CreateFullMenuSection', function() { + // TODO: update the code to test CreateFullMenuSection + expect(instance).to.be.a(Flipdish.CreateFullMenuSection); + }); + + it('should have the property MenuSectionAvailability (base name: "MenuSectionAvailability")', function() { + // TODO: update the code to test the property MenuSectionAvailability + expect(instance).to.have.property('MenuSectionAvailability'); + // expect(instance.MenuSectionAvailability).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItems (base name: "MenuItems")', function() { + // TODO: update the code to test the property MenuItems + expect(instance).to.have.property('MenuItems'); + // expect(instance.MenuItems).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // TODO: update the code to test the property DisplayOrder + expect(instance).to.have.property('DisplayOrder'); + // expect(instance.DisplayOrder).to.be(expectedValueLiteral); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // TODO: update the code to test the property IsAvailable + expect(instance).to.have.property('IsAvailable'); + // expect(instance.IsAvailable).to.be(expectedValueLiteral); + }); + + it('should have the property IsHiddenFromCustomers (base name: "IsHiddenFromCustomers")', function() { + // TODO: update the code to test the property IsHiddenFromCustomers + expect(instance).to.have.property('IsHiddenFromCustomers'); + // expect(instance.IsHiddenFromCustomers).to.be(expectedValueLiteral); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // TODO: update the code to test the property ImageUrl + expect(instance).to.have.property('ImageUrl'); + // expect(instance.ImageUrl).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CreateFullMenuSectionItem.spec.js b/test/model/CreateFullMenuSectionItem.spec.js new file mode 100644 index 00000000..faec0e8c --- /dev/null +++ b/test/model/CreateFullMenuSectionItem.spec.js @@ -0,0 +1,124 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CreateFullMenuSectionItem', function() { + beforeEach(function() { + instance = new Flipdish.CreateFullMenuSectionItem(); + }); + + it('should create an instance of CreateFullMenuSectionItem', function() { + // TODO: update the code to test CreateFullMenuSectionItem + expect(instance).to.be.a(Flipdish.CreateFullMenuSectionItem); + }); + + it('should have the property MenuItemOptionSets (base name: "MenuItemOptionSets")', function() { + // TODO: update the code to test the property MenuItemOptionSets + expect(instance).to.have.property('MenuItemOptionSets'); + // expect(instance.MenuItemOptionSets).to.be(expectedValueLiteral); + }); + + it('should have the property Metadata (base name: "Metadata")', function() { + // TODO: update the code to test the property Metadata + expect(instance).to.have.property('Metadata'); + // expect(instance.Metadata).to.be(expectedValueLiteral); + }); + + it('should have the property TaxRateName (base name: "TaxRateName")', function() { + // TODO: update the code to test the property TaxRateName + expect(instance).to.have.property('TaxRateName'); + // expect(instance.TaxRateName).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property SpicinessRating (base name: "SpicinessRating")', function() { + // TODO: update the code to test the property SpicinessRating + expect(instance).to.have.property('SpicinessRating'); + // expect(instance.SpicinessRating).to.be(expectedValueLiteral); + }); + + it('should have the property Price (base name: "Price")', function() { + // TODO: update the code to test the property Price + expect(instance).to.have.property('Price'); + // expect(instance.Price).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // TODO: update the code to test the property DisplayOrder + expect(instance).to.have.property('DisplayOrder'); + // expect(instance.DisplayOrder).to.be(expectedValueLiteral); + }); + + it('should have the property Alcohol (base name: "Alcohol")', function() { + // TODO: update the code to test the property Alcohol + expect(instance).to.have.property('Alcohol'); + // expect(instance.Alcohol).to.be(expectedValueLiteral); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // TODO: update the code to test the property IsAvailable + expect(instance).to.have.property('IsAvailable'); + // expect(instance.IsAvailable).to.be(expectedValueLiteral); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // TODO: update the code to test the property CellLayoutType + expect(instance).to.have.property('CellLayoutType'); + // expect(instance.CellLayoutType).to.be(expectedValueLiteral); + }); + + it('should have the property DisableVouchers (base name: "DisableVouchers")', function() { + // TODO: update the code to test the property DisableVouchers + expect(instance).to.have.property('DisableVouchers'); + // expect(instance.DisableVouchers).to.be(expectedValueLiteral); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // TODO: update the code to test the property ImageUrl + expect(instance).to.have.property('ImageUrl'); + // expect(instance.ImageUrl).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CreateMenuTaxRate.spec.js b/test/model/CreateMenuTaxRate.spec.js new file mode 100644 index 00000000..87f30380 --- /dev/null +++ b/test/model/CreateMenuTaxRate.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CreateMenuTaxRate', function() { + beforeEach(function() { + instance = new Flipdish.CreateMenuTaxRate(); + }); + + it('should create an instance of CreateMenuTaxRate', function() { + // TODO: update the code to test CreateMenuTaxRate + expect(instance).to.be.a(Flipdish.CreateMenuTaxRate); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Rate (base name: "Rate")', function() { + // TODO: update the code to test the property Rate + expect(instance).to.have.property('Rate'); + // expect(instance.Rate).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CreateMetadata.spec.js b/test/model/CreateMetadata.spec.js new file mode 100644 index 00000000..51920395 --- /dev/null +++ b/test/model/CreateMetadata.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CreateMetadata', function() { + beforeEach(function() { + instance = new Flipdish.CreateMetadata(); + }); + + it('should create an instance of CreateMetadata', function() { + // TODO: update the code to test CreateMetadata + expect(instance).to.be.a(Flipdish.CreateMetadata); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property Key (base name: "Key")', function() { + // TODO: update the code to test the property Key + expect(instance).to.have.property('Key'); + // expect(instance.Key).to.be(expectedValueLiteral); + }); + + it('should have the property Value (base name: "Value")', function() { + // TODO: update the code to test the property Value + expect(instance).to.have.property('Value'); + // expect(instance.Value).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CreateTeammate.spec.js b/test/model/CreateTeammate.spec.js new file mode 100644 index 00000000..d9d79434 --- /dev/null +++ b/test/model/CreateTeammate.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CreateTeammate', function() { + beforeEach(function() { + instance = new Flipdish.CreateTeammate(); + }); + + it('should create an instance of CreateTeammate', function() { + // TODO: update the code to test CreateTeammate + expect(instance).to.be.a(Flipdish.CreateTeammate); + }); + + it('should have the property Email (base name: "Email")', function() { + // TODO: update the code to test the property Email + expect(instance).to.have.property('Email'); + // expect(instance.Email).to.be(expectedValueLiteral); + }); + + it('should have the property AppAccessLevel (base name: "AppAccessLevel")', function() { + // TODO: update the code to test the property AppAccessLevel + expect(instance).to.have.property('AppAccessLevel'); + // expect(instance.AppAccessLevel).to.be(expectedValueLiteral); + }); + + it('should have the property HasAccessToAllStores (base name: "HasAccessToAllStores")', function() { + // TODO: update the code to test the property HasAccessToAllStores + expect(instance).to.have.property('HasAccessToAllStores'); + // expect(instance.HasAccessToAllStores).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CreateVoucher.spec.js b/test/model/CreateVoucher.spec.js new file mode 100644 index 00000000..14edf303 --- /dev/null +++ b/test/model/CreateVoucher.spec.js @@ -0,0 +1,178 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CreateVoucher', function() { + beforeEach(function() { + instance = new Flipdish.CreateVoucher(); + }); + + it('should create an instance of CreateVoucher', function() { + // TODO: update the code to test CreateVoucher + expect(instance).to.be.a(Flipdish.CreateVoucher); + }); + + it('should have the property VoucherType (base name: "VoucherType")', function() { + // TODO: update the code to test the property VoucherType + expect(instance).to.have.property('VoucherType'); + // expect(instance.VoucherType).to.be(expectedValueLiteral); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // TODO: update the code to test the property Stores + expect(instance).to.have.property('Stores'); + // expect(instance.Stores).to.be(expectedValueLiteral); + }); + + it('should have the property AddItemDetails (base name: "AddItemDetails")', function() { + // TODO: update the code to test the property AddItemDetails + expect(instance).to.have.property('AddItemDetails'); + // expect(instance.AddItemDetails).to.be(expectedValueLiteral); + }); + + it('should have the property CreditNoteDetails (base name: "CreditNoteDetails")', function() { + // TODO: update the code to test the property CreditNoteDetails + expect(instance).to.have.property('CreditNoteDetails'); + // expect(instance.CreditNoteDetails).to.be(expectedValueLiteral); + }); + + it('should have the property LumpDiscountDetails (base name: "LumpDiscountDetails")', function() { + // TODO: update the code to test the property LumpDiscountDetails + expect(instance).to.have.property('LumpDiscountDetails'); + // expect(instance.LumpDiscountDetails).to.be(expectedValueLiteral); + }); + + it('should have the property PercentDiscountDetails (base name: "PercentDiscountDetails")', function() { + // TODO: update the code to test the property PercentDiscountDetails + expect(instance).to.have.property('PercentDiscountDetails'); + // expect(instance.PercentDiscountDetails).to.be(expectedValueLiteral); + }); + + it('should have the property Code (base name: "Code")', function() { + // TODO: update the code to test the property Code + expect(instance).to.have.property('Code'); + // expect(instance.Code).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property ValidOnOrdersOver (base name: "ValidOnOrdersOver")', function() { + // TODO: update the code to test the property ValidOnOrdersOver + expect(instance).to.have.property('ValidOnOrdersOver'); + // expect(instance.ValidOnOrdersOver).to.be(expectedValueLiteral); + }); + + it('should have the property TakesPriority (base name: "TakesPriority")', function() { + // TODO: update the code to test the property TakesPriority + expect(instance).to.have.property('TakesPriority'); + // expect(instance.TakesPriority).to.be(expectedValueLiteral); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // TODO: update the code to test the property IsEnabled + expect(instance).to.have.property('IsEnabled'); + // expect(instance.IsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property IsAutomaticallyApplied (base name: "IsAutomaticallyApplied")', function() { + // TODO: update the code to test the property IsAutomaticallyApplied + expect(instance).to.have.property('IsAutomaticallyApplied'); + // expect(instance.IsAutomaticallyApplied).to.be(expectedValueLiteral); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // TODO: update the code to test the property IncludeDeliveryFee + expect(instance).to.have.property('IncludeDeliveryFee'); + // expect(instance.IncludeDeliveryFee).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForDeliveryOrders (base name: "IsValidForDeliveryOrders")', function() { + // TODO: update the code to test the property IsValidForDeliveryOrders + expect(instance).to.have.property('IsValidForDeliveryOrders'); + // expect(instance.IsValidForDeliveryOrders).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForPickupOrders (base name: "IsValidForPickupOrders")', function() { + // TODO: update the code to test the property IsValidForPickupOrders + expect(instance).to.have.property('IsValidForPickupOrders'); + // expect(instance.IsValidForPickupOrders).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForOrdersPayedOnline (base name: "IsValidForOrdersPayedOnline")', function() { + // TODO: update the code to test the property IsValidForOrdersPayedOnline + expect(instance).to.have.property('IsValidForOrdersPayedOnline'); + // expect(instance.IsValidForOrdersPayedOnline).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForOrdersPayedByCash (base name: "IsValidForOrdersPayedByCash")', function() { + // TODO: update the code to test the property IsValidForOrdersPayedByCash + expect(instance).to.have.property('IsValidForOrdersPayedByCash'); + // expect(instance.IsValidForOrdersPayedByCash).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForFirstOrderOnly (base name: "IsValidForFirstOrderOnly")', function() { + // TODO: update the code to test the property IsValidForFirstOrderOnly + expect(instance).to.have.property('IsValidForFirstOrderOnly'); + // expect(instance.IsValidForFirstOrderOnly).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidOncePerCustomer (base name: "IsValidOncePerCustomer")', function() { + // TODO: update the code to test the property IsValidOncePerCustomer + expect(instance).to.have.property('IsValidOncePerCustomer'); + // expect(instance.IsValidOncePerCustomer).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidOnlyOnce (base name: "IsValidOnlyOnce")', function() { + // TODO: update the code to test the property IsValidOnlyOnce + expect(instance).to.have.property('IsValidOnlyOnce'); + // expect(instance.IsValidOnlyOnce).to.be(expectedValueLiteral); + }); + + it('should have the property StartDate (base name: "StartDate")', function() { + // TODO: update the code to test the property StartDate + expect(instance).to.have.property('StartDate'); + // expect(instance.StartDate).to.be(expectedValueLiteral); + }); + + it('should have the property ExpiryDate (base name: "ExpiryDate")', function() { + // TODO: update the code to test the property ExpiryDate + expect(instance).to.have.property('ExpiryDate'); + // expect(instance.ExpiryDate).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CreditNoteDetails.spec.js b/test/model/CreditNoteDetails.spec.js new file mode 100644 index 00000000..e2242cb8 --- /dev/null +++ b/test/model/CreditNoteDetails.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CreditNoteDetails', function() { + beforeEach(function() { + instance = new Flipdish.CreditNoteDetails(); + }); + + it('should create an instance of CreditNoteDetails', function() { + // TODO: update the code to test CreditNoteDetails + expect(instance).to.be.a(Flipdish.CreditNoteDetails); + }); + + it('should have the property RemainingCredit (base name: "RemainingCredit")', function() { + // TODO: update the code to test the property RemainingCredit + expect(instance).to.have.property('RemainingCredit'); + // expect(instance.RemainingCredit).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CspReport.spec.js b/test/model/CspReport.spec.js new file mode 100644 index 00000000..6bb94218 --- /dev/null +++ b/test/model/CspReport.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CspReport', function() { + beforeEach(function() { + instance = new Flipdish.CspReport(); + }); + + it('should create an instance of CspReport', function() { + // TODO: update the code to test CspReport + expect(instance).to.be.a(Flipdish.CspReport); + }); + + it('should have the property Document_uri (base name: "Document-uri")', function() { + // TODO: update the code to test the property Document_uri + expect(instance).to.have.property('Document_uri'); + // expect(instance.Document_uri).to.be(expectedValueLiteral); + }); + + it('should have the property Referrer (base name: "Referrer")', function() { + // TODO: update the code to test the property Referrer + expect(instance).to.have.property('Referrer'); + // expect(instance.Referrer).to.be(expectedValueLiteral); + }); + + it('should have the property Violated_directive (base name: "Violated-directive")', function() { + // TODO: update the code to test the property Violated_directive + expect(instance).to.have.property('Violated_directive'); + // expect(instance.Violated_directive).to.be(expectedValueLiteral); + }); + + it('should have the property Effective_directive (base name: "Effective-directive")', function() { + // TODO: update the code to test the property Effective_directive + expect(instance).to.have.property('Effective_directive'); + // expect(instance.Effective_directive).to.be(expectedValueLiteral); + }); + + it('should have the property Original_policy (base name: "Original-policy")', function() { + // TODO: update the code to test the property Original_policy + expect(instance).to.have.property('Original_policy'); + // expect(instance.Original_policy).to.be(expectedValueLiteral); + }); + + it('should have the property Blocked_uri (base name: "Blocked-uri")', function() { + // TODO: update the code to test the property Blocked_uri + expect(instance).to.have.property('Blocked_uri'); + // expect(instance.Blocked_uri).to.be(expectedValueLiteral); + }); + + it('should have the property Status_code (base name: "Status-code")', function() { + // TODO: update the code to test the property Status_code + expect(instance).to.have.property('Status_code'); + // expect(instance.Status_code).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CspReportRequest.spec.js b/test/model/CspReportRequest.spec.js new file mode 100644 index 00000000..19cdb4fe --- /dev/null +++ b/test/model/CspReportRequest.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CspReportRequest', function() { + beforeEach(function() { + instance = new Flipdish.CspReportRequest(); + }); + + it('should create an instance of CspReportRequest', function() { + // TODO: update the code to test CspReportRequest + expect(instance).to.be.a(Flipdish.CspReportRequest); + }); + + it('should have the property Csp_report (base name: "Csp-report")', function() { + // TODO: update the code to test the property Csp_report + expect(instance).to.have.property('Csp_report'); + // expect(instance.Csp_report).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CurrencyData.spec.js b/test/model/CurrencyData.spec.js new file mode 100644 index 00000000..07bbbb46 --- /dev/null +++ b/test/model/CurrencyData.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CurrencyData', function() { + beforeEach(function() { + instance = new Flipdish.CurrencyData(); + }); + + it('should create an instance of CurrencyData', function() { + // TODO: update the code to test CurrencyData + expect(instance).to.be.a(Flipdish.CurrencyData); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + it('should have the property Value (base name: "Value")', function() { + // TODO: update the code to test the property Value + expect(instance).to.have.property('Value'); + // expect(instance.Value).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/Customer.spec.js b/test/model/Customer.spec.js new file mode 100644 index 00000000..5742fa6d --- /dev/null +++ b/test/model/Customer.spec.js @@ -0,0 +1,76 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('Customer', function() { + beforeEach(function() { + instance = new Flipdish.Customer(); + }); + + it('should create an instance of Customer', function() { + // TODO: update the code to test Customer + expect(instance).to.be.a(Flipdish.Customer); + }); + + it('should have the property CustomerId (base name: "CustomerId")', function() { + // TODO: update the code to test the property CustomerId + expect(instance).to.have.property('CustomerId'); + // expect(instance.CustomerId).to.be(expectedValueLiteral); + }); + + it('should have the property RegistrationDate (base name: "RegistrationDate")', function() { + // TODO: update the code to test the property RegistrationDate + expect(instance).to.have.property('RegistrationDate'); + // expect(instance.RegistrationDate).to.be(expectedValueLiteral); + }); + + it('should have the property CashOrdersEnabled (base name: "CashOrdersEnabled")', function() { + // TODO: update the code to test the property CashOrdersEnabled + expect(instance).to.have.property('CashOrdersEnabled'); + // expect(instance.CashOrdersEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property CardOrdersEnabled (base name: "CardOrdersEnabled")', function() { + // TODO: update the code to test the property CardOrdersEnabled + expect(instance).to.have.property('CardOrdersEnabled'); + // expect(instance.CardOrdersEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property MarketingEnabled (base name: "MarketingEnabled")', function() { + // TODO: update the code to test the property MarketingEnabled + expect(instance).to.have.property('MarketingEnabled'); + // expect(instance.MarketingEnabled).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CustomerConsentUpdatedEvent.spec.js b/test/model/CustomerConsentUpdatedEvent.spec.js index f96f6885..94abb086 100644 --- a/test/model/CustomerConsentUpdatedEvent.spec.js +++ b/test/model/CustomerConsentUpdatedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,66 @@ var instance; - beforeEach(function() { - instance = new Flipdish.CustomerConsentUpdatedEvent(); - }); + describe('(package)', function() { + describe('CustomerConsentUpdatedEvent', function() { + 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]; - } + it('should create an instance of CustomerConsentUpdatedEvent', function() { + // TODO: update the code to test CustomerConsentUpdatedEvent + expect(instance).to.be.a(Flipdish.CustomerConsentUpdatedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 Enabled (base name: "Enabled")', function() { + // TODO: update the code to test the property Enabled + expect(instance).to.have.property('Enabled'); + // expect(instance.Enabled).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.CustomerConsentUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property enabled (base name: "Enabled")', function() { - // uncomment below and update the code to test the property enabled - //var instane = new Flipdish.CustomerConsentUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.CustomerConsentUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property user (base name: "User")', function() { - // uncomment below and update the code to test the property user - //var instane = new Flipdish.CustomerConsentUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.CustomerConsentUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.CustomerConsentUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = new Flipdish.CustomerConsentUpdatedEvent(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/CustomerCreatedEvent.spec.js b/test/model/CustomerCreatedEvent.spec.js index f07207be..0c64a5b8 100644 --- a/test/model/CustomerCreatedEvent.spec.js +++ b/test/model/CustomerCreatedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,60 @@ 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]; - } + describe('(package)', function() { + describe('CustomerCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.CustomerCreatedEvent(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of CustomerCreatedEvent', function() { + // TODO: update the code to test CustomerCreatedEvent + expect(instance).to.be.a(Flipdish.CustomerCreatedEvent); + }); - 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() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.CustomerCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); - it('should have the property whiteLabelId (base name: "WhiteLabelId")', function() { - // uncomment below and update the code to test the property whiteLabelId - //var instane = new Flipdish.CustomerCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property user (base name: "User")', function() { - // uncomment below and update the code to test the property user - //var instane = new Flipdish.CustomerCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.CustomerCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.CustomerCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.CustomerCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = 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..aad7b4d8 --- /dev/null +++ b/test/model/CustomerDeliveryTrackingOrder.spec.js @@ -0,0 +1,160 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CustomerDeliveryTrackingOrder', function() { + beforeEach(function() { + instance = new Flipdish.CustomerDeliveryTrackingOrder(); + }); + + it('should create an instance of CustomerDeliveryTrackingOrder', function() { + // TODO: update the code to test CustomerDeliveryTrackingOrder + expect(instance).to.be.a(Flipdish.CustomerDeliveryTrackingOrder); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // TODO: update the code to test the property OrderId + expect(instance).to.have.property('OrderId'); + // expect(instance.OrderId).to.be(expectedValueLiteral); + }); + + it('should have the property Address (base name: "Address")', function() { + // TODO: update the code to test the property Address + expect(instance).to.have.property('Address'); + // expect(instance.Address).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryNotes (base name: "DeliveryNotes")', function() { + // TODO: update the code to test the property DeliveryNotes + expect(instance).to.have.property('DeliveryNotes'); + // expect(instance.DeliveryNotes).to.be(expectedValueLiteral); + }); + + it('should have the property StorePhoneNumber (base name: "StorePhoneNumber")', function() { + // TODO: update the code to test the property StorePhoneNumber + expect(instance).to.have.property('StorePhoneNumber'); + // expect(instance.StorePhoneNumber).to.be(expectedValueLiteral); + }); + + it('should have the property AppIconUrl (base name: "AppIconUrl")', function() { + // TODO: update the code to test the property AppIconUrl + expect(instance).to.have.property('AppIconUrl'); + // expect(instance.AppIconUrl).to.be(expectedValueLiteral); + }); + + it('should have the property OrderTrackingCode (base name: "OrderTrackingCode")', function() { + // TODO: update the code to test the property OrderTrackingCode + expect(instance).to.have.property('OrderTrackingCode'); + // expect(instance.OrderTrackingCode).to.be(expectedValueLiteral); + }); + + it('should have the property PaymentMethodDescription (base name: "PaymentMethodDescription")', function() { + // TODO: update the code to test the property PaymentMethodDescription + expect(instance).to.have.property('PaymentMethodDescription'); + // expect(instance.PaymentMethodDescription).to.be(expectedValueLiteral); + }); + + it('should have the property LastFourDigits (base name: "LastFourDigits")', function() { + // TODO: update the code to test the property LastFourDigits + expect(instance).to.have.property('LastFourDigits'); + // expect(instance.LastFourDigits).to.be(expectedValueLiteral); + }); + + it('should have the property OrderLines (base name: "OrderLines")', function() { + // TODO: update the code to test the property OrderLines + expect(instance).to.have.property('OrderLines'); + // expect(instance.OrderLines).to.be(expectedValueLiteral); + }); + + it('should have the property TotalAmount (base name: "TotalAmount")', function() { + // TODO: update the code to test the property TotalAmount + expect(instance).to.have.property('TotalAmount'); + // expect(instance.TotalAmount).to.be(expectedValueLiteral); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + it('should have the property Latitude (base name: "Latitude")', function() { + // TODO: update the code to test the property Latitude + expect(instance).to.have.property('Latitude'); + // expect(instance.Latitude).to.be(expectedValueLiteral); + }); + + it('should have the property Longitude (base name: "Longitude")', function() { + // TODO: update the code to test the property Longitude + expect(instance).to.have.property('Longitude'); + // expect(instance.Longitude).to.be(expectedValueLiteral); + }); + + it('should have the property Placed (base name: "Placed")', function() { + // TODO: update the code to test the property Placed + expect(instance).to.have.property('Placed'); + // expect(instance.Placed).to.be(expectedValueLiteral); + }); + + it('should have the property RequestedFor (base name: "RequestedFor")', function() { + // TODO: update the code to test the property RequestedFor + expect(instance).to.have.property('RequestedFor'); + // expect(instance.RequestedFor).to.be(expectedValueLiteral); + }); + + it('should have the property DriverId (base name: "DriverId")', function() { + // TODO: update the code to test the property DriverId + expect(instance).to.have.property('DriverId'); + // expect(instance.DriverId).to.be(expectedValueLiteral); + }); + + it('should have the property DriverName (base name: "DriverName")', function() { + // TODO: update the code to test the property DriverName + expect(instance).to.have.property('DriverName'); + // expect(instance.DriverName).to.be(expectedValueLiteral); + }); + + it('should have the property DriverImage (base name: "DriverImage")', function() { + // TODO: update the code to test the property DriverImage + expect(instance).to.have.property('DriverImage'); + // expect(instance.DriverImage).to.be(expectedValueLiteral); + }); + + it('should have the property EstimatedMinutesForDelivery (base name: "EstimatedMinutesForDelivery")', function() { + // TODO: update the code to test the property EstimatedMinutesForDelivery + expect(instance).to.have.property('EstimatedMinutesForDelivery'); + // expect(instance.EstimatedMinutesForDelivery).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CustomerDeliveryTrackingOrderLine.spec.js b/test/model/CustomerDeliveryTrackingOrderLine.spec.js new file mode 100644 index 00000000..95c35deb --- /dev/null +++ b/test/model/CustomerDeliveryTrackingOrderLine.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CustomerDeliveryTrackingOrderLine', function() { + beforeEach(function() { + instance = new Flipdish.CustomerDeliveryTrackingOrderLine(); + }); + + it('should create an instance of CustomerDeliveryTrackingOrderLine', function() { + // TODO: update the code to test CustomerDeliveryTrackingOrderLine + expect(instance).to.be.a(Flipdish.CustomerDeliveryTrackingOrderLine); + }); + + it('should have the property ItemName (base name: "ItemName")', function() { + // TODO: update the code to test the property ItemName + expect(instance).to.have.property('ItemName'); + // expect(instance.ItemName).to.be(expectedValueLiteral); + }); + + it('should have the property SelectedOptions (base name: "SelectedOptions")', function() { + // TODO: update the code to test the property SelectedOptions + expect(instance).to.have.property('SelectedOptions'); + // expect(instance.SelectedOptions).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CustomerSummary.spec.js b/test/model/CustomerSummary.spec.js index eef7f694..1c488573 100644 --- a/test/model/CustomerSummary.spec.js +++ b/test/model/CustomerSummary.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,63 +29,48 @@ var instance; - beforeEach(function() { - instance = new Flipdish.CustomerSummary(); - }); + describe('(package)', function() { + describe('CustomerSummary', function() { + 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]; - } + it('should create an instance of CustomerSummary', function() { + // TODO: update the code to test CustomerSummary + expect(instance).to.be.a(Flipdish.CustomerSummary); + }); - var setProperty = function(object, setter, property, 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() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); - it('should have the property id (base name: "Id")', function() { - // uncomment below and update the code to test the property id - //var instane = new Flipdish.CustomerSummary(); - //expect(instance).to.be(); - }); + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); - it('should have the property name (base name: "Name")', function() { - // uncomment below and update the code to test the property name - //var instane = new Flipdish.CustomerSummary(); - //expect(instance).to.be(); - }); + it('should have the property EmailAddress (base name: "EmailAddress")', function() { + // TODO: update the code to test the property EmailAddress + expect(instance).to.have.property('EmailAddress'); + // expect(instance.EmailAddress).to.be(expectedValueLiteral); + }); - it('should have the property emailAddress (base name: "EmailAddress")', function() { - // uncomment below and update the code to test the property emailAddress - //var instane = new Flipdish.CustomerSummary(); - //expect(instance).to.be(); - }); + it('should have the property PhoneNumberLocalFormat (base name: "PhoneNumberLocalFormat")', function() { + // TODO: update the code to test the property PhoneNumberLocalFormat + expect(instance).to.have.property('PhoneNumberLocalFormat'); + // expect(instance.PhoneNumberLocalFormat).to.be(expectedValueLiteral); + }); - it('should have the property phoneNumberLocalFormat (base name: "PhoneNumberLocalFormat")', function() { - // uncomment below and update the code to test the property phoneNumberLocalFormat - //var instane = new Flipdish.CustomerSummary(); - //expect(instance).to.be(); - }); + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // TODO: update the code to test the property PhoneNumber + expect(instance).to.have.property('PhoneNumber'); + // expect(instance.PhoneNumber).to.be(expectedValueLiteral); + }); - it('should have the property phoneNumber (base name: "PhoneNumber")', function() { - // uncomment below and update the code to test the property phoneNumber - //var instane = 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..5803e360 --- /dev/null +++ b/test/model/CustomerUpdateModel.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CustomerUpdateModel', function() { + beforeEach(function() { + instance = new Flipdish.CustomerUpdateModel(); + }); + + it('should create an instance of CustomerUpdateModel', function() { + // TODO: update the code to test CustomerUpdateModel + expect(instance).to.be.a(Flipdish.CustomerUpdateModel); + }); + + it('should have the property CashOrdersEnabled (base name: "CashOrdersEnabled")', function() { + // TODO: update the code to test the property CashOrdersEnabled + expect(instance).to.have.property('CashOrdersEnabled'); + // expect(instance.CashOrdersEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property CardOrdersEnabled (base name: "CardOrdersEnabled")', function() { + // TODO: update the code to test the property CardOrdersEnabled + expect(instance).to.have.property('CardOrdersEnabled'); + // expect(instance.CardOrdersEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property MarketingEnabled (base name: "MarketingEnabled")', function() { + // TODO: update the code to test the property MarketingEnabled + expect(instance).to.have.property('MarketingEnabled'); + // expect(instance.MarketingEnabled).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/CustomerUpdatedEvent.spec.js b/test/model/CustomerUpdatedEvent.spec.js index ff2cab8f..d090ab13 100644 --- a/test/model/CustomerUpdatedEvent.spec.js +++ b/test/model/CustomerUpdatedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,69 +29,60 @@ var instance; - beforeEach(function() { - instance = new Flipdish.CustomerUpdatedEvent(); - }); + describe('(package)', function() { + describe('CustomerUpdatedEvent', function() { + 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]; - } + it('should create an instance of CustomerUpdatedEvent', function() { + // TODO: update the code to test CustomerUpdatedEvent + expect(instance).to.be.a(Flipdish.CustomerUpdatedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.CustomerUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property user (base name: "User")', function() { - // uncomment below and update the code to test the property user - //var instane = new Flipdish.CustomerUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.CustomerUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.CustomerUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.CustomerUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = new Flipdish.CustomerUpdatedEvent(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/DeliveryFeeArea.spec.js b/test/model/DeliveryFeeArea.spec.js deleted file mode 100644 index a2778b32..00000000 --- a/test/model/DeliveryFeeArea.spec.js +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Flipdish Open API v1.0 - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.Flipdish); - } -}(this, function(expect, Flipdish) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Flipdish.DeliveryFeeArea(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('DeliveryFeeArea', function() { - it('should create an instance of DeliveryFeeArea', function() { - // uncomment below and update the code to test DeliveryFeeArea - //var instane = new Flipdish.DeliveryFeeArea(); - //expect(instance).to.be.a(Flipdish.DeliveryFeeArea); - }); - - it('should have the property deliveryFee (base name: "DeliveryFee")', function() { - // uncomment below and update the code to test the property deliveryFee - //var instane = new Flipdish.DeliveryFeeArea(); - //expect(instance).to.be(); - }); - - it('should have the property minimumDeliveryOrder (base name: "MinimumDeliveryOrder")', function() { - // uncomment below and update the code to test the property minimumDeliveryOrder - //var instane = new Flipdish.DeliveryFeeArea(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/DeliveryLocation.spec.js b/test/model/DeliveryLocation.spec.js index 52219156..5bec00ea 100644 --- a/test/model/DeliveryLocation.spec.js +++ b/test/model/DeliveryLocation.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,60 @@ 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]; - } + describe('(package)', function() { + describe('DeliveryLocation', function() { + beforeEach(function() { + instance = new Flipdish.DeliveryLocation(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of DeliveryLocation', function() { + // TODO: update the code to test DeliveryLocation + expect(instance).to.be.a(Flipdish.DeliveryLocation); + }); - 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() { + // TODO: update the code to test the property Coordinates + expect(instance).to.have.property('Coordinates'); + // expect(instance.Coordinates).to.be(expectedValueLiteral); + }); - it('should have the property coordinates (base name: "Coordinates")', function() { - // uncomment below and update the code to test the property coordinates - //var instane = new Flipdish.DeliveryLocation(); - //expect(instance).to.be(); - }); + it('should have the property Building (base name: "Building")', function() { + // TODO: update the code to test the property Building + expect(instance).to.have.property('Building'); + // expect(instance.Building).to.be(expectedValueLiteral); + }); - it('should have the property building (base name: "Building")', function() { - // uncomment below and update the code to test the property building - //var instane = new Flipdish.DeliveryLocation(); - //expect(instance).to.be(); - }); + it('should have the property Street (base name: "Street")', function() { + // TODO: update the code to test the property Street + expect(instance).to.have.property('Street'); + // expect(instance.Street).to.be(expectedValueLiteral); + }); - it('should have the property street (base name: "Street")', function() { - // uncomment below and update the code to test the property street - //var instane = new Flipdish.DeliveryLocation(); - //expect(instance).to.be(); - }); + it('should have the property Town (base name: "Town")', function() { + // TODO: update the code to test the property Town + expect(instance).to.have.property('Town'); + // expect(instance.Town).to.be(expectedValueLiteral); + }); - it('should have the property town (base name: "Town")', function() { - // uncomment below and update the code to test the property town - //var instane = new Flipdish.DeliveryLocation(); - //expect(instance).to.be(); - }); + it('should have the property PostCode (base name: "PostCode")', function() { + // TODO: update the code to test the property PostCode + expect(instance).to.have.property('PostCode'); + // expect(instance.PostCode).to.be(expectedValueLiteral); + }); - it('should have the property postCode (base name: "PostCode")', function() { - // uncomment below and update the code to test the property postCode - //var instane = new Flipdish.DeliveryLocation(); - //expect(instance).to.be(); - }); + it('should have the property DeliveryInstructions (base name: "DeliveryInstructions")', function() { + // TODO: update the code to test the property DeliveryInstructions + expect(instance).to.have.property('DeliveryInstructions'); + // expect(instance.DeliveryInstructions).to.be(expectedValueLiteral); + }); - it('should have the property deliveryInstructions (base name: "DeliveryInstructions")', function() { - // uncomment below and update the code to test the property deliveryInstructions - //var instane = new Flipdish.DeliveryLocation(); - //expect(instance).to.be(); - }); + it('should have the property PrettyAddressString (base name: "PrettyAddressString")', function() { + // TODO: update the code to test the property PrettyAddressString + expect(instance).to.have.property('PrettyAddressString'); + // expect(instance.PrettyAddressString).to.be(expectedValueLiteral); + }); - it('should have the property prettyAddressString (base name: "PrettyAddressString")', function() { - // uncomment below and update the code to test the property prettyAddressString - //var instane = 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..8ef1a717 --- /dev/null +++ b/test/model/DeliveryZone.spec.js @@ -0,0 +1,76 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DeliveryZone', function() { + beforeEach(function() { + instance = new Flipdish.DeliveryZone(); + }); + + it('should create an instance of DeliveryZone', function() { + // TODO: update the code to test DeliveryZone + expect(instance).to.be.a(Flipdish.DeliveryZone); + }); + + it('should have the property Id (base name: "Id")', function() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryFee (base name: "DeliveryFee")', function() { + // TODO: update the code to test the property DeliveryFee + expect(instance).to.have.property('DeliveryFee'); + // expect(instance.DeliveryFee).to.be(expectedValueLiteral); + }); + + it('should have the property MinimumDeliveryOrderAmount (base name: "MinimumDeliveryOrderAmount")', function() { + // TODO: update the code to test the property MinimumDeliveryOrderAmount + expect(instance).to.have.property('MinimumDeliveryOrderAmount'); + // expect(instance.MinimumDeliveryOrderAmount).to.be(expectedValueLiteral); + }); + + it('should have the property WellKnownText (base name: "WellKnownText")', function() { + // TODO: update the code to test the property WellKnownText + expect(instance).to.have.property('WellKnownText'); + // expect(instance.WellKnownText).to.be(expectedValueLiteral); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // TODO: update the code to test the property IsEnabled + expect(instance).to.have.property('IsEnabled'); + // expect(instance.IsEnabled).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/DeliveryZoneBase.spec.js b/test/model/DeliveryZoneBase.spec.js new file mode 100644 index 00000000..2aa01c0d --- /dev/null +++ b/test/model/DeliveryZoneBase.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DeliveryZoneBase', function() { + beforeEach(function() { + instance = new Flipdish.DeliveryZoneBase(); + }); + + it('should create an instance of DeliveryZoneBase', function() { + // TODO: update the code to test DeliveryZoneBase + expect(instance).to.be.a(Flipdish.DeliveryZoneBase); + }); + + it('should have the property DeliveryFee (base name: "DeliveryFee")', function() { + // TODO: update the code to test the property DeliveryFee + expect(instance).to.have.property('DeliveryFee'); + // expect(instance.DeliveryFee).to.be(expectedValueLiteral); + }); + + it('should have the property MinimumDeliveryOrderAmount (base name: "MinimumDeliveryOrderAmount")', function() { + // TODO: update the code to test the property MinimumDeliveryOrderAmount + expect(instance).to.have.property('MinimumDeliveryOrderAmount'); + // expect(instance.MinimumDeliveryOrderAmount).to.be(expectedValueLiteral); + }); + + it('should have the property WellKnownText (base name: "WellKnownText")', function() { + // TODO: update the code to test the property WellKnownText + expect(instance).to.have.property('WellKnownText'); + // expect(instance.WellKnownText).to.be(expectedValueLiteral); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // TODO: update the code to test the property IsEnabled + expect(instance).to.have.property('IsEnabled'); + // expect(instance.IsEnabled).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/DeliveryZoneCreatedEvent.spec.js b/test/model/DeliveryZoneCreatedEvent.spec.js new file mode 100644 index 00000000..c89d8085 --- /dev/null +++ b/test/model/DeliveryZoneCreatedEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DeliveryZoneCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.DeliveryZoneCreatedEvent(); + }); + + it('should create an instance of DeliveryZoneCreatedEvent', function() { + // TODO: update the code to test DeliveryZoneCreatedEvent + expect(instance).to.be.a(Flipdish.DeliveryZoneCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryZone (base name: "DeliveryZone")', function() { + // TODO: update the code to test the property DeliveryZone + expect(instance).to.have.property('DeliveryZone'); + // expect(instance.DeliveryZone).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/DeliveryZoneDeletedEvent.spec.js b/test/model/DeliveryZoneDeletedEvent.spec.js new file mode 100644 index 00000000..6768db48 --- /dev/null +++ b/test/model/DeliveryZoneDeletedEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DeliveryZoneDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.DeliveryZoneDeletedEvent(); + }); + + it('should create an instance of DeliveryZoneDeletedEvent', function() { + // TODO: update the code to test DeliveryZoneDeletedEvent + expect(instance).to.be.a(Flipdish.DeliveryZoneDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryZone (base name: "DeliveryZone")', function() { + // TODO: update the code to test the property DeliveryZone + expect(instance).to.have.property('DeliveryZone'); + // expect(instance.DeliveryZone).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/DeliveryZoneUpdatedEvent.spec.js b/test/model/DeliveryZoneUpdatedEvent.spec.js new file mode 100644 index 00000000..ba97cd0f --- /dev/null +++ b/test/model/DeliveryZoneUpdatedEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DeliveryZoneUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.DeliveryZoneUpdatedEvent(); + }); + + it('should create an instance of DeliveryZoneUpdatedEvent', function() { + // TODO: update the code to test DeliveryZoneUpdatedEvent + expect(instance).to.be.a(Flipdish.DeliveryZoneUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryZone (base name: "DeliveryZone")', function() { + // TODO: update the code to test the property DeliveryZone + expect(instance).to.have.property('DeliveryZone'); + // expect(instance.DeliveryZone).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/DeviceSettings.spec.js b/test/model/DeviceSettings.spec.js new file mode 100644 index 00000000..2eb03910 --- /dev/null +++ b/test/model/DeviceSettings.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DeviceSettings', function() { + beforeEach(function() { + instance = new Flipdish.DeviceSettings(); + }); + + it('should create an instance of DeviceSettings', function() { + // TODO: update the code to test DeviceSettings + expect(instance).to.be.a(Flipdish.DeviceSettings); + }); + + it('should have the property Volume (base name: "Volume")', function() { + // TODO: update the code to test the property Volume + expect(instance).to.have.property('Volume'); + // expect(instance.Volume).to.be(expectedValueLiteral); + }); + + it('should have the property FontSize (base name: "FontSize")', function() { + // TODO: update the code to test the property FontSize + expect(instance).to.have.property('FontSize'); + // expect(instance.FontSize).to.be(expectedValueLiteral); + }); + + it('should have the property Brightness (base name: "Brightness")', function() { + // TODO: update the code to test the property Brightness + expect(instance).to.have.property('Brightness'); + // expect(instance.Brightness).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/DnsRecordInformation.spec.js b/test/model/DnsRecordInformation.spec.js new file mode 100644 index 00000000..074bf75a --- /dev/null +++ b/test/model/DnsRecordInformation.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DnsRecordInformation', function() { + beforeEach(function() { + instance = new Flipdish.DnsRecordInformation(); + }); + + it('should create an instance of DnsRecordInformation', function() { + // TODO: update the code to test DnsRecordInformation + expect(instance).to.be.a(Flipdish.DnsRecordInformation); + }); + + it('should have the property IsCNameReady (base name: "IsCNameReady")', function() { + // TODO: update the code to test the property IsCNameReady + expect(instance).to.have.property('IsCNameReady'); + // expect(instance.IsCNameReady).to.be(expectedValueLiteral); + }); + + it('should have the property IsAReady (base name: "IsAReady")', function() { + // TODO: update the code to test the property IsAReady + expect(instance).to.have.property('IsAReady'); + // expect(instance.IsAReady).to.be(expectedValueLiteral); + }); + + it('should have the property IsApiCNameReady (base name: "IsApiCNameReady")', function() { + // TODO: update the code to test the property IsApiCNameReady + expect(instance).to.have.property('IsApiCNameReady'); + // expect(instance.IsApiCNameReady).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/DnsVerifiedEvent.spec.js b/test/model/DnsVerifiedEvent.spec.js new file mode 100644 index 00000000..ad22426c --- /dev/null +++ b/test/model/DnsVerifiedEvent.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DnsVerifiedEvent', function() { + beforeEach(function() { + instance = new Flipdish.DnsVerifiedEvent(); + }); + + it('should create an instance of DnsVerifiedEvent', function() { + // TODO: update the code to test DnsVerifiedEvent + expect(instance).to.be.a(Flipdish.DnsVerifiedEvent); + }); + + it('should have the property Hostname (base name: "Hostname")', function() { + // TODO: update the code to test the property Hostname + expect(instance).to.have.property('Hostname'); + // expect(instance.Hostname).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/Driver.spec.js b/test/model/Driver.spec.js new file mode 100644 index 00000000..76a3afbd --- /dev/null +++ b/test/model/Driver.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('Driver', function() { + beforeEach(function() { + instance = new Flipdish.Driver(); + }); + + it('should create an instance of Driver', function() { + // TODO: update the code to test Driver + expect(instance).to.be.a(Flipdish.Driver); + }); + + it('should have the property UserId (base name: "UserId")', function() { + // TODO: update the code to test the property UserId + expect(instance).to.have.property('UserId'); + // expect(instance.UserId).to.be(expectedValueLiteral); + }); + + it('should have the property UserName (base name: "UserName")', function() { + // TODO: update the code to test the property UserName + expect(instance).to.have.property('UserName'); + // expect(instance.UserName).to.be(expectedValueLiteral); + }); + + it('should have the property UserPhoneNumber (base name: "UserPhoneNumber")', function() { + // TODO: update the code to test the property UserPhoneNumber + expect(instance).to.have.property('UserPhoneNumber'); + // expect(instance.UserPhoneNumber).to.be(expectedValueLiteral); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // TODO: update the code to test the property Stores + expect(instance).to.have.property('Stores'); + // expect(instance.Stores).to.be(expectedValueLiteral); + }); + + it('should have the property ProfileImageUrl (base name: "ProfileImageUrl")', function() { + // TODO: update the code to test the property ProfileImageUrl + expect(instance).to.have.property('ProfileImageUrl'); + // expect(instance.ProfileImageUrl).to.be(expectedValueLiteral); + }); + + it('should have the property DriverKey (base name: "DriverKey")', function() { + // TODO: update the code to test the property DriverKey + expect(instance).to.have.property('DriverKey'); + // expect(instance.DriverKey).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/DriverInvitation.spec.js b/test/model/DriverInvitation.spec.js new file mode 100644 index 00000000..9ba6388f --- /dev/null +++ b/test/model/DriverInvitation.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DriverInvitation', function() { + beforeEach(function() { + instance = new Flipdish.DriverInvitation(); + }); + + it('should create an instance of DriverInvitation', function() { + // TODO: update the code to test DriverInvitation + expect(instance).to.be.a(Flipdish.DriverInvitation); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // TODO: update the code to test the property PhoneNumber + expect(instance).to.have.property('PhoneNumber'); + // expect(instance.PhoneNumber).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/DriverLoginModel.spec.js b/test/model/DriverLoginModel.spec.js new file mode 100644 index 00000000..e85a3b52 --- /dev/null +++ b/test/model/DriverLoginModel.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DriverLoginModel', function() { + beforeEach(function() { + instance = new Flipdish.DriverLoginModel(); + }); + + it('should create an instance of DriverLoginModel', function() { + // TODO: update the code to test DriverLoginModel + expect(instance).to.be.a(Flipdish.DriverLoginModel); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // TODO: update the code to test the property PhoneNumber + expect(instance).to.have.property('PhoneNumber'); + // expect(instance.PhoneNumber).to.be(expectedValueLiteral); + }); + + it('should have the property Code (base name: "Code")', function() { + // TODO: update the code to test the property Code + expect(instance).to.have.property('Code'); + // expect(instance.Code).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/DriverRequestLoginPinModel.spec.js b/test/model/DriverRequestLoginPinModel.spec.js new file mode 100644 index 00000000..f5fab57f --- /dev/null +++ b/test/model/DriverRequestLoginPinModel.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DriverRequestLoginPinModel', function() { + beforeEach(function() { + instance = new Flipdish.DriverRequestLoginPinModel(); + }); + + it('should create an instance of DriverRequestLoginPinModel', function() { + // TODO: update the code to test DriverRequestLoginPinModel + expect(instance).to.be.a(Flipdish.DriverRequestLoginPinModel); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // TODO: update the code to test the property PhoneNumber + expect(instance).to.have.property('PhoneNumber'); + // expect(instance.PhoneNumber).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/DriverStore.spec.js b/test/model/DriverStore.spec.js new file mode 100644 index 00000000..b90ddcbb --- /dev/null +++ b/test/model/DriverStore.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DriverStore', function() { + beforeEach(function() { + instance = new Flipdish.DriverStore(); + }); + + it('should create an instance of DriverStore', function() { + // TODO: update the code to test DriverStore + expect(instance).to.be.a(Flipdish.DriverStore); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // TODO: update the code to test the property StoreName + expect(instance).to.have.property('StoreName'); + // expect(instance.StoreName).to.be(expectedValueLiteral); + }); + + it('should have the property Presence (base name: "Presence")', function() { + // TODO: update the code to test the property Presence + expect(instance).to.have.property('Presence'); + // expect(instance.Presence).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/EmvNotificationEvent.spec.js b/test/model/EmvNotificationEvent.spec.js new file mode 100644 index 00000000..39835b33 --- /dev/null +++ b/test/model/EmvNotificationEvent.spec.js @@ -0,0 +1,136 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('EmvNotificationEvent', function() { + beforeEach(function() { + instance = new Flipdish.EmvNotificationEvent(); + }); + + it('should create an instance of EmvNotificationEvent', function() { + // TODO: update the code to test EmvNotificationEvent + expect(instance).to.be.a(Flipdish.EmvNotificationEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Notification (base name: "Notification")', function() { + // TODO: update the code to test the property Notification + expect(instance).to.have.property('Notification'); + // expect(instance.Notification).to.be(expectedValueLiteral); + }); + + it('should have the property Order (base name: "Order")', function() { + // TODO: update the code to test the property Order + expect(instance).to.have.property('Order'); + // expect(instance.Order).to.be(expectedValueLiteral); + }); + + it('should have the property TerminalId (base name: "TerminalId")', function() { + // TODO: update the code to test the property TerminalId + expect(instance).to.have.property('TerminalId'); + // expect(instance.TerminalId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property ExpDate (base name: "ExpDate")', function() { + // TODO: update the code to test the property ExpDate + expect(instance).to.have.property('ExpDate'); + // expect(instance.ExpDate).to.be(expectedValueLiteral); + }); + + it('should have the property CardType (base name: "CardType")', function() { + // TODO: update the code to test the property CardType + expect(instance).to.have.property('CardType'); + // expect(instance.CardType).to.be(expectedValueLiteral); + }); + + it('should have the property PaymentMethod (base name: "PaymentMethod")', function() { + // TODO: update the code to test the property PaymentMethod + expect(instance).to.have.property('PaymentMethod'); + // expect(instance.PaymentMethod).to.be(expectedValueLiteral); + }); + + it('should have the property AccountNumber (base name: "AccountNumber")', function() { + // TODO: update the code to test the property AccountNumber + expect(instance).to.have.property('AccountNumber'); + // expect(instance.AccountNumber).to.be(expectedValueLiteral); + }); + + it('should have the property AuthCode (base name: "AuthCode")', function() { + // TODO: update the code to test the property AuthCode + expect(instance).to.have.property('AuthCode'); + // expect(instance.AuthCode).to.be(expectedValueLiteral); + }); + + it('should have the property ProviderMessage (base name: "ProviderMessage")', function() { + // TODO: update the code to test the property ProviderMessage + expect(instance).to.have.property('ProviderMessage'); + // expect(instance.ProviderMessage).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/EmvTerminal.spec.js b/test/model/EmvTerminal.spec.js new file mode 100644 index 00000000..01ed43de --- /dev/null +++ b/test/model/EmvTerminal.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('EmvTerminal', function() { + beforeEach(function() { + instance = new Flipdish.EmvTerminal(); + }); + + it('should create an instance of EmvTerminal', function() { + // TODO: update the code to test EmvTerminal + expect(instance).to.be.a(Flipdish.EmvTerminal); + }); + + it('should have the property EmvTerminalId (base name: "EmvTerminalId")', function() { + // TODO: update the code to test the property EmvTerminalId + expect(instance).to.have.property('EmvTerminalId'); + // expect(instance.EmvTerminalId).to.be(expectedValueLiteral); + }); + + it('should have the property TerminalId (base name: "TerminalId")', function() { + // TODO: update the code to test the property TerminalId + expect(instance).to.have.property('TerminalId'); + // expect(instance.TerminalId).to.be(expectedValueLiteral); + }); + + it('should have the property Url (base name: "Url")', function() { + // TODO: update the code to test the property Url + expect(instance).to.have.property('Url'); + // expect(instance.Url).to.be(expectedValueLiteral); + }); + + it('should have the property Token (base name: "Token")', function() { + // TODO: update the code to test the property Token + expect(instance).to.have.property('Token'); + // expect(instance.Token).to.be(expectedValueLiteral); + }); + + it('should have the property SoftwareHouseId (base name: "SoftwareHouseId")', function() { + // TODO: update the code to test the property SoftwareHouseId + expect(instance).to.have.property('SoftwareHouseId'); + // expect(instance.SoftwareHouseId).to.be(expectedValueLiteral); + }); + + it('should have the property InstallerId (base name: "InstallerId")', function() { + // TODO: update the code to test the property InstallerId + expect(instance).to.have.property('InstallerId'); + // expect(instance.InstallerId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/EmvTerminalWithAssignments.spec.js b/test/model/EmvTerminalWithAssignments.spec.js new file mode 100644 index 00000000..af40ef2a --- /dev/null +++ b/test/model/EmvTerminalWithAssignments.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('EmvTerminalWithAssignments', function() { + beforeEach(function() { + instance = new Flipdish.EmvTerminalWithAssignments(); + }); + + it('should create an instance of EmvTerminalWithAssignments', function() { + // TODO: update the code to test EmvTerminalWithAssignments + expect(instance).to.be.a(Flipdish.EmvTerminalWithAssignments); + }); + + it('should have the property EmvTerminalId (base name: "EmvTerminalId")', function() { + // TODO: update the code to test the property EmvTerminalId + expect(instance).to.have.property('EmvTerminalId'); + // expect(instance.EmvTerminalId).to.be(expectedValueLiteral); + }); + + it('should have the property TerminalId (base name: "TerminalId")', function() { + // TODO: update the code to test the property TerminalId + expect(instance).to.have.property('TerminalId'); + // expect(instance.TerminalId).to.be(expectedValueLiteral); + }); + + it('should have the property IsAssignedToHydraDevice (base name: "IsAssignedToHydraDevice")', function() { + // TODO: update the code to test the property IsAssignedToHydraDevice + expect(instance).to.have.property('IsAssignedToHydraDevice'); + // expect(instance.IsAssignedToHydraDevice).to.be(expectedValueLiteral); + }); + + it('should have the property HydraConfigId (base name: "HydraConfigId")', function() { + // TODO: update the code to test the property HydraConfigId + expect(instance).to.have.property('HydraConfigId'); + // expect(instance.HydraConfigId).to.be(expectedValueLiteral); + }); + + it('should have the property HydraDeviceId (base name: "HydraDeviceId")', function() { + // TODO: update the code to test the property HydraDeviceId + expect(instance).to.have.property('HydraDeviceId'); + // expect(instance.HydraDeviceId).to.be(expectedValueLiteral); + }); + + it('should have the property HydraName (base name: "HydraName")', function() { + // TODO: update the code to test the property HydraName + expect(instance).to.have.property('HydraName'); + // expect(instance.HydraName).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/EventSearchResult.spec.js b/test/model/EventSearchResult.spec.js index 99db6cb0..00c6da9b 100644 --- a/test/model/EventSearchResult.spec.js +++ b/test/model/EventSearchResult.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,153 +29,666 @@ var instance; - beforeEach(function() { - instance = new Flipdish.EventSearchResult(); - }); + describe('(package)', function() { + describe('EventSearchResult', function() { + 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]; - } + it('should create an instance of EventSearchResult', function() { + // TODO: update the code to test EventSearchResult + expect(instance).to.be.a(Flipdish.EventSearchResult); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property AppCreatedEvent (base name: "AppCreatedEvent")', function() { + // TODO: update the code to test the property AppCreatedEvent + expect(instance).to.have.property('AppCreatedEvent'); + // expect(instance.AppCreatedEvent).to.be(expectedValueLiteral); + }); - 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 AppUpdatedEvent (base name: "AppUpdatedEvent")', function() { + // TODO: update the code to test the property AppUpdatedEvent + expect(instance).to.have.property('AppUpdatedEvent'); + // expect(instance.AppUpdatedEvent).to.be(expectedValueLiteral); + }); - it('should have the property orderAcceptedEvent (base name: "OrderAcceptedEvent")', function() { - // uncomment below and update the code to test the property orderAcceptedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property AnalyticsClientEvent (base name: "AnalyticsClientEvent")', function() { + // TODO: update the code to test the property AnalyticsClientEvent + expect(instance).to.have.property('AnalyticsClientEvent'); + // expect(instance.AnalyticsClientEvent).to.be(expectedValueLiteral); + }); - it('should have the property orderCreatedEvent (base name: "OrderCreatedEvent")', function() { - // uncomment below and update the code to test the property orderCreatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property OrderAcceptedEvent (base name: "OrderAcceptedEvent")', function() { + // TODO: update the code to test the property OrderAcceptedEvent + expect(instance).to.have.property('OrderAcceptedEvent'); + // expect(instance.OrderAcceptedEvent).to.be(expectedValueLiteral); + }); - it('should have the property orderRatingUpdatedEvent (base name: "OrderRatingUpdatedEvent")', function() { - // uncomment below and update the code to test the property orderRatingUpdatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property OrderDispatchedEvent (base name: "OrderDispatchedEvent")', function() { + // TODO: update the code to test the property OrderDispatchedEvent + expect(instance).to.have.property('OrderDispatchedEvent'); + // expect(instance.OrderDispatchedEvent).to.be(expectedValueLiteral); + }); - it('should have the property orderRefundedEvent (base name: "OrderRefundedEvent")', function() { - // uncomment below and update the code to test the property orderRefundedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property OrderCustomerTrackingCreatedEvent (base name: "OrderCustomerTrackingCreatedEvent")', function() { + // TODO: update the code to test the property OrderCustomerTrackingCreatedEvent + expect(instance).to.have.property('OrderCustomerTrackingCreatedEvent'); + // expect(instance.OrderCustomerTrackingCreatedEvent).to.be(expectedValueLiteral); + }); - it('should have the property orderRejectedEvent (base name: "OrderRejectedEvent")', function() { - // uncomment below and update the code to test the property orderRejectedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property OrderDeliveryTrackingStatusUpdatedEvent (base name: "OrderDeliveryTrackingStatusUpdatedEvent")', function() { + // TODO: update the code to test the property OrderDeliveryTrackingStatusUpdatedEvent + expect(instance).to.have.property('OrderDeliveryTrackingStatusUpdatedEvent'); + // expect(instance.OrderDeliveryTrackingStatusUpdatedEvent).to.be(expectedValueLiteral); + }); - it('should have the property orderTipUpdatedEvent (base name: "OrderTipUpdatedEvent")', function() { - // uncomment below and update the code to test the property orderTipUpdatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property OrderCreatedEvent (base name: "OrderCreatedEvent")', function() { + // TODO: update the code to test the property OrderCreatedEvent + expect(instance).to.have.property('OrderCreatedEvent'); + // expect(instance.OrderCreatedEvent).to.be(expectedValueLiteral); + }); - it('should have the property storeCreatedEvent (base name: "StoreCreatedEvent")', function() { - // uncomment below and update the code to test the property storeCreatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property OrderRatingUpdatedEvent (base name: "OrderRatingUpdatedEvent")', function() { + // TODO: update the code to test the property OrderRatingUpdatedEvent + expect(instance).to.have.property('OrderRatingUpdatedEvent'); + // expect(instance.OrderRatingUpdatedEvent).to.be(expectedValueLiteral); + }); - it('should have the property storeDeletedEvent (base name: "StoreDeletedEvent")', function() { - // uncomment below and update the code to test the property storeDeletedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property OrderRefundedEvent (base name: "OrderRefundedEvent")', function() { + // TODO: update the code to test the property OrderRefundedEvent + expect(instance).to.have.property('OrderRefundedEvent'); + // expect(instance.OrderRefundedEvent).to.be(expectedValueLiteral); + }); - it('should have the property storeDeliveryZoneUpdatedEvent (base name: "StoreDeliveryZoneUpdatedEvent")', function() { - // uncomment below and update the code to test the property storeDeliveryZoneUpdatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property OrderRejectedEvent (base name: "OrderRejectedEvent")', function() { + // TODO: update the code to test the property OrderRejectedEvent + expect(instance).to.have.property('OrderRejectedEvent'); + // expect(instance.OrderRejectedEvent).to.be(expectedValueLiteral); + }); - it('should have the property storeOpeningHoursUpdatedEvent (base name: "StoreOpeningHoursUpdatedEvent")', function() { - // uncomment below and update the code to test the property storeOpeningHoursUpdatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property OrderTipUpdatedEvent (base name: "OrderTipUpdatedEvent")', function() { + // TODO: update the code to test the property OrderTipUpdatedEvent + expect(instance).to.have.property('OrderTipUpdatedEvent'); + // expect(instance.OrderTipUpdatedEvent).to.be(expectedValueLiteral); + }); - it('should have the property storeUpdatedEvent (base name: "StoreUpdatedEvent")', function() { - // uncomment below and update the code to test the property storeUpdatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property OrderTerminalNotifications (base name: "OrderTerminalNotifications")', function() { + // TODO: update the code to test the property OrderTerminalNotifications + expect(instance).to.have.property('OrderTerminalNotifications'); + // expect(instance.OrderTerminalNotifications).to.be(expectedValueLiteral); + }); - it('should have the property menuCreatedEvent (base name: "MenuCreatedEvent")', function() { - // uncomment below and update the code to test the property menuCreatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property StoreCreatedEvent (base name: "StoreCreatedEvent")', function() { + // TODO: update the code to test the property StoreCreatedEvent + expect(instance).to.have.property('StoreCreatedEvent'); + // expect(instance.StoreCreatedEvent).to.be(expectedValueLiteral); + }); - it('should have the property menuUpdatedEvent (base name: "MenuUpdatedEvent")', function() { - // uncomment below and update the code to test the property menuUpdatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property StoreDeletedEvent (base name: "StoreDeletedEvent")', function() { + // TODO: update the code to test the property StoreDeletedEvent + expect(instance).to.have.property('StoreDeletedEvent'); + // expect(instance.StoreDeletedEvent).to.be(expectedValueLiteral); + }); - it('should have the property customerCreatedEvent (base name: "CustomerCreatedEvent")', function() { - // uncomment below and update the code to test the property customerCreatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property StoreAddressUpdatedEvent (base name: "StoreAddressUpdatedEvent")', function() { + // TODO: update the code to test the property StoreAddressUpdatedEvent + expect(instance).to.have.property('StoreAddressUpdatedEvent'); + // expect(instance.StoreAddressUpdatedEvent).to.be(expectedValueLiteral); + }); - it('should have the property customerUpdatedEvent (base name: "CustomerUpdatedEvent")', function() { - // uncomment below and update the code to test the property customerUpdatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property StoreKioskSettingUpdatedEvent (base name: "StoreKioskSettingUpdatedEvent")', function() { + // TODO: update the code to test the property StoreKioskSettingUpdatedEvent + expect(instance).to.have.property('StoreKioskSettingUpdatedEvent'); + // expect(instance.StoreKioskSettingUpdatedEvent).to.be(expectedValueLiteral); + }); - it('should have the property customerConsentUpdatedEvent (base name: "CustomerConsentUpdatedEvent")', function() { - // uncomment below and update the code to test the property customerConsentUpdatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property DeliveryZoneCreatedEvent (base name: "DeliveryZoneCreatedEvent")', function() { + // TODO: update the code to test the property DeliveryZoneCreatedEvent + expect(instance).to.have.property('DeliveryZoneCreatedEvent'); + // expect(instance.DeliveryZoneCreatedEvent).to.be(expectedValueLiteral); + }); - it('should have the property campaignCreatedEvent (base name: "CampaignCreatedEvent")', function() { - // uncomment below and update the code to test the property campaignCreatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property DeliveryZoneUpdatedEvent (base name: "DeliveryZoneUpdatedEvent")', function() { + // TODO: update the code to test the property DeliveryZoneUpdatedEvent + expect(instance).to.have.property('DeliveryZoneUpdatedEvent'); + // expect(instance.DeliveryZoneUpdatedEvent).to.be(expectedValueLiteral); + }); - it('should have the property webhookSubscriptionCreatedEvent (base name: "WebhookSubscriptionCreatedEvent")', function() { - // uncomment below and update the code to test the property webhookSubscriptionCreatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property DeliveryZoneDeletedEvent (base name: "DeliveryZoneDeletedEvent")', function() { + // TODO: update the code to test the property DeliveryZoneDeletedEvent + expect(instance).to.have.property('DeliveryZoneDeletedEvent'); + // expect(instance.DeliveryZoneDeletedEvent).to.be(expectedValueLiteral); + }); - it('should have the property webhookSubscriptionUpdatedEvent (base name: "WebhookSubscriptionUpdatedEvent")', function() { - // uncomment below and update the code to test the property webhookSubscriptionUpdatedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property StoreOpeningHoursUpdatedEvent (base name: "StoreOpeningHoursUpdatedEvent")', function() { + // TODO: update the code to test the property StoreOpeningHoursUpdatedEvent + expect(instance).to.have.property('StoreOpeningHoursUpdatedEvent'); + // expect(instance.StoreOpeningHoursUpdatedEvent).to.be(expectedValueLiteral); + }); - it('should have the property webhookSubscriptionDeletedEvent (base name: "WebhookSubscriptionDeletedEvent")', function() { - // uncomment below and update the code to test the property webhookSubscriptionDeletedEvent - //var instane = new Flipdish.EventSearchResult(); - //expect(instance).to.be(); - }); + it('should have the property StoreMenuAssignedEvent (base name: "StoreMenuAssignedEvent")', function() { + // TODO: update the code to test the property StoreMenuAssignedEvent + expect(instance).to.have.property('StoreMenuAssignedEvent'); + // expect(instance.StoreMenuAssignedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property StoreBusinessHoursOverrideCreatedEvent (base name: "StoreBusinessHoursOverrideCreatedEvent")', function() { + // TODO: update the code to test the property StoreBusinessHoursOverrideCreatedEvent + expect(instance).to.have.property('StoreBusinessHoursOverrideCreatedEvent'); + // expect(instance.StoreBusinessHoursOverrideCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property StoreBusinessHoursOverrideDeletedEvent (base name: "StoreBusinessHoursOverrideDeletedEvent")', function() { + // TODO: update the code to test the property StoreBusinessHoursOverrideDeletedEvent + expect(instance).to.have.property('StoreBusinessHoursOverrideDeletedEvent'); + // expect(instance.StoreBusinessHoursOverrideDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property StoreArchivedEvent (base name: "StoreArchivedEvent")', function() { + // TODO: update the code to test the property StoreArchivedEvent + expect(instance).to.have.property('StoreArchivedEvent'); + // expect(instance.StoreArchivedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property StoreUnarchivedEvent (base name: "StoreUnarchivedEvent")', function() { + // TODO: update the code to test the property StoreUnarchivedEvent + expect(instance).to.have.property('StoreUnarchivedEvent'); + // expect(instance.StoreUnarchivedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property StorePublishedEvent (base name: "StorePublishedEvent")', function() { + // TODO: update the code to test the property StorePublishedEvent + expect(instance).to.have.property('StorePublishedEvent'); + // expect(instance.StorePublishedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property StoreUnpublishedEvent (base name: "StoreUnpublishedEvent")', function() { + // TODO: update the code to test the property StoreUnpublishedEvent + expect(instance).to.have.property('StoreUnpublishedEvent'); + // expect(instance.StoreUnpublishedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property StoreUpdatedEvent (base name: "StoreUpdatedEvent")', function() { + // TODO: update the code to test the property StoreUpdatedEvent + expect(instance).to.have.property('StoreUpdatedEvent'); + // expect(instance.StoreUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property StorePreOrderConfigUpdatedEvent (base name: "StorePreOrderConfigUpdatedEvent")', function() { + // TODO: update the code to test the property StorePreOrderConfigUpdatedEvent + expect(instance).to.have.property('StorePreOrderConfigUpdatedEvent'); + // expect(instance.StorePreOrderConfigUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property StoreLogoCreatedEvent (base name: "StoreLogoCreatedEvent")', function() { + // TODO: update the code to test the property StoreLogoCreatedEvent + expect(instance).to.have.property('StoreLogoCreatedEvent'); + // expect(instance.StoreLogoCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property StoreLogoUpdatedEvent (base name: "StoreLogoUpdatedEvent")', function() { + // TODO: update the code to test the property StoreLogoUpdatedEvent + expect(instance).to.have.property('StoreLogoUpdatedEvent'); + // expect(instance.StoreLogoUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property StoreLogoDeletedEvent (base name: "StoreLogoDeletedEvent")', function() { + // TODO: update the code to test the property StoreLogoDeletedEvent + expect(instance).to.have.property('StoreLogoDeletedEvent'); + // expect(instance.StoreLogoDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuCreatedEvent (base name: "MenuCreatedEvent")', function() { + // TODO: update the code to test the property MenuCreatedEvent + expect(instance).to.have.property('MenuCreatedEvent'); + // expect(instance.MenuCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuUpdatedEvent (base name: "MenuUpdatedEvent")', function() { + // TODO: update the code to test the property MenuUpdatedEvent + expect(instance).to.have.property('MenuUpdatedEvent'); + // expect(instance.MenuUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuUploadedEvent (base name: "MenuUploadedEvent")', function() { + // TODO: update the code to test the property MenuUploadedEvent + expect(instance).to.have.property('MenuUploadedEvent'); + // expect(instance.MenuUploadedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSectionCreatedEvent (base name: "MenuSectionCreatedEvent")', function() { + // TODO: update the code to test the property MenuSectionCreatedEvent + expect(instance).to.have.property('MenuSectionCreatedEvent'); + // expect(instance.MenuSectionCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSectionUpdatedEvent (base name: "MenuSectionUpdatedEvent")', function() { + // TODO: update the code to test the property MenuSectionUpdatedEvent + expect(instance).to.have.property('MenuSectionUpdatedEvent'); + // expect(instance.MenuSectionUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSectionDeletedEvent (base name: "MenuSectionDeletedEvent")', function() { + // TODO: update the code to test the property MenuSectionDeletedEvent + expect(instance).to.have.property('MenuSectionDeletedEvent'); + // expect(instance.MenuSectionDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSectionItemCreatedEvent (base name: "MenuSectionItemCreatedEvent")', function() { + // TODO: update the code to test the property MenuSectionItemCreatedEvent + expect(instance).to.have.property('MenuSectionItemCreatedEvent'); + // expect(instance.MenuSectionItemCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSectionItemUpdatedEvent (base name: "MenuSectionItemUpdatedEvent")', function() { + // TODO: update the code to test the property MenuSectionItemUpdatedEvent + expect(instance).to.have.property('MenuSectionItemUpdatedEvent'); + // expect(instance.MenuSectionItemUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSectionItemDeletedEvent (base name: "MenuSectionItemDeletedEvent")', function() { + // TODO: update the code to test the property MenuSectionItemDeletedEvent + expect(instance).to.have.property('MenuSectionItemDeletedEvent'); + // expect(instance.MenuSectionItemDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSetCreatedEvent (base name: "MenuItemOptionSetCreatedEvent")', function() { + // TODO: update the code to test the property MenuItemOptionSetCreatedEvent + expect(instance).to.have.property('MenuItemOptionSetCreatedEvent'); + // expect(instance.MenuItemOptionSetCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSetUpdatedEvent (base name: "MenuItemOptionSetUpdatedEvent")', function() { + // TODO: update the code to test the property MenuItemOptionSetUpdatedEvent + expect(instance).to.have.property('MenuItemOptionSetUpdatedEvent'); + // expect(instance.MenuItemOptionSetUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSetDeletedEvent (base name: "MenuItemOptionSetDeletedEvent")', function() { + // TODO: update the code to test the property MenuItemOptionSetDeletedEvent + expect(instance).to.have.property('MenuItemOptionSetDeletedEvent'); + // expect(instance.MenuItemOptionSetDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSetItemCreatedEvent (base name: "MenuItemOptionSetItemCreatedEvent")', function() { + // TODO: update the code to test the property MenuItemOptionSetItemCreatedEvent + expect(instance).to.have.property('MenuItemOptionSetItemCreatedEvent'); + // expect(instance.MenuItemOptionSetItemCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSetItemUpdatedEvent (base name: "MenuItemOptionSetItemUpdatedEvent")', function() { + // TODO: update the code to test the property MenuItemOptionSetItemUpdatedEvent + expect(instance).to.have.property('MenuItemOptionSetItemUpdatedEvent'); + // expect(instance.MenuItemOptionSetItemUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSetItemDeletedEvent (base name: "MenuItemOptionSetItemDeletedEvent")', function() { + // TODO: update the code to test the property MenuItemOptionSetItemDeletedEvent + expect(instance).to.have.property('MenuItemOptionSetItemDeletedEvent'); + // expect(instance.MenuItemOptionSetItemDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property MenuCheckpointCreatedEvent (base name: "MenuCheckpointCreatedEvent")', function() { + // TODO: update the code to test the property MenuCheckpointCreatedEvent + expect(instance).to.have.property('MenuCheckpointCreatedEvent'); + // expect(instance.MenuCheckpointCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupCreatedEvent (base name: "StoreGroupCreatedEvent")', function() { + // TODO: update the code to test the property StoreGroupCreatedEvent + expect(instance).to.have.property('StoreGroupCreatedEvent'); + // expect(instance.StoreGroupCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupUpdatedEvent (base name: "StoreGroupUpdatedEvent")', function() { + // TODO: update the code to test the property StoreGroupUpdatedEvent + expect(instance).to.have.property('StoreGroupUpdatedEvent'); + // expect(instance.StoreGroupUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupDeletedEvent (base name: "StoreGroupDeletedEvent")', function() { + // TODO: update the code to test the property StoreGroupDeletedEvent + expect(instance).to.have.property('StoreGroupDeletedEvent'); + // expect(instance.StoreGroupDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property CustomerCreatedEvent (base name: "CustomerCreatedEvent")', function() { + // TODO: update the code to test the property CustomerCreatedEvent + expect(instance).to.have.property('CustomerCreatedEvent'); + // expect(instance.CustomerCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property CustomerUpdatedEvent (base name: "CustomerUpdatedEvent")', function() { + // TODO: update the code to test the property CustomerUpdatedEvent + expect(instance).to.have.property('CustomerUpdatedEvent'); + // expect(instance.CustomerUpdatedEvent).to.be(expectedValueLiteral); + }); + it('should have the property CustomerConsentUpdatedEvent (base name: "CustomerConsentUpdatedEvent")', function() { + // TODO: update the code to test the property CustomerConsentUpdatedEvent + expect(instance).to.have.property('CustomerConsentUpdatedEvent'); + // expect(instance.CustomerConsentUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property WebhookSubscriptionCreatedEvent (base name: "WebhookSubscriptionCreatedEvent")', function() { + // TODO: update the code to test the property WebhookSubscriptionCreatedEvent + expect(instance).to.have.property('WebhookSubscriptionCreatedEvent'); + // expect(instance.WebhookSubscriptionCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property WebhookSubscriptionUpdatedEvent (base name: "WebhookSubscriptionUpdatedEvent")', function() { + // TODO: update the code to test the property WebhookSubscriptionUpdatedEvent + expect(instance).to.have.property('WebhookSubscriptionUpdatedEvent'); + // expect(instance.WebhookSubscriptionUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property WebhookSubscriptionDeletedEvent (base name: "WebhookSubscriptionDeletedEvent")', function() { + // TODO: update the code to test the property WebhookSubscriptionDeletedEvent + expect(instance).to.have.property('WebhookSubscriptionDeletedEvent'); + // expect(instance.WebhookSubscriptionDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property PrinterTurnedOnEvent (base name: "PrinterTurnedOnEvent")', function() { + // TODO: update the code to test the property PrinterTurnedOnEvent + expect(instance).to.have.property('PrinterTurnedOnEvent'); + // expect(instance.PrinterTurnedOnEvent).to.be(expectedValueLiteral); + }); + + it('should have the property PrinterTurnedOffEvent (base name: "PrinterTurnedOffEvent")', function() { + // TODO: update the code to test the property PrinterTurnedOffEvent + expect(instance).to.have.property('PrinterTurnedOffEvent'); + // expect(instance.PrinterTurnedOffEvent).to.be(expectedValueLiteral); + }); + + it('should have the property PrinterAssignedToStoreEvent (base name: "PrinterAssignedToStoreEvent")', function() { + // TODO: update the code to test the property PrinterAssignedToStoreEvent + expect(instance).to.have.property('PrinterAssignedToStoreEvent'); + // expect(instance.PrinterAssignedToStoreEvent).to.be(expectedValueLiteral); + }); + + it('should have the property PrinterUnassignedFromStoreEvent (base name: "PrinterUnassignedFromStoreEvent")', function() { + // TODO: update the code to test the property PrinterUnassignedFromStoreEvent + expect(instance).to.have.property('PrinterUnassignedFromStoreEvent'); + // expect(instance.PrinterUnassignedFromStoreEvent).to.be(expectedValueLiteral); + }); + + it('should have the property PhoneCallStartedEvent (base name: "PhoneCallStartedEvent")', function() { + // TODO: update the code to test the property PhoneCallStartedEvent + expect(instance).to.have.property('PhoneCallStartedEvent'); + // expect(instance.PhoneCallStartedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property PhoneCallEndedEvent (base name: "PhoneCallEndedEvent")', function() { + // TODO: update the code to test the property PhoneCallEndedEvent + expect(instance).to.have.property('PhoneCallEndedEvent'); + // expect(instance.PhoneCallEndedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property LoyaltyCampaignCreatedEvent (base name: "LoyaltyCampaignCreatedEvent")', function() { + // TODO: update the code to test the property LoyaltyCampaignCreatedEvent + expect(instance).to.have.property('LoyaltyCampaignCreatedEvent'); + // expect(instance.LoyaltyCampaignCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property LoyaltyCampaignDeletedEvent (base name: "LoyaltyCampaignDeletedEvent")', function() { + // TODO: update the code to test the property LoyaltyCampaignDeletedEvent + expect(instance).to.have.property('LoyaltyCampaignDeletedEvent'); + // expect(instance.LoyaltyCampaignDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property LoyaltyCampaignUpdatedEvent (base name: "LoyaltyCampaignUpdatedEvent")', function() { + // TODO: update the code to test the property LoyaltyCampaignUpdatedEvent + expect(instance).to.have.property('LoyaltyCampaignUpdatedEvent'); + // expect(instance.LoyaltyCampaignUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property RetentionCampaignCreatedEvent (base name: "RetentionCampaignCreatedEvent")', function() { + // TODO: update the code to test the property RetentionCampaignCreatedEvent + expect(instance).to.have.property('RetentionCampaignCreatedEvent'); + // expect(instance.RetentionCampaignCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property RetentionCampaignDeletedEvent (base name: "RetentionCampaignDeletedEvent")', function() { + // TODO: update the code to test the property RetentionCampaignDeletedEvent + expect(instance).to.have.property('RetentionCampaignDeletedEvent'); + // expect(instance.RetentionCampaignDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property RetentionCampaignUpdatedEvent (base name: "RetentionCampaignUpdatedEvent")', function() { + // TODO: update the code to test the property RetentionCampaignUpdatedEvent + expect(instance).to.have.property('RetentionCampaignUpdatedEvent'); + // expect(instance.RetentionCampaignUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property SmsReceivedEvent (base name: "SmsReceivedEvent")', function() { + // TODO: update the code to test the property SmsReceivedEvent + expect(instance).to.have.property('SmsReceivedEvent'); + // expect(instance.SmsReceivedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property UserLoginEvent (base name: "UserLoginEvent")', function() { + // TODO: update the code to test the property UserLoginEvent + expect(instance).to.have.property('UserLoginEvent'); + // expect(instance.UserLoginEvent).to.be(expectedValueLiteral); + }); + + it('should have the property UserCreatedEvent (base name: "UserCreatedEvent")', function() { + // TODO: update the code to test the property UserCreatedEvent + expect(instance).to.have.property('UserCreatedEvent'); + // expect(instance.UserCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property UserUpdatedEvent (base name: "UserUpdatedEvent")', function() { + // TODO: update the code to test the property UserUpdatedEvent + expect(instance).to.have.property('UserUpdatedEvent'); + // expect(instance.UserUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property UserDeletedEvent (base name: "UserDeletedEvent")', function() { + // TODO: update the code to test the property UserDeletedEvent + expect(instance).to.have.property('UserDeletedEvent'); + // expect(instance.UserDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property UserCreatedPasswordEvent (base name: "UserCreatedPasswordEvent")', function() { + // TODO: update the code to test the property UserCreatedPasswordEvent + expect(instance).to.have.property('UserCreatedPasswordEvent'); + // expect(instance.UserCreatedPasswordEvent).to.be(expectedValueLiteral); + }); + + it('should have the property UserAnsweredSignupQuestionsEvent (base name: "UserAnsweredSignupQuestionsEvent")', function() { + // TODO: update the code to test the property UserAnsweredSignupQuestionsEvent + expect(instance).to.have.property('UserAnsweredSignupQuestionsEvent'); + // expect(instance.UserAnsweredSignupQuestionsEvent).to.be(expectedValueLiteral); + }); + + it('should have the property VoucherCreatedEvent (base name: "VoucherCreatedEvent")', function() { + // TODO: update the code to test the property VoucherCreatedEvent + expect(instance).to.have.property('VoucherCreatedEvent'); + // expect(instance.VoucherCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property VoucherUpdatedEvent (base name: "VoucherUpdatedEvent")', function() { + // TODO: update the code to test the property VoucherUpdatedEvent + expect(instance).to.have.property('VoucherUpdatedEvent'); + // expect(instance.VoucherUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property VoucherDeletedEvent (base name: "VoucherDeletedEvent")', function() { + // TODO: update the code to test the property VoucherDeletedEvent + expect(instance).to.have.property('VoucherDeletedEvent'); + // expect(instance.VoucherDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property TeammateInviteSentEvent (base name: "TeammateInviteSentEvent")', function() { + // TODO: update the code to test the property TeammateInviteSentEvent + expect(instance).to.have.property('TeammateInviteSentEvent'); + // expect(instance.TeammateInviteSentEvent).to.be(expectedValueLiteral); + }); + + it('should have the property TeammateInviteAcceptedEvent (base name: "TeammateInviteAcceptedEvent")', function() { + // TODO: update the code to test the property TeammateInviteAcceptedEvent + expect(instance).to.have.property('TeammateInviteAcceptedEvent'); + // expect(instance.TeammateInviteAcceptedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property TeammateUpdatedEvent (base name: "TeammateUpdatedEvent")', function() { + // TODO: update the code to test the property TeammateUpdatedEvent + expect(instance).to.have.property('TeammateUpdatedEvent'); + // expect(instance.TeammateUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property TeammateDeletedEvent (base name: "TeammateDeletedEvent")', function() { + // TODO: update the code to test the property TeammateDeletedEvent + expect(instance).to.have.property('TeammateDeletedEvent'); + // expect(instance.TeammateDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property BankAccountCreatedEvent (base name: "BankAccountCreatedEvent")', function() { + // TODO: update the code to test the property BankAccountCreatedEvent + expect(instance).to.have.property('BankAccountCreatedEvent'); + // expect(instance.BankAccountCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property BankAccountUpdatedEvent (base name: "BankAccountUpdatedEvent")', function() { + // TODO: update the code to test the property BankAccountUpdatedEvent + expect(instance).to.have.property('BankAccountUpdatedEvent'); + // expect(instance.BankAccountUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property BankAccountDeletedEvent (base name: "BankAccountDeletedEvent")', function() { + // TODO: update the code to test the property BankAccountDeletedEvent + expect(instance).to.have.property('BankAccountDeletedEvent'); + // expect(instance.BankAccountDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property HydraAssignedEvent (base name: "HydraAssignedEvent")', function() { + // TODO: update the code to test the property HydraAssignedEvent + expect(instance).to.have.property('HydraAssignedEvent'); + // expect(instance.HydraAssignedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property HydraRequestResetEvent (base name: "HydraRequestResetEvent")', function() { + // TODO: update the code to test the property HydraRequestResetEvent + expect(instance).to.have.property('HydraRequestResetEvent'); + // expect(instance.HydraRequestResetEvent).to.be(expectedValueLiteral); + }); + + it('should have the property HydraStoreAssignedEvent (base name: "HydraStoreAssignedEvent")', function() { + // TODO: update the code to test the property HydraStoreAssignedEvent + expect(instance).to.have.property('HydraStoreAssignedEvent'); + // expect(instance.HydraStoreAssignedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property HydraStoreUnassignedEvent (base name: "HydraStoreUnassignedEvent")', function() { + // TODO: update the code to test the property HydraStoreUnassignedEvent + expect(instance).to.have.property('HydraStoreUnassignedEvent'); + // expect(instance.HydraStoreUnassignedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property HydraSettingChangedEvent (base name: "HydraSettingChangedEvent")', function() { + // TODO: update the code to test the property HydraSettingChangedEvent + expect(instance).to.have.property('HydraSettingChangedEvent'); + // expect(instance.HydraSettingChangedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property HydraUnAssignedEvent (base name: "HydraUnAssignedEvent")', function() { + // TODO: update the code to test the property HydraUnAssignedEvent + expect(instance).to.have.property('HydraUnAssignedEvent'); + // expect(instance.HydraUnAssignedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property HydraConnectionStatusChangedEvent (base name: "HydraConnectionStatusChangedEvent")', function() { + // TODO: update the code to test the property HydraConnectionStatusChangedEvent + expect(instance).to.have.property('HydraConnectionStatusChangedEvent'); + // expect(instance.HydraConnectionStatusChangedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property KioskBluetoothPairingModeEvent (base name: "KioskBluetoothPairingModeEvent")', function() { + // TODO: update the code to test the property KioskBluetoothPairingModeEvent + expect(instance).to.have.property('KioskBluetoothPairingModeEvent'); + // expect(instance.KioskBluetoothPairingModeEvent).to.be(expectedValueLiteral); + }); + + it('should have the property KioskBluetoothUnpairingModeEvent (base name: "KioskBluetoothUnpairingModeEvent")', function() { + // TODO: update the code to test the property KioskBluetoothUnpairingModeEvent + expect(instance).to.have.property('KioskBluetoothUnpairingModeEvent'); + // expect(instance.KioskBluetoothUnpairingModeEvent).to.be(expectedValueLiteral); + }); + + it('should have the property KioskBluetoothTerminalUpdatedEvent (base name: "KioskBluetoothTerminalUpdatedEvent")', function() { + // TODO: update the code to test the property KioskBluetoothTerminalUpdatedEvent + expect(instance).to.have.property('KioskBluetoothTerminalUpdatedEvent'); + // expect(instance.KioskBluetoothTerminalUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property KioskBluetoothTerminalInitiateUpdateCheckEvent (base name: "KioskBluetoothTerminalInitiateUpdateCheckEvent")', function() { + // TODO: update the code to test the property KioskBluetoothTerminalInitiateUpdateCheckEvent + expect(instance).to.have.property('KioskBluetoothTerminalInitiateUpdateCheckEvent'); + // expect(instance.KioskBluetoothTerminalInitiateUpdateCheckEvent).to.be(expectedValueLiteral); + }); + + it('should have the property KioskBluetoothInstallUpdateInitiateEvent (base name: "KioskBluetoothInstallUpdateInitiateEvent")', function() { + // TODO: update the code to test the property KioskBluetoothInstallUpdateInitiateEvent + expect(instance).to.have.property('KioskBluetoothInstallUpdateInitiateEvent'); + // expect(instance.KioskBluetoothInstallUpdateInitiateEvent).to.be(expectedValueLiteral); + }); + + it('should have the property PushNotificationScheduledEvent (base name: "PushNotificationScheduledEvent")', function() { + // TODO: update the code to test the property PushNotificationScheduledEvent + expect(instance).to.have.property('PushNotificationScheduledEvent'); + // expect(instance.PushNotificationScheduledEvent).to.be(expectedValueLiteral); + }); + + it('should have the property PushNotificationSentEvent (base name: "PushNotificationSentEvent")', function() { + // TODO: update the code to test the property PushNotificationSentEvent + expect(instance).to.have.property('PushNotificationSentEvent'); + // expect(instance.PushNotificationSentEvent).to.be(expectedValueLiteral); + }); + + it('should have the property PushNotificationDeletedEvent (base name: "PushNotificationDeletedEvent")', function() { + // TODO: update the code to test the property PushNotificationDeletedEvent + expect(instance).to.have.property('PushNotificationDeletedEvent'); + // expect(instance.PushNotificationDeletedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property DnsVerifiedEvent (base name: "DnsVerifiedEvent")', function() { + // TODO: update the code to test the property DnsVerifiedEvent + expect(instance).to.have.property('DnsVerifiedEvent'); + // expect(instance.DnsVerifiedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property CertificateCreatedEvent (base name: "CertificateCreatedEvent")', function() { + // TODO: update the code to test the property CertificateCreatedEvent + expect(instance).to.have.property('CertificateCreatedEvent'); + // expect(instance.CertificateCreatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property CertificateRenewedEvent (base name: "CertificateRenewedEvent")', function() { + // TODO: update the code to test the property CertificateRenewedEvent + expect(instance).to.have.property('CertificateRenewedEvent'); + // expect(instance.CertificateRenewedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property WebsiteVanityUrlUpdatedEvent (base name: "WebsiteVanityUrlUpdatedEvent")', function() { + // TODO: update the code to test the property WebsiteVanityUrlUpdatedEvent + expect(instance).to.have.property('WebsiteVanityUrlUpdatedEvent'); + // expect(instance.WebsiteVanityUrlUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property WebsiteUpdatedEvent (base name: "WebsiteUpdatedEvent")', function() { + // TODO: update the code to test the property WebsiteUpdatedEvent + expect(instance).to.have.property('WebsiteUpdatedEvent'); + // expect(instance.WebsiteUpdatedEvent).to.be(expectedValueLiteral); + }); + + it('should have the property OrderCapacityUpdatedEvent (base name: "OrderCapacityUpdatedEvent")', function() { + // TODO: update the code to test the property OrderCapacityUpdatedEvent + expect(instance).to.have.property('OrderCapacityUpdatedEvent'); + // expect(instance.OrderCapacityUpdatedEvent).to.be(expectedValueLiteral); + }); + + }); }); })); diff --git a/test/model/FeeSummary.spec.js b/test/model/FeeSummary.spec.js index 48dfe33c..6510c2fe 100644 --- a/test/model/FeeSummary.spec.js +++ b/test/model/FeeSummary.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,51 +29,36 @@ 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]; - } + describe('(package)', function() { + describe('FeeSummary', function() { + beforeEach(function() { + instance = new Flipdish.FeeSummary(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of FeeSummary', function() { + // TODO: update the code to test FeeSummary + expect(instance).to.be.a(Flipdish.FeeSummary); + }); - 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() { + // TODO: update the code to test the property FeeAmount + expect(instance).to.have.property('FeeAmount'); + // expect(instance.FeeAmount).to.be(expectedValueLiteral); + }); - it('should have the property feeAmount (base name: "FeeAmount")', function() { - // uncomment below and update the code to test the property feeAmount - //var instane = new Flipdish.FeeSummary(); - //expect(instance).to.be(); - }); + it('should have the property PercentageRate (base name: "PercentageRate")', function() { + // TODO: update the code to test the property PercentageRate + expect(instance).to.have.property('PercentageRate'); + // expect(instance.PercentageRate).to.be(expectedValueLiteral); + }); - it('should have the property percentageRate (base name: "PercentageRate")', function() { - // uncomment below and update the code to test the property percentageRate - //var instane = new Flipdish.FeeSummary(); - //expect(instance).to.be(); - }); + it('should have the property PerTransactionFee (base name: "PerTransactionFee")', function() { + // TODO: update the code to test the property PerTransactionFee + expect(instance).to.have.property('PerTransactionFee'); + // expect(instance.PerTransactionFee).to.be(expectedValueLiteral); + }); - it('should have the property perTransactionFee (base name: "PerTransactionFee")', function() { - // uncomment below and update the code to test the property perTransactionFee - //var instane = new Flipdish.FeeSummary(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/FlipdishEventBase.spec.js b/test/model/FlipdishEventBase.spec.js new file mode 100644 index 00000000..38bf04dd --- /dev/null +++ b/test/model/FlipdishEventBase.spec.js @@ -0,0 +1,76 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('FlipdishEventBase', function() { + beforeEach(function() { + instance = new Flipdish.FlipdishEventBase(); + }); + + it('should create an instance of FlipdishEventBase', function() { + // TODO: update the code to test FlipdishEventBase + expect(instance).to.be.a(Flipdish.FlipdishEventBase); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/FlipdishFeesDetails.spec.js b/test/model/FlipdishFeesDetails.spec.js new file mode 100644 index 00000000..ff197cb0 --- /dev/null +++ b/test/model/FlipdishFeesDetails.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('FlipdishFeesDetails', function() { + beforeEach(function() { + instance = new Flipdish.FlipdishFeesDetails(); + }); + + it('should create an instance of FlipdishFeesDetails', function() { + // TODO: update the code to test FlipdishFeesDetails + expect(instance).to.be.a(Flipdish.FlipdishFeesDetails); + }); + + it('should have the property OnlineSalesFees (base name: "OnlineSalesFees")', function() { + // TODO: update the code to test the property OnlineSalesFees + expect(instance).to.have.property('OnlineSalesFees'); + // expect(instance.OnlineSalesFees).to.be(expectedValueLiteral); + }); + + it('should have the property CashSalesFees (base name: "CashSalesFees")', function() { + // TODO: update the code to test the property CashSalesFees + expect(instance).to.have.property('CashSalesFees'); + // expect(instance.CashSalesFees).to.be(expectedValueLiteral); + }); + + it('should have the property TotalSalesFees (base name: "TotalSalesFees")', function() { + // TODO: update the code to test the property TotalSalesFees + expect(instance).to.have.property('TotalSalesFees'); + // expect(instance.TotalSalesFees).to.be(expectedValueLiteral); + }); + + it('should have the property OnlineSalesRefundedFees (base name: "OnlineSalesRefundedFees")', function() { + // TODO: update the code to test the property OnlineSalesRefundedFees + expect(instance).to.have.property('OnlineSalesRefundedFees'); + // expect(instance.OnlineSalesRefundedFees).to.be(expectedValueLiteral); + }); + + it('should have the property CashSalesRefundedFees (base name: "CashSalesRefundedFees")', function() { + // TODO: update the code to test the property CashSalesRefundedFees + expect(instance).to.have.property('CashSalesRefundedFees'); + // expect(instance.CashSalesRefundedFees).to.be(expectedValueLiteral); + }); + + it('should have the property SalesFeesVat (base name: "SalesFeesVat")', function() { + // TODO: update the code to test the property SalesFeesVat + expect(instance).to.have.property('SalesFeesVat'); + // expect(instance.SalesFeesVat).to.be(expectedValueLiteral); + }); + + it('should have the property TotalFees (base name: "TotalFees")', function() { + // TODO: update the code to test the property TotalFees + expect(instance).to.have.property('TotalFees'); + // expect(instance.TotalFees).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/GroupedCoordinates.spec.js b/test/model/GroupedCoordinates.spec.js new file mode 100644 index 00000000..eb64ba8a --- /dev/null +++ b/test/model/GroupedCoordinates.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('GroupedCoordinates', function() { + beforeEach(function() { + instance = new Flipdish.GroupedCoordinates(); + }); + + it('should create an instance of GroupedCoordinates', function() { + // TODO: update the code to test GroupedCoordinates + expect(instance).to.be.a(Flipdish.GroupedCoordinates); + }); + + it('should have the property Latitude (base name: "Latitude")', function() { + // TODO: update the code to test the property Latitude + expect(instance).to.have.property('Latitude'); + // expect(instance.Latitude).to.be(expectedValueLiteral); + }); + + it('should have the property Longitude (base name: "Longitude")', function() { + // TODO: update the code to test the property Longitude + expect(instance).to.have.property('Longitude'); + // expect(instance.Longitude).to.be(expectedValueLiteral); + }); + + it('should have the property Count (base name: "Count")', function() { + // TODO: update the code to test the property Count + expect(instance).to.have.property('Count'); + // expect(instance.Count).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/HomeAction.spec.js b/test/model/HomeAction.spec.js new file mode 100644 index 00000000..64064b6b --- /dev/null +++ b/test/model/HomeAction.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('HomeAction', function() { + beforeEach(function() { + instance = new Flipdish.HomeAction(); + }); + + it('should create an instance of HomeAction', function() { + // TODO: update the code to test HomeAction + expect(instance).to.be.a(Flipdish.HomeAction); + }); + + it('should have the property HomeActionId (base name: "HomeActionId")', function() { + // TODO: update the code to test the property HomeActionId + expect(instance).to.have.property('HomeActionId'); + // expect(instance.HomeActionId).to.be(expectedValueLiteral); + }); + + it('should have the property HomeActionType (base name: "HomeActionType")', function() { + // TODO: update the code to test the property HomeActionType + expect(instance).to.have.property('HomeActionType'); + // expect(instance.HomeActionType).to.be(expectedValueLiteral); + }); + + it('should have the property Order (base name: "Order")', function() { + // TODO: update the code to test the property Order + expect(instance).to.have.property('Order'); + // expect(instance.Order).to.be(expectedValueLiteral); + }); + + it('should have the property TitleKey (base name: "TitleKey")', function() { + // TODO: update the code to test the property TitleKey + expect(instance).to.have.property('TitleKey'); + // expect(instance.TitleKey).to.be(expectedValueLiteral); + }); + + it('should have the property ActionKey (base name: "ActionKey")', function() { + // TODO: update the code to test the property ActionKey + expect(instance).to.have.property('ActionKey'); + // expect(instance.ActionKey).to.be(expectedValueLiteral); + }); + + it('should have the property DescriptionKey (base name: "DescriptionKey")', function() { + // TODO: update the code to test the property DescriptionKey + expect(instance).to.have.property('DescriptionKey'); + // expect(instance.DescriptionKey).to.be(expectedValueLiteral); + }); + + it('should have the property Action (base name: "Action")', function() { + // TODO: update the code to test the property Action + expect(instance).to.have.property('Action'); + // expect(instance.Action).to.be(expectedValueLiteral); + }); + + it('should have the property Dismissible (base name: "Dismissible")', function() { + // TODO: update the code to test the property Dismissible + expect(instance).to.have.property('Dismissible'); + // expect(instance.Dismissible).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/HomeStatistics.spec.js b/test/model/HomeStatistics.spec.js new file mode 100644 index 00000000..3e8f23d3 --- /dev/null +++ b/test/model/HomeStatistics.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('HomeStatistics', function() { + beforeEach(function() { + instance = new Flipdish.HomeStatistics(); + }); + + it('should create an instance of HomeStatistics', function() { + // TODO: update the code to test HomeStatistics + expect(instance).to.be.a(Flipdish.HomeStatistics); + }); + + it('should have the property TotalMoneySaved (base name: "TotalMoneySaved")', function() { + // TODO: update the code to test the property TotalMoneySaved + expect(instance).to.have.property('TotalMoneySaved'); + // expect(instance.TotalMoneySaved).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/HttpRequestAndResponseLog.spec.js b/test/model/HttpRequestAndResponseLog.spec.js index 416cbcd0..1eb277cf 100644 --- a/test/model/HttpRequestAndResponseLog.spec.js +++ b/test/model/HttpRequestAndResponseLog.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,117 +29,108 @@ var instance; - beforeEach(function() { - instance = new Flipdish.HttpRequestAndResponseLog(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('HttpRequestAndResponseLog', function() { - it('should create an instance of HttpRequestAndResponseLog', function() { - // uncomment below and update the code to test HttpRequestAndResponseLog - //var instane = new Flipdish.HttpRequestAndResponseLog(); - //expect(instance).to.be.a(Flipdish.HttpRequestAndResponseLog); - }); - - it('should have the property verb (base name: "Verb")', function() { - // uncomment below and update the code to test the property verb - //var instane = new Flipdish.HttpRequestAndResponseLog(); - //expect(instance).to.be(); - }); - - it('should have the property requestUri (base name: "RequestUri")', function() { - // uncomment below and update the code to test the property requestUri - //var instane = new Flipdish.HttpRequestAndResponseLog(); - //expect(instance).to.be(); - }); - - it('should have the property statusCode (base name: "StatusCode")', function() { - // uncomment below and update the code to test the property statusCode - //var instane = new Flipdish.HttpRequestAndResponseLog(); - //expect(instance).to.be(); - }); - - it('should have the property reasonPhrase (base name: "ReasonPhrase")', function() { - // uncomment below and update the code to test the property reasonPhrase - //var instane = new Flipdish.HttpRequestAndResponseLog(); - //expect(instance).to.be(); - }); - - it('should have the property callDurationInMilliseconds (base name: "CallDurationInMilliseconds")', function() { - // uncomment below and update the code to test the property callDurationInMilliseconds - //var instane = new Flipdish.HttpRequestAndResponseLog(); - //expect(instance).to.be(); - }); + describe('(package)', function() { + describe('HttpRequestAndResponseLog', function() { + beforeEach(function() { + instance = new Flipdish.HttpRequestAndResponseLog(); + }); + + it('should create an instance of HttpRequestAndResponseLog', function() { + // TODO: update the code to test HttpRequestAndResponseLog + expect(instance).to.be.a(Flipdish.HttpRequestAndResponseLog); + }); + + it('should have the property Guid (base name: "Guid")', function() { + // TODO: update the code to test the property Guid + expect(instance).to.have.property('Guid'); + // expect(instance.Guid).to.be(expectedValueLiteral); + }); + + it('should have the property Verb (base name: "Verb")', function() { + // TODO: update the code to test the property Verb + expect(instance).to.have.property('Verb'); + // expect(instance.Verb).to.be(expectedValueLiteral); + }); + + it('should have the property RequestUri (base name: "RequestUri")', function() { + // TODO: update the code to test the property RequestUri + expect(instance).to.have.property('RequestUri'); + // expect(instance.RequestUri).to.be(expectedValueLiteral); + }); + + it('should have the property StatusCode (base name: "StatusCode")', function() { + // TODO: update the code to test the property StatusCode + expect(instance).to.have.property('StatusCode'); + // expect(instance.StatusCode).to.be(expectedValueLiteral); + }); + + it('should have the property ReasonPhrase (base name: "ReasonPhrase")', function() { + // TODO: update the code to test the property ReasonPhrase + expect(instance).to.have.property('ReasonPhrase'); + // expect(instance.ReasonPhrase).to.be(expectedValueLiteral); + }); + + it('should have the property CallDurationInMilliseconds (base name: "CallDurationInMilliseconds")', function() { + // TODO: update the code to test the property CallDurationInMilliseconds + expect(instance).to.have.property('CallDurationInMilliseconds'); + // expect(instance.CallDurationInMilliseconds).to.be(expectedValueLiteral); + }); + + it('should have the property UserId (base name: "UserId")', function() { + // TODO: update the code to test the property UserId + expect(instance).to.have.property('UserId'); + // expect(instance.UserId).to.be(expectedValueLiteral); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // TODO: update the code to test the property IpAddress + expect(instance).to.have.property('IpAddress'); + // expect(instance.IpAddress).to.be(expectedValueLiteral); + }); + + it('should have the property CreatedDateTime (base name: "CreatedDateTime")', function() { + // TODO: update the code to test the property CreatedDateTime + expect(instance).to.have.property('CreatedDateTime'); + // expect(instance.CreatedDateTime).to.be(expectedValueLiteral); + }); + + it('should have the property RequestHeaders (base name: "RequestHeaders")', function() { + // TODO: update the code to test the property RequestHeaders + expect(instance).to.have.property('RequestHeaders'); + // expect(instance.RequestHeaders).to.be(expectedValueLiteral); + }); + + it('should have the property RequestBody (base name: "RequestBody")', function() { + // TODO: update the code to test the property RequestBody + expect(instance).to.have.property('RequestBody'); + // expect(instance.RequestBody).to.be(expectedValueLiteral); + }); + + it('should have the property RequestLength (base name: "RequestLength")', function() { + // TODO: update the code to test the property RequestLength + expect(instance).to.have.property('RequestLength'); + // expect(instance.RequestLength).to.be(expectedValueLiteral); + }); + + it('should have the property ResponseHeaders (base name: "ResponseHeaders")', function() { + // TODO: update the code to test the property ResponseHeaders + expect(instance).to.have.property('ResponseHeaders'); + // expect(instance.ResponseHeaders).to.be(expectedValueLiteral); + }); + + it('should have the property ResponseBody (base name: "ResponseBody")', function() { + // TODO: update the code to test the property ResponseBody + expect(instance).to.have.property('ResponseBody'); + // expect(instance.ResponseBody).to.be(expectedValueLiteral); + }); + + it('should have the property ResponseLength (base name: "ResponseLength")', function() { + // TODO: update the code to test the property ResponseLength + expect(instance).to.have.property('ResponseLength'); + // expect(instance.ResponseLength).to.be(expectedValueLiteral); + }); - it('should have the property userId (base name: "UserId")', function() { - // uncomment below and update the code to test the property userId - //var instane = new Flipdish.HttpRequestAndResponseLog(); - //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 instane = new Flipdish.HttpRequestAndResponseLog(); - //expect(instance).to.be(); - }); - - it('should have the property createdDateTime (base name: "CreatedDateTime")', function() { - // uncomment below and update the code to test the property createdDateTime - //var instane = new Flipdish.HttpRequestAndResponseLog(); - //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 instane = new Flipdish.HttpRequestAndResponseLog(); - //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 instane = new Flipdish.HttpRequestAndResponseLog(); - //expect(instance).to.be(); - }); - - it('should have the property requestLength (base name: "RequestLength")', function() { - // uncomment below and update the code to test the property requestLength - //var instane = new Flipdish.HttpRequestAndResponseLog(); - //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 instane = new Flipdish.HttpRequestAndResponseLog(); - //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 instane = new Flipdish.HttpRequestAndResponseLog(); - //expect(instance).to.be(); - }); - - it('should have the property responseLength (base name: "ResponseLength")', function() { - // uncomment below and update the code to test the property responseLength - //var instane = new Flipdish.HttpRequestAndResponseLog(); - //expect(instance).to.be(); - }); - }); })); diff --git a/test/model/HydraAssignedEvent.spec.js b/test/model/HydraAssignedEvent.spec.js new file mode 100644 index 00000000..37068ba2 --- /dev/null +++ b/test/model/HydraAssignedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('HydraAssignedEvent', function() { + beforeEach(function() { + instance = new Flipdish.HydraAssignedEvent(); + }); + + it('should create an instance of HydraAssignedEvent', function() { + // TODO: update the code to test HydraAssignedEvent + expect(instance).to.be.a(Flipdish.HydraAssignedEvent); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property HydraStatus (base name: "HydraStatus")', function() { + // TODO: update the code to test the property HydraStatus + expect(instance).to.have.property('HydraStatus'); + // expect(instance.HydraStatus).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/HydraConfig.spec.js b/test/model/HydraConfig.spec.js new file mode 100644 index 00000000..a7149ca9 --- /dev/null +++ b/test/model/HydraConfig.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('HydraConfig', function() { + beforeEach(function() { + instance = new Flipdish.HydraConfig(); + }); + + it('should create an instance of HydraConfig', function() { + // TODO: update the code to test HydraConfig + expect(instance).to.be.a(Flipdish.HydraConfig); + }); + + it('should have the property MinimumVersion (base name: "MinimumVersion")', function() { + // TODO: update the code to test the property MinimumVersion + expect(instance).to.have.property('MinimumVersion'); + // expect(instance.MinimumVersion).to.be(expectedValueLiteral); + }); + + it('should have the property PaymentOptions (base name: "PaymentOptions")', function() { + // TODO: update the code to test the property PaymentOptions + expect(instance).to.have.property('PaymentOptions'); + // expect(instance.PaymentOptions).to.be(expectedValueLiteral); + }); + + it('should have the property DeviceSettings (base name: "DeviceSettings")', function() { + // TODO: update the code to test the property DeviceSettings + expect(instance).to.have.property('DeviceSettings'); + // expect(instance.DeviceSettings).to.be(expectedValueLiteral); + }); + + it('should have the property Version (base name: "Version")', function() { + // TODO: update the code to test the property Version + expect(instance).to.have.property('Version'); + // expect(instance.Version).to.be(expectedValueLiteral); + }); + + it('should have the property BuildNumber (base name: "BuildNumber")', function() { + // TODO: update the code to test the property BuildNumber + expect(instance).to.have.property('BuildNumber'); + // expect(instance.BuildNumber).to.be(expectedValueLiteral); + }); + + it('should have the property GitSha (base name: "GitSha")', function() { + // TODO: update the code to test the property GitSha + expect(instance).to.have.property('GitSha'); + // expect(instance.GitSha).to.be(expectedValueLiteral); + }); + + it('should have the property GitBranch (base name: "GitBranch")', function() { + // TODO: update the code to test the property GitBranch + expect(instance).to.have.property('GitBranch'); + // expect(instance.GitBranch).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/HydraConnectionStatusChangedEvent.spec.js b/test/model/HydraConnectionStatusChangedEvent.spec.js new file mode 100644 index 00000000..45634a58 --- /dev/null +++ b/test/model/HydraConnectionStatusChangedEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('HydraConnectionStatusChangedEvent', function() { + beforeEach(function() { + instance = new Flipdish.HydraConnectionStatusChangedEvent(); + }); + + it('should create an instance of HydraConnectionStatusChangedEvent', function() { + // TODO: update the code to test HydraConnectionStatusChangedEvent + expect(instance).to.be.a(Flipdish.HydraConnectionStatusChangedEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // TODO: update the code to test the property DeviceId + expect(instance).to.have.property('DeviceId'); + // expect(instance.DeviceId).to.be(expectedValueLiteral); + }); + + it('should have the property HydraDeviceStatus (base name: "HydraDeviceStatus")', function() { + // TODO: update the code to test the property HydraDeviceStatus + expect(instance).to.have.property('HydraDeviceStatus'); + // expect(instance.HydraDeviceStatus).to.be(expectedValueLiteral); + }); + + it('should have the property PollTime (base name: "PollTime")', function() { + // TODO: update the code to test the property PollTime + expect(instance).to.have.property('PollTime'); + // expect(instance.PollTime).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/HydraDeviceDetails.spec.js b/test/model/HydraDeviceDetails.spec.js new file mode 100644 index 00000000..ec78e297 --- /dev/null +++ b/test/model/HydraDeviceDetails.spec.js @@ -0,0 +1,112 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('HydraDeviceDetails', function() { + beforeEach(function() { + instance = new Flipdish.HydraDeviceDetails(); + }); + + it('should create an instance of HydraDeviceDetails', function() { + // TODO: update the code to test HydraDeviceDetails + expect(instance).to.be.a(Flipdish.HydraDeviceDetails); + }); + + it('should have the property HydraConfigId (base name: "HydraConfigId")', function() { + // TODO: update the code to test the property HydraConfigId + expect(instance).to.have.property('HydraConfigId'); + // expect(instance.HydraConfigId).to.be(expectedValueLiteral); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // TODO: update the code to test the property DeviceId + expect(instance).to.have.property('DeviceId'); + // expect(instance.DeviceId).to.be(expectedValueLiteral); + }); + + it('should have the property DeviceType (base name: "DeviceType")', function() { + // TODO: update the code to test the property DeviceType + expect(instance).to.have.property('DeviceType'); + // expect(instance.DeviceType).to.be(expectedValueLiteral); + }); + + it('should have the property Status (base name: "Status")', function() { + // TODO: update the code to test the property Status + expect(instance).to.have.property('Status'); + // expect(instance.Status).to.be(expectedValueLiteral); + }); + + it('should have the property DeviceName (base name: "DeviceName")', function() { + // TODO: update the code to test the property DeviceName + expect(instance).to.have.property('DeviceName'); + // expect(instance.DeviceName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // TODO: update the code to test the property StoreNames + expect(instance).to.have.property('StoreNames'); + // expect(instance.StoreNames).to.be(expectedValueLiteral); + }); + + it('should have the property LastPollUtc (base name: "LastPollUtc")', function() { + // TODO: update the code to test the property LastPollUtc + expect(instance).to.have.property('LastPollUtc'); + // expect(instance.LastPollUtc).to.be(expectedValueLiteral); + }); + + it('should have the property Version (base name: "Version")', function() { + // TODO: update the code to test the property Version + expect(instance).to.have.property('Version'); + // expect(instance.Version).to.be(expectedValueLiteral); + }); + + it('should have the property BuildNumber (base name: "BuildNumber")', function() { + // TODO: update the code to test the property BuildNumber + expect(instance).to.have.property('BuildNumber'); + // expect(instance.BuildNumber).to.be(expectedValueLiteral); + }); + + it('should have the property GitSha (base name: "GitSha")', function() { + // TODO: update the code to test the property GitSha + expect(instance).to.have.property('GitSha'); + // expect(instance.GitSha).to.be(expectedValueLiteral); + }); + + it('should have the property GitBranch (base name: "GitBranch")', function() { + // TODO: update the code to test the property GitBranch + expect(instance).to.have.property('GitBranch'); + // expect(instance.GitBranch).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/HydraRegistrationRequest.spec.js b/test/model/HydraRegistrationRequest.spec.js new file mode 100644 index 00000000..80bec00d --- /dev/null +++ b/test/model/HydraRegistrationRequest.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('HydraRegistrationRequest', function() { + beforeEach(function() { + instance = new Flipdish.HydraRegistrationRequest(); + }); + + it('should create an instance of HydraRegistrationRequest', function() { + // TODO: update the code to test HydraRegistrationRequest + expect(instance).to.be.a(Flipdish.HydraRegistrationRequest); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + it('should have the property DeviceName (base name: "DeviceName")', function() { + // TODO: update the code to test the property DeviceName + expect(instance).to.have.property('DeviceName'); + // expect(instance.DeviceName).to.be(expectedValueLiteral); + }); + + it('should have the property PinCode (base name: "PinCode")', function() { + // TODO: update the code to test the property PinCode + expect(instance).to.have.property('PinCode'); + // expect(instance.PinCode).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/HydraRequestResetEvent.spec.js b/test/model/HydraRequestResetEvent.spec.js new file mode 100644 index 00000000..ec4353a7 --- /dev/null +++ b/test/model/HydraRequestResetEvent.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('HydraRequestResetEvent', function() { + beforeEach(function() { + instance = new Flipdish.HydraRequestResetEvent(); + }); + + it('should create an instance of HydraRequestResetEvent', function() { + // TODO: update the code to test HydraRequestResetEvent + expect(instance).to.be.a(Flipdish.HydraRequestResetEvent); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/HydraSettingChangedEvent.spec.js b/test/model/HydraSettingChangedEvent.spec.js new file mode 100644 index 00000000..7b6678b0 --- /dev/null +++ b/test/model/HydraSettingChangedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('HydraSettingChangedEvent', function() { + beforeEach(function() { + instance = new Flipdish.HydraSettingChangedEvent(); + }); + + it('should create an instance of HydraSettingChangedEvent', function() { + // TODO: update the code to test HydraSettingChangedEvent + expect(instance).to.be.a(Flipdish.HydraSettingChangedEvent); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property HydraConfig (base name: "HydraConfig")', function() { + // TODO: update the code to test the property HydraConfig + expect(instance).to.have.property('HydraConfig'); + // expect(instance.HydraConfig).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/HydraStatus.spec.js b/test/model/HydraStatus.spec.js new file mode 100644 index 00000000..ef7b9561 --- /dev/null +++ b/test/model/HydraStatus.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('HydraStatus', function() { + beforeEach(function() { + instance = new Flipdish.HydraStatus(); + }); + + it('should create an instance of HydraStatus', function() { + // TODO: update the code to test HydraStatus + expect(instance).to.be.a(Flipdish.HydraStatus); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + it('should have the property IsRegistered (base name: "IsRegistered")', function() { + // TODO: update the code to test the property IsRegistered + expect(instance).to.have.property('IsRegistered'); + // expect(instance.IsRegistered).to.be(expectedValueLiteral); + }); + + it('should have the property PinCode (base name: "PinCode")', function() { + // TODO: update the code to test the property PinCode + expect(instance).to.have.property('PinCode'); + // expect(instance.PinCode).to.be(expectedValueLiteral); + }); + + it('should have the property Images (base name: "Images")', function() { + // TODO: update the code to test the property Images + expect(instance).to.have.property('Images'); + // expect(instance.Images).to.be(expectedValueLiteral); + }); + + it('should have the property UserType (base name: "UserType")', function() { + // TODO: update the code to test the property UserType + expect(instance).to.have.property('UserType'); + // expect(instance.UserType).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/HydraStoreAssignedEvent.spec.js b/test/model/HydraStoreAssignedEvent.spec.js new file mode 100644 index 00000000..31c7b8ab --- /dev/null +++ b/test/model/HydraStoreAssignedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('HydraStoreAssignedEvent', function() { + beforeEach(function() { + instance = new Flipdish.HydraStoreAssignedEvent(); + }); + + it('should create an instance of HydraStoreAssignedEvent', function() { + // TODO: update the code to test HydraStoreAssignedEvent + expect(instance).to.be.a(Flipdish.HydraStoreAssignedEvent); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/HydraStoreData.spec.js b/test/model/HydraStoreData.spec.js new file mode 100644 index 00000000..e5a83481 --- /dev/null +++ b/test/model/HydraStoreData.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('HydraStoreData', function() { + beforeEach(function() { + instance = new Flipdish.HydraStoreData(); + }); + + it('should create an instance of HydraStoreData', function() { + // TODO: update the code to test HydraStoreData + expect(instance).to.be.a(Flipdish.HydraStoreData); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // TODO: update the code to test the property StoreName + expect(instance).to.have.property('StoreName'); + // expect(instance.StoreName).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/HydraStoreUnassignedEvent.spec.js b/test/model/HydraStoreUnassignedEvent.spec.js new file mode 100644 index 00000000..211fd717 --- /dev/null +++ b/test/model/HydraStoreUnassignedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('HydraStoreUnassignedEvent', function() { + beforeEach(function() { + instance = new Flipdish.HydraStoreUnassignedEvent(); + }); + + it('should create an instance of HydraStoreUnassignedEvent', function() { + // TODO: update the code to test HydraStoreUnassignedEvent + expect(instance).to.be.a(Flipdish.HydraStoreUnassignedEvent); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/HydraUnAssignedEvent.spec.js b/test/model/HydraUnAssignedEvent.spec.js new file mode 100644 index 00000000..57d1f543 --- /dev/null +++ b/test/model/HydraUnAssignedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('HydraUnAssignedEvent', function() { + beforeEach(function() { + instance = new Flipdish.HydraUnAssignedEvent(); + }); + + it('should create an instance of HydraUnAssignedEvent', function() { + // TODO: update the code to test HydraUnAssignedEvent + expect(instance).to.be.a(Flipdish.HydraUnAssignedEvent); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property HydraStatus (base name: "HydraStatus")', function() { + // TODO: update the code to test the property HydraStatus + expect(instance).to.have.property('HydraStatus'); + // expect(instance.HydraStatus).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/IndexPage.spec.js b/test/model/IndexPage.spec.js new file mode 100644 index 00000000..d9e0b497 --- /dev/null +++ b/test/model/IndexPage.spec.js @@ -0,0 +1,142 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('IndexPage', function() { + beforeEach(function() { + instance = new Flipdish.IndexPage(); + }); + + it('should create an instance of IndexPage', function() { + // TODO: update the code to test IndexPage + expect(instance).to.be.a(Flipdish.IndexPage); + }); + + it('should have the property Testimonials (base name: "Testimonials")', function() { + // TODO: update the code to test the property Testimonials + expect(instance).to.have.property('Testimonials'); + // expect(instance.Testimonials).to.be(expectedValueLiteral); + }); + + it('should have the property Images (base name: "Images")', function() { + // TODO: update the code to test the property Images + expect(instance).to.have.property('Images'); + // expect(instance.Images).to.be(expectedValueLiteral); + }); + + it('should have the property AboutSectionEnabled (base name: "AboutSectionEnabled")', function() { + // TODO: update the code to test the property AboutSectionEnabled + expect(instance).to.have.property('AboutSectionEnabled'); + // expect(instance.AboutSectionEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property AboutSectionTitle (base name: "AboutSectionTitle")', function() { + // TODO: update the code to test the property AboutSectionTitle + expect(instance).to.have.property('AboutSectionTitle'); + // expect(instance.AboutSectionTitle).to.be(expectedValueLiteral); + }); + + it('should have the property AboutSectionSubtitle (base name: "AboutSectionSubtitle")', function() { + // TODO: update the code to test the property AboutSectionSubtitle + expect(instance).to.have.property('AboutSectionSubtitle'); + // expect(instance.AboutSectionSubtitle).to.be(expectedValueLiteral); + }); + + it('should have the property AboutSectionLeftTitle (base name: "AboutSectionLeftTitle")', function() { + // TODO: update the code to test the property AboutSectionLeftTitle + expect(instance).to.have.property('AboutSectionLeftTitle'); + // expect(instance.AboutSectionLeftTitle).to.be(expectedValueLiteral); + }); + + it('should have the property AboutSectionLeftBody (base name: "AboutSectionLeftBody")', function() { + // TODO: update the code to test the property AboutSectionLeftBody + expect(instance).to.have.property('AboutSectionLeftBody'); + // expect(instance.AboutSectionLeftBody).to.be(expectedValueLiteral); + }); + + it('should have the property AboutSectionRightTitle (base name: "AboutSectionRightTitle")', function() { + // TODO: update the code to test the property AboutSectionRightTitle + expect(instance).to.have.property('AboutSectionRightTitle'); + // expect(instance.AboutSectionRightTitle).to.be(expectedValueLiteral); + }); + + it('should have the property AboutSectionRightBody (base name: "AboutSectionRightBody")', function() { + // TODO: update the code to test the property AboutSectionRightBody + expect(instance).to.have.property('AboutSectionRightBody'); + // expect(instance.AboutSectionRightBody).to.be(expectedValueLiteral); + }); + + it('should have the property OpeningHoursEnabled (base name: "OpeningHoursEnabled")', function() { + // TODO: update the code to test the property OpeningHoursEnabled + expect(instance).to.have.property('OpeningHoursEnabled'); + // expect(instance.OpeningHoursEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property MenuPreviewEnabled (base name: "MenuPreviewEnabled")', function() { + // TODO: update the code to test the property MenuPreviewEnabled + expect(instance).to.have.property('MenuPreviewEnabled'); + // expect(instance.MenuPreviewEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property GalleryEnabled (base name: "GalleryEnabled")', function() { + // TODO: update the code to test the property GalleryEnabled + expect(instance).to.have.property('GalleryEnabled'); + // expect(instance.GalleryEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property TestimonialsEnabled (base name: "TestimonialsEnabled")', function() { + // TODO: update the code to test the property TestimonialsEnabled + expect(instance).to.have.property('TestimonialsEnabled'); + // expect(instance.TestimonialsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property ContactFormEnabled (base name: "ContactFormEnabled")', function() { + // TODO: update the code to test the property ContactFormEnabled + expect(instance).to.have.property('ContactFormEnabled'); + // expect(instance.ContactFormEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property ContactFormEmail (base name: "ContactFormEmail")', function() { + // TODO: update the code to test the property ContactFormEmail + expect(instance).to.have.property('ContactFormEmail'); + // expect(instance.ContactFormEmail).to.be(expectedValueLiteral); + }); + + it('should have the property MapEnabled (base name: "MapEnabled")', function() { + // TODO: update the code to test the property MapEnabled + expect(instance).to.have.property('MapEnabled'); + // expect(instance.MapEnabled).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/IndexPageBase.spec.js b/test/model/IndexPageBase.spec.js new file mode 100644 index 00000000..2d10d25d --- /dev/null +++ b/test/model/IndexPageBase.spec.js @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('IndexPageBase', function() { + beforeEach(function() { + instance = new Flipdish.IndexPageBase(); + }); + + it('should create an instance of IndexPageBase', function() { + // TODO: update the code to test IndexPageBase + expect(instance).to.be.a(Flipdish.IndexPageBase); + }); + + it('should have the property AboutSectionEnabled (base name: "AboutSectionEnabled")', function() { + // TODO: update the code to test the property AboutSectionEnabled + expect(instance).to.have.property('AboutSectionEnabled'); + // expect(instance.AboutSectionEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property AboutSectionTitle (base name: "AboutSectionTitle")', function() { + // TODO: update the code to test the property AboutSectionTitle + expect(instance).to.have.property('AboutSectionTitle'); + // expect(instance.AboutSectionTitle).to.be(expectedValueLiteral); + }); + + it('should have the property AboutSectionSubtitle (base name: "AboutSectionSubtitle")', function() { + // TODO: update the code to test the property AboutSectionSubtitle + expect(instance).to.have.property('AboutSectionSubtitle'); + // expect(instance.AboutSectionSubtitle).to.be(expectedValueLiteral); + }); + + it('should have the property AboutSectionLeftTitle (base name: "AboutSectionLeftTitle")', function() { + // TODO: update the code to test the property AboutSectionLeftTitle + expect(instance).to.have.property('AboutSectionLeftTitle'); + // expect(instance.AboutSectionLeftTitle).to.be(expectedValueLiteral); + }); + + it('should have the property AboutSectionLeftBody (base name: "AboutSectionLeftBody")', function() { + // TODO: update the code to test the property AboutSectionLeftBody + expect(instance).to.have.property('AboutSectionLeftBody'); + // expect(instance.AboutSectionLeftBody).to.be(expectedValueLiteral); + }); + + it('should have the property AboutSectionRightTitle (base name: "AboutSectionRightTitle")', function() { + // TODO: update the code to test the property AboutSectionRightTitle + expect(instance).to.have.property('AboutSectionRightTitle'); + // expect(instance.AboutSectionRightTitle).to.be(expectedValueLiteral); + }); + + it('should have the property AboutSectionRightBody (base name: "AboutSectionRightBody")', function() { + // TODO: update the code to test the property AboutSectionRightBody + expect(instance).to.have.property('AboutSectionRightBody'); + // expect(instance.AboutSectionRightBody).to.be(expectedValueLiteral); + }); + + it('should have the property OpeningHoursEnabled (base name: "OpeningHoursEnabled")', function() { + // TODO: update the code to test the property OpeningHoursEnabled + expect(instance).to.have.property('OpeningHoursEnabled'); + // expect(instance.OpeningHoursEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property MenuPreviewEnabled (base name: "MenuPreviewEnabled")', function() { + // TODO: update the code to test the property MenuPreviewEnabled + expect(instance).to.have.property('MenuPreviewEnabled'); + // expect(instance.MenuPreviewEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property GalleryEnabled (base name: "GalleryEnabled")', function() { + // TODO: update the code to test the property GalleryEnabled + expect(instance).to.have.property('GalleryEnabled'); + // expect(instance.GalleryEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property TestimonialsEnabled (base name: "TestimonialsEnabled")', function() { + // TODO: update the code to test the property TestimonialsEnabled + expect(instance).to.have.property('TestimonialsEnabled'); + // expect(instance.TestimonialsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property ContactFormEnabled (base name: "ContactFormEnabled")', function() { + // TODO: update the code to test the property ContactFormEnabled + expect(instance).to.have.property('ContactFormEnabled'); + // expect(instance.ContactFormEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property ContactFormEmail (base name: "ContactFormEmail")', function() { + // TODO: update the code to test the property ContactFormEmail + expect(instance).to.have.property('ContactFormEmail'); + // expect(instance.ContactFormEmail).to.be(expectedValueLiteral); + }); + + it('should have the property MapEnabled (base name: "MapEnabled")', function() { + // TODO: update the code to test the property MapEnabled + expect(instance).to.have.property('MapEnabled'); + // expect(instance.MapEnabled).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/JobAddress.spec.js b/test/model/JobAddress.spec.js new file mode 100644 index 00000000..beae1644 --- /dev/null +++ b/test/model/JobAddress.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('JobAddress', function() { + beforeEach(function() { + instance = new Flipdish.JobAddress(); + }); + + it('should create an instance of JobAddress', function() { + // TODO: update the code to test JobAddress + expect(instance).to.be.a(Flipdish.JobAddress); + }); + + it('should have the property Street (base name: "Street")', function() { + // TODO: update the code to test the property Street + expect(instance).to.have.property('Street'); + // expect(instance.Street).to.be(expectedValueLiteral); + }); + + it('should have the property Postcode (base name: "Postcode")', function() { + // TODO: update the code to test the property Postcode + expect(instance).to.have.property('Postcode'); + // expect(instance.Postcode).to.be(expectedValueLiteral); + }); + + it('should have the property City (base name: "City")', function() { + // TODO: update the code to test the property City + expect(instance).to.have.property('City'); + // expect(instance.City).to.be(expectedValueLiteral); + }); + + it('should have the property Country (base name: "Country")', function() { + // TODO: update the code to test the property Country + expect(instance).to.have.property('Country'); + // expect(instance.Country).to.be(expectedValueLiteral); + }); + + it('should have the property Zone (base name: "Zone")', function() { + // TODO: update the code to test the property Zone + expect(instance).to.have.property('Zone'); + // expect(instance.Zone).to.be(expectedValueLiteral); + }); + + it('should have the property FormattedAddress (base name: "FormattedAddress")', function() { + // TODO: update the code to test the property FormattedAddress + expect(instance).to.have.property('FormattedAddress'); + // expect(instance.FormattedAddress).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/JobCancellation.spec.js b/test/model/JobCancellation.spec.js new file mode 100644 index 00000000..903e211e --- /dev/null +++ b/test/model/JobCancellation.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('JobCancellation', function() { + beforeEach(function() { + instance = new Flipdish.JobCancellation(); + }); + + it('should create an instance of JobCancellation', function() { + // TODO: update the code to test JobCancellation + expect(instance).to.be.a(Flipdish.JobCancellation); + }); + + it('should have the property CanceledBy (base name: "CanceledBy")', function() { + // TODO: update the code to test the property CanceledBy + expect(instance).to.have.property('CanceledBy'); + // expect(instance.CanceledBy).to.be(expectedValueLiteral); + }); + + it('should have the property ReasonKey (base name: "ReasonKey")', function() { + // TODO: update the code to test the property ReasonKey + expect(instance).to.have.property('ReasonKey'); + // expect(instance.ReasonKey).to.be(expectedValueLiteral); + }); + + it('should have the property Comment (base name: "Comment")', function() { + // TODO: update the code to test the property Comment + expect(instance).to.have.property('Comment'); + // expect(instance.Comment).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/JobContact.spec.js b/test/model/JobContact.spec.js new file mode 100644 index 00000000..84825756 --- /dev/null +++ b/test/model/JobContact.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('JobContact', function() { + beforeEach(function() { + instance = new Flipdish.JobContact(); + }); + + it('should create an instance of JobContact', function() { + // TODO: update the code to test JobContact + expect(instance).to.be.a(Flipdish.JobContact); + }); + + it('should have the property Firstname (base name: "Firstname")', function() { + // TODO: update the code to test the property Firstname + expect(instance).to.have.property('Firstname'); + // expect(instance.Firstname).to.be(expectedValueLiteral); + }); + + it('should have the property Lastname (base name: "Lastname")', function() { + // TODO: update the code to test the property Lastname + expect(instance).to.have.property('Lastname'); + // expect(instance.Lastname).to.be(expectedValueLiteral); + }); + + it('should have the property Phone (base name: "Phone")', function() { + // TODO: update the code to test the property Phone + expect(instance).to.have.property('Phone'); + // expect(instance.Phone).to.be(expectedValueLiteral); + }); + + it('should have the property Email (base name: "Email")', function() { + // TODO: update the code to test the property Email + expect(instance).to.have.property('Email'); + // expect(instance.Email).to.be(expectedValueLiteral); + }); + + it('should have the property Company (base name: "Company")', function() { + // TODO: update the code to test the property Company + expect(instance).to.have.property('Company'); + // expect(instance.Company).to.be(expectedValueLiteral); + }); + + it('should have the property CompanyName (base name: "CompanyName")', function() { + // TODO: update the code to test the property CompanyName + expect(instance).to.have.property('CompanyName'); + // expect(instance.CompanyName).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/JobDelivery.spec.js b/test/model/JobDelivery.spec.js new file mode 100644 index 00000000..a8bffe8d --- /dev/null +++ b/test/model/JobDelivery.spec.js @@ -0,0 +1,124 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('JobDelivery', function() { + beforeEach(function() { + instance = new Flipdish.JobDelivery(); + }); + + it('should create an instance of JobDelivery', function() { + // TODO: update the code to test JobDelivery + expect(instance).to.be.a(Flipdish.JobDelivery); + }); + + it('should have the property Id (base name: "Id")', function() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); + + it('should have the property Status (base name: "Status")', function() { + // TODO: update the code to test the property Status + expect(instance).to.have.property('Status'); + // expect(instance.Status).to.be(expectedValueLiteral); + }); + + it('should have the property PickedAt (base name: "PickedAt")', function() { + // TODO: update the code to test the property PickedAt + expect(instance).to.have.property('PickedAt'); + // expect(instance.PickedAt).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveredAt (base name: "DeliveredAt")', function() { + // TODO: update the code to test the property DeliveredAt + expect(instance).to.have.property('DeliveredAt'); + // expect(instance.DeliveredAt).to.be(expectedValueLiteral); + }); + + it('should have the property TrackingUrl (base name: "TrackingUrl")', function() { + // TODO: update the code to test the property TrackingUrl + expect(instance).to.have.property('TrackingUrl'); + // expect(instance.TrackingUrl).to.be(expectedValueLiteral); + }); + + it('should have the property ClientReference (base name: "ClientReference")', function() { + // TODO: update the code to test the property ClientReference + expect(instance).to.have.property('ClientReference'); + // expect(instance.ClientReference).to.be(expectedValueLiteral); + }); + + it('should have the property PackageDescription (base name: "PackageDescription")', function() { + // TODO: update the code to test the property PackageDescription + expect(instance).to.have.property('PackageDescription'); + // expect(instance.PackageDescription).to.be(expectedValueLiteral); + }); + + it('should have the property PackageType (base name: "PackageType")', function() { + // TODO: update the code to test the property PackageType + expect(instance).to.have.property('PackageType'); + // expect(instance.PackageType).to.be(expectedValueLiteral); + }); + + it('should have the property Pickup (base name: "Pickup")', function() { + // TODO: update the code to test the property Pickup + expect(instance).to.have.property('Pickup'); + // expect(instance.Pickup).to.be(expectedValueLiteral); + }); + + it('should have the property Dropoff (base name: "Dropoff")', function() { + // TODO: update the code to test the property Dropoff + expect(instance).to.have.property('Dropoff'); + // expect(instance.Dropoff).to.be(expectedValueLiteral); + }); + + it('should have the property Eta (base name: "Eta")', function() { + // TODO: update the code to test the property Eta + expect(instance).to.have.property('Eta'); + // expect(instance.Eta).to.be(expectedValueLiteral); + }); + + it('should have the property Cancellation (base name: "Cancellation")', function() { + // TODO: update the code to test the property Cancellation + expect(instance).to.have.property('Cancellation'); + // expect(instance.Cancellation).to.be(expectedValueLiteral); + }); + + it('should have the property Proof (base name: "Proof")', function() { + // TODO: update the code to test the property Proof + expect(instance).to.have.property('Proof'); + // expect(instance.Proof).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/JobDeliveryDetail.spec.js b/test/model/JobDeliveryDetail.spec.js new file mode 100644 index 00000000..2207633a --- /dev/null +++ b/test/model/JobDeliveryDetail.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('JobDeliveryDetail', function() { + beforeEach(function() { + instance = new Flipdish.JobDeliveryDetail(); + }); + + it('should create an instance of JobDeliveryDetail', function() { + // TODO: update the code to test JobDeliveryDetail + expect(instance).to.be.a(Flipdish.JobDeliveryDetail); + }); + + it('should have the property Id (base name: "Id")', function() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); + + it('should have the property Latitude (base name: "Latitude")', function() { + // TODO: update the code to test the property Latitude + expect(instance).to.have.property('Latitude'); + // expect(instance.Latitude).to.be(expectedValueLiteral); + }); + + it('should have the property Longitude (base name: "Longitude")', function() { + // TODO: update the code to test the property Longitude + expect(instance).to.have.property('Longitude'); + // expect(instance.Longitude).to.be(expectedValueLiteral); + }); + + it('should have the property Comment (base name: "Comment")', function() { + // TODO: update the code to test the property Comment + expect(instance).to.have.property('Comment'); + // expect(instance.Comment).to.be(expectedValueLiteral); + }); + + it('should have the property Address (base name: "Address")', function() { + // TODO: update the code to test the property Address + expect(instance).to.have.property('Address'); + // expect(instance.Address).to.be(expectedValueLiteral); + }); + + it('should have the property Contact (base name: "Contact")', function() { + // TODO: update the code to test the property Contact + expect(instance).to.have.property('Contact'); + // expect(instance.Contact).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/JobDriver.spec.js b/test/model/JobDriver.spec.js new file mode 100644 index 00000000..b2ebb86a --- /dev/null +++ b/test/model/JobDriver.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('JobDriver', function() { + beforeEach(function() { + instance = new Flipdish.JobDriver(); + }); + + it('should create an instance of JobDriver', function() { + // TODO: update the code to test JobDriver + expect(instance).to.be.a(Flipdish.JobDriver); + }); + + it('should have the property Id (base name: "Id")', function() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayName (base name: "DisplayName")', function() { + // TODO: update the code to test the property DisplayName + expect(instance).to.have.property('DisplayName'); + // expect(instance.DisplayName).to.be(expectedValueLiteral); + }); + + it('should have the property Phone (base name: "Phone")', function() { + // TODO: update the code to test the property Phone + expect(instance).to.have.property('Phone'); + // expect(instance.Phone).to.be(expectedValueLiteral); + }); + + it('should have the property PictureUrl (base name: "PictureUrl")', function() { + // TODO: update the code to test the property PictureUrl + expect(instance).to.have.property('PictureUrl'); + // expect(instance.PictureUrl).to.be(expectedValueLiteral); + }); + + it('should have the property TransportType (base name: "TransportType")', function() { + // TODO: update the code to test the property TransportType + expect(instance).to.have.property('TransportType'); + // expect(instance.TransportType).to.be(expectedValueLiteral); + }); + + it('should have the property Latitude (base name: "Latitude")', function() { + // TODO: update the code to test the property Latitude + expect(instance).to.have.property('Latitude'); + // expect(instance.Latitude).to.be(expectedValueLiteral); + }); + + it('should have the property Longitude (base name: "Longitude")', function() { + // TODO: update the code to test the property Longitude + expect(instance).to.have.property('Longitude'); + // expect(instance.Longitude).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/JobEta.spec.js b/test/model/JobEta.spec.js new file mode 100644 index 00000000..a4bb47ea --- /dev/null +++ b/test/model/JobEta.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('JobEta', function() { + beforeEach(function() { + instance = new Flipdish.JobEta(); + }); + + it('should create an instance of JobEta', function() { + // TODO: update the code to test JobEta + expect(instance).to.be.a(Flipdish.JobEta); + }); + + it('should have the property Pickup (base name: "Pickup")', function() { + // TODO: update the code to test the property Pickup + expect(instance).to.have.property('Pickup'); + // expect(instance.Pickup).to.be(expectedValueLiteral); + }); + + it('should have the property Dropoff (base name: "Dropoff")', function() { + // TODO: update the code to test the property Dropoff + expect(instance).to.have.property('Dropoff'); + // expect(instance.Dropoff).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/JobPricing.spec.js b/test/model/JobPricing.spec.js new file mode 100644 index 00000000..408ac2c5 --- /dev/null +++ b/test/model/JobPricing.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('JobPricing', function() { + beforeEach(function() { + instance = new Flipdish.JobPricing(); + }); + + it('should create an instance of JobPricing', function() { + // TODO: update the code to test JobPricing + expect(instance).to.be.a(Flipdish.JobPricing); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + it('should have the property TaxPercentage (base name: "TaxPercentage")', function() { + // TODO: update the code to test the property TaxPercentage + expect(instance).to.have.property('TaxPercentage'); + // expect(instance.TaxPercentage).to.be(expectedValueLiteral); + }); + + it('should have the property PriceTaxIncluded (base name: "PriceTaxIncluded")', function() { + // TODO: update the code to test the property PriceTaxIncluded + expect(instance).to.have.property('PriceTaxIncluded'); + // expect(instance.PriceTaxIncluded).to.be(expectedValueLiteral); + }); + + it('should have the property PriceTaxExcluded (base name: "PriceTaxExcluded")', function() { + // TODO: update the code to test the property PriceTaxExcluded + expect(instance).to.have.property('PriceTaxExcluded'); + // expect(instance.PriceTaxExcluded).to.be(expectedValueLiteral); + }); + + it('should have the property TaxAmount (base name: "TaxAmount")', function() { + // TODO: update the code to test the property TaxAmount + expect(instance).to.have.property('TaxAmount'); + // expect(instance.TaxAmount).to.be(expectedValueLiteral); + }); + + it('should have the property InvoiceUrl (base name: "InvoiceUrl")', function() { + // TODO: update the code to test the property InvoiceUrl + expect(instance).to.have.property('InvoiceUrl'); + // expect(instance.InvoiceUrl).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/JobProof.spec.js b/test/model/JobProof.spec.js new file mode 100644 index 00000000..0234c300 --- /dev/null +++ b/test/model/JobProof.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('JobProof', function() { + beforeEach(function() { + instance = new Flipdish.JobProof(); + }); + + it('should create an instance of JobProof', function() { + // TODO: update the code to test JobProof + expect(instance).to.be.a(Flipdish.JobProof); + }); + + it('should have the property SignatureUrl (base name: "SignatureUrl")', function() { + // TODO: update the code to test the property SignatureUrl + expect(instance).to.have.property('SignatureUrl'); + // expect(instance.SignatureUrl).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/JobResponse.spec.js b/test/model/JobResponse.spec.js new file mode 100644 index 00000000..7f74ca83 --- /dev/null +++ b/test/model/JobResponse.spec.js @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('JobResponse', function() { + beforeEach(function() { + instance = new Flipdish.JobResponse(); + }); + + it('should create an instance of JobResponse', function() { + // TODO: update the code to test JobResponse + expect(instance).to.be.a(Flipdish.JobResponse); + }); + + it('should have the property Id (base name: "Id")', function() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); + + it('should have the property CreatedAt (base name: "CreatedAt")', function() { + // TODO: update the code to test the property CreatedAt + expect(instance).to.have.property('CreatedAt'); + // expect(instance.CreatedAt).to.be(expectedValueLiteral); + }); + + it('should have the property Status (base name: "Status")', function() { + // TODO: update the code to test the property Status + expect(instance).to.have.property('Status'); + // expect(instance.Status).to.be(expectedValueLiteral); + }); + + it('should have the property PackageType (base name: "PackageType")', function() { + // TODO: update the code to test the property PackageType + expect(instance).to.have.property('PackageType'); + // expect(instance.PackageType).to.be(expectedValueLiteral); + }); + + it('should have the property TransportType (base name: "TransportType")', function() { + // TODO: update the code to test the property TransportType + expect(instance).to.have.property('TransportType'); + // expect(instance.TransportType).to.be(expectedValueLiteral); + }); + + it('should have the property AssignmentCode (base name: "AssignmentCode")', function() { + // TODO: update the code to test the property AssignmentCode + expect(instance).to.have.property('AssignmentCode'); + // expect(instance.AssignmentCode).to.be(expectedValueLiteral); + }); + + it('should have the property PickupAt (base name: "PickupAt")', function() { + // TODO: update the code to test the property PickupAt + expect(instance).to.have.property('PickupAt'); + // expect(instance.PickupAt).to.be(expectedValueLiteral); + }); + + it('should have the property DropoffAt (base name: "DropoffAt")', function() { + // TODO: update the code to test the property DropoffAt + expect(instance).to.have.property('DropoffAt'); + // expect(instance.DropoffAt).to.be(expectedValueLiteral); + }); + + it('should have the property Comment (base name: "Comment")', function() { + // TODO: update the code to test the property Comment + expect(instance).to.have.property('Comment'); + // expect(instance.Comment).to.be(expectedValueLiteral); + }); + + it('should have the property Distance (base name: "Distance")', function() { + // TODO: update the code to test the property Distance + expect(instance).to.have.property('Distance'); + // expect(instance.Distance).to.be(expectedValueLiteral); + }); + + it('should have the property Duration (base name: "Duration")', function() { + // TODO: update the code to test the property Duration + expect(instance).to.have.property('Duration'); + // expect(instance.Duration).to.be(expectedValueLiteral); + }); + + it('should have the property Deliveries (base name: "Deliveries")', function() { + // TODO: update the code to test the property Deliveries + expect(instance).to.have.property('Deliveries'); + // expect(instance.Deliveries).to.be(expectedValueLiteral); + }); + + it('should have the property Pricing (base name: "Pricing")', function() { + // TODO: update the code to test the property Pricing + expect(instance).to.have.property('Pricing'); + // expect(instance.Pricing).to.be(expectedValueLiteral); + }); + + it('should have the property Driver (base name: "Driver")', function() { + // TODO: update the code to test the property Driver + expect(instance).to.have.property('Driver'); + // expect(instance.Driver).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/KioskBluetoothInstallUpdateInitiateEvent.spec.js b/test/model/KioskBluetoothInstallUpdateInitiateEvent.spec.js new file mode 100644 index 00000000..4c7c0e0d --- /dev/null +++ b/test/model/KioskBluetoothInstallUpdateInitiateEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('KioskBluetoothInstallUpdateInitiateEvent', function() { + beforeEach(function() { + instance = new Flipdish.KioskBluetoothInstallUpdateInitiateEvent(); + }); + + it('should create an instance of KioskBluetoothInstallUpdateInitiateEvent', function() { + // TODO: update the code to test KioskBluetoothInstallUpdateInitiateEvent + expect(instance).to.be.a(Flipdish.KioskBluetoothInstallUpdateInitiateEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // TODO: update the code to test the property DeviceId + expect(instance).to.have.property('DeviceId'); + // expect(instance.DeviceId).to.be(expectedValueLiteral); + }); + + it('should have the property BluetoothTerminalType (base name: "BluetoothTerminalType")', function() { + // TODO: update the code to test the property BluetoothTerminalType + expect(instance).to.have.property('BluetoothTerminalType'); + // expect(instance.BluetoothTerminalType).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/KioskBluetoothPairingModeEvent.spec.js b/test/model/KioskBluetoothPairingModeEvent.spec.js new file mode 100644 index 00000000..b6ba1bfa --- /dev/null +++ b/test/model/KioskBluetoothPairingModeEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('KioskBluetoothPairingModeEvent', function() { + beforeEach(function() { + instance = new Flipdish.KioskBluetoothPairingModeEvent(); + }); + + it('should create an instance of KioskBluetoothPairingModeEvent', function() { + // TODO: update the code to test KioskBluetoothPairingModeEvent + expect(instance).to.be.a(Flipdish.KioskBluetoothPairingModeEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // TODO: update the code to test the property DeviceId + expect(instance).to.have.property('DeviceId'); + // expect(instance.DeviceId).to.be(expectedValueLiteral); + }); + + it('should have the property BluetoothTerminalType (base name: "BluetoothTerminalType")', function() { + // TODO: update the code to test the property BluetoothTerminalType + expect(instance).to.have.property('BluetoothTerminalType'); + // expect(instance.BluetoothTerminalType).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/KioskBluetoothTerminalInitiateUpdateCheckEvent.spec.js b/test/model/KioskBluetoothTerminalInitiateUpdateCheckEvent.spec.js new file mode 100644 index 00000000..1cf86f66 --- /dev/null +++ b/test/model/KioskBluetoothTerminalInitiateUpdateCheckEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('KioskBluetoothTerminalInitiateUpdateCheckEvent', function() { + beforeEach(function() { + instance = new Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent(); + }); + + it('should create an instance of KioskBluetoothTerminalInitiateUpdateCheckEvent', function() { + // TODO: update the code to test KioskBluetoothTerminalInitiateUpdateCheckEvent + expect(instance).to.be.a(Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // TODO: update the code to test the property DeviceId + expect(instance).to.have.property('DeviceId'); + // expect(instance.DeviceId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/KioskBluetoothTerminalUpdatedEvent.spec.js b/test/model/KioskBluetoothTerminalUpdatedEvent.spec.js new file mode 100644 index 00000000..78141c94 --- /dev/null +++ b/test/model/KioskBluetoothTerminalUpdatedEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('KioskBluetoothTerminalUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + }); + + it('should create an instance of KioskBluetoothTerminalUpdatedEvent', function() { + // TODO: update the code to test KioskBluetoothTerminalUpdatedEvent + expect(instance).to.be.a(Flipdish.KioskBluetoothTerminalUpdatedEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // TODO: update the code to test the property DeviceId + expect(instance).to.have.property('DeviceId'); + // expect(instance.DeviceId).to.be(expectedValueLiteral); + }); + + it('should have the property BluetoothTerminalType (base name: "BluetoothTerminalType")', function() { + // TODO: update the code to test the property BluetoothTerminalType + expect(instance).to.have.property('BluetoothTerminalType'); + // expect(instance.BluetoothTerminalType).to.be(expectedValueLiteral); + }); + + it('should have the property BluetoothTerminalSerialNumber (base name: "BluetoothTerminalSerialNumber")', function() { + // TODO: update the code to test the property BluetoothTerminalSerialNumber + expect(instance).to.have.property('BluetoothTerminalSerialNumber'); + // expect(instance.BluetoothTerminalSerialNumber).to.be(expectedValueLiteral); + }); + + it('should have the property BluetoothTerminalStatus (base name: "BluetoothTerminalStatus")', function() { + // TODO: update the code to test the property BluetoothTerminalStatus + expect(instance).to.have.property('BluetoothTerminalStatus'); + // expect(instance.BluetoothTerminalStatus).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/KioskBluetoothUnpairingModeEvent.spec.js b/test/model/KioskBluetoothUnpairingModeEvent.spec.js new file mode 100644 index 00000000..47c60746 --- /dev/null +++ b/test/model/KioskBluetoothUnpairingModeEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('KioskBluetoothUnpairingModeEvent', function() { + beforeEach(function() { + instance = new Flipdish.KioskBluetoothUnpairingModeEvent(); + }); + + it('should create an instance of KioskBluetoothUnpairingModeEvent', function() { + // TODO: update the code to test KioskBluetoothUnpairingModeEvent + expect(instance).to.be.a(Flipdish.KioskBluetoothUnpairingModeEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // TODO: update the code to test the property DeviceId + expect(instance).to.have.property('DeviceId'); + // expect(instance.DeviceId).to.be(expectedValueLiteral); + }); + + it('should have the property BluetoothTerminalType (base name: "BluetoothTerminalType")', function() { + // TODO: update the code to test the property BluetoothTerminalType + expect(instance).to.have.property('BluetoothTerminalType'); + // expect(instance.BluetoothTerminalType).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/Language.spec.js b/test/model/Language.spec.js new file mode 100644 index 00000000..2f5ee86d --- /dev/null +++ b/test/model/Language.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('Language', function() { + beforeEach(function() { + instance = new Flipdish.Language(); + }); + + it('should create an instance of Language', function() { + // TODO: update the code to test Language + expect(instance).to.be.a(Flipdish.Language); + }); + + it('should have the property LanguageId (base name: "LanguageId")', function() { + // TODO: update the code to test the property LanguageId + expect(instance).to.have.property('LanguageId'); + // expect(instance.LanguageId).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // TODO: update the code to test the property DisplayOrder + expect(instance).to.have.property('DisplayOrder'); + // expect(instance.DisplayOrder).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/LightspeedSettings.spec.js b/test/model/LightspeedSettings.spec.js new file mode 100644 index 00000000..16dabb4c --- /dev/null +++ b/test/model/LightspeedSettings.spec.js @@ -0,0 +1,154 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LightspeedSettings', function() { + beforeEach(function() { + instance = new Flipdish.LightspeedSettings(); + }); + + it('should create an instance of LightspeedSettings', function() { + // TODO: update the code to test LightspeedSettings + expect(instance).to.be.a(Flipdish.LightspeedSettings); + }); + + it('should have the property CompanyId (base name: "CompanyId")', function() { + // TODO: update the code to test the property CompanyId + expect(instance).to.have.property('CompanyId'); + // expect(instance.CompanyId).to.be(expectedValueLiteral); + }); + + it('should have the property UseOAuth (base name: "UseOAuth")', function() { + // TODO: update the code to test the property UseOAuth + expect(instance).to.have.property('UseOAuth'); + // expect(instance.UseOAuth).to.be(expectedValueLiteral); + }); + + it('should have the property Enabled (base name: "Enabled")', function() { + // TODO: update the code to test the property Enabled + expect(instance).to.have.property('Enabled'); + // expect(instance.Enabled).to.be(expectedValueLiteral); + }); + + it('should have the property EstimatedMinutesForDelivery (base name: "EstimatedMinutesForDelivery")', function() { + // TODO: update the code to test the property EstimatedMinutesForDelivery + expect(instance).to.have.property('EstimatedMinutesForDelivery'); + // expect(instance.EstimatedMinutesForDelivery).to.be(expectedValueLiteral); + }); + + it('should have the property EstimatedMinutesForCollection (base name: "EstimatedMinutesForCollection")', function() { + // TODO: update the code to test the property EstimatedMinutesForCollection + expect(instance).to.have.property('EstimatedMinutesForCollection'); + // expect(instance.EstimatedMinutesForCollection).to.be(expectedValueLiteral); + }); + + it('should have the property GeographicLocation (base name: "GeographicLocation")', function() { + // TODO: update the code to test the property GeographicLocation + expect(instance).to.have.property('GeographicLocation'); + // expect(instance.GeographicLocation).to.be(expectedValueLiteral); + }); + + it('should have the property Establishment (base name: "Establishment")', function() { + // TODO: update the code to test the property Establishment + expect(instance).to.have.property('Establishment'); + // expect(instance.Establishment).to.be(expectedValueLiteral); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // TODO: update the code to test the property VoucherId + expect(instance).to.have.property('VoucherId'); + // expect(instance.VoucherId).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryFeeId (base name: "DeliveryFeeId")', function() { + // TODO: update the code to test the property DeliveryFeeId + expect(instance).to.have.property('DeliveryFeeId'); + // expect(instance.DeliveryFeeId).to.be(expectedValueLiteral); + }); + + it('should have the property ProcessingFeeId (base name: "ProcessingFeeId")', function() { + // TODO: update the code to test the property ProcessingFeeId + expect(instance).to.have.property('ProcessingFeeId'); + // expect(instance.ProcessingFeeId).to.be(expectedValueLiteral); + }); + + it('should have the property PriceType (base name: "PriceType")', function() { + // TODO: update the code to test the property PriceType + expect(instance).to.have.property('PriceType'); + // expect(instance.PriceType).to.be(expectedValueLiteral); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property CollectionTableId (base name: "CollectionTableId")', function() { + // TODO: update the code to test the property CollectionTableId + expect(instance).to.have.property('CollectionTableId'); + // expect(instance.CollectionTableId).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryTableId (base name: "DeliveryTableId")', function() { + // TODO: update the code to test the property DeliveryTableId + expect(instance).to.have.property('DeliveryTableId'); + // expect(instance.DeliveryTableId).to.be(expectedValueLiteral); + }); + + it('should have the property CollectionTableIds (base name: "CollectionTableIds")', function() { + // TODO: update the code to test the property CollectionTableIds + expect(instance).to.have.property('CollectionTableIds'); + // expect(instance.CollectionTableIds).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryTableIds (base name: "DeliveryTableIds")', function() { + // TODO: update the code to test the property DeliveryTableIds + expect(instance).to.have.property('DeliveryTableIds'); + // expect(instance.DeliveryTableIds).to.be(expectedValueLiteral); + }); + + it('should have the property UseTaxInclusivePrices (base name: "UseTaxInclusivePrices")', function() { + // TODO: update the code to test the property UseTaxInclusivePrices + expect(instance).to.have.property('UseTaxInclusivePrices'); + // expect(instance.UseTaxInclusivePrices).to.be(expectedValueLiteral); + }); + + it('should have the property SkipStatusCheckAndAcceptOrderAfterSending (base name: "SkipStatusCheckAndAcceptOrderAfterSending")', function() { + // TODO: update the code to test the property SkipStatusCheckAndAcceptOrderAfterSending + expect(instance).to.have.property('SkipStatusCheckAndAcceptOrderAfterSending'); + // expect(instance.SkipStatusCheckAndAcceptOrderAfterSending).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/LocalisedTimeZone.spec.js b/test/model/LocalisedTimeZone.spec.js new file mode 100644 index 00000000..93fa2230 --- /dev/null +++ b/test/model/LocalisedTimeZone.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LocalisedTimeZone', function() { + beforeEach(function() { + instance = new Flipdish.LocalisedTimeZone(); + }); + + it('should create an instance of LocalisedTimeZone', function() { + // TODO: update the code to test LocalisedTimeZone + expect(instance).to.be.a(Flipdish.LocalisedTimeZone); + }); + + it('should have the property TimeZoneId (base name: "TimeZoneId")', function() { + // TODO: update the code to test the property TimeZoneId + expect(instance).to.have.property('TimeZoneId'); + // expect(instance.TimeZoneId).to.be(expectedValueLiteral); + }); + + it('should have the property IanaTimeZoneId (base name: "IanaTimeZoneId")', function() { + // TODO: update the code to test the property IanaTimeZoneId + expect(instance).to.have.property('IanaTimeZoneId'); + // expect(instance.IanaTimeZoneId).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayName (base name: "DisplayName")', function() { + // TODO: update the code to test the property DisplayName + expect(instance).to.have.property('DisplayName'); + // expect(instance.DisplayName).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/LoginModel.spec.js b/test/model/LoginModel.spec.js new file mode 100644 index 00000000..2cfcf517 --- /dev/null +++ b/test/model/LoginModel.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LoginModel', function() { + beforeEach(function() { + instance = new Flipdish.LoginModel(); + }); + + it('should create an instance of LoginModel', function() { + // TODO: update the code to test LoginModel + expect(instance).to.be.a(Flipdish.LoginModel); + }); + + it('should have the property Email (base name: "Email")', function() { + // TODO: update the code to test the property Email + expect(instance).to.have.property('Email'); + // expect(instance.Email).to.be(expectedValueLiteral); + }); + + it('should have the property Password (base name: "Password")', function() { + // TODO: update the code to test the property Password + expect(instance).to.have.property('Password'); + // expect(instance.Password).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/LoginWithPinModel.spec.js b/test/model/LoginWithPinModel.spec.js new file mode 100644 index 00000000..4d1ccdfb --- /dev/null +++ b/test/model/LoginWithPinModel.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LoginWithPinModel', function() { + beforeEach(function() { + instance = new Flipdish.LoginWithPinModel(); + }); + + it('should create an instance of LoginWithPinModel', function() { + // TODO: update the code to test LoginWithPinModel + expect(instance).to.be.a(Flipdish.LoginWithPinModel); + }); + + it('should have the property Email (base name: "Email")', function() { + // TODO: update the code to test the property Email + expect(instance).to.have.property('Email'); + // expect(instance.Email).to.be(expectedValueLiteral); + }); + + it('should have the property Pin (base name: "Pin")', function() { + // TODO: update the code to test the property Pin + expect(instance).to.have.property('Pin'); + // expect(instance.Pin).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/LoyaltyCampaign.spec.js b/test/model/LoyaltyCampaign.spec.js new file mode 100644 index 00000000..d804033d --- /dev/null +++ b/test/model/LoyaltyCampaign.spec.js @@ -0,0 +1,112 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LoyaltyCampaign', function() { + beforeEach(function() { + instance = new Flipdish.LoyaltyCampaign(); + }); + + it('should create an instance of LoyaltyCampaign', function() { + // TODO: update the code to test LoyaltyCampaign + expect(instance).to.be.a(Flipdish.LoyaltyCampaign); + }); + + it('should have the property CampaignId (base name: "CampaignId")', function() { + // TODO: update the code to test the property CampaignId + expect(instance).to.have.property('CampaignId'); + // expect(instance.CampaignId).to.be(expectedValueLiteral); + }); + + it('should have the property Statistics (base name: "Statistics")', function() { + // TODO: update the code to test the property Statistics + expect(instance).to.have.property('Statistics'); + // expect(instance.Statistics).to.be(expectedValueLiteral); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // TODO: update the code to test the property Stores + expect(instance).to.have.property('Stores'); + // expect(instance.Stores).to.be(expectedValueLiteral); + }); + + it('should have the property OrdersBeforeReceivingVoucher (base name: "OrdersBeforeReceivingVoucher")', function() { + // TODO: update the code to test the property OrdersBeforeReceivingVoucher + expect(instance).to.have.property('OrdersBeforeReceivingVoucher'); + // expect(instance.OrdersBeforeReceivingVoucher).to.be(expectedValueLiteral); + }); + + it('should have the property PercentDiscountAmount (base name: "PercentDiscountAmount")', function() { + // TODO: update the code to test the property PercentDiscountAmount + expect(instance).to.have.property('PercentDiscountAmount'); + // expect(instance.PercentDiscountAmount).to.be(expectedValueLiteral); + }); + + it('should have the property VoucherValidPeriodDays (base name: "VoucherValidPeriodDays")', function() { + // TODO: update the code to test the property VoucherValidPeriodDays + expect(instance).to.have.property('VoucherValidPeriodDays'); + // expect(instance.VoucherValidPeriodDays).to.be(expectedValueLiteral); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // TODO: update the code to test the property IncludeDeliveryFee + expect(instance).to.have.property('IncludeDeliveryFee'); + // expect(instance.IncludeDeliveryFee).to.be(expectedValueLiteral); + }); + + it('should have the property AutoApplyResultingVouchers (base name: "AutoApplyResultingVouchers")', function() { + // TODO: update the code to test the property AutoApplyResultingVouchers + expect(instance).to.have.property('AutoApplyResultingVouchers'); + // expect(instance.AutoApplyResultingVouchers).to.be(expectedValueLiteral); + }); + + it('should have the property IncludeExistingOrders (base name: "IncludeExistingOrders")', function() { + // TODO: update the code to test the property IncludeExistingOrders + expect(instance).to.have.property('IncludeExistingOrders'); + // expect(instance.IncludeExistingOrders).to.be(expectedValueLiteral); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // TODO: update the code to test the property IsEnabled + expect(instance).to.have.property('IsEnabled'); + // expect(instance.IsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/LoyaltyCampaignBase.spec.js b/test/model/LoyaltyCampaignBase.spec.js new file mode 100644 index 00000000..cb10e38b --- /dev/null +++ b/test/model/LoyaltyCampaignBase.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LoyaltyCampaignBase', function() { + beforeEach(function() { + instance = new Flipdish.LoyaltyCampaignBase(); + }); + + it('should create an instance of LoyaltyCampaignBase', function() { + // TODO: update the code to test LoyaltyCampaignBase + expect(instance).to.be.a(Flipdish.LoyaltyCampaignBase); + }); + + it('should have the property OrdersBeforeReceivingVoucher (base name: "OrdersBeforeReceivingVoucher")', function() { + // TODO: update the code to test the property OrdersBeforeReceivingVoucher + expect(instance).to.have.property('OrdersBeforeReceivingVoucher'); + // expect(instance.OrdersBeforeReceivingVoucher).to.be(expectedValueLiteral); + }); + + it('should have the property PercentDiscountAmount (base name: "PercentDiscountAmount")', function() { + // TODO: update the code to test the property PercentDiscountAmount + expect(instance).to.have.property('PercentDiscountAmount'); + // expect(instance.PercentDiscountAmount).to.be(expectedValueLiteral); + }); + + it('should have the property VoucherValidPeriodDays (base name: "VoucherValidPeriodDays")', function() { + // TODO: update the code to test the property VoucherValidPeriodDays + expect(instance).to.have.property('VoucherValidPeriodDays'); + // expect(instance.VoucherValidPeriodDays).to.be(expectedValueLiteral); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // TODO: update the code to test the property IncludeDeliveryFee + expect(instance).to.have.property('IncludeDeliveryFee'); + // expect(instance.IncludeDeliveryFee).to.be(expectedValueLiteral); + }); + + it('should have the property AutoApplyResultingVouchers (base name: "AutoApplyResultingVouchers")', function() { + // TODO: update the code to test the property AutoApplyResultingVouchers + expect(instance).to.have.property('AutoApplyResultingVouchers'); + // expect(instance.AutoApplyResultingVouchers).to.be(expectedValueLiteral); + }); + + it('should have the property IncludeExistingOrders (base name: "IncludeExistingOrders")', function() { + // TODO: update the code to test the property IncludeExistingOrders + expect(instance).to.have.property('IncludeExistingOrders'); + // expect(instance.IncludeExistingOrders).to.be(expectedValueLiteral); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // TODO: update the code to test the property IsEnabled + expect(instance).to.have.property('IsEnabled'); + // expect(instance.IsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/LoyaltyCampaignCreatedEvent.spec.js b/test/model/LoyaltyCampaignCreatedEvent.spec.js new file mode 100644 index 00000000..1b6bae7f --- /dev/null +++ b/test/model/LoyaltyCampaignCreatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LoyaltyCampaignCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.LoyaltyCampaignCreatedEvent(); + }); + + it('should create an instance of LoyaltyCampaignCreatedEvent', function() { + // TODO: update the code to test LoyaltyCampaignCreatedEvent + expect(instance).to.be.a(Flipdish.LoyaltyCampaignCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property LoyaltyCampaign (base name: "LoyaltyCampaign")', function() { + // TODO: update the code to test the property LoyaltyCampaign + expect(instance).to.have.property('LoyaltyCampaign'); + // expect(instance.LoyaltyCampaign).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/LoyaltyCampaignDeletedEvent.spec.js b/test/model/LoyaltyCampaignDeletedEvent.spec.js new file mode 100644 index 00000000..aec0e8c9 --- /dev/null +++ b/test/model/LoyaltyCampaignDeletedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LoyaltyCampaignDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.LoyaltyCampaignDeletedEvent(); + }); + + it('should create an instance of LoyaltyCampaignDeletedEvent', function() { + // TODO: update the code to test LoyaltyCampaignDeletedEvent + expect(instance).to.be.a(Flipdish.LoyaltyCampaignDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property LoyaltyCampaign (base name: "LoyaltyCampaign")', function() { + // TODO: update the code to test the property LoyaltyCampaign + expect(instance).to.have.property('LoyaltyCampaign'); + // expect(instance.LoyaltyCampaign).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/LoyaltyCampaignUpdatedEvent.spec.js b/test/model/LoyaltyCampaignUpdatedEvent.spec.js new file mode 100644 index 00000000..4517edac --- /dev/null +++ b/test/model/LoyaltyCampaignUpdatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LoyaltyCampaignUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.LoyaltyCampaignUpdatedEvent(); + }); + + it('should create an instance of LoyaltyCampaignUpdatedEvent', function() { + // TODO: update the code to test LoyaltyCampaignUpdatedEvent + expect(instance).to.be.a(Flipdish.LoyaltyCampaignUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property LoyaltyCampaign (base name: "LoyaltyCampaign")', function() { + // TODO: update the code to test the property LoyaltyCampaign + expect(instance).to.have.property('LoyaltyCampaign'); + // expect(instance.LoyaltyCampaign).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/LumpDiscountDetails.spec.js b/test/model/LumpDiscountDetails.spec.js new file mode 100644 index 00000000..0aa30806 --- /dev/null +++ b/test/model/LumpDiscountDetails.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LumpDiscountDetails', function() { + beforeEach(function() { + instance = new Flipdish.LumpDiscountDetails(); + }); + + it('should create an instance of LumpDiscountDetails', function() { + // TODO: update the code to test LumpDiscountDetails + expect(instance).to.be.a(Flipdish.LumpDiscountDetails); + }); + + it('should have the property DiscountAmount (base name: "DiscountAmount")', function() { + // TODO: update the code to test the property DiscountAmount + expect(instance).to.have.property('DiscountAmount'); + // expect(instance.DiscountAmount).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MaskedPhoneNumber.spec.js b/test/model/MaskedPhoneNumber.spec.js new file mode 100644 index 00000000..306e089a --- /dev/null +++ b/test/model/MaskedPhoneNumber.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MaskedPhoneNumber', function() { + beforeEach(function() { + instance = new Flipdish.MaskedPhoneNumber(); + }); + + it('should create an instance of MaskedPhoneNumber', function() { + // TODO: update the code to test MaskedPhoneNumber + expect(instance).to.be.a(Flipdish.MaskedPhoneNumber); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // TODO: update the code to test the property IsEnabled + expect(instance).to.have.property('IsEnabled'); + // expect(instance.IsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // TODO: update the code to test the property PhoneNumber + expect(instance).to.have.property('PhoneNumber'); + // expect(instance.PhoneNumber).to.be(expectedValueLiteral); + }); + + it('should have the property Code (base name: "Code")', function() { + // TODO: update the code to test the property Code + expect(instance).to.have.property('Code'); + // expect(instance.Code).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/Menu.spec.js b/test/model/Menu.spec.js index a6917054..ee158828 100644 --- a/test/model/Menu.spec.js +++ b/test/model/Menu.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,84 @@ var instance; - beforeEach(function() { - instance = new Flipdish.Menu(); - }); + describe('(package)', function() { + describe('Menu', function() { + 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]; - } + it('should create an instance of Menu', function() { + // TODO: update the code to test Menu + expect(instance).to.be.a(Flipdish.Menu); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); - 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 ModifiedTime (base name: "ModifiedTime")', function() { + // TODO: update the code to test the property ModifiedTime + expect(instance).to.have.property('ModifiedTime'); + // expect(instance.ModifiedTime).to.be(expectedValueLiteral); + }); - it('should have the property menuId (base name: "MenuId")', function() { - // uncomment below and update the code to test the property menuId - //var instane = new Flipdish.Menu(); - //expect(instance).to.be(); - }); + it('should have the property VersionNumber (base name: "VersionNumber")', function() { + // TODO: update the code to test the property VersionNumber + expect(instance).to.have.property('VersionNumber'); + // expect(instance.VersionNumber).to.be(expectedValueLiteral); + }); - it('should have the property modifiedTime (base name: "ModifiedTime")', function() { - // uncomment below and update the code to test the property modifiedTime - //var instane = new Flipdish.Menu(); - //expect(instance).to.be(); - }); + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // TODO: update the code to test the property ImageUrl + expect(instance).to.have.property('ImageUrl'); + // expect(instance.ImageUrl).to.be(expectedValueLiteral); + }); - it('should have the property versionNumber (base name: "VersionNumber")', function() { - // uncomment below and update the code to test the property versionNumber - //var instane = new Flipdish.Menu(); - //expect(instance).to.be(); - }); + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); - it('should have the property imageUrl (base name: "ImageUrl")', function() { - // uncomment below and update the code to test the property imageUrl - //var instane = new Flipdish.Menu(); - //expect(instance).to.be(); - }); + it('should have the property Locked (base name: "Locked")', function() { + // TODO: update the code to test the property Locked + expect(instance).to.have.property('Locked'); + // expect(instance.Locked).to.be(expectedValueLiteral); + }); - it('should have the property menuSections (base name: "MenuSections")', function() { - // uncomment below and update the code to test the property menuSections - //var instane = new Flipdish.Menu(); - //expect(instance).to.be(); - }); + it('should have the property MenuSections (base name: "MenuSections")', function() { + // TODO: update the code to test the property MenuSections + expect(instance).to.have.property('MenuSections'); + // expect(instance.MenuSections).to.be(expectedValueLiteral); + }); - it('should have the property displaySectionLinks (base name: "DisplaySectionLinks")', function() { - // uncomment below and update the code to test the property displaySectionLinks - //var instane = new Flipdish.Menu(); - //expect(instance).to.be(); - }); + it('should have the property TaxRates (base name: "TaxRates")', function() { + // TODO: update the code to test the property TaxRates + expect(instance).to.have.property('TaxRates'); + // expect(instance.TaxRates).to.be(expectedValueLiteral); + }); - it('should have the property menuSectionBehaviour (base name: "MenuSectionBehaviour")', function() { - // uncomment below and update the code to test the property menuSectionBehaviour - //var instane = new Flipdish.Menu(); - //expect(instance).to.be(); - }); + it('should have the property DisplaySectionLinks (base name: "DisplaySectionLinks")', function() { + // TODO: update the code to test the property DisplaySectionLinks + expect(instance).to.have.property('DisplaySectionLinks'); + // expect(instance.DisplaySectionLinks).to.be(expectedValueLiteral); + }); + it('should have the property MenuSectionBehaviour (base name: "MenuSectionBehaviour")', function() { + // TODO: update the code to test the property MenuSectionBehaviour + expect(instance).to.have.property('MenuSectionBehaviour'); + // expect(instance.MenuSectionBehaviour).to.be(expectedValueLiteral); + }); + + it('should have the property TaxType (base name: "TaxType")', function() { + // TODO: update the code to test the property TaxType + expect(instance).to.have.property('TaxType'); + // expect(instance.TaxType).to.be(expectedValueLiteral); + }); + + }); }); })); diff --git a/test/model/MenuBase.spec.js b/test/model/MenuBase.spec.js index fd3c28fc..5afc1cf8 100644 --- a/test/model/MenuBase.spec.js +++ b/test/model/MenuBase.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,45 +29,36 @@ var instance; - beforeEach(function() { - instance = new Flipdish.MenuBase(); - }); + describe('(package)', function() { + describe('MenuBase', function() { + 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]; - } + it('should create an instance of MenuBase', function() { + // TODO: update the code to test MenuBase + expect(instance).to.be.a(Flipdish.MenuBase); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property DisplaySectionLinks (base name: "DisplaySectionLinks")', function() { + // TODO: update the code to test the property DisplaySectionLinks + expect(instance).to.have.property('DisplaySectionLinks'); + // expect(instance.DisplaySectionLinks).to.be(expectedValueLiteral); + }); - 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 MenuSectionBehaviour (base name: "MenuSectionBehaviour")', function() { + // TODO: update the code to test the property MenuSectionBehaviour + expect(instance).to.have.property('MenuSectionBehaviour'); + // expect(instance.MenuSectionBehaviour).to.be(expectedValueLiteral); + }); - it('should have the property displaySectionLinks (base name: "DisplaySectionLinks")', function() { - // uncomment below and update the code to test the property displaySectionLinks - //var instane = new Flipdish.MenuBase(); - //expect(instance).to.be(); - }); + it('should have the property TaxType (base name: "TaxType")', function() { + // TODO: update the code to test the property TaxType + expect(instance).to.have.property('TaxType'); + // expect(instance.TaxType).to.be(expectedValueLiteral); + }); - it('should have the property menuSectionBehaviour (base name: "MenuSectionBehaviour")', function() { - // uncomment below and update the code to test the property menuSectionBehaviour - //var instane = new Flipdish.MenuBase(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/MenuCheckpoint.spec.js b/test/model/MenuCheckpoint.spec.js new file mode 100644 index 00000000..0f58fa1b --- /dev/null +++ b/test/model/MenuCheckpoint.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuCheckpoint', function() { + beforeEach(function() { + instance = new Flipdish.MenuCheckpoint(); + }); + + it('should create an instance of MenuCheckpoint', function() { + // TODO: update the code to test MenuCheckpoint + expect(instance).to.be.a(Flipdish.MenuCheckpoint); + }); + + it('should have the property MenuCheckpointId (base name: "MenuCheckpointId")', function() { + // TODO: update the code to test the property MenuCheckpointId + expect(instance).to.have.property('MenuCheckpointId'); + // expect(instance.MenuCheckpointId).to.be(expectedValueLiteral); + }); + + it('should have the property Time (base name: "Time")', function() { + // TODO: update the code to test the property Time + expect(instance).to.have.property('Time'); + // expect(instance.Time).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Url (base name: "Url")', function() { + // TODO: update the code to test the property Url + expect(instance).to.have.property('Url'); + // expect(instance.Url).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuCheckpointCreatedEvent.spec.js b/test/model/MenuCheckpointCreatedEvent.spec.js new file mode 100644 index 00000000..a51dc8f0 --- /dev/null +++ b/test/model/MenuCheckpointCreatedEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuCheckpointCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.MenuCheckpointCreatedEvent(); + }); + + it('should create an instance of MenuCheckpointCreatedEvent', function() { + // TODO: update the code to test MenuCheckpointCreatedEvent + expect(instance).to.be.a(Flipdish.MenuCheckpointCreatedEvent); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Menu (base name: "Menu")', function() { + // TODO: update the code to test the property Menu + expect(instance).to.have.property('Menu'); + // expect(instance.Menu).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuCreatedEvent.spec.js b/test/model/MenuCreatedEvent.spec.js index cc7c2003..627eda49 100644 --- a/test/model/MenuCreatedEvent.spec.js +++ b/test/model/MenuCreatedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,66 @@ var instance; - beforeEach(function() { - instance = new Flipdish.MenuCreatedEvent(); - }); + describe('(package)', function() { + describe('MenuCreatedEvent', function() { + 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]; - } + it('should create an instance of MenuCreatedEvent', function() { + // TODO: update the code to test MenuCreatedEvent + expect(instance).to.be.a(Flipdish.MenuCreatedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.MenuCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.MenuCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Menu (base name: "Menu")', function() { + // TODO: update the code to test the property Menu + expect(instance).to.have.property('Menu'); + // expect(instance.Menu).to.be(expectedValueLiteral); + }); - it('should have the property user (base name: "User")', function() { - // uncomment below and update the code to test the property user - //var instane = new Flipdish.MenuCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property menu (base name: "Menu")', function() { - // uncomment below and update the code to test the property menu - //var instane = new Flipdish.MenuCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.MenuCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.MenuCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = 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..d499286a --- /dev/null +++ b/test/model/MenuElementEditResponse.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuElementEditResponse', function() { + beforeEach(function() { + instance = new Flipdish.MenuElementEditResponse(); + }); + + it('should create an instance of MenuElementEditResponse', function() { + // TODO: update the code to test MenuElementEditResponse + expect(instance).to.be.a(Flipdish.MenuElementEditResponse); + }); + + it('should have the property MenuElementId (base name: "MenuElementId")', function() { + // TODO: update the code to test the property MenuElementId + expect(instance).to.have.property('MenuElementId'); + // expect(instance.MenuElementId).to.be(expectedValueLiteral); + }); + + it('should have the property MenuElementType (base name: "MenuElementType")', function() { + // TODO: update the code to test the property MenuElementType + expect(instance).to.have.property('MenuElementType'); + // expect(instance.MenuElementType).to.be(expectedValueLiteral); + }); + + it('should have the property ValidationCode (base name: "ValidationCode")', function() { + // TODO: update the code to test the property ValidationCode + expect(instance).to.have.property('ValidationCode'); + // expect(instance.ValidationCode).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuElementHide.spec.js b/test/model/MenuElementHide.spec.js new file mode 100644 index 00000000..7896f57b --- /dev/null +++ b/test/model/MenuElementHide.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuElementHide', function() { + beforeEach(function() { + instance = new Flipdish.MenuElementHide(); + }); + + it('should create an instance of MenuElementHide', function() { + // TODO: update the code to test MenuElementHide + expect(instance).to.be.a(Flipdish.MenuElementHide); + }); + + it('should have the property MenuElementId (base name: "MenuElementId")', function() { + // TODO: update the code to test the property MenuElementId + expect(instance).to.have.property('MenuElementId'); + // expect(instance.MenuElementId).to.be(expectedValueLiteral); + }); + + it('should have the property MenuElementType (base name: "MenuElementType")', function() { + // TODO: update the code to test the property MenuElementType + expect(instance).to.have.property('MenuElementType'); + // expect(instance.MenuElementType).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuItemOptionSet.spec.js b/test/model/MenuItemOptionSet.spec.js index c2a49399..b9ed0cb4 100644 --- a/test/model/MenuItemOptionSet.spec.js +++ b/test/model/MenuItemOptionSet.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,87 +29,78 @@ 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = new Flipdish.MenuItemOptionSet(); - //expect(instance).to.be(); - }); + describe('(package)', function() { + describe('MenuItemOptionSet', function() { + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSet(); + }); + + it('should create an instance of MenuItemOptionSet', function() { + // TODO: update the code to test MenuItemOptionSet + expect(instance).to.be.a(Flipdish.MenuItemOptionSet); + }); + + it('should have the property MenuItemOptionSetId (base name: "MenuItemOptionSetId")', function() { + // TODO: update the code to test the property MenuItemOptionSetId + expect(instance).to.have.property('MenuItemOptionSetId'); + // expect(instance.MenuItemOptionSetId).to.be(expectedValueLiteral); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // TODO: update the code to test the property ImageUrl + expect(instance).to.have.property('ImageUrl'); + // expect(instance.ImageUrl).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSetItems (base name: "MenuItemOptionSetItems")', function() { + // TODO: update the code to test the property MenuItemOptionSetItems + expect(instance).to.have.property('MenuItemOptionSetItems'); + // expect(instance.MenuItemOptionSetItems).to.be(expectedValueLiteral); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // TODO: update the code to test the property PublicId + expect(instance).to.have.property('PublicId'); + // expect(instance.PublicId).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property IsMasterOptionSet (base name: "IsMasterOptionSet")', function() { + // TODO: update the code to test the property IsMasterOptionSet + expect(instance).to.have.property('IsMasterOptionSet'); + // expect(instance.IsMasterOptionSet).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // TODO: update the code to test the property DisplayOrder + expect(instance).to.have.property('DisplayOrder'); + // expect(instance.DisplayOrder).to.be(expectedValueLiteral); + }); + + it('should have the property MinSelectCount (base name: "MinSelectCount")', function() { + // TODO: update the code to test the property MinSelectCount + expect(instance).to.have.property('MinSelectCount'); + // expect(instance.MinSelectCount).to.be(expectedValueLiteral); + }); + + it('should have the property MaxSelectCount (base name: "MaxSelectCount")', function() { + // TODO: update the code to test the property MaxSelectCount + expect(instance).to.have.property('MaxSelectCount'); + // expect(instance.MaxSelectCount).to.be(expectedValueLiteral); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // TODO: update the code to test the property CellLayoutType + expect(instance).to.have.property('CellLayoutType'); + // expect(instance.CellLayoutType).to.be(expectedValueLiteral); + }); - it('should have the property maxSelectCount (base name: "MaxSelectCount")', function() { - // uncomment below and update the code to test the property maxSelectCount - //var instane = 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 instane = new Flipdish.MenuItemOptionSet(); - //expect(instance).to.be(); - }); - }); })); diff --git a/test/model/MenuItemOptionSetBase.spec.js b/test/model/MenuItemOptionSetBase.spec.js index 491b3750..b1a409d4 100644 --- a/test/model/MenuItemOptionSetBase.spec.js +++ b/test/model/MenuItemOptionSetBase.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,69 +29,54 @@ var instance; - beforeEach(function() { - instance = new Flipdish.MenuItemOptionSetBase(); - }); + describe('(package)', function() { + describe('MenuItemOptionSetBase', function() { + 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]; - } + it('should create an instance of MenuItemOptionSetBase', function() { + // TODO: update the code to test MenuItemOptionSetBase + expect(instance).to.be.a(Flipdish.MenuItemOptionSetBase); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); - 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 IsMasterOptionSet (base name: "IsMasterOptionSet")', function() { + // TODO: update the code to test the property IsMasterOptionSet + expect(instance).to.have.property('IsMasterOptionSet'); + // expect(instance.IsMasterOptionSet).to.be(expectedValueLiteral); + }); - it('should have the property name (base name: "Name")', function() { - // uncomment below and update the code to test the property name - //var instane = new Flipdish.MenuItemOptionSetBase(); - //expect(instance).to.be(); - }); + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // TODO: update the code to test the property DisplayOrder + expect(instance).to.have.property('DisplayOrder'); + // expect(instance.DisplayOrder).to.be(expectedValueLiteral); + }); - it('should have the property isMasterOptionSet (base name: "IsMasterOptionSet")', function() { - // uncomment below and update the code to test the property isMasterOptionSet - //var instane = new Flipdish.MenuItemOptionSetBase(); - //expect(instance).to.be(); - }); + it('should have the property MinSelectCount (base name: "MinSelectCount")', function() { + // TODO: update the code to test the property MinSelectCount + expect(instance).to.have.property('MinSelectCount'); + // expect(instance.MinSelectCount).to.be(expectedValueLiteral); + }); - it('should have the property displayOrder (base name: "DisplayOrder")', function() { - // uncomment below and update the code to test the property displayOrder - //var instane = new Flipdish.MenuItemOptionSetBase(); - //expect(instance).to.be(); - }); + it('should have the property MaxSelectCount (base name: "MaxSelectCount")', function() { + // TODO: update the code to test the property MaxSelectCount + expect(instance).to.have.property('MaxSelectCount'); + // expect(instance.MaxSelectCount).to.be(expectedValueLiteral); + }); - it('should have the property minSelectCount (base name: "MinSelectCount")', function() { - // uncomment below and update the code to test the property minSelectCount - //var instane = new Flipdish.MenuItemOptionSetBase(); - //expect(instance).to.be(); - }); + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // TODO: update the code to test the property CellLayoutType + expect(instance).to.have.property('CellLayoutType'); + // expect(instance.CellLayoutType).to.be(expectedValueLiteral); + }); - it('should have the property maxSelectCount (base name: "MaxSelectCount")', function() { - // uncomment below and update the code to test the property maxSelectCount - //var instane = 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 instane = 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..cd4827ba --- /dev/null +++ b/test/model/MenuItemOptionSetCreatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuItemOptionSetCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetCreatedEvent(); + }); + + it('should create an instance of MenuItemOptionSetCreatedEvent', function() { + // TODO: update the code to test MenuItemOptionSetCreatedEvent + expect(instance).to.be.a(Flipdish.MenuItemOptionSetCreatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSet (base name: "MenuItemOptionSet")', function() { + // TODO: update the code to test the property MenuItemOptionSet + expect(instance).to.have.property('MenuItemOptionSet'); + // expect(instance.MenuItemOptionSet).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuItemOptionSetDeletedEvent.spec.js b/test/model/MenuItemOptionSetDeletedEvent.spec.js new file mode 100644 index 00000000..f86ccd9e --- /dev/null +++ b/test/model/MenuItemOptionSetDeletedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuItemOptionSetDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetDeletedEvent(); + }); + + it('should create an instance of MenuItemOptionSetDeletedEvent', function() { + // TODO: update the code to test MenuItemOptionSetDeletedEvent + expect(instance).to.be.a(Flipdish.MenuItemOptionSetDeletedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSet (base name: "MenuItemOptionSet")', function() { + // TODO: update the code to test the property MenuItemOptionSet + expect(instance).to.have.property('MenuItemOptionSet'); + // expect(instance.MenuItemOptionSet).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuItemOptionSetItem.spec.js b/test/model/MenuItemOptionSetItem.spec.js index 4368b64e..a507b04f 100644 --- a/test/model/MenuItemOptionSetItem.spec.js +++ b/test/model/MenuItemOptionSetItem.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,72 @@ var instance; - beforeEach(function() { - instance = new Flipdish.MenuItemOptionSetItem(); - }); + describe('(package)', function() { + describe('MenuItemOptionSetItem', function() { + 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]; - } + it('should create an instance of MenuItemOptionSetItem', function() { + // TODO: update the code to test MenuItemOptionSetItem + expect(instance).to.be.a(Flipdish.MenuItemOptionSetItem); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property MenuItemOptionSetItemId (base name: "MenuItemOptionSetItemId")', function() { + // TODO: update the code to test the property MenuItemOptionSetItemId + expect(instance).to.have.property('MenuItemOptionSetItemId'); + // expect(instance.MenuItemOptionSetItemId).to.be(expectedValueLiteral); + }); - 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 PublicId (base name: "PublicId")', function() { + // TODO: update the code to test the property PublicId + expect(instance).to.have.property('PublicId'); + // expect(instance.PublicId).to.be(expectedValueLiteral); + }); - it('should have the property menuItemOptionSetItemId (base name: "MenuItemOptionSetItemId")', function() { - // uncomment below and update the code to test the property menuItemOptionSetItemId - //var instane = new Flipdish.MenuItemOptionSetItem(); - //expect(instance).to.be(); - }); + it('should have the property Metadata (base name: "Metadata")', function() { + // TODO: update the code to test the property Metadata + expect(instance).to.have.property('Metadata'); + // expect(instance.Metadata).to.be(expectedValueLiteral); + }); - it('should have the property imageUrl (base name: "ImageUrl")', function() { - // uncomment below and update the code to test the property imageUrl - //var instane = new Flipdish.MenuItemOptionSetItem(); - //expect(instance).to.be(); - }); + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); - it('should have the property name (base name: "Name")', function() { - // uncomment below and update the code to test the property name - //var instane = new Flipdish.MenuItemOptionSetItem(); - //expect(instance).to.be(); - }); + it('should have the property Price (base name: "Price")', function() { + // TODO: update the code to test the property Price + expect(instance).to.have.property('Price'); + // expect(instance.Price).to.be(expectedValueLiteral); + }); - it('should have the property price (base name: "Price")', function() { - // uncomment below and update the code to test the property price - //var instane = new Flipdish.MenuItemOptionSetItem(); - //expect(instance).to.be(); - }); + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // TODO: update the code to test the property IsAvailable + expect(instance).to.have.property('IsAvailable'); + // expect(instance.IsAvailable).to.be(expectedValueLiteral); + }); - it('should have the property isAvailable (base name: "IsAvailable")', function() { - // uncomment below and update the code to test the property isAvailable - //var instane = new Flipdish.MenuItemOptionSetItem(); - //expect(instance).to.be(); - }); + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // TODO: update the code to test the property DisplayOrder + expect(instance).to.have.property('DisplayOrder'); + // expect(instance.DisplayOrder).to.be(expectedValueLiteral); + }); - it('should have the property displayOrder (base name: "DisplayOrder")', function() { - // uncomment below and update the code to test the property displayOrder - //var instane = new Flipdish.MenuItemOptionSetItem(); - //expect(instance).to.be(); - }); + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // TODO: update the code to test the property CellLayoutType + expect(instance).to.have.property('CellLayoutType'); + // expect(instance.CellLayoutType).to.be(expectedValueLiteral); + }); - it('should have the property cellLayoutType (base name: "CellLayoutType")', function() { - // uncomment below and update the code to test the property cellLayoutType - //var instane = new Flipdish.MenuItemOptionSetItem(); - //expect(instance).to.be(); - }); + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // TODO: update the code to test the property ImageUrl + expect(instance).to.have.property('ImageUrl'); + // expect(instance.ImageUrl).to.be(expectedValueLiteral); + }); + }); }); })); diff --git a/test/model/MenuItemOptionSetItemBase.spec.js b/test/model/MenuItemOptionSetItemBase.spec.js index 87249dfa..e26d5765 100644 --- a/test/model/MenuItemOptionSetItemBase.spec.js +++ b/test/model/MenuItemOptionSetItemBase.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,63 +29,54 @@ var instance; - beforeEach(function() { - instance = new Flipdish.MenuItemOptionSetItemBase(); - }); + describe('(package)', function() { + describe('MenuItemOptionSetItemBase', function() { + 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]; - } + it('should create an instance of MenuItemOptionSetItemBase', function() { + // TODO: update the code to test MenuItemOptionSetItemBase + expect(instance).to.be.a(Flipdish.MenuItemOptionSetItemBase); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); - 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 Price (base name: "Price")', function() { + // TODO: update the code to test the property Price + expect(instance).to.have.property('Price'); + // expect(instance.Price).to.be(expectedValueLiteral); + }); - it('should have the property name (base name: "Name")', function() { - // uncomment below and update the code to test the property name - //var instane = new Flipdish.MenuItemOptionSetItemBase(); - //expect(instance).to.be(); - }); + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // TODO: update the code to test the property IsAvailable + expect(instance).to.have.property('IsAvailable'); + // expect(instance.IsAvailable).to.be(expectedValueLiteral); + }); - it('should have the property price (base name: "Price")', function() { - // uncomment below and update the code to test the property price - //var instane = new Flipdish.MenuItemOptionSetItemBase(); - //expect(instance).to.be(); - }); + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // TODO: update the code to test the property DisplayOrder + expect(instance).to.have.property('DisplayOrder'); + // expect(instance.DisplayOrder).to.be(expectedValueLiteral); + }); - it('should have the property isAvailable (base name: "IsAvailable")', function() { - // uncomment below and update the code to test the property isAvailable - //var instane = new Flipdish.MenuItemOptionSetItemBase(); - //expect(instance).to.be(); - }); + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // TODO: update the code to test the property CellLayoutType + expect(instance).to.have.property('CellLayoutType'); + // expect(instance.CellLayoutType).to.be(expectedValueLiteral); + }); - it('should have the property displayOrder (base name: "DisplayOrder")', function() { - // uncomment below and update the code to test the property displayOrder - //var instane = new Flipdish.MenuItemOptionSetItemBase(); - //expect(instance).to.be(); - }); + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // TODO: update the code to test the property ImageUrl + expect(instance).to.have.property('ImageUrl'); + // expect(instance.ImageUrl).to.be(expectedValueLiteral); + }); - it('should have the property cellLayoutType (base name: "CellLayoutType")', function() { - // uncomment below and update the code to test the property cellLayoutType - //var instane = 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..cea27741 --- /dev/null +++ b/test/model/MenuItemOptionSetItemCreatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuItemOptionSetItemCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetItemCreatedEvent(); + }); + + it('should create an instance of MenuItemOptionSetItemCreatedEvent', function() { + // TODO: update the code to test MenuItemOptionSetItemCreatedEvent + expect(instance).to.be.a(Flipdish.MenuItemOptionSetItemCreatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSetItem (base name: "MenuItemOptionSetItem")', function() { + // TODO: update the code to test the property MenuItemOptionSetItem + expect(instance).to.have.property('MenuItemOptionSetItem'); + // expect(instance.MenuItemOptionSetItem).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuItemOptionSetItemDeletedEvent.spec.js b/test/model/MenuItemOptionSetItemDeletedEvent.spec.js new file mode 100644 index 00000000..6c35ce4e --- /dev/null +++ b/test/model/MenuItemOptionSetItemDeletedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuItemOptionSetItemDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetItemDeletedEvent(); + }); + + it('should create an instance of MenuItemOptionSetItemDeletedEvent', function() { + // TODO: update the code to test MenuItemOptionSetItemDeletedEvent + expect(instance).to.be.a(Flipdish.MenuItemOptionSetItemDeletedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSetItem (base name: "MenuItemOptionSetItem")', function() { + // TODO: update the code to test the property MenuItemOptionSetItem + expect(instance).to.have.property('MenuItemOptionSetItem'); + // expect(instance.MenuItemOptionSetItem).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuItemOptionSetItemUpdatedEvent.spec.js b/test/model/MenuItemOptionSetItemUpdatedEvent.spec.js new file mode 100644 index 00000000..008502f4 --- /dev/null +++ b/test/model/MenuItemOptionSetItemUpdatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuItemOptionSetItemUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetItemUpdatedEvent(); + }); + + it('should create an instance of MenuItemOptionSetItemUpdatedEvent', function() { + // TODO: update the code to test MenuItemOptionSetItemUpdatedEvent + expect(instance).to.be.a(Flipdish.MenuItemOptionSetItemUpdatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSetItem (base name: "MenuItemOptionSetItem")', function() { + // TODO: update the code to test the property MenuItemOptionSetItem + expect(instance).to.have.property('MenuItemOptionSetItem'); + // expect(instance.MenuItemOptionSetItem).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuItemOptionSetUpdatedEvent.spec.js b/test/model/MenuItemOptionSetUpdatedEvent.spec.js new file mode 100644 index 00000000..0354093c --- /dev/null +++ b/test/model/MenuItemOptionSetUpdatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuItemOptionSetUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetUpdatedEvent(); + }); + + it('should create an instance of MenuItemOptionSetUpdatedEvent', function() { + // TODO: update the code to test MenuItemOptionSetUpdatedEvent + expect(instance).to.be.a(Flipdish.MenuItemOptionSetUpdatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSet (base name: "MenuItemOptionSet")', function() { + // TODO: update the code to test the property MenuItemOptionSet + expect(instance).to.have.property('MenuItemOptionSet'); + // expect(instance.MenuItemOptionSet).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuObjectDisplayOrders.spec.js b/test/model/MenuObjectDisplayOrders.spec.js new file mode 100644 index 00000000..c5414406 --- /dev/null +++ b/test/model/MenuObjectDisplayOrders.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuObjectDisplayOrders', function() { + beforeEach(function() { + instance = new Flipdish.MenuObjectDisplayOrders(); + }); + + it('should create an instance of MenuObjectDisplayOrders', function() { + // TODO: update the code to test MenuObjectDisplayOrders + expect(instance).to.be.a(Flipdish.MenuObjectDisplayOrders); + }); + + it('should have the property DisplayOrders (base name: "DisplayOrders")', function() { + // TODO: update the code to test the property DisplayOrders + expect(instance).to.have.property('DisplayOrders'); + // expect(instance.DisplayOrders).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuSection.spec.js b/test/model/MenuSection.spec.js index 29719cf4..e9a775c4 100644 --- a/test/model/MenuSection.spec.js +++ b/test/model/MenuSection.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,87 +29,78 @@ 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = new Flipdish.MenuSection(); - //expect(instance).to.be(); - }); + describe('(package)', function() { + describe('MenuSection', function() { + beforeEach(function() { + instance = new Flipdish.MenuSection(); + }); + + it('should create an instance of MenuSection', function() { + // TODO: update the code to test MenuSection + expect(instance).to.be.a(Flipdish.MenuSection); + }); + + it('should have the property MenuSectionId (base name: "MenuSectionId")', function() { + // TODO: update the code to test the property MenuSectionId + expect(instance).to.have.property('MenuSectionId'); + // expect(instance.MenuSectionId).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItems (base name: "MenuItems")', function() { + // TODO: update the code to test the property MenuItems + expect(instance).to.have.property('MenuItems'); + // expect(instance.MenuItems).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSectionAvailability (base name: "MenuSectionAvailability")', function() { + // TODO: update the code to test the property MenuSectionAvailability + expect(instance).to.have.property('MenuSectionAvailability'); + // expect(instance.MenuSectionAvailability).to.be(expectedValueLiteral); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // TODO: update the code to test the property PublicId + expect(instance).to.have.property('PublicId'); + // expect(instance.PublicId).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // TODO: update the code to test the property DisplayOrder + expect(instance).to.have.property('DisplayOrder'); + // expect(instance.DisplayOrder).to.be(expectedValueLiteral); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // TODO: update the code to test the property IsAvailable + expect(instance).to.have.property('IsAvailable'); + // expect(instance.IsAvailable).to.be(expectedValueLiteral); + }); + + it('should have the property IsHiddenFromCustomers (base name: "IsHiddenFromCustomers")', function() { + // TODO: update the code to test the property IsHiddenFromCustomers + expect(instance).to.have.property('IsHiddenFromCustomers'); + // expect(instance.IsHiddenFromCustomers).to.be(expectedValueLiteral); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // TODO: update the code to test the property ImageUrl + expect(instance).to.have.property('ImageUrl'); + // expect(instance.ImageUrl).to.be(expectedValueLiteral); + }); - it('should have the property isAvailable (base name: "IsAvailable")', function() { - // uncomment below and update the code to test the property isAvailable - //var instane = 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 instane = new Flipdish.MenuSection(); - //expect(instance).to.be(); - }); - }); })); diff --git a/test/model/MenuSectionAvailability.spec.js b/test/model/MenuSectionAvailability.spec.js index a6c1c17c..ea67d34e 100644 --- a/test/model/MenuSectionAvailability.spec.js +++ b/test/model/MenuSectionAvailability.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,45 +29,30 @@ 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('(package)', function() { + describe('MenuSectionAvailability', function() { + beforeEach(function() { + instance = new Flipdish.MenuSectionAvailability(); + }); + + it('should create an instance of MenuSectionAvailability', function() { + // TODO: update the code to test MenuSectionAvailability + expect(instance).to.be.a(Flipdish.MenuSectionAvailability); + }); + + it('should have the property AvailableTimes (base name: "AvailableTimes")', function() { + // TODO: update the code to test the property AvailableTimes + expect(instance).to.have.property('AvailableTimes'); + // expect(instance.AvailableTimes).to.be(expectedValueLiteral); + }); + + it('should have the property AvailabilityMode (base name: "AvailabilityMode")', function() { + // TODO: update the code to test the property AvailabilityMode + expect(instance).to.have.property('AvailabilityMode'); + // expect(instance.AvailabilityMode).to.be(expectedValueLiteral); + }); - 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 instane = 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 instane = 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..6e594520 --- /dev/null +++ b/test/model/MenuSectionAvailabilityBase.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuSectionAvailabilityBase', function() { + beforeEach(function() { + instance = new Flipdish.MenuSectionAvailabilityBase(); + }); + + it('should create an instance of MenuSectionAvailabilityBase', function() { + // TODO: update the code to test MenuSectionAvailabilityBase + expect(instance).to.be.a(Flipdish.MenuSectionAvailabilityBase); + }); + + it('should have the property AvailabilityMode (base name: "AvailabilityMode")', function() { + // TODO: update the code to test the property AvailabilityMode + expect(instance).to.have.property('AvailabilityMode'); + // expect(instance.AvailabilityMode).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuSectionBase.spec.js b/test/model/MenuSectionBase.spec.js index 50705530..3c91287b 100644 --- a/test/model/MenuSectionBase.spec.js +++ b/test/model/MenuSectionBase.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,63 +29,54 @@ var instance; - beforeEach(function() { - instance = new Flipdish.MenuSectionBase(); - }); + describe('(package)', function() { + describe('MenuSectionBase', function() { + 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]; - } + it('should create an instance of MenuSectionBase', function() { + // TODO: update the code to test MenuSectionBase + expect(instance).to.be.a(Flipdish.MenuSectionBase); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); - 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 Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property name (base name: "Name")', function() { - // uncomment below and update the code to test the property name - //var instane = new Flipdish.MenuSectionBase(); - //expect(instance).to.be(); - }); + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // TODO: update the code to test the property DisplayOrder + expect(instance).to.have.property('DisplayOrder'); + // expect(instance.DisplayOrder).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.MenuSectionBase(); - //expect(instance).to.be(); - }); + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // TODO: update the code to test the property IsAvailable + expect(instance).to.have.property('IsAvailable'); + // expect(instance.IsAvailable).to.be(expectedValueLiteral); + }); - it('should have the property displayOrder (base name: "DisplayOrder")', function() { - // uncomment below and update the code to test the property displayOrder - //var instane = new Flipdish.MenuSectionBase(); - //expect(instance).to.be(); - }); + it('should have the property IsHiddenFromCustomers (base name: "IsHiddenFromCustomers")', function() { + // TODO: update the code to test the property IsHiddenFromCustomers + expect(instance).to.have.property('IsHiddenFromCustomers'); + // expect(instance.IsHiddenFromCustomers).to.be(expectedValueLiteral); + }); - it('should have the property isAvailable (base name: "IsAvailable")', function() { - // uncomment below and update the code to test the property isAvailable - //var instane = new Flipdish.MenuSectionBase(); - //expect(instance).to.be(); - }); + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // TODO: update the code to test the property ImageUrl + expect(instance).to.have.property('ImageUrl'); + // expect(instance.ImageUrl).to.be(expectedValueLiteral); + }); - it('should have the property isHiddenFromCustomers (base name: "IsHiddenFromCustomers")', function() { - // uncomment below and update the code to test the property isHiddenFromCustomers - //var instane = 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..f67eda27 --- /dev/null +++ b/test/model/MenuSectionCreatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuSectionCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.MenuSectionCreatedEvent(); + }); + + it('should create an instance of MenuSectionCreatedEvent', function() { + // TODO: update the code to test MenuSectionCreatedEvent + expect(instance).to.be.a(Flipdish.MenuSectionCreatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSection (base name: "MenuSection")', function() { + // TODO: update the code to test the property MenuSection + expect(instance).to.have.property('MenuSection'); + // expect(instance.MenuSection).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuSectionDeletedEvent.spec.js b/test/model/MenuSectionDeletedEvent.spec.js new file mode 100644 index 00000000..8db89868 --- /dev/null +++ b/test/model/MenuSectionDeletedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuSectionDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.MenuSectionDeletedEvent(); + }); + + it('should create an instance of MenuSectionDeletedEvent', function() { + // TODO: update the code to test MenuSectionDeletedEvent + expect(instance).to.be.a(Flipdish.MenuSectionDeletedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSection (base name: "MenuSection")', function() { + // TODO: update the code to test the property MenuSection + expect(instance).to.have.property('MenuSection'); + // expect(instance.MenuSection).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuSectionItem.spec.js b/test/model/MenuSectionItem.spec.js index 22ffa034..d04ba5f8 100644 --- a/test/model/MenuSectionItem.spec.js +++ b/test/model/MenuSectionItem.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,105 +29,114 @@ 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 menuItemId (base name: "MenuItemId")', function() { - // uncomment below and update the code to test the property menuItemId - //var instane = new Flipdish.MenuSectionItem(); - //expect(instance).to.be(); - }); - - it('should have the property actualPrice (base name: "ActualPrice")', function() { - // uncomment below and update the code to test the property actualPrice - //var instane = 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 instane = 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 instane = new Flipdish.MenuSectionItem(); - //expect(instance).to.be(); - }); + describe('(package)', function() { + describe('MenuSectionItem', function() { + beforeEach(function() { + instance = new Flipdish.MenuSectionItem(); + }); + + it('should create an instance of MenuSectionItem', function() { + // TODO: update the code to test MenuSectionItem + expect(instance).to.be.a(Flipdish.MenuSectionItem); + }); + + it('should have the property MenuItemId (base name: "MenuItemId")', function() { + // TODO: update the code to test the property MenuItemId + expect(instance).to.have.property('MenuItemId'); + // expect(instance.MenuItemId).to.be(expectedValueLiteral); + }); + + it('should have the property ActualPrice (base name: "ActualPrice")', function() { + // TODO: update the code to test the property ActualPrice + expect(instance).to.have.property('ActualPrice'); + // expect(instance.ActualPrice).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemOptionSets (base name: "MenuItemOptionSets")', function() { + // TODO: update the code to test the property MenuItemOptionSets + expect(instance).to.have.property('MenuItemOptionSets'); + // expect(instance.MenuItemOptionSets).to.be(expectedValueLiteral); + }); + + it('should have the property DailySpecialHours (base name: "DailySpecialHours")', function() { + // TODO: update the code to test the property DailySpecialHours + expect(instance).to.have.property('DailySpecialHours'); + // expect(instance.DailySpecialHours).to.be(expectedValueLiteral); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // TODO: update the code to test the property PublicId + expect(instance).to.have.property('PublicId'); + // expect(instance.PublicId).to.be(expectedValueLiteral); + }); + + it('should have the property Metadata (base name: "Metadata")', function() { + // TODO: update the code to test the property Metadata + expect(instance).to.have.property('Metadata'); + // expect(instance.Metadata).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property SpicinessRating (base name: "SpicinessRating")', function() { + // TODO: update the code to test the property SpicinessRating + expect(instance).to.have.property('SpicinessRating'); + // expect(instance.SpicinessRating).to.be(expectedValueLiteral); + }); + + it('should have the property Price (base name: "Price")', function() { + // TODO: update the code to test the property Price + expect(instance).to.have.property('Price'); + // expect(instance.Price).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // TODO: update the code to test the property DisplayOrder + expect(instance).to.have.property('DisplayOrder'); + // expect(instance.DisplayOrder).to.be(expectedValueLiteral); + }); + + it('should have the property Alcohol (base name: "Alcohol")', function() { + // TODO: update the code to test the property Alcohol + expect(instance).to.have.property('Alcohol'); + // expect(instance.Alcohol).to.be(expectedValueLiteral); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // TODO: update the code to test the property IsAvailable + expect(instance).to.have.property('IsAvailable'); + // expect(instance.IsAvailable).to.be(expectedValueLiteral); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // TODO: update the code to test the property CellLayoutType + expect(instance).to.have.property('CellLayoutType'); + // expect(instance.CellLayoutType).to.be(expectedValueLiteral); + }); + + it('should have the property DisableVouchers (base name: "DisableVouchers")', function() { + // TODO: update the code to test the property DisableVouchers + expect(instance).to.have.property('DisableVouchers'); + // expect(instance.DisableVouchers).to.be(expectedValueLiteral); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // TODO: update the code to test the property ImageUrl + expect(instance).to.have.property('ImageUrl'); + // expect(instance.ImageUrl).to.be(expectedValueLiteral); + }); - it('should have the property name (base name: "Name")', function() { - // uncomment below and update the code to test the property name - //var instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = new Flipdish.MenuSectionItem(); - //expect(instance).to.be(); - }); - }); })); diff --git a/test/model/MenuSectionItemBase.spec.js b/test/model/MenuSectionItemBase.spec.js index fee639fb..0d9f2f7c 100644 --- a/test/model/MenuSectionItemBase.spec.js +++ b/test/model/MenuSectionItemBase.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,81 +29,78 @@ 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 instane = 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 instane = new Flipdish.MenuSectionItemBase(); - //expect(instance).to.be(); - }); + describe('(package)', function() { + describe('MenuSectionItemBase', function() { + beforeEach(function() { + instance = new Flipdish.MenuSectionItemBase(); + }); + + it('should create an instance of MenuSectionItemBase', function() { + // TODO: update the code to test MenuSectionItemBase + expect(instance).to.be.a(Flipdish.MenuSectionItemBase); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property SpicinessRating (base name: "SpicinessRating")', function() { + // TODO: update the code to test the property SpicinessRating + expect(instance).to.have.property('SpicinessRating'); + // expect(instance.SpicinessRating).to.be(expectedValueLiteral); + }); + + it('should have the property Price (base name: "Price")', function() { + // TODO: update the code to test the property Price + expect(instance).to.have.property('Price'); + // expect(instance.Price).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // TODO: update the code to test the property DisplayOrder + expect(instance).to.have.property('DisplayOrder'); + // expect(instance.DisplayOrder).to.be(expectedValueLiteral); + }); + + it('should have the property Alcohol (base name: "Alcohol")', function() { + // TODO: update the code to test the property Alcohol + expect(instance).to.have.property('Alcohol'); + // expect(instance.Alcohol).to.be(expectedValueLiteral); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // TODO: update the code to test the property IsAvailable + expect(instance).to.have.property('IsAvailable'); + // expect(instance.IsAvailable).to.be(expectedValueLiteral); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // TODO: update the code to test the property CellLayoutType + expect(instance).to.have.property('CellLayoutType'); + // expect(instance.CellLayoutType).to.be(expectedValueLiteral); + }); + + it('should have the property DisableVouchers (base name: "DisableVouchers")', function() { + // TODO: update the code to test the property DisableVouchers + expect(instance).to.have.property('DisableVouchers'); + // expect(instance.DisableVouchers).to.be(expectedValueLiteral); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // TODO: update the code to test the property ImageUrl + expect(instance).to.have.property('ImageUrl'); + // expect(instance.ImageUrl).to.be(expectedValueLiteral); + }); - it('should have the property spicinessRating (base name: "SpicinessRating")', function() { - // uncomment below and update the code to test the property spicinessRating - //var instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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..4f8e9a64 --- /dev/null +++ b/test/model/MenuSectionItemCreatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuSectionItemCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.MenuSectionItemCreatedEvent(); + }); + + it('should create an instance of MenuSectionItemCreatedEvent', function() { + // TODO: update the code to test MenuSectionItemCreatedEvent + expect(instance).to.be.a(Flipdish.MenuSectionItemCreatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSectionItem (base name: "MenuSectionItem")', function() { + // TODO: update the code to test the property MenuSectionItem + expect(instance).to.have.property('MenuSectionItem'); + // expect(instance.MenuSectionItem).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuSectionItemDeletedEvent.spec.js b/test/model/MenuSectionItemDeletedEvent.spec.js new file mode 100644 index 00000000..95d0e770 --- /dev/null +++ b/test/model/MenuSectionItemDeletedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuSectionItemDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.MenuSectionItemDeletedEvent(); + }); + + it('should create an instance of MenuSectionItemDeletedEvent', function() { + // TODO: update the code to test MenuSectionItemDeletedEvent + expect(instance).to.be.a(Flipdish.MenuSectionItemDeletedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSectionItem (base name: "MenuSectionItem")', function() { + // TODO: update the code to test the property MenuSectionItem + expect(instance).to.have.property('MenuSectionItem'); + // expect(instance.MenuSectionItem).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuSectionItemUpdatedEvent.spec.js b/test/model/MenuSectionItemUpdatedEvent.spec.js new file mode 100644 index 00000000..176f5ee1 --- /dev/null +++ b/test/model/MenuSectionItemUpdatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuSectionItemUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.MenuSectionItemUpdatedEvent(); + }); + + it('should create an instance of MenuSectionItemUpdatedEvent', function() { + // TODO: update the code to test MenuSectionItemUpdatedEvent + expect(instance).to.be.a(Flipdish.MenuSectionItemUpdatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSectionItem (base name: "MenuSectionItem")', function() { + // TODO: update the code to test the property MenuSectionItem + expect(instance).to.have.property('MenuSectionItem'); + // expect(instance.MenuSectionItem).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuSectionUpdatedEvent.spec.js b/test/model/MenuSectionUpdatedEvent.spec.js new file mode 100644 index 00000000..540b12ba --- /dev/null +++ b/test/model/MenuSectionUpdatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuSectionUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.MenuSectionUpdatedEvent(); + }); + + it('should create an instance of MenuSectionUpdatedEvent', function() { + // TODO: update the code to test MenuSectionUpdatedEvent + expect(instance).to.be.a(Flipdish.MenuSectionUpdatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSection (base name: "MenuSection")', function() { + // TODO: update the code to test the property MenuSection + expect(instance).to.have.property('MenuSection'); + // expect(instance.MenuSection).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuStoreNames.spec.js b/test/model/MenuStoreNames.spec.js new file mode 100644 index 00000000..ab199bb1 --- /dev/null +++ b/test/model/MenuStoreNames.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuStoreNames', function() { + beforeEach(function() { + instance = new Flipdish.MenuStoreNames(); + }); + + it('should create an instance of MenuStoreNames', function() { + // TODO: update the code to test MenuStoreNames + expect(instance).to.be.a(Flipdish.MenuStoreNames); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // TODO: update the code to test the property StoreNames + expect(instance).to.have.property('StoreNames'); + // expect(instance.StoreNames).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuSummary.spec.js b/test/model/MenuSummary.spec.js new file mode 100644 index 00000000..ff4c941b --- /dev/null +++ b/test/model/MenuSummary.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuSummary', function() { + beforeEach(function() { + instance = new Flipdish.MenuSummary(); + }); + + it('should create an instance of MenuSummary', function() { + // TODO: update the code to test MenuSummary + expect(instance).to.be.a(Flipdish.MenuSummary); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property ModifiedTime (base name: "ModifiedTime")', function() { + // TODO: update the code to test the property ModifiedTime + expect(instance).to.have.property('ModifiedTime'); + // expect(instance.ModifiedTime).to.be(expectedValueLiteral); + }); + + it('should have the property VersionNumber (base name: "VersionNumber")', function() { + // TODO: update the code to test the property VersionNumber + expect(instance).to.have.property('VersionNumber'); + // expect(instance.VersionNumber).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Locked (base name: "Locked")', function() { + // TODO: update the code to test the property Locked + expect(instance).to.have.property('Locked'); + // expect(instance.Locked).to.be(expectedValueLiteral); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // TODO: update the code to test the property StoreNames + expect(instance).to.have.property('StoreNames'); + // expect(instance.StoreNames).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuTaxDetails.spec.js b/test/model/MenuTaxDetails.spec.js new file mode 100644 index 00000000..1fa1f072 --- /dev/null +++ b/test/model/MenuTaxDetails.spec.js @@ -0,0 +1,76 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuTaxDetails', function() { + beforeEach(function() { + instance = new Flipdish.MenuTaxDetails(); + }); + + it('should create an instance of MenuTaxDetails', function() { + // TODO: update the code to test MenuTaxDetails + expect(instance).to.be.a(Flipdish.MenuTaxDetails); + }); + + it('should have the property TaxRates (base name: "TaxRates")', function() { + // TODO: update the code to test the property TaxRates + expect(instance).to.have.property('TaxRates'); + // expect(instance.TaxRates).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayTax (base name: "DisplayTax")', function() { + // TODO: update the code to test the property DisplayTax + expect(instance).to.have.property('DisplayTax'); + // expect(instance.DisplayTax).to.be(expectedValueLiteral); + }); + + it('should have the property TaxType (base name: "TaxType")', function() { + // TODO: update the code to test the property TaxType + expect(instance).to.have.property('TaxType'); + // expect(instance.TaxType).to.be(expectedValueLiteral); + }); + + it('should have the property ItemTaxes (base name: "ItemTaxes")', function() { + // TODO: update the code to test the property ItemTaxes + expect(instance).to.have.property('ItemTaxes'); + // expect(instance.ItemTaxes).to.be(expectedValueLiteral); + }); + + it('should have the property SetItemTaxes (base name: "SetItemTaxes")', function() { + // TODO: update the code to test the property SetItemTaxes + expect(instance).to.have.property('SetItemTaxes'); + // expect(instance.SetItemTaxes).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuTaxRate.spec.js b/test/model/MenuTaxRate.spec.js new file mode 100644 index 00000000..dcbb0064 --- /dev/null +++ b/test/model/MenuTaxRate.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuTaxRate', function() { + beforeEach(function() { + instance = new Flipdish.MenuTaxRate(); + }); + + it('should create an instance of MenuTaxRate', function() { + // TODO: update the code to test MenuTaxRate + expect(instance).to.be.a(Flipdish.MenuTaxRate); + }); + + it('should have the property TaxRateId (base name: "TaxRateId")', function() { + // TODO: update the code to test the property TaxRateId + expect(instance).to.have.property('TaxRateId'); + // expect(instance.TaxRateId).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Rate (base name: "Rate")', function() { + // TODO: update the code to test the property Rate + expect(instance).to.have.property('Rate'); + // expect(instance.Rate).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/MenuUpdatedEvent.spec.js b/test/model/MenuUpdatedEvent.spec.js index 31b223d4..84c031d8 100644 --- a/test/model/MenuUpdatedEvent.spec.js +++ b/test/model/MenuUpdatedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,66 @@ var instance; - beforeEach(function() { - instance = new Flipdish.MenuUpdatedEvent(); - }); + describe('(package)', function() { + describe('MenuUpdatedEvent', function() { + 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]; - } + it('should create an instance of MenuUpdatedEvent', function() { + // TODO: update the code to test MenuUpdatedEvent + expect(instance).to.be.a(Flipdish.MenuUpdatedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.MenuUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.MenuUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Menu (base name: "Menu")', function() { + // TODO: update the code to test the property Menu + expect(instance).to.have.property('Menu'); + // expect(instance.Menu).to.be(expectedValueLiteral); + }); - it('should have the property user (base name: "User")', function() { - // uncomment below and update the code to test the property user - //var instane = new Flipdish.MenuUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property menu (base name: "Menu")', function() { - // uncomment below and update the code to test the property menu - //var instane = new Flipdish.MenuUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.MenuUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.MenuUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = 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..e4d7c670 --- /dev/null +++ b/test/model/MenuUploadedEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('MenuUploadedEvent', function() { + beforeEach(function() { + instance = new Flipdish.MenuUploadedEvent(); + }); + + it('should create an instance of MenuUploadedEvent', function() { + // TODO: update the code to test MenuUploadedEvent + expect(instance).to.be.a(Flipdish.MenuUploadedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Menu (base name: "Menu")', function() { + // TODO: update the code to test the property Menu + expect(instance).to.have.property('Menu'); + // expect(instance.Menu).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/Metadata.spec.js b/test/model/Metadata.spec.js index bafce1df..7e2344fb 100644 --- a/test/model/Metadata.spec.js +++ b/test/model/Metadata.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,45 +29,36 @@ var instance; - beforeEach(function() { - instance = new Flipdish.Metadata(); - }); + describe('(package)', function() { + describe('Metadata', function() { + 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]; - } + it('should create an instance of Metadata', function() { + // TODO: update the code to test Metadata + expect(instance).to.be.a(Flipdish.Metadata); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property MenuEntityId (base name: "MenuEntityId")', function() { + // TODO: update the code to test the property MenuEntityId + expect(instance).to.have.property('MenuEntityId'); + // expect(instance.MenuEntityId).to.be(expectedValueLiteral); + }); - 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 Key (base name: "Key")', function() { + // TODO: update the code to test the property Key + expect(instance).to.have.property('Key'); + // expect(instance.Key).to.be(expectedValueLiteral); + }); - it('should have the property key (base name: "Key")', function() { - // uncomment below and update the code to test the property key - //var instane = new Flipdish.Metadata(); - //expect(instance).to.be(); - }); + it('should have the property Value (base name: "Value")', function() { + // TODO: update the code to test the property Value + expect(instance).to.have.property('Value'); + // expect(instance.Value).to.be(expectedValueLiteral); + }); - it('should have the property value (base name: "Value")', function() { - // uncomment below and update the code to test the property value - //var instane = new Flipdish.Metadata(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/OAuthApp.spec.js b/test/model/OAuthApp.spec.js new file mode 100644 index 00000000..3990ef34 --- /dev/null +++ b/test/model/OAuthApp.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('OAuthApp', function() { + beforeEach(function() { + instance = new Flipdish.OAuthApp(); + }); + + it('should create an instance of OAuthApp', function() { + // TODO: update the code to test OAuthApp + expect(instance).to.be.a(Flipdish.OAuthApp); + }); + + it('should have the property OauthAppId (base name: "OauthAppId")', function() { + // TODO: update the code to test the property OauthAppId + expect(instance).to.have.property('OauthAppId'); + // expect(instance.OauthAppId).to.be(expectedValueLiteral); + }); + + it('should have the property OauthAppName (base name: "OauthAppName")', function() { + // TODO: update the code to test the property OauthAppName + expect(instance).to.have.property('OauthAppName'); + // expect(instance.OauthAppName).to.be(expectedValueLiteral); + }); + + it('should have the property OwnerUserId (base name: "OwnerUserId")', function() { + // TODO: update the code to test the property OwnerUserId + expect(instance).to.have.property('OwnerUserId'); + // expect(instance.OwnerUserId).to.be(expectedValueLiteral); + }); + + it('should have the property LogoUri (base name: "LogoUri")', function() { + // TODO: update the code to test the property LogoUri + expect(instance).to.have.property('LogoUri'); + // expect(instance.LogoUri).to.be(expectedValueLiteral); + }); + + it('should have the property Flow (base name: "Flow")', function() { + // TODO: update the code to test the property Flow + expect(instance).to.have.property('Flow'); + // expect(instance.Flow).to.be(expectedValueLiteral); + }); + + it('should have the property RefreshTokenUsage (base name: "RefreshTokenUsage")', function() { + // TODO: update the code to test the property RefreshTokenUsage + expect(instance).to.have.property('RefreshTokenUsage'); + // expect(instance.RefreshTokenUsage).to.be(expectedValueLiteral); + }); + + it('should have the property AccessTokenLifetime (base name: "AccessTokenLifetime")', function() { + // TODO: update the code to test the property AccessTokenLifetime + expect(instance).to.have.property('AccessTokenLifetime'); + // expect(instance.AccessTokenLifetime).to.be(expectedValueLiteral); + }); + + it('should have the property AbsoluteRefreshTokenLifetime (base name: "AbsoluteRefreshTokenLifetime")', function() { + // TODO: update the code to test the property AbsoluteRefreshTokenLifetime + expect(instance).to.have.property('AbsoluteRefreshTokenLifetime'); + // expect(instance.AbsoluteRefreshTokenLifetime).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/OAuthClient.spec.js b/test/model/OAuthClient.spec.js deleted file mode 100644 index bc894865..00000000 --- a/test/model/OAuthClient.spec.js +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Flipdish Open API v1.0 - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.Flipdish); - } -}(this, function(expect, Flipdish) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Flipdish.OAuthClient(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OAuthClient', function() { - it('should create an instance of OAuthClient', function() { - // uncomment below and update the code to test OAuthClient - //var instane = new Flipdish.OAuthClient(); - //expect(instance).to.be.a(Flipdish.OAuthClient); - }); - - it('should have the property clientId (base name: "ClientId")', function() { - // uncomment below and update the code to test the property clientId - //var instane = new Flipdish.OAuthClient(); - //expect(instance).to.be(); - }); - - it('should have the property clientName (base name: "ClientName")', function() { - // uncomment below and update the code to test the property clientName - //var instane = new Flipdish.OAuthClient(); - //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 instane = new Flipdish.OAuthClient(); - //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 instane = new Flipdish.OAuthClient(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OAuthTokenModel.spec.js b/test/model/OAuthTokenModel.spec.js index ebccb6e4..6db77d3f 100644 --- a/test/model/OAuthTokenModel.spec.js +++ b/test/model/OAuthTokenModel.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,63 +29,48 @@ var instance; - beforeEach(function() { - instance = new Flipdish.OAuthTokenModel(); - }); + describe('(package)', function() { + describe('OAuthTokenModel', function() { + 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]; - } + it('should create an instance of OAuthTokenModel', function() { + // TODO: update the code to test OAuthTokenModel + expect(instance).to.be.a(Flipdish.OAuthTokenModel); + }); - var setProperty = function(object, setter, property, 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() { + // TODO: update the code to test the property Key + expect(instance).to.have.property('Key'); + // expect(instance.Key).to.be(expectedValueLiteral); + }); - it('should have the property key (base name: "Key")', function() { - // uncomment below and update the code to test the property key - //var instane = new Flipdish.OAuthTokenModel(); - //expect(instance).to.be(); - }); + it('should have the property TokenType (base name: "TokenType")', function() { + // TODO: update the code to test the property TokenType + expect(instance).to.have.property('TokenType'); + // expect(instance.TokenType).to.be(expectedValueLiteral); + }); - it('should have the property tokenType (base name: "TokenType")', function() { - // uncomment below and update the code to test the property tokenType - //var instane = new Flipdish.OAuthTokenModel(); - //expect(instance).to.be(); - }); + it('should have the property SubjectId (base name: "SubjectId")', function() { + // TODO: update the code to test the property SubjectId + expect(instance).to.have.property('SubjectId'); + // expect(instance.SubjectId).to.be(expectedValueLiteral); + }); - it('should have the property subjectId (base name: "SubjectId")', function() { - // uncomment below and update the code to test the property subjectId - //var instane = new Flipdish.OAuthTokenModel(); - //expect(instance).to.be(); - }); + it('should have the property ClientId (base name: "ClientId")', function() { + // TODO: update the code to test the property ClientId + expect(instance).to.have.property('ClientId'); + // expect(instance.ClientId).to.be(expectedValueLiteral); + }); - it('should have the property clientId (base name: "ClientId")', function() { - // uncomment below and update the code to test the property clientId - //var instane = new Flipdish.OAuthTokenModel(); - //expect(instance).to.be(); - }); + it('should have the property Expiry (base name: "Expiry")', function() { + // TODO: update the code to test the property Expiry + expect(instance).to.have.property('Expiry'); + // expect(instance.Expiry).to.be(expectedValueLiteral); + }); - it('should have the property expiry (base name: "Expiry")', function() { - // uncomment below and update the code to test the property expiry - //var instane = new Flipdish.OAuthTokenModel(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/OauthClientRedirectUri.spec.js b/test/model/OauthClientRedirectUri.spec.js index 7595da57..420a71c9 100644 --- a/test/model/OauthClientRedirectUri.spec.js +++ b/test/model/OauthClientRedirectUri.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,45 +29,30 @@ 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('(package)', function() { + describe('OauthClientRedirectUri', function() { + beforeEach(function() { + instance = new Flipdish.OauthClientRedirectUri(); + }); + + it('should create an instance of OauthClientRedirectUri', function() { + // TODO: update the code to test OauthClientRedirectUri + expect(instance).to.be.a(Flipdish.OauthClientRedirectUri); + }); + + it('should have the property Id (base name: "Id")', function() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); + + it('should have the property Uri (base name: "Uri")', function() { + // TODO: update the code to test the property Uri + expect(instance).to.have.property('Uri'); + // expect(instance.Uri).to.be(expectedValueLiteral); + }); - 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 instane = 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 instane = 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..422b7d74 --- /dev/null +++ b/test/model/ObjectDisplayOrder.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('ObjectDisplayOrder', function() { + beforeEach(function() { + instance = new Flipdish.ObjectDisplayOrder(); + }); + + it('should create an instance of ObjectDisplayOrder', function() { + // TODO: update the code to test ObjectDisplayOrder + expect(instance).to.be.a(Flipdish.ObjectDisplayOrder); + }); + + it('should have the property Id (base name: "Id")', function() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // TODO: update the code to test the property DisplayOrder + expect(instance).to.have.property('DisplayOrder'); + // expect(instance.DisplayOrder).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/Order.spec.js b/test/model/Order.spec.js index fef01a39..bc4d3352 100644 --- a/test/model/Order.spec.js +++ b/test/model/Order.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,177 +29,258 @@ 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = new Flipdish.Order(); - //expect(instance).to.be(); - }); + describe('(package)', function() { + describe('Order', function() { + beforeEach(function() { + instance = new Flipdish.Order(); + }); + + it('should create an instance of Order', function() { + // TODO: update the code to test Order + expect(instance).to.be.a(Flipdish.Order); + }); + + it('should have the property Store (base name: "Store")', function() { + // TODO: update the code to test the property Store + expect(instance).to.have.property('Store'); + // expect(instance.Store).to.be(expectedValueLiteral); + }); + + it('should have the property Customer (base name: "Customer")', function() { + // TODO: update the code to test the property Customer + expect(instance).to.have.property('Customer'); + // expect(instance.Customer).to.be(expectedValueLiteral); + }); + + it('should have the property Voucher (base name: "Voucher")', function() { + // TODO: update the code to test the property Voucher + expect(instance).to.have.property('Voucher'); + // expect(instance.Voucher).to.be(expectedValueLiteral); + }); + + it('should have the property Fees (base name: "Fees")', function() { + // TODO: update the code to test the property Fees + expect(instance).to.have.property('Fees'); + // expect(instance.Fees).to.be(expectedValueLiteral); + }); + + it('should have the property OrderItems (base name: "OrderItems")', function() { + // TODO: update the code to test the property OrderItems + expect(instance).to.have.property('OrderItems'); + // expect(instance.OrderItems).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryLocation (base name: "DeliveryLocation")', function() { + // TODO: update the code to test the property DeliveryLocation + expect(instance).to.have.property('DeliveryLocation'); + // expect(instance.DeliveryLocation).to.be(expectedValueLiteral); + }); + + it('should have the property CustomerLocation (base name: "CustomerLocation")', function() { + // TODO: update the code to test the property CustomerLocation + expect(instance).to.have.property('CustomerLocation'); + // expect(instance.CustomerLocation).to.be(expectedValueLiteral); + }); + + it('should have the property MaskedPhoneNumber (base name: "MaskedPhoneNumber")', function() { + // TODO: update the code to test the property MaskedPhoneNumber + expect(instance).to.have.property('MaskedPhoneNumber'); + // expect(instance.MaskedPhoneNumber).to.be(expectedValueLiteral); + }); + + it('should have the property DropOffLocationId (base name: "DropOffLocationId")', function() { + // TODO: update the code to test the property DropOffLocationId + expect(instance).to.have.property('DropOffLocationId'); + // expect(instance.DropOffLocationId).to.be(expectedValueLiteral); + }); + + it('should have the property DropOffLocation (base name: "DropOffLocation")', function() { + // TODO: update the code to test the property DropOffLocation + expect(instance).to.have.property('DropOffLocation'); + // expect(instance.DropOffLocation).to.be(expectedValueLiteral); + }); + + it('should have the property AcceptedFor (base name: "AcceptedFor")', function() { + // TODO: update the code to test the property AcceptedFor + expect(instance).to.have.property('AcceptedFor'); + // expect(instance.AcceptedFor).to.be(expectedValueLiteral); + }); + + it('should have the property InFraudZone (base name: "InFraudZone")', function() { + // TODO: update the code to test the property InFraudZone + expect(instance).to.have.property('InFraudZone'); + // expect(instance.InFraudZone).to.be(expectedValueLiteral); + }); + + it('should have the property UnusualHighValueOrder (base name: "UnusualHighValueOrder")', function() { + // TODO: update the code to test the property UnusualHighValueOrder + expect(instance).to.have.property('UnusualHighValueOrder'); + // expect(instance.UnusualHighValueOrder).to.be(expectedValueLiteral); + }); + + it('should have the property RejectedByUserId (base name: "RejectedByUserId")', function() { + // TODO: update the code to test the property RejectedByUserId + expect(instance).to.have.property('RejectedByUserId'); + // expect(instance.RejectedByUserId).to.be(expectedValueLiteral); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // TODO: update the code to test the property OrderId + expect(instance).to.have.property('OrderId'); + // expect(instance.OrderId).to.be(expectedValueLiteral); + }); + + it('should have the property LocalOrderId (base name: "LocalOrderId")', function() { + // TODO: update the code to test the property LocalOrderId + expect(instance).to.have.property('LocalOrderId'); + // expect(instance.LocalOrderId).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryType (base name: "DeliveryType")', function() { + // TODO: update the code to test the property DeliveryType + expect(instance).to.have.property('DeliveryType'); + // expect(instance.DeliveryType).to.be(expectedValueLiteral); + }); + + it('should have the property PickupLocationType (base name: "PickupLocationType")', function() { + // TODO: update the code to test the property PickupLocationType + expect(instance).to.have.property('PickupLocationType'); + // expect(instance.PickupLocationType).to.be(expectedValueLiteral); + }); + + it('should have the property TableServiceCatagory (base name: "TableServiceCatagory")', function() { + // TODO: update the code to test the property TableServiceCatagory + expect(instance).to.have.property('TableServiceCatagory'); + // expect(instance.TableServiceCatagory).to.be(expectedValueLiteral); + }); + + it('should have the property TipAmount (base name: "TipAmount")', function() { + // TODO: update the code to test the property TipAmount + expect(instance).to.have.property('TipAmount'); + // expect(instance.TipAmount).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryAmount (base name: "DeliveryAmount")', function() { + // TODO: update the code to test the property DeliveryAmount + expect(instance).to.have.property('DeliveryAmount'); + // expect(instance.DeliveryAmount).to.be(expectedValueLiteral); + }); + + it('should have the property OrderItemsAmount (base name: "OrderItemsAmount")', function() { + // TODO: update the code to test the property OrderItemsAmount + expect(instance).to.have.property('OrderItemsAmount'); + // expect(instance.OrderItemsAmount).to.be(expectedValueLiteral); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // TODO: update the code to test the property Amount + expect(instance).to.have.property('Amount'); + // expect(instance.Amount).to.be(expectedValueLiteral); + }); + + it('should have the property ProcessingFee (base name: "ProcessingFee")', function() { + // TODO: update the code to test the property ProcessingFee + expect(instance).to.have.property('ProcessingFee'); + // expect(instance.ProcessingFee).to.be(expectedValueLiteral); + }); + + it('should have the property PaymentAccountType (base name: "PaymentAccountType")', function() { + // TODO: update the code to test the property PaymentAccountType + expect(instance).to.have.property('PaymentAccountType'); + // expect(instance.PaymentAccountType).to.be(expectedValueLiteral); + }); + + it('should have the property PaymentAccountDescription (base name: "PaymentAccountDescription")', function() { + // TODO: update the code to test the property PaymentAccountDescription + expect(instance).to.have.property('PaymentAccountDescription'); + // expect(instance.PaymentAccountDescription).to.be(expectedValueLiteral); + }); + + it('should have the property OrderState (base name: "OrderState")', function() { + // TODO: update the code to test the property OrderState + expect(instance).to.have.property('OrderState'); + // expect(instance.OrderState).to.be(expectedValueLiteral); + }); + + it('should have the property IsPreOrder (base name: "IsPreOrder")', function() { + // TODO: update the code to test the property IsPreOrder + expect(instance).to.have.property('IsPreOrder'); + // expect(instance.IsPreOrder).to.be(expectedValueLiteral); + }); + + it('should have the property PlacedTime (base name: "PlacedTime")', function() { + // TODO: update the code to test the property PlacedTime + expect(instance).to.have.property('PlacedTime'); + // expect(instance.PlacedTime).to.be(expectedValueLiteral); + }); + + it('should have the property RequestedForTime (base name: "RequestedForTime")', function() { + // TODO: update the code to test the property RequestedForTime + expect(instance).to.have.property('RequestedForTime'); + // expect(instance.RequestedForTime).to.be(expectedValueLiteral); + }); + + it('should have the property ChefNote (base name: "ChefNote")', function() { + // TODO: update the code to test the property ChefNote + expect(instance).to.have.property('ChefNote'); + // expect(instance.ChefNote).to.be(expectedValueLiteral); + }); + + it('should have the property AppType (base name: "AppType")', function() { + // TODO: update the code to test the property AppType + expect(instance).to.have.property('AppType'); + // expect(instance.AppType).to.be(expectedValueLiteral); + }); + + it('should have the property UserRating (base name: "UserRating")', function() { + // TODO: update the code to test the property UserRating + expect(instance).to.have.property('UserRating'); + // expect(instance.UserRating).to.be(expectedValueLiteral); + }); + + it('should have the property PaymentStatus (base name: "PaymentStatus")', function() { + // TODO: update the code to test the property PaymentStatus + expect(instance).to.have.property('PaymentStatus'); + // expect(instance.PaymentStatus).to.be(expectedValueLiteral); + }); + + it('should have the property RejectionReason (base name: "RejectionReason")', function() { + // TODO: update the code to test the property RejectionReason + expect(instance).to.have.property('RejectionReason'); + // expect(instance.RejectionReason).to.be(expectedValueLiteral); + }); + + it('should have the property RefundedAmount (base name: "RefundedAmount")', function() { + // TODO: update the code to test the property RefundedAmount + expect(instance).to.have.property('RefundedAmount'); + // expect(instance.RefundedAmount).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryTrackingStatus (base name: "DeliveryTrackingStatus")', function() { + // TODO: update the code to test the property DeliveryTrackingStatus + expect(instance).to.have.property('DeliveryTrackingStatus'); + // expect(instance.DeliveryTrackingStatus).to.be(expectedValueLiteral); + }); + + it('should have the property DriverId (base name: "DriverId")', function() { + // TODO: update the code to test the property DriverId + expect(instance).to.have.property('DriverId'); + // expect(instance.DriverId).to.be(expectedValueLiteral); + }); + + it('should have the property TotalTax (base name: "TotalTax")', function() { + // TODO: update the code to test the property TotalTax + expect(instance).to.have.property('TotalTax'); + // expect(instance.TotalTax).to.be(expectedValueLiteral); + }); + + it('should have the property OrderTrackingCode (base name: "OrderTrackingCode")', function() { + // TODO: update the code to test the property OrderTrackingCode + expect(instance).to.have.property('OrderTrackingCode'); + // expect(instance.OrderTrackingCode).to.be(expectedValueLiteral); + }); - it('should have the property tipAmount (base name: "TipAmount")', function() { - // uncomment below and update the code to test the property tipAmount - //var instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = new Flipdish.Order(); - //expect(instance).to.be(); - }); - }); })); diff --git a/test/model/OrderAcceptedEvent.spec.js b/test/model/OrderAcceptedEvent.spec.js index e2a73e70..e2be0e93 100644 --- a/test/model/OrderAcceptedEvent.spec.js +++ b/test/model/OrderAcceptedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,66 @@ var instance; - beforeEach(function() { - instance = new Flipdish.OrderAcceptedEvent(); - }); + describe('(package)', function() { + describe('OrderAcceptedEvent', function() { + 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]; - } + it('should create an instance of OrderAcceptedEvent', function() { + // TODO: update the code to test OrderAcceptedEvent + expect(instance).to.be.a(Flipdish.OrderAcceptedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.OrderAcceptedEvent(); - //expect(instance).to.be(); - }); + it('should have the property OrderAcceptedTime (base name: "OrderAcceptedTime")', function() { + // TODO: update the code to test the property OrderAcceptedTime + expect(instance).to.have.property('OrderAcceptedTime'); + // expect(instance.OrderAcceptedTime).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.OrderAcceptedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Order (base name: "Order")', function() { + // TODO: update the code to test the property Order + expect(instance).to.have.property('Order'); + // expect(instance.Order).to.be(expectedValueLiteral); + }); - it('should have the property orderAcceptedTime (base name: "OrderAcceptedTime")', function() { - // uncomment below and update the code to test the property orderAcceptedTime - //var instane = new Flipdish.OrderAcceptedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property order (base name: "Order")', function() { - // uncomment below and update the code to test the property order - //var instane = new Flipdish.OrderAcceptedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.OrderAcceptedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.OrderAcceptedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = new Flipdish.OrderAcceptedEvent(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/OrderCapacityConfigUpdatedEvent.spec.js b/test/model/OrderCapacityConfigUpdatedEvent.spec.js new file mode 100644 index 00000000..e7fe195b --- /dev/null +++ b/test/model/OrderCapacityConfigUpdatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('OrderCapacityConfigUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.OrderCapacityConfigUpdatedEvent(); + }); + + it('should create an instance of OrderCapacityConfigUpdatedEvent', function() { + // TODO: update the code to test OrderCapacityConfigUpdatedEvent + expect(instance).to.be.a(Flipdish.OrderCapacityConfigUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property OrderCapacityConfig (base name: "OrderCapacityConfig")', function() { + // TODO: update the code to test the property OrderCapacityConfig + expect(instance).to.have.property('OrderCapacityConfig'); + // expect(instance.OrderCapacityConfig).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/OrderCreatedEvent.spec.js b/test/model/OrderCreatedEvent.spec.js index 9fe1478e..21ae913b 100644 --- a/test/model/OrderCreatedEvent.spec.js +++ b/test/model/OrderCreatedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,66 @@ var instance; - beforeEach(function() { - instance = new Flipdish.OrderCreatedEvent(); - }); + describe('(package)', function() { + describe('OrderCreatedEvent', function() { + 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]; - } + it('should create an instance of OrderCreatedEvent', function() { + // TODO: update the code to test OrderCreatedEvent + expect(instance).to.be.a(Flipdish.OrderCreatedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.OrderCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property OrderCreatedTime (base name: "OrderCreatedTime")', function() { + // TODO: update the code to test the property OrderCreatedTime + expect(instance).to.have.property('OrderCreatedTime'); + // expect(instance.OrderCreatedTime).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.OrderCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Order (base name: "Order")', function() { + // TODO: update the code to test the property Order + expect(instance).to.have.property('Order'); + // expect(instance.Order).to.be(expectedValueLiteral); + }); - it('should have the property orderCreatedTime (base name: "OrderCreatedTime")', function() { - // uncomment below and update the code to test the property orderCreatedTime - //var instane = new Flipdish.OrderCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property order (base name: "Order")', function() { - // uncomment below and update the code to test the property order - //var instane = new Flipdish.OrderCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.OrderCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.OrderCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = 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..56187780 --- /dev/null +++ b/test/model/OrderCustomerTrackingCreatedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('OrderCustomerTrackingCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.OrderCustomerTrackingCreatedEvent(); + }); + + it('should create an instance of OrderCustomerTrackingCreatedEvent', function() { + // TODO: update the code to test OrderCustomerTrackingCreatedEvent + expect(instance).to.be.a(Flipdish.OrderCustomerTrackingCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property Order (base name: "Order")', function() { + // TODO: update the code to test the property Order + expect(instance).to.have.property('Order'); + // expect(instance.Order).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/OrderDeliveryTrackingStatusUpdatedEvent.spec.js b/test/model/OrderDeliveryTrackingStatusUpdatedEvent.spec.js new file mode 100644 index 00000000..af1d3b92 --- /dev/null +++ b/test/model/OrderDeliveryTrackingStatusUpdatedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('OrderDeliveryTrackingStatusUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.OrderDeliveryTrackingStatusUpdatedEvent(); + }); + + it('should create an instance of OrderDeliveryTrackingStatusUpdatedEvent', function() { + // TODO: update the code to test OrderDeliveryTrackingStatusUpdatedEvent + expect(instance).to.be.a(Flipdish.OrderDeliveryTrackingStatusUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property Order (base name: "Order")', function() { + // TODO: update the code to test the property Order + expect(instance).to.have.property('Order'); + // expect(instance.Order).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/OrderDispatchedEvent.spec.js b/test/model/OrderDispatchedEvent.spec.js new file mode 100644 index 00000000..c2668219 --- /dev/null +++ b/test/model/OrderDispatchedEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('OrderDispatchedEvent', function() { + beforeEach(function() { + instance = new Flipdish.OrderDispatchedEvent(); + }); + + it('should create an instance of OrderDispatchedEvent', function() { + // TODO: update the code to test OrderDispatchedEvent + expect(instance).to.be.a(Flipdish.OrderDispatchedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property OrderDispatchedTime (base name: "OrderDispatchedTime")', function() { + // TODO: update the code to test the property OrderDispatchedTime + expect(instance).to.have.property('OrderDispatchedTime'); + // expect(instance.OrderDispatchedTime).to.be(expectedValueLiteral); + }); + + it('should have the property Order (base name: "Order")', function() { + // TODO: update the code to test the property Order + expect(instance).to.have.property('Order'); + // expect(instance.Order).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/OrderIdAndSequenceNumber.spec.js b/test/model/OrderIdAndSequenceNumber.spec.js new file mode 100644 index 00000000..45810be0 --- /dev/null +++ b/test/model/OrderIdAndSequenceNumber.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('OrderIdAndSequenceNumber', function() { + beforeEach(function() { + instance = new Flipdish.OrderIdAndSequenceNumber(); + }); + + it('should create an instance of OrderIdAndSequenceNumber', function() { + // TODO: update the code to test OrderIdAndSequenceNumber + expect(instance).to.be.a(Flipdish.OrderIdAndSequenceNumber); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // TODO: update the code to test the property OrderId + expect(instance).to.have.property('OrderId'); + // expect(instance.OrderId).to.be(expectedValueLiteral); + }); + + it('should have the property Sequence (base name: "Sequence")', function() { + // TODO: update the code to test the property Sequence + expect(instance).to.have.property('Sequence'); + // expect(instance.Sequence).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/OrderItem.spec.js b/test/model/OrderItem.spec.js index 4a1eec54..24864839 100644 --- a/test/model/OrderItem.spec.js +++ b/test/model/OrderItem.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,99 +29,90 @@ 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = new Flipdish.OrderItem(); - //expect(instance).to.be(); - }); + describe('(package)', function() { + describe('OrderItem', function() { + beforeEach(function() { + instance = new Flipdish.OrderItem(); + }); + + it('should create an instance of OrderItem', function() { + // TODO: update the code to test OrderItem + expect(instance).to.be.a(Flipdish.OrderItem); + }); + + it('should have the property OrderItemOptions (base name: "OrderItemOptions")', function() { + // TODO: update the code to test the property OrderItemOptions + expect(instance).to.have.property('OrderItemOptions'); + // expect(instance.OrderItemOptions).to.be(expectedValueLiteral); + }); + + it('should have the property Metadata (base name: "Metadata")', function() { + // TODO: update the code to test the property Metadata + expect(instance).to.have.property('Metadata'); + // expect(instance.Metadata).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemPublicId (base name: "MenuItemPublicId")', function() { + // TODO: update the code to test the property MenuItemPublicId + expect(instance).to.have.property('MenuItemPublicId'); + // expect(instance.MenuItemPublicId).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSectionName (base name: "MenuSectionName")', function() { + // TODO: update the code to test the property MenuSectionName + expect(instance).to.have.property('MenuSectionName'); + // expect(instance.MenuSectionName).to.be(expectedValueLiteral); + }); + + it('should have the property MenuSectionDisplayOrder (base name: "MenuSectionDisplayOrder")', function() { + // TODO: update the code to test the property MenuSectionDisplayOrder + expect(instance).to.have.property('MenuSectionDisplayOrder'); + // expect(instance.MenuSectionDisplayOrder).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property Price (base name: "Price")', function() { + // TODO: update the code to test the property Price + expect(instance).to.have.property('Price'); + // expect(instance.Price).to.be(expectedValueLiteral); + }); + + it('should have the property PriceIncludingOptionSetItems (base name: "PriceIncludingOptionSetItems")', function() { + // TODO: update the code to test the property PriceIncludingOptionSetItems + expect(instance).to.have.property('PriceIncludingOptionSetItems'); + // expect(instance.PriceIncludingOptionSetItems).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemId (base name: "MenuItemId")', function() { + // TODO: update the code to test the property MenuItemId + expect(instance).to.have.property('MenuItemId'); + // expect(instance.MenuItemId).to.be(expectedValueLiteral); + }); + + it('should have the property MenuItemDisplayOrder (base name: "MenuItemDisplayOrder")', function() { + // TODO: update the code to test the property MenuItemDisplayOrder + expect(instance).to.have.property('MenuItemDisplayOrder'); + // expect(instance.MenuItemDisplayOrder).to.be(expectedValueLiteral); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // TODO: update the code to test the property IsAvailable + expect(instance).to.have.property('IsAvailable'); + // expect(instance.IsAvailable).to.be(expectedValueLiteral); + }); - it('should have the property priceIncludingOptionSetItems (base name: "PriceIncludingOptionSetItems")', function() { - // uncomment below and update the code to test the property priceIncludingOptionSetItems - //var instane = 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 instane = 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 instane = 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 instane = new Flipdish.OrderItem(); - //expect(instance).to.be(); - }); - }); })); diff --git a/test/model/OrderItemOption.spec.js b/test/model/OrderItemOption.spec.js index 442d46bb..a3475232 100644 --- a/test/model/OrderItemOption.spec.js +++ b/test/model/OrderItemOption.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,66 @@ var instance; - beforeEach(function() { - instance = new Flipdish.OrderItemOption(); - }); + describe('(package)', function() { + describe('OrderItemOption', function() { + 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]; - } + it('should create an instance of OrderItemOption', function() { + // TODO: update the code to test OrderItemOption + expect(instance).to.be.a(Flipdish.OrderItemOption); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property Metadata (base name: "Metadata")', function() { + // TODO: update the code to test the property Metadata + expect(instance).to.have.property('Metadata'); + // expect(instance.Metadata).to.be(expectedValueLiteral); + }); - 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 MenuItemOptionPublicId (base name: "MenuItemOptionPublicId")', function() { + // TODO: update the code to test the property MenuItemOptionPublicId + expect(instance).to.have.property('MenuItemOptionPublicId'); + // expect(instance.MenuItemOptionPublicId).to.be(expectedValueLiteral); + }); - it('should have the property metadata (base name: "Metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new Flipdish.OrderItemOption(); - //expect(instance).to.be(); - }); + it('should have the property MenuItemOptionId (base name: "MenuItemOptionId")', function() { + // TODO: update the code to test the property MenuItemOptionId + expect(instance).to.have.property('MenuItemOptionId'); + // expect(instance.MenuItemOptionId).to.be(expectedValueLiteral); + }); - it('should have the property menuItemOptionId (base name: "MenuItemOptionId")', function() { - // uncomment below and update the code to test the property menuItemOptionId - //var instane = new Flipdish.OrderItemOption(); - //expect(instance).to.be(); - }); + it('should have the property IsMasterOptionSetItem (base name: "IsMasterOptionSetItem")', function() { + // TODO: update the code to test the property IsMasterOptionSetItem + expect(instance).to.have.property('IsMasterOptionSetItem'); + // expect(instance.IsMasterOptionSetItem).to.be(expectedValueLiteral); + }); - it('should have the property isMasterOptionSetItem (base name: "IsMasterOptionSetItem")', function() { - // uncomment below and update the code to test the property isMasterOptionSetItem - //var instane = new Flipdish.OrderItemOption(); - //expect(instance).to.be(); - }); + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); - it('should have the property name (base name: "Name")', function() { - // uncomment below and update the code to test the property name - //var instane = new Flipdish.OrderItemOption(); - //expect(instance).to.be(); - }); + it('should have the property Price (base name: "Price")', function() { + // TODO: update the code to test the property Price + expect(instance).to.have.property('Price'); + // expect(instance.Price).to.be(expectedValueLiteral); + }); - it('should have the property price (base name: "Price")', function() { - // uncomment below and update the code to test the property price - //var instane = new Flipdish.OrderItemOption(); - //expect(instance).to.be(); - }); + it('should have the property MenuItemOptionDisplayOrder (base name: "MenuItemOptionDisplayOrder")', function() { + // TODO: update the code to test the property MenuItemOptionDisplayOrder + expect(instance).to.have.property('MenuItemOptionDisplayOrder'); + // expect(instance.MenuItemOptionDisplayOrder).to.be(expectedValueLiteral); + }); - it('should have the property menuItemOptionDisplayOrder (base name: "MenuItemOptionDisplayOrder")', function() { - // uncomment below and update the code to test the property menuItemOptionDisplayOrder - //var instane = new Flipdish.OrderItemOption(); - //expect(instance).to.be(); - }); + it('should have the property MenuItemOptionSetDisplayOrder (base name: "MenuItemOptionSetDisplayOrder")', function() { + // TODO: update the code to test the property MenuItemOptionSetDisplayOrder + expect(instance).to.have.property('MenuItemOptionSetDisplayOrder'); + // expect(instance.MenuItemOptionSetDisplayOrder).to.be(expectedValueLiteral); + }); - it('should have the property menuItemOptionSetDisplayOrder (base name: "MenuItemOptionSetDisplayOrder")', function() { - // uncomment below and update the code to test the property menuItemOptionSetDisplayOrder - //var instane = new Flipdish.OrderItemOption(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/OrderPaymentInformation.spec.js b/test/model/OrderPaymentInformation.spec.js new file mode 100644 index 00000000..107067b1 --- /dev/null +++ b/test/model/OrderPaymentInformation.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('OrderPaymentInformation', function() { + beforeEach(function() { + instance = new Flipdish.OrderPaymentInformation(); + }); + + it('should create an instance of OrderPaymentInformation', function() { + // TODO: update the code to test OrderPaymentInformation + expect(instance).to.be.a(Flipdish.OrderPaymentInformation); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // TODO: update the code to test the property OrderId + expect(instance).to.have.property('OrderId'); + // expect(instance.OrderId).to.be(expectedValueLiteral); + }); + + it('should have the property PaymentRefundable (base name: "PaymentRefundable")', function() { + // TODO: update the code to test the property PaymentRefundable + expect(instance).to.have.property('PaymentRefundable'); + // expect(instance.PaymentRefundable).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/OrderRatingUpdatedEvent.spec.js b/test/model/OrderRatingUpdatedEvent.spec.js index 79de1d1f..65890d76 100644 --- a/test/model/OrderRatingUpdatedEvent.spec.js +++ b/test/model/OrderRatingUpdatedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,66 @@ var instance; - beforeEach(function() { - instance = new Flipdish.OrderRatingUpdatedEvent(); - }); + describe('(package)', function() { + describe('OrderRatingUpdatedEvent', function() { + 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]; - } + it('should create an instance of OrderRatingUpdatedEvent', function() { + // TODO: update the code to test OrderRatingUpdatedEvent + expect(instance).to.be.a(Flipdish.OrderRatingUpdatedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 Rating (base name: "Rating")', function() { + // TODO: update the code to test the property Rating + expect(instance).to.have.property('Rating'); + // expect(instance.Rating).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.OrderRatingUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property rating (base name: "Rating")', function() { - // uncomment below and update the code to test the property rating - //var instane = new Flipdish.OrderRatingUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Order (base name: "Order")', function() { + // TODO: update the code to test the property Order + expect(instance).to.have.property('Order'); + // expect(instance.Order).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.OrderRatingUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property order (base name: "Order")', function() { - // uncomment below and update the code to test the property order - //var instane = new Flipdish.OrderRatingUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.OrderRatingUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.OrderRatingUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = new Flipdish.OrderRatingUpdatedEvent(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/OrderRefundedEvent.spec.js b/test/model/OrderRefundedEvent.spec.js index a4b9c2e9..84f8e4dd 100644 --- a/test/model/OrderRefundedEvent.spec.js +++ b/test/model/OrderRefundedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,66 @@ var instance; - beforeEach(function() { - instance = new Flipdish.OrderRefundedEvent(); - }); + describe('(package)', function() { + describe('OrderRefundedEvent', function() { + 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]; - } + it('should create an instance of OrderRefundedEvent', function() { + // TODO: update the code to test OrderRefundedEvent + expect(instance).to.be.a(Flipdish.OrderRefundedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 RefundedAmount (base name: "RefundedAmount")', function() { + // TODO: update the code to test the property RefundedAmount + expect(instance).to.have.property('RefundedAmount'); + // expect(instance.RefundedAmount).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.OrderRefundedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property refundedAmount (base name: "RefundedAmount")', function() { - // uncomment below and update the code to test the property refundedAmount - //var instane = new Flipdish.OrderRefundedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Order (base name: "Order")', function() { + // TODO: update the code to test the property Order + expect(instance).to.have.property('Order'); + // expect(instance.Order).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.OrderRefundedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property order (base name: "Order")', function() { - // uncomment below and update the code to test the property order - //var instane = new Flipdish.OrderRefundedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.OrderRefundedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.OrderRefundedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = new Flipdish.OrderRefundedEvent(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/OrderRejectedEvent.spec.js b/test/model/OrderRejectedEvent.spec.js index 6185fe5a..b9d229fc 100644 --- a/test/model/OrderRejectedEvent.spec.js +++ b/test/model/OrderRejectedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,72 @@ var instance; - beforeEach(function() { - instance = new Flipdish.OrderRejectedEvent(); - }); + describe('(package)', function() { + describe('OrderRejectedEvent', function() { + 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]; - } + it('should create an instance of OrderRejectedEvent', function() { + // TODO: update the code to test OrderRejectedEvent + expect(instance).to.be.a(Flipdish.OrderRejectedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.OrderRejectedEvent(); - //expect(instance).to.be(); - }); + it('should have the property OrderRejectedTime (base name: "OrderRejectedTime")', function() { + // TODO: update the code to test the property OrderRejectedTime + expect(instance).to.have.property('OrderRejectedTime'); + // expect(instance.OrderRejectedTime).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.OrderRejectedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Reason (base name: "Reason")', function() { + // TODO: update the code to test the property Reason + expect(instance).to.have.property('Reason'); + // expect(instance.Reason).to.be(expectedValueLiteral); + }); - it('should have the property orderRejectedTime (base name: "OrderRejectedTime")', function() { - // uncomment below and update the code to test the property orderRejectedTime - //var instane = new Flipdish.OrderRejectedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Order (base name: "Order")', function() { + // TODO: update the code to test the property Order + expect(instance).to.have.property('Order'); + // expect(instance.Order).to.be(expectedValueLiteral); + }); - it('should have the property order (base name: "Order")', function() { - // uncomment below and update the code to test the property order - //var instane = new Flipdish.OrderRejectedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.OrderRejectedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.OrderRejectedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = new Flipdish.OrderRejectedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + }); }); })); diff --git a/test/model/OrderSummary.spec.js b/test/model/OrderSummary.spec.js new file mode 100644 index 00000000..2b0f3f4a --- /dev/null +++ b/test/model/OrderSummary.spec.js @@ -0,0 +1,178 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('OrderSummary', function() { + beforeEach(function() { + instance = new Flipdish.OrderSummary(); + }); + + it('should create an instance of OrderSummary', function() { + // TODO: update the code to test OrderSummary + expect(instance).to.be.a(Flipdish.OrderSummary); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // TODO: update the code to test the property OrderId + expect(instance).to.have.property('OrderId'); + // expect(instance.OrderId).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryType (base name: "DeliveryType")', function() { + // TODO: update the code to test the property DeliveryType + expect(instance).to.have.property('DeliveryType'); + // expect(instance.DeliveryType).to.be(expectedValueLiteral); + }); + + it('should have the property PickupLocationType (base name: "PickupLocationType")', function() { + // TODO: update the code to test the property PickupLocationType + expect(instance).to.have.property('PickupLocationType'); + // expect(instance.PickupLocationType).to.be(expectedValueLiteral); + }); + + it('should have the property TableServiceCatagory (base name: "TableServiceCatagory")', function() { + // TODO: update the code to test the property TableServiceCatagory + expect(instance).to.have.property('TableServiceCatagory'); + // expect(instance.TableServiceCatagory).to.be(expectedValueLiteral); + }); + + it('should have the property OrderState (base name: "OrderState")', function() { + // TODO: update the code to test the property OrderState + expect(instance).to.have.property('OrderState'); + // expect(instance.OrderState).to.be(expectedValueLiteral); + }); + + it('should have the property RequestedForTime (base name: "RequestedForTime")', function() { + // TODO: update the code to test the property RequestedForTime + expect(instance).to.have.property('RequestedForTime'); + // expect(instance.RequestedForTime).to.be(expectedValueLiteral); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // TODO: update the code to test the property StoreName + expect(instance).to.have.property('StoreName'); + // expect(instance.StoreName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIanaTimeZone (base name: "StoreIanaTimeZone")', function() { + // TODO: update the code to test the property StoreIanaTimeZone + expect(instance).to.have.property('StoreIanaTimeZone'); + // expect(instance.StoreIanaTimeZone).to.be(expectedValueLiteral); + }); + + it('should have the property CustomerName (base name: "CustomerName")', function() { + // TODO: update the code to test the property CustomerName + expect(instance).to.have.property('CustomerName'); + // expect(instance.CustomerName).to.be(expectedValueLiteral); + }); + + it('should have the property CustomerPhoneNumber (base name: "CustomerPhoneNumber")', function() { + // TODO: update the code to test the property CustomerPhoneNumber + expect(instance).to.have.property('CustomerPhoneNumber'); + // expect(instance.CustomerPhoneNumber).to.be(expectedValueLiteral); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // TODO: update the code to test the property Amount + expect(instance).to.have.property('Amount'); + // expect(instance.Amount).to.be(expectedValueLiteral); + }); + + it('should have the property RefundedAmount (base name: "RefundedAmount")', function() { + // TODO: update the code to test the property RefundedAmount + expect(instance).to.have.property('RefundedAmount'); + // expect(instance.RefundedAmount).to.be(expectedValueLiteral); + }); + + it('should have the property PaymentAccountType (base name: "PaymentAccountType")', function() { + // TODO: update the code to test the property PaymentAccountType + expect(instance).to.have.property('PaymentAccountType'); + // expect(instance.PaymentAccountType).to.be(expectedValueLiteral); + }); + + it('should have the property PaymentStatus (base name: "PaymentStatus")', function() { + // TODO: update the code to test the property PaymentStatus + expect(instance).to.have.property('PaymentStatus'); + // expect(instance.PaymentStatus).to.be(expectedValueLiteral); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + it('should have the property AppType (base name: "AppType")', function() { + // TODO: update the code to test the property AppType + expect(instance).to.have.property('AppType'); + // expect(instance.AppType).to.be(expectedValueLiteral); + }); + + it('should have the property LocalOrderId (base name: "LocalOrderId")', function() { + // TODO: update the code to test the property LocalOrderId + expect(instance).to.have.property('LocalOrderId'); + // expect(instance.LocalOrderId).to.be(expectedValueLiteral); + }); + + it('should have the property DropOffLocationId (base name: "DropOffLocationId")', function() { + // TODO: update the code to test the property DropOffLocationId + expect(instance).to.have.property('DropOffLocationId'); + // expect(instance.DropOffLocationId).to.be(expectedValueLiteral); + }); + + it('should have the property DropOffLocation (base name: "DropOffLocation")', function() { + // TODO: update the code to test the property DropOffLocation + expect(instance).to.have.property('DropOffLocation'); + // expect(instance.DropOffLocation).to.be(expectedValueLiteral); + }); + + it('should have the property AcceptedFor (base name: "AcceptedFor")', function() { + // TODO: update the code to test the property AcceptedFor + expect(instance).to.have.property('AcceptedFor'); + // expect(instance.AcceptedFor).to.be(expectedValueLiteral); + }); + + it('should have the property InFraudZone (base name: "InFraudZone")', function() { + // TODO: update the code to test the property InFraudZone + expect(instance).to.have.property('InFraudZone'); + // expect(instance.InFraudZone).to.be(expectedValueLiteral); + }); + + it('should have the property UnusualHighValueOrder (base name: "UnusualHighValueOrder")', function() { + // TODO: update the code to test the property UnusualHighValueOrder + expect(instance).to.have.property('UnusualHighValueOrder'); + // expect(instance.UnusualHighValueOrder).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/OrderTipUpdatedEvent.spec.js b/test/model/OrderTipUpdatedEvent.spec.js index b18fb3f4..a424e4b1 100644 --- a/test/model/OrderTipUpdatedEvent.spec.js +++ b/test/model/OrderTipUpdatedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,66 @@ var instance; - beforeEach(function() { - instance = new Flipdish.OrderTipUpdatedEvent(); - }); + describe('(package)', function() { + describe('OrderTipUpdatedEvent', function() { + 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]; - } + it('should create an instance of OrderTipUpdatedEvent', function() { + // TODO: update the code to test OrderTipUpdatedEvent + expect(instance).to.be.a(Flipdish.OrderTipUpdatedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 TipAmount (base name: "TipAmount")', function() { + // TODO: update the code to test the property TipAmount + expect(instance).to.have.property('TipAmount'); + // expect(instance.TipAmount).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.OrderTipUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property tipAmount (base name: "TipAmount")', function() { - // uncomment below and update the code to test the property tipAmount - //var instane = new Flipdish.OrderTipUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Order (base name: "Order")', function() { + // TODO: update the code to test the property Order + expect(instance).to.have.property('Order'); + // expect(instance.Order).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.OrderTipUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property order (base name: "Order")', function() { - // uncomment below and update the code to test the property order - //var instane = new Flipdish.OrderTipUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.OrderTipUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.OrderTipUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = 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..2593abc6 --- /dev/null +++ b/test/model/OrderVoucherSummary.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('OrderVoucherSummary', function() { + beforeEach(function() { + instance = new Flipdish.OrderVoucherSummary(); + }); + + it('should create an instance of OrderVoucherSummary', function() { + // TODO: update the code to test OrderVoucherSummary + expect(instance).to.be.a(Flipdish.OrderVoucherSummary); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property Code (base name: "Code")', function() { + // TODO: update the code to test the property Code + expect(instance).to.have.property('Code'); + // expect(instance.Code).to.be(expectedValueLiteral); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // TODO: update the code to test the property Amount + expect(instance).to.have.property('Amount'); + // expect(instance.Amount).to.be(expectedValueLiteral); + }); + + it('should have the property Type (base name: "Type")', function() { + // TODO: update the code to test the property Type + expect(instance).to.have.property('Type'); + // expect(instance.Type).to.be(expectedValueLiteral); + }); + + it('should have the property SubType (base name: "SubType")', function() { + // TODO: update the code to test the property SubType + expect(instance).to.have.property('SubType'); + // expect(instance.SubType).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/OtherChargesDetails.spec.js b/test/model/OtherChargesDetails.spec.js new file mode 100644 index 00000000..48b3ee8a --- /dev/null +++ b/test/model/OtherChargesDetails.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('OtherChargesDetails', function() { + beforeEach(function() { + instance = new Flipdish.OtherChargesDetails(); + }); + + it('should create an instance of OtherChargesDetails', function() { + // TODO: update the code to test OtherChargesDetails + expect(instance).to.be.a(Flipdish.OtherChargesDetails); + }); + + it('should have the property TotalOtherCharges (base name: "TotalOtherCharges")', function() { + // TODO: update the code to test the property TotalOtherCharges + expect(instance).to.have.property('TotalOtherCharges'); + // expect(instance.TotalOtherCharges).to.be(expectedValueLiteral); + }); + + it('should have the property ChargesCount (base name: "ChargesCount")', function() { + // TODO: update the code to test the property ChargesCount + expect(instance).to.have.property('ChargesCount'); + // expect(instance.ChargesCount).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PasswordResetModel.spec.js b/test/model/PasswordResetModel.spec.js new file mode 100644 index 00000000..26503d02 --- /dev/null +++ b/test/model/PasswordResetModel.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PasswordResetModel', function() { + beforeEach(function() { + instance = new Flipdish.PasswordResetModel(); + }); + + it('should create an instance of PasswordResetModel', function() { + // TODO: update the code to test PasswordResetModel + expect(instance).to.be.a(Flipdish.PasswordResetModel); + }); + + it('should have the property Email (base name: "Email")', function() { + // TODO: update the code to test the property Email + expect(instance).to.have.property('Email'); + // expect(instance.Email).to.be(expectedValueLiteral); + }); + + it('should have the property Password (base name: "Password")', function() { + // TODO: update the code to test the property Password + expect(instance).to.have.property('Password'); + // expect(instance.Password).to.be(expectedValueLiteral); + }); + + it('should have the property PasswordConfirmation (base name: "PasswordConfirmation")', function() { + // TODO: update the code to test the property PasswordConfirmation + expect(instance).to.have.property('PasswordConfirmation'); + // expect(instance.PasswordConfirmation).to.be(expectedValueLiteral); + }); + + it('should have the property Token (base name: "Token")', function() { + // TODO: update the code to test the property Token + expect(instance).to.have.property('Token'); + // expect(instance.Token).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PaymentTerminalDetails.spec.js b/test/model/PaymentTerminalDetails.spec.js new file mode 100644 index 00000000..6a6471a2 --- /dev/null +++ b/test/model/PaymentTerminalDetails.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PaymentTerminalDetails', function() { + beforeEach(function() { + instance = new Flipdish.PaymentTerminalDetails(); + }); + + it('should create an instance of PaymentTerminalDetails', function() { + // TODO: update the code to test PaymentTerminalDetails + expect(instance).to.be.a(Flipdish.PaymentTerminalDetails); + }); + + it('should have the property TerminalId (base name: "TerminalId")', function() { + // TODO: update the code to test the property TerminalId + expect(instance).to.have.property('TerminalId'); + // expect(instance.TerminalId).to.be(expectedValueLiteral); + }); + + it('should have the property Status (base name: "Status")', function() { + // TODO: update the code to test the property Status + expect(instance).to.have.property('Status'); + // expect(instance.Status).to.be(expectedValueLiteral); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + it('should have the property Uri (base name: "Uri")', function() { + // TODO: update the code to test the property Uri + expect(instance).to.have.property('Uri'); + // expect(instance.Uri).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PaymentTerminalTransactionDetails.spec.js b/test/model/PaymentTerminalTransactionDetails.spec.js new file mode 100644 index 00000000..5b21b3b9 --- /dev/null +++ b/test/model/PaymentTerminalTransactionDetails.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PaymentTerminalTransactionDetails', function() { + beforeEach(function() { + instance = new Flipdish.PaymentTerminalTransactionDetails(); + }); + + it('should create an instance of PaymentTerminalTransactionDetails', function() { + // TODO: update the code to test PaymentTerminalTransactionDetails + expect(instance).to.be.a(Flipdish.PaymentTerminalTransactionDetails); + }); + + it('should have the property CardSchemeName (base name: "CardSchemeName")', function() { + // TODO: update the code to test the property CardSchemeName + expect(instance).to.have.property('CardSchemeName'); + // expect(instance.CardSchemeName).to.be(expectedValueLiteral); + }); + + it('should have the property DateOfExpiry (base name: "DateOfExpiry")', function() { + // TODO: update the code to test the property DateOfExpiry + expect(instance).to.have.property('DateOfExpiry'); + // expect(instance.DateOfExpiry).to.be(expectedValueLiteral); + }); + + it('should have the property AuthCode (base name: "AuthCode")', function() { + // TODO: update the code to test the property AuthCode + expect(instance).to.have.property('AuthCode'); + // expect(instance.AuthCode).to.be(expectedValueLiteral); + }); + + it('should have the property TransactionResult (base name: "TransactionResult")', function() { + // TODO: update the code to test the property TransactionResult + expect(instance).to.have.property('TransactionResult'); + // expect(instance.TransactionResult).to.be(expectedValueLiteral); + }); + + it('should have the property PrimaryAccountNumber (base name: "PrimaryAccountNumber")', function() { + // TODO: update the code to test the property PrimaryAccountNumber + expect(instance).to.have.property('PrimaryAccountNumber'); + // expect(instance.PrimaryAccountNumber).to.be(expectedValueLiteral); + }); + + it('should have the property CardholderVerificationMethod (base name: "CardholderVerificationMethod")', function() { + // TODO: update the code to test the property CardholderVerificationMethod + expect(instance).to.have.property('CardholderVerificationMethod'); + // expect(instance.CardholderVerificationMethod).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/Payout.spec.js b/test/model/Payout.spec.js new file mode 100644 index 00000000..c3073f32 --- /dev/null +++ b/test/model/Payout.spec.js @@ -0,0 +1,124 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('Payout', function() { + beforeEach(function() { + instance = new Flipdish.Payout(); + }); + + it('should create an instance of Payout', function() { + // TODO: update the code to test Payout + expect(instance).to.be.a(Flipdish.Payout); + }); + + it('should have the property PayoutId (base name: "PayoutId")', function() { + // TODO: update the code to test the property PayoutId + expect(instance).to.have.property('PayoutId'); + // expect(instance.PayoutId).to.be(expectedValueLiteral); + }); + + it('should have the property PayeeBankAccountId (base name: "PayeeBankAccountId")', function() { + // TODO: update the code to test the property PayeeBankAccountId + expect(instance).to.have.property('PayeeBankAccountId'); + // expect(instance.PayeeBankAccountId).to.be(expectedValueLiteral); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // TODO: update the code to test the property AccountName + expect(instance).to.have.property('AccountName'); + // expect(instance.AccountName).to.be(expectedValueLiteral); + }); + + it('should have the property PayoutStatus (base name: "PayoutStatus")', function() { + // TODO: update the code to test the property PayoutStatus + expect(instance).to.have.property('PayoutStatus'); + // expect(instance.PayoutStatus).to.be(expectedValueLiteral); + }); + + it('should have the property CreatedDate (base name: "CreatedDate")', function() { + // TODO: update the code to test the property CreatedDate + expect(instance).to.have.property('CreatedDate'); + // expect(instance.CreatedDate).to.be(expectedValueLiteral); + }); + + it('should have the property PeriodStartTime (base name: "PeriodStartTime")', function() { + // TODO: update the code to test the property PeriodStartTime + expect(instance).to.have.property('PeriodStartTime'); + // expect(instance.PeriodStartTime).to.be(expectedValueLiteral); + }); + + it('should have the property PeriodEndTime (base name: "PeriodEndTime")', function() { + // TODO: update the code to test the property PeriodEndTime + expect(instance).to.have.property('PeriodEndTime'); + // expect(instance.PeriodEndTime).to.be(expectedValueLiteral); + }); + + it('should have the property DestinationBank (base name: "DestinationBank")', function() { + // TODO: update the code to test the property DestinationBank + expect(instance).to.have.property('DestinationBank'); + // expect(instance.DestinationBank).to.be(expectedValueLiteral); + }); + + it('should have the property DestinationAccount (base name: "DestinationAccount")', function() { + // TODO: update the code to test the property DestinationAccount + expect(instance).to.have.property('DestinationAccount'); + // expect(instance.DestinationAccount).to.be(expectedValueLiteral); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // TODO: update the code to test the property Amount + expect(instance).to.have.property('Amount'); + // expect(instance.Amount).to.be(expectedValueLiteral); + }); + + it('should have the property PayoutType (base name: "PayoutType")', function() { + // TODO: update the code to test the property PayoutType + expect(instance).to.have.property('PayoutType'); + // expect(instance.PayoutType).to.be(expectedValueLiteral); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + it('should have the property CutoffDate (base name: "CutoffDate")', function() { + // TODO: update the code to test the property CutoffDate + expect(instance).to.have.property('CutoffDate'); + // expect(instance.CutoffDate).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PayoutChargeback.spec.js b/test/model/PayoutChargeback.spec.js new file mode 100644 index 00000000..6a6dcfd2 --- /dev/null +++ b/test/model/PayoutChargeback.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PayoutChargeback', function() { + beforeEach(function() { + instance = new Flipdish.PayoutChargeback(); + }); + + it('should create an instance of PayoutChargeback', function() { + // TODO: update the code to test PayoutChargeback + expect(instance).to.be.a(Flipdish.PayoutChargeback); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // TODO: update the code to test the property OrderId + expect(instance).to.have.property('OrderId'); + // expect(instance.OrderId).to.be(expectedValueLiteral); + }); + + it('should have the property OrderCurrency (base name: "OrderCurrency")', function() { + // TODO: update the code to test the property OrderCurrency + expect(instance).to.have.property('OrderCurrency'); + // expect(instance.OrderCurrency).to.be(expectedValueLiteral); + }); + + it('should have the property PayoutId (base name: "PayoutId")', function() { + // TODO: update the code to test the property PayoutId + expect(instance).to.have.property('PayoutId'); + // expect(instance.PayoutId).to.be(expectedValueLiteral); + }); + + it('should have the property OrderDate (base name: "OrderDate")', function() { + // TODO: update the code to test the property OrderDate + expect(instance).to.have.property('OrderDate'); + // expect(instance.OrderDate).to.be(expectedValueLiteral); + }); + + it('should have the property OrderType (base name: "OrderType")', function() { + // TODO: update the code to test the property OrderType + expect(instance).to.have.property('OrderType'); + // expect(instance.OrderType).to.be(expectedValueLiteral); + }); + + it('should have the property ChargebackDate (base name: "ChargebackDate")', function() { + // TODO: update the code to test the property ChargebackDate + expect(instance).to.have.property('ChargebackDate'); + // expect(instance.ChargebackDate).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property ChargebackAmount (base name: "ChargebackAmount")', function() { + // TODO: update the code to test the property ChargebackAmount + expect(instance).to.have.property('ChargebackAmount'); + // expect(instance.ChargebackAmount).to.be(expectedValueLiteral); + }); + + it('should have the property RefundedFees (base name: "RefundedFees")', function() { + // TODO: update the code to test the property RefundedFees + expect(instance).to.have.property('RefundedFees'); + // expect(instance.RefundedFees).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PayoutDetail.spec.js b/test/model/PayoutDetail.spec.js new file mode 100644 index 00000000..cd5d67b7 --- /dev/null +++ b/test/model/PayoutDetail.spec.js @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PayoutDetail', function() { + beforeEach(function() { + instance = new Flipdish.PayoutDetail(); + }); + + it('should create an instance of PayoutDetail', function() { + // TODO: update the code to test PayoutDetail + expect(instance).to.be.a(Flipdish.PayoutDetail); + }); + + it('should have the property PayoutId (base name: "PayoutId")', function() { + // TODO: update the code to test the property PayoutId + expect(instance).to.have.property('PayoutId'); + // expect(instance.PayoutId).to.be(expectedValueLiteral); + }); + + it('should have the property BankAccountId (base name: "BankAccountId")', function() { + // TODO: update the code to test the property BankAccountId + expect(instance).to.have.property('BankAccountId'); + // expect(instance.BankAccountId).to.be(expectedValueLiteral); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // TODO: update the code to test the property AccountName + expect(instance).to.have.property('AccountName'); + // expect(instance.AccountName).to.be(expectedValueLiteral); + }); + + it('should have the property PayoutStatus (base name: "PayoutStatus")', function() { + // TODO: update the code to test the property PayoutStatus + expect(instance).to.have.property('PayoutStatus'); + // expect(instance.PayoutStatus).to.be(expectedValueLiteral); + }); + + it('should have the property CreatedDate (base name: "CreatedDate")', function() { + // TODO: update the code to test the property CreatedDate + expect(instance).to.have.property('CreatedDate'); + // expect(instance.CreatedDate).to.be(expectedValueLiteral); + }); + + it('should have the property PeriodStartTime (base name: "PeriodStartTime")', function() { + // TODO: update the code to test the property PeriodStartTime + expect(instance).to.have.property('PeriodStartTime'); + // expect(instance.PeriodStartTime).to.be(expectedValueLiteral); + }); + + it('should have the property PeriodEndTime (base name: "PeriodEndTime")', function() { + // TODO: update the code to test the property PeriodEndTime + expect(instance).to.have.property('PeriodEndTime'); + // expect(instance.PeriodEndTime).to.be(expectedValueLiteral); + }); + + it('should have the property DestinationBank (base name: "DestinationBank")', function() { + // TODO: update the code to test the property DestinationBank + expect(instance).to.have.property('DestinationBank'); + // expect(instance.DestinationBank).to.be(expectedValueLiteral); + }); + + it('should have the property DestinationAccount (base name: "DestinationAccount")', function() { + // TODO: update the code to test the property DestinationAccount + expect(instance).to.have.property('DestinationAccount'); + // expect(instance.DestinationAccount).to.be(expectedValueLiteral); + }); + + it('should have the property PayoutType (base name: "PayoutType")', function() { + // TODO: update the code to test the property PayoutType + expect(instance).to.have.property('PayoutType'); + // expect(instance.PayoutType).to.be(expectedValueLiteral); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + it('should have the property PayoutStores (base name: "PayoutStores")', function() { + // TODO: update the code to test the property PayoutStores + expect(instance).to.have.property('PayoutStores'); + // expect(instance.PayoutStores).to.be(expectedValueLiteral); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // TODO: update the code to test the property Amount + expect(instance).to.have.property('Amount'); + // expect(instance.Amount).to.be(expectedValueLiteral); + }); + + it('should have the property CutoffDate (base name: "CutoffDate")', function() { + // TODO: update the code to test the property CutoffDate + expect(instance).to.have.property('CutoffDate'); + // expect(instance.CutoffDate).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PayoutOrder.spec.js b/test/model/PayoutOrder.spec.js new file mode 100644 index 00000000..da60daf4 --- /dev/null +++ b/test/model/PayoutOrder.spec.js @@ -0,0 +1,160 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PayoutOrder', function() { + beforeEach(function() { + instance = new Flipdish.PayoutOrder(); + }); + + it('should create an instance of PayoutOrder', function() { + // TODO: update the code to test PayoutOrder + expect(instance).to.be.a(Flipdish.PayoutOrder); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // TODO: update the code to test the property OrderId + expect(instance).to.have.property('OrderId'); + // expect(instance.OrderId).to.be(expectedValueLiteral); + }); + + it('should have the property PayoutId (base name: "PayoutId")', function() { + // TODO: update the code to test the property PayoutId + expect(instance).to.have.property('PayoutId'); + // expect(instance.PayoutId).to.be(expectedValueLiteral); + }); + + it('should have the property OrderDate (base name: "OrderDate")', function() { + // TODO: update the code to test the property OrderDate + expect(instance).to.have.property('OrderDate'); + // expect(instance.OrderDate).to.be(expectedValueLiteral); + }); + + it('should have the property OrderType (base name: "OrderType")', function() { + // TODO: update the code to test the property OrderType + expect(instance).to.have.property('OrderType'); + // expect(instance.OrderType).to.be(expectedValueLiteral); + }); + + it('should have the property OrderCurrency (base name: "OrderCurrency")', function() { + // TODO: update the code to test the property OrderCurrency + expect(instance).to.have.property('OrderCurrency'); + // expect(instance.OrderCurrency).to.be(expectedValueLiteral); + }); + + it('should have the property Sales (base name: "Sales")', function() { + // TODO: update the code to test the property Sales + expect(instance).to.have.property('Sales'); + // expect(instance.Sales).to.be(expectedValueLiteral); + }); + + it('should have the property SalesTax (base name: "SalesTax")', function() { + // TODO: update the code to test the property SalesTax + expect(instance).to.have.property('SalesTax'); + // expect(instance.SalesTax).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryCharges (base name: "DeliveryCharges")', function() { + // TODO: update the code to test the property DeliveryCharges + expect(instance).to.have.property('DeliveryCharges'); + // expect(instance.DeliveryCharges).to.be(expectedValueLiteral); + }); + + it('should have the property Tips (base name: "Tips")', function() { + // TODO: update the code to test the property Tips + expect(instance).to.have.property('Tips'); + // expect(instance.Tips).to.be(expectedValueLiteral); + }); + + it('should have the property Voucher (base name: "Voucher")', function() { + // TODO: update the code to test the property Voucher + expect(instance).to.have.property('Voucher'); + // expect(instance.Voucher).to.be(expectedValueLiteral); + }); + + it('should have the property FlatFeeExcludingVat (base name: "FlatFeeExcludingVat")', function() { + // TODO: update the code to test the property FlatFeeExcludingVat + expect(instance).to.have.property('FlatFeeExcludingVat'); + // expect(instance.FlatFeeExcludingVat).to.be(expectedValueLiteral); + }); + + it('should have the property FlatFeeExcludingVAT (base name: "FlatFeeExcludingVAT")', function() { + // TODO: update the code to test the property FlatFeeExcludingVAT + expect(instance).to.have.property('FlatFeeExcludingVAT'); + // expect(instance.FlatFeeExcludingVAT).to.be(expectedValueLiteral); + }); + + it('should have the property PercentageFeeExcludingVat (base name: "PercentageFeeExcludingVat")', function() { + // TODO: update the code to test the property PercentageFeeExcludingVat + expect(instance).to.have.property('PercentageFeeExcludingVat'); + // expect(instance.PercentageFeeExcludingVat).to.be(expectedValueLiteral); + }); + + it('should have the property PercentageFeeExcludingVAT (base name: "PercentageFeeExcludingVAT")', function() { + // TODO: update the code to test the property PercentageFeeExcludingVAT + expect(instance).to.have.property('PercentageFeeExcludingVAT'); + // expect(instance.PercentageFeeExcludingVAT).to.be(expectedValueLiteral); + }); + + it('should have the property Vat (base name: "Vat")', function() { + // TODO: update the code to test the property Vat + expect(instance).to.have.property('Vat'); + // expect(instance.Vat).to.be(expectedValueLiteral); + }); + + it('should have the property TotalFees (base name: "TotalFees")', function() { + // TODO: update the code to test the property TotalFees + expect(instance).to.have.property('TotalFees'); + // expect(instance.TotalFees).to.be(expectedValueLiteral); + }); + + it('should have the property CashFeeChargedToCustomer (base name: "CashFeeChargedToCustomer")', function() { + // TODO: update the code to test the property CashFeeChargedToCustomer + expect(instance).to.have.property('CashFeeChargedToCustomer'); + // expect(instance.CashFeeChargedToCustomer).to.be(expectedValueLiteral); + }); + + it('should have the property NetSales (base name: "NetSales")', function() { + // TODO: update the code to test the property NetSales + expect(instance).to.have.property('NetSales'); + // expect(instance.NetSales).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PayoutOtherCharge.spec.js b/test/model/PayoutOtherCharge.spec.js new file mode 100644 index 00000000..09ede28e --- /dev/null +++ b/test/model/PayoutOtherCharge.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PayoutOtherCharge', function() { + beforeEach(function() { + instance = new Flipdish.PayoutOtherCharge(); + }); + + it('should create an instance of PayoutOtherCharge', function() { + // TODO: update the code to test PayoutOtherCharge + expect(instance).to.be.a(Flipdish.PayoutOtherCharge); + }); + + it('should have the property ChargeId (base name: "ChargeId")', function() { + // TODO: update the code to test the property ChargeId + expect(instance).to.have.property('ChargeId'); + // expect(instance.ChargeId).to.be(expectedValueLiteral); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // TODO: update the code to test the property Amount + expect(instance).to.have.property('Amount'); + // expect(instance.Amount).to.be(expectedValueLiteral); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + it('should have the property PayoutId (base name: "PayoutId")', function() { + // TODO: update the code to test the property PayoutId + expect(instance).to.have.property('PayoutId'); + // expect(instance.PayoutId).to.be(expectedValueLiteral); + }); + + it('should have the property ChargeDate (base name: "ChargeDate")', function() { + // TODO: update the code to test the property ChargeDate + expect(instance).to.have.property('ChargeDate'); + // expect(instance.ChargeDate).to.be(expectedValueLiteral); + }); + + it('should have the property ChargeType (base name: "ChargeType")', function() { + // TODO: update the code to test the property ChargeType + expect(instance).to.have.property('ChargeType'); + // expect(instance.ChargeType).to.be(expectedValueLiteral); + }); + + it('should have the property ChargeDescription (base name: "ChargeDescription")', function() { + // TODO: update the code to test the property ChargeDescription + expect(instance).to.have.property('ChargeDescription'); + // expect(instance.ChargeDescription).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PayoutRefund.spec.js b/test/model/PayoutRefund.spec.js new file mode 100644 index 00000000..b9f3f493 --- /dev/null +++ b/test/model/PayoutRefund.spec.js @@ -0,0 +1,112 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PayoutRefund', function() { + beforeEach(function() { + instance = new Flipdish.PayoutRefund(); + }); + + it('should create an instance of PayoutRefund', function() { + // TODO: update the code to test PayoutRefund + expect(instance).to.be.a(Flipdish.PayoutRefund); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // TODO: update the code to test the property OrderId + expect(instance).to.have.property('OrderId'); + // expect(instance.OrderId).to.be(expectedValueLiteral); + }); + + it('should have the property OrderCurrency (base name: "OrderCurrency")', function() { + // TODO: update the code to test the property OrderCurrency + expect(instance).to.have.property('OrderCurrency'); + // expect(instance.OrderCurrency).to.be(expectedValueLiteral); + }); + + it('should have the property PayoutId (base name: "PayoutId")', function() { + // TODO: update the code to test the property PayoutId + expect(instance).to.have.property('PayoutId'); + // expect(instance.PayoutId).to.be(expectedValueLiteral); + }); + + it('should have the property OrderDate (base name: "OrderDate")', function() { + // TODO: update the code to test the property OrderDate + expect(instance).to.have.property('OrderDate'); + // expect(instance.OrderDate).to.be(expectedValueLiteral); + }); + + it('should have the property OrderType (base name: "OrderType")', function() { + // TODO: update the code to test the property OrderType + expect(instance).to.have.property('OrderType'); + // expect(instance.OrderType).to.be(expectedValueLiteral); + }); + + it('should have the property RefundDate (base name: "RefundDate")', function() { + // TODO: update the code to test the property RefundDate + expect(instance).to.have.property('RefundDate'); + // expect(instance.RefundDate).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRefund (base name: "TotalRefund")', function() { + // TODO: update the code to test the property TotalRefund + expect(instance).to.have.property('TotalRefund'); + // expect(instance.TotalRefund).to.be(expectedValueLiteral); + }); + + it('should have the property RefundedFees (base name: "RefundedFees")', function() { + // TODO: update the code to test the property RefundedFees + expect(instance).to.have.property('RefundedFees'); + // expect(instance.RefundedFees).to.be(expectedValueLiteral); + }); + + it('should have the property RefundedAmount (base name: "RefundedAmount")', function() { + // TODO: update the code to test the property RefundedAmount + expect(instance).to.have.property('RefundedAmount'); + // expect(instance.RefundedAmount).to.be(expectedValueLiteral); + }); + + it('should have the property CashFeeRefundedToCustomer (base name: "CashFeeRefundedToCustomer")', function() { + // TODO: update the code to test the property CashFeeRefundedToCustomer + expect(instance).to.have.property('CashFeeRefundedToCustomer'); + // expect(instance.CashFeeRefundedToCustomer).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PayoutStore.spec.js b/test/model/PayoutStore.spec.js new file mode 100644 index 00000000..e8851514 --- /dev/null +++ b/test/model/PayoutStore.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PayoutStore', function() { + beforeEach(function() { + instance = new Flipdish.PayoutStore(); + }); + + it('should create an instance of PayoutStore', function() { + // TODO: update the code to test PayoutStore + expect(instance).to.be.a(Flipdish.PayoutStore); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // TODO: update the code to test the property StoreName + expect(instance).to.have.property('StoreName'); + // expect(instance.StoreName).to.be(expectedValueLiteral); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // TODO: update the code to test the property Amount + expect(instance).to.have.property('Amount'); + // expect(instance.Amount).to.be(expectedValueLiteral); + }); + + it('should have the property OnlineRevenue (base name: "OnlineRevenue")', function() { + // TODO: update the code to test the property OnlineRevenue + expect(instance).to.have.property('OnlineRevenue'); + // expect(instance.OnlineRevenue).to.be(expectedValueLiteral); + }); + + it('should have the property Revenue (base name: "Revenue")', function() { + // TODO: update the code to test the property Revenue + expect(instance).to.have.property('Revenue'); + // expect(instance.Revenue).to.be(expectedValueLiteral); + }); + + it('should have the property RevenueAdjustments (base name: "RevenueAdjustments")', function() { + // TODO: update the code to test the property RevenueAdjustments + expect(instance).to.have.property('RevenueAdjustments'); + // expect(instance.RevenueAdjustments).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishFees (base name: "FlipdishFees")', function() { + // TODO: update the code to test the property FlipdishFees + expect(instance).to.have.property('FlipdishFees'); + // expect(instance.FlipdishFees).to.be(expectedValueLiteral); + }); + + it('should have the property Chargebacks (base name: "Chargebacks")', function() { + // TODO: update the code to test the property Chargebacks + expect(instance).to.have.property('Chargebacks'); + // expect(instance.Chargebacks).to.be(expectedValueLiteral); + }); + + it('should have the property OtherCharges (base name: "OtherCharges")', function() { + // TODO: update the code to test the property OtherCharges + expect(instance).to.have.property('OtherCharges'); + // expect(instance.OtherCharges).to.be(expectedValueLiteral); + }); + + it('should have the property Balance (base name: "Balance")', function() { + // TODO: update the code to test the property Balance + expect(instance).to.have.property('Balance'); + // expect(instance.Balance).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PayoutSummary.spec.js b/test/model/PayoutSummary.spec.js new file mode 100644 index 00000000..610cd422 --- /dev/null +++ b/test/model/PayoutSummary.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PayoutSummary', function() { + beforeEach(function() { + instance = new Flipdish.PayoutSummary(); + }); + + it('should create an instance of PayoutSummary', function() { + // TODO: update the code to test PayoutSummary + expect(instance).to.be.a(Flipdish.PayoutSummary); + }); + + it('should have the property PayoutStatus (base name: "PayoutStatus")', function() { + // TODO: update the code to test the property PayoutStatus + expect(instance).to.have.property('PayoutStatus'); + // expect(instance.PayoutStatus).to.be(expectedValueLiteral); + }); + + it('should have the property TotalAmount (base name: "TotalAmount")', function() { + // TODO: update the code to test the property TotalAmount + expect(instance).to.have.property('TotalAmount'); + // expect(instance.TotalAmount).to.be(expectedValueLiteral); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + it('should have the property TotalCount (base name: "TotalCount")', function() { + // TODO: update the code to test the property TotalCount + expect(instance).to.have.property('TotalCount'); + // expect(instance.TotalCount).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PercentDiscountDetails.spec.js b/test/model/PercentDiscountDetails.spec.js new file mode 100644 index 00000000..9489bfc5 --- /dev/null +++ b/test/model/PercentDiscountDetails.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PercentDiscountDetails', function() { + beforeEach(function() { + instance = new Flipdish.PercentDiscountDetails(); + }); + + it('should create an instance of PercentDiscountDetails', function() { + // TODO: update the code to test PercentDiscountDetails + expect(instance).to.be.a(Flipdish.PercentDiscountDetails); + }); + + it('should have the property PercentageDiscount (base name: "PercentageDiscount")', function() { + // TODO: update the code to test the property PercentageDiscount + expect(instance).to.have.property('PercentageDiscount'); + // expect(instance.PercentageDiscount).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PhoneCall.spec.js b/test/model/PhoneCall.spec.js new file mode 100644 index 00000000..52edb5bb --- /dev/null +++ b/test/model/PhoneCall.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PhoneCall', function() { + beforeEach(function() { + instance = new Flipdish.PhoneCall(); + }); + + it('should create an instance of PhoneCall', function() { + // TODO: update the code to test PhoneCall + expect(instance).to.be.a(Flipdish.PhoneCall); + }); + + it('should have the property PhoneCallId (base name: "PhoneCallId")', function() { + // TODO: update the code to test the property PhoneCallId + expect(instance).to.have.property('PhoneCallId'); + // expect(instance.PhoneCallId).to.be(expectedValueLiteral); + }); + + it('should have the property TimeOfCall (base name: "TimeOfCall")', function() { + // TODO: update the code to test the property TimeOfCall + expect(instance).to.have.property('TimeOfCall'); + // expect(instance.TimeOfCall).to.be(expectedValueLiteral); + }); + + it('should have the property TimeOfCallLocal (base name: "TimeOfCallLocal")', function() { + // TODO: update the code to test the property TimeOfCallLocal + expect(instance).to.have.property('TimeOfCallLocal'); + // expect(instance.TimeOfCallLocal).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // TODO: update the code to test the property StoreName + expect(instance).to.have.property('StoreName'); + // expect(instance.StoreName).to.be(expectedValueLiteral); + }); + + it('should have the property CallerName (base name: "CallerName")', function() { + // TODO: update the code to test the property CallerName + expect(instance).to.have.property('CallerName'); + // expect(instance.CallerName).to.be(expectedValueLiteral); + }); + + it('should have the property CallerUserId (base name: "CallerUserId")', function() { + // TODO: update the code to test the property CallerUserId + expect(instance).to.have.property('CallerUserId'); + // expect(instance.CallerUserId).to.be(expectedValueLiteral); + }); + + it('should have the property CallerNumber (base name: "CallerNumber")', function() { + // TODO: update the code to test the property CallerNumber + expect(instance).to.have.property('CallerNumber'); + // expect(instance.CallerNumber).to.be(expectedValueLiteral); + }); + + it('should have the property CallLengthInSeconds (base name: "CallLengthInSeconds")', function() { + // TODO: update the code to test the property CallLengthInSeconds + expect(instance).to.have.property('CallLengthInSeconds'); + // expect(instance.CallLengthInSeconds).to.be(expectedValueLiteral); + }); + + it('should have the property CallStatus (base name: "CallStatus")', function() { + // TODO: update the code to test the property CallStatus + expect(instance).to.have.property('CallStatus'); + // expect(instance.CallStatus).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PhoneCallEndedEvent.spec.js b/test/model/PhoneCallEndedEvent.spec.js new file mode 100644 index 00000000..45aa3f83 --- /dev/null +++ b/test/model/PhoneCallEndedEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PhoneCallEndedEvent', function() { + beforeEach(function() { + instance = new Flipdish.PhoneCallEndedEvent(); + }); + + it('should create an instance of PhoneCallEndedEvent', function() { + // TODO: update the code to test PhoneCallEndedEvent + expect(instance).to.be.a(Flipdish.PhoneCallEndedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property PhoneCall (base name: "PhoneCall")', function() { + // TODO: update the code to test the property PhoneCall + expect(instance).to.have.property('PhoneCall'); + // expect(instance.PhoneCall).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PhoneCallStartedEvent.spec.js b/test/model/PhoneCallStartedEvent.spec.js new file mode 100644 index 00000000..3176f063 --- /dev/null +++ b/test/model/PhoneCallStartedEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PhoneCallStartedEvent', function() { + beforeEach(function() { + instance = new Flipdish.PhoneCallStartedEvent(); + }); + + it('should create an instance of PhoneCallStartedEvent', function() { + // TODO: update the code to test PhoneCallStartedEvent + expect(instance).to.be.a(Flipdish.PhoneCallStartedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property PhoneCall (base name: "PhoneCall")', function() { + // TODO: update the code to test the property PhoneCall + expect(instance).to.have.property('PhoneCall'); + // expect(instance.PhoneCall).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PreOrderConfig.spec.js b/test/model/PreOrderConfig.spec.js new file mode 100644 index 00000000..31c6dc7b --- /dev/null +++ b/test/model/PreOrderConfig.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PreOrderConfig', function() { + beforeEach(function() { + instance = new Flipdish.PreOrderConfig(); + }); + + it('should create an instance of PreOrderConfig', function() { + // TODO: update the code to test PreOrderConfig + expect(instance).to.be.a(Flipdish.PreOrderConfig); + }); + + it('should have the property LeadTimeMinutes (base name: "LeadTimeMinutes")', function() { + // TODO: update the code to test the property LeadTimeMinutes + expect(instance).to.have.property('LeadTimeMinutes'); + // expect(instance.LeadTimeMinutes).to.be(expectedValueLiteral); + }); + + it('should have the property IntervalMinutes (base name: "IntervalMinutes")', function() { + // TODO: update the code to test the property IntervalMinutes + expect(instance).to.have.property('IntervalMinutes'); + // expect(instance.IntervalMinutes).to.be(expectedValueLiteral); + }); + + it('should have the property MaxOrderAheadDays (base name: "MaxOrderAheadDays")', function() { + // TODO: update the code to test the property MaxOrderAheadDays + expect(instance).to.have.property('MaxOrderAheadDays'); + // expect(instance.MaxOrderAheadDays).to.be(expectedValueLiteral); + }); + + it('should have the property IncludeAsap (base name: "IncludeAsap")', function() { + // TODO: update the code to test the property IncludeAsap + expect(instance).to.have.property('IncludeAsap'); + // expect(instance.IncludeAsap).to.be(expectedValueLiteral); + }); + + it('should have the property IncludeMoreGranularInitialTime (base name: "IncludeMoreGranularInitialTime")', function() { + // TODO: update the code to test the property IncludeMoreGranularInitialTime + expect(instance).to.have.property('IncludeMoreGranularInitialTime'); + // expect(instance.IncludeMoreGranularInitialTime).to.be(expectedValueLiteral); + }); + + it('should have the property CutOffTimePreviousDayBasic (base name: "CutOffTimePreviousDayBasic")', function() { + // TODO: update the code to test the property CutOffTimePreviousDayBasic + expect(instance).to.have.property('CutOffTimePreviousDayBasic'); + // expect(instance.CutOffTimePreviousDayBasic).to.be(expectedValueLiteral); + }); + + it('should have the property CutOffTimeCurrentDayBasic (base name: "CutOffTimeCurrentDayBasic")', function() { + // TODO: update the code to test the property CutOffTimeCurrentDayBasic + expect(instance).to.have.property('CutOffTimeCurrentDayBasic'); + // expect(instance.CutOffTimeCurrentDayBasic).to.be(expectedValueLiteral); + }); + + it('should have the property PreOrderTimeDisplayType (base name: "PreOrderTimeDisplayType")', function() { + // TODO: update the code to test the property PreOrderTimeDisplayType + expect(instance).to.have.property('PreOrderTimeDisplayType'); + // expect(instance.PreOrderTimeDisplayType).to.be(expectedValueLiteral); + }); + + it('should have the property AlwaysAppearOpen (base name: "AlwaysAppearOpen")', function() { + // TODO: update the code to test the property AlwaysAppearOpen + expect(instance).to.have.property('AlwaysAppearOpen'); + // expect(instance.AlwaysAppearOpen).to.be(expectedValueLiteral); + }); + + it('should have the property RequireExplicitSelectAlways (base name: "RequireExplicitSelectAlways")', function() { + // TODO: update the code to test the property RequireExplicitSelectAlways + expect(instance).to.have.property('RequireExplicitSelectAlways'); + // expect(instance.RequireExplicitSelectAlways).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PreOrderTime.spec.js b/test/model/PreOrderTime.spec.js new file mode 100644 index 00000000..786eb29b --- /dev/null +++ b/test/model/PreOrderTime.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PreOrderTime', function() { + beforeEach(function() { + instance = new Flipdish.PreOrderTime(); + }); + + it('should create an instance of PreOrderTime', function() { + // TODO: update the code to test PreOrderTime + expect(instance).to.be.a(Flipdish.PreOrderTime); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // TODO: update the code to test the property StartTime + expect(instance).to.have.property('StartTime'); + // expect(instance.StartTime).to.be(expectedValueLiteral); + }); + + it('should have the property EndTime (base name: "EndTime")', function() { + // TODO: update the code to test the property EndTime + expect(instance).to.have.property('EndTime'); + // expect(instance.EndTime).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PredefinedAnswer.spec.js b/test/model/PredefinedAnswer.spec.js new file mode 100644 index 00000000..a256b895 --- /dev/null +++ b/test/model/PredefinedAnswer.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PredefinedAnswer', function() { + beforeEach(function() { + instance = new Flipdish.PredefinedAnswer(); + }); + + it('should create an instance of PredefinedAnswer', function() { + // TODO: update the code to test PredefinedAnswer + expect(instance).to.be.a(Flipdish.PredefinedAnswer); + }); + + it('should have the property Id (base name: "Id")', function() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); + + it('should have the property Text (base name: "Text")', function() { + // TODO: update the code to test the property Text + expect(instance).to.have.property('Text'); + // expect(instance.Text).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/Printer.spec.js b/test/model/Printer.spec.js new file mode 100644 index 00000000..35fbd6fc --- /dev/null +++ b/test/model/Printer.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('Printer', function() { + beforeEach(function() { + instance = new Flipdish.Printer(); + }); + + it('should create an instance of Printer', function() { + // TODO: update the code to test Printer + expect(instance).to.be.a(Flipdish.Printer); + }); + + it('should have the property SerialNumber (base name: "SerialNumber")', function() { + // TODO: update the code to test the property SerialNumber + expect(instance).to.have.property('SerialNumber'); + // expect(instance.SerialNumber).to.be(expectedValueLiteral); + }); + + it('should have the property LastPollTime (base name: "LastPollTime")', function() { + // TODO: update the code to test the property LastPollTime + expect(instance).to.have.property('LastPollTime'); + // expect(instance.LastPollTime).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PrinterAssignedToStoreEvent.spec.js b/test/model/PrinterAssignedToStoreEvent.spec.js new file mode 100644 index 00000000..3b9dc7f6 --- /dev/null +++ b/test/model/PrinterAssignedToStoreEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PrinterAssignedToStoreEvent', function() { + beforeEach(function() { + instance = new Flipdish.PrinterAssignedToStoreEvent(); + }); + + it('should create an instance of PrinterAssignedToStoreEvent', function() { + // TODO: update the code to test PrinterAssignedToStoreEvent + expect(instance).to.be.a(Flipdish.PrinterAssignedToStoreEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Printer (base name: "Printer")', function() { + // TODO: update the code to test the property Printer + expect(instance).to.have.property('Printer'); + // expect(instance.Printer).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PrinterTurnedOffEvent.spec.js b/test/model/PrinterTurnedOffEvent.spec.js new file mode 100644 index 00000000..c992be90 --- /dev/null +++ b/test/model/PrinterTurnedOffEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PrinterTurnedOffEvent', function() { + beforeEach(function() { + instance = new Flipdish.PrinterTurnedOffEvent(); + }); + + it('should create an instance of PrinterTurnedOffEvent', function() { + // TODO: update the code to test PrinterTurnedOffEvent + expect(instance).to.be.a(Flipdish.PrinterTurnedOffEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Printer (base name: "Printer")', function() { + // TODO: update the code to test the property Printer + expect(instance).to.have.property('Printer'); + // expect(instance.Printer).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PrinterTurnedOnEvent.spec.js b/test/model/PrinterTurnedOnEvent.spec.js new file mode 100644 index 00000000..b341e390 --- /dev/null +++ b/test/model/PrinterTurnedOnEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PrinterTurnedOnEvent', function() { + beforeEach(function() { + instance = new Flipdish.PrinterTurnedOnEvent(); + }); + + it('should create an instance of PrinterTurnedOnEvent', function() { + // TODO: update the code to test PrinterTurnedOnEvent + expect(instance).to.be.a(Flipdish.PrinterTurnedOnEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Printer (base name: "Printer")', function() { + // TODO: update the code to test the property Printer + expect(instance).to.have.property('Printer'); + // expect(instance.Printer).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PrinterUnassignedFromStoreEvent.spec.js b/test/model/PrinterUnassignedFromStoreEvent.spec.js new file mode 100644 index 00000000..e8bdc5ec --- /dev/null +++ b/test/model/PrinterUnassignedFromStoreEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PrinterUnassignedFromStoreEvent', function() { + beforeEach(function() { + instance = new Flipdish.PrinterUnassignedFromStoreEvent(); + }); + + it('should create an instance of PrinterUnassignedFromStoreEvent', function() { + // TODO: update the code to test PrinterUnassignedFromStoreEvent + expect(instance).to.be.a(Flipdish.PrinterUnassignedFromStoreEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Printer (base name: "Printer")', function() { + // TODO: update the code to test the property Printer + expect(instance).to.have.property('Printer'); + // expect(instance.Printer).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/ProcessingFeeConfig.spec.js b/test/model/ProcessingFeeConfig.spec.js new file mode 100644 index 00000000..d5b775db --- /dev/null +++ b/test/model/ProcessingFeeConfig.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('ProcessingFeeConfig', function() { + beforeEach(function() { + instance = new Flipdish.ProcessingFeeConfig(); + }); + + it('should create an instance of ProcessingFeeConfig', function() { + // TODO: update the code to test ProcessingFeeConfig + expect(instance).to.be.a(Flipdish.ProcessingFeeConfig); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property PaymentAccountType (base name: "PaymentAccountType")', function() { + // TODO: update the code to test the property PaymentAccountType + expect(instance).to.have.property('PaymentAccountType'); + // expect(instance.PaymentAccountType).to.be(expectedValueLiteral); + }); + + it('should have the property PercentFee (base name: "PercentFee")', function() { + // TODO: update the code to test the property PercentFee + expect(instance).to.have.property('PercentFee'); + // expect(instance.PercentFee).to.be(expectedValueLiteral); + }); + + it('should have the property FixedFee (base name: "FixedFee")', function() { + // TODO: update the code to test the property FixedFee + expect(instance).to.have.property('FixedFee'); + // expect(instance.FixedFee).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PushNotificationDeletedEvent.spec.js b/test/model/PushNotificationDeletedEvent.spec.js new file mode 100644 index 00000000..fc10fa8b --- /dev/null +++ b/test/model/PushNotificationDeletedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PushNotificationDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.PushNotificationDeletedEvent(); + }); + + it('should create an instance of PushNotificationDeletedEvent', function() { + // TODO: update the code to test PushNotificationDeletedEvent + expect(instance).to.be.a(Flipdish.PushNotificationDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property PushNotification (base name: "PushNotification")', function() { + // TODO: update the code to test the property PushNotification + expect(instance).to.have.property('PushNotification'); + // expect(instance.PushNotification).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PushNotificationRequest.spec.js b/test/model/PushNotificationRequest.spec.js new file mode 100644 index 00000000..7e05ce08 --- /dev/null +++ b/test/model/PushNotificationRequest.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PushNotificationRequest', function() { + beforeEach(function() { + instance = new Flipdish.PushNotificationRequest(); + }); + + it('should create an instance of PushNotificationRequest', function() { + // TODO: update the code to test PushNotificationRequest + expect(instance).to.be.a(Flipdish.PushNotificationRequest); + }); + + it('should have the property ScheduledTime (base name: "ScheduledTime")', function() { + // TODO: update the code to test the property ScheduledTime + expect(instance).to.have.property('ScheduledTime'); + // expect(instance.ScheduledTime).to.be(expectedValueLiteral); + }); + + it('should have the property Title (base name: "Title")', function() { + // TODO: update the code to test the property Title + expect(instance).to.have.property('Title'); + // expect(instance.Title).to.be(expectedValueLiteral); + }); + + it('should have the property Message (base name: "Message")', function() { + // TODO: update the code to test the property Message + expect(instance).to.have.property('Message'); + // expect(instance.Message).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PushNotificationResponse.spec.js b/test/model/PushNotificationResponse.spec.js new file mode 100644 index 00000000..66f46d9c --- /dev/null +++ b/test/model/PushNotificationResponse.spec.js @@ -0,0 +1,76 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PushNotificationResponse', function() { + beforeEach(function() { + instance = new Flipdish.PushNotificationResponse(); + }); + + it('should create an instance of PushNotificationResponse', function() { + // TODO: update the code to test PushNotificationResponse + expect(instance).to.be.a(Flipdish.PushNotificationResponse); + }); + + it('should have the property Sent (base name: "Sent")', function() { + // TODO: update the code to test the property Sent + expect(instance).to.have.property('Sent'); + // expect(instance.Sent).to.be(expectedValueLiteral); + }); + + it('should have the property ScheduledPushNotificationId (base name: "ScheduledPushNotificationId")', function() { + // TODO: update the code to test the property ScheduledPushNotificationId + expect(instance).to.have.property('ScheduledPushNotificationId'); + // expect(instance.ScheduledPushNotificationId).to.be(expectedValueLiteral); + }); + + it('should have the property ScheduledTime (base name: "ScheduledTime")', function() { + // TODO: update the code to test the property ScheduledTime + expect(instance).to.have.property('ScheduledTime'); + // expect(instance.ScheduledTime).to.be(expectedValueLiteral); + }); + + it('should have the property Title (base name: "Title")', function() { + // TODO: update the code to test the property Title + expect(instance).to.have.property('Title'); + // expect(instance.Title).to.be(expectedValueLiteral); + }); + + it('should have the property Message (base name: "Message")', function() { + // TODO: update the code to test the property Message + expect(instance).to.have.property('Message'); + // expect(instance.Message).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PushNotificationScheduledEvent.spec.js b/test/model/PushNotificationScheduledEvent.spec.js new file mode 100644 index 00000000..892f46f2 --- /dev/null +++ b/test/model/PushNotificationScheduledEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PushNotificationScheduledEvent', function() { + beforeEach(function() { + instance = new Flipdish.PushNotificationScheduledEvent(); + }); + + it('should create an instance of PushNotificationScheduledEvent', function() { + // TODO: update the code to test PushNotificationScheduledEvent + expect(instance).to.be.a(Flipdish.PushNotificationScheduledEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property PushNotification (base name: "PushNotification")', function() { + // TODO: update the code to test the property PushNotification + expect(instance).to.have.property('PushNotification'); + // expect(instance.PushNotification).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/PushNotificationSentEvent.spec.js b/test/model/PushNotificationSentEvent.spec.js new file mode 100644 index 00000000..1436f1e2 --- /dev/null +++ b/test/model/PushNotificationSentEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('PushNotificationSentEvent', function() { + beforeEach(function() { + instance = new Flipdish.PushNotificationSentEvent(); + }); + + it('should create an instance of PushNotificationSentEvent', function() { + // TODO: update the code to test PushNotificationSentEvent + expect(instance).to.be.a(Flipdish.PushNotificationSentEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property PushNotification (base name: "PushNotification")', function() { + // TODO: update the code to test the property PushNotification + expect(instance).to.have.property('PushNotification'); + // expect(instance.PushNotification).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/Range.spec.js b/test/model/Range.spec.js index 156a8fb6..e94ba2c0 100644 --- a/test/model/Range.spec.js +++ b/test/model/Range.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,51 +29,36 @@ 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]; - } + describe('(package)', function() { + describe('Range', function() { + beforeEach(function() { + instance = new Flipdish.Range(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of Range', function() { + // TODO: update the code to test Range + expect(instance).to.be.a(Flipdish.Range); + }); - 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() { + // TODO: update the code to test the property StartTime + expect(instance).to.have.property('StartTime'); + // expect(instance.StartTime).to.be(expectedValueLiteral); + }); - it('should have the property startTime (base name: "StartTime")', function() { - // uncomment below and update the code to test the property startTime - //var instane = new Flipdish.Range(); - //expect(instance).to.be(); - }); + it('should have the property Period (base name: "Period")', function() { + // TODO: update the code to test the property Period + expect(instance).to.have.property('Period'); + // expect(instance.Period).to.be(expectedValueLiteral); + }); - it('should have the property period (base name: "Period")', function() { - // uncomment below and update the code to test the property period - //var instane = new Flipdish.Range(); - //expect(instance).to.be(); - }); + it('should have the property DayOfWeek (base name: "DayOfWeek")', function() { + // TODO: update the code to test the property DayOfWeek + expect(instance).to.have.property('DayOfWeek'); + // expect(instance.DayOfWeek).to.be(expectedValueLiteral); + }); - it('should have the property dayOfWeek (base name: "DayOfWeek")', function() { - // uncomment below and update the code to test the property dayOfWeek - //var instane = new Flipdish.Range(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RedeemInvitationResult.spec.js b/test/model/RedeemInvitationResult.spec.js new file mode 100644 index 00000000..6b2f0d08 --- /dev/null +++ b/test/model/RedeemInvitationResult.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RedeemInvitationResult', function() { + beforeEach(function() { + instance = new Flipdish.RedeemInvitationResult(); + }); + + it('should create an instance of RedeemInvitationResult', function() { + // TODO: update the code to test RedeemInvitationResult + expect(instance).to.be.a(Flipdish.RedeemInvitationResult); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + it('should have the property InvitationStatus (base name: "InvitationStatus")', function() { + // TODO: update the code to test the property InvitationStatus + expect(instance).to.have.property('InvitationStatus'); + // expect(instance.InvitationStatus).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/Refund.spec.js b/test/model/Refund.spec.js index e6a6c94f..c336bca0 100644 --- a/test/model/Refund.spec.js +++ b/test/model/Refund.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,51 +29,36 @@ 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]; - } + describe('(package)', function() { + describe('Refund', function() { + beforeEach(function() { + instance = new Flipdish.Refund(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of Refund', function() { + // TODO: update the code to test Refund + expect(instance).to.be.a(Flipdish.Refund); + }); - 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() { + // TODO: update the code to test the property RefundReason + expect(instance).to.have.property('RefundReason'); + // expect(instance.RefundReason).to.be(expectedValueLiteral); + }); - it('should have the property refundReason (base name: "RefundReason")', function() { - // uncomment below and update the code to test the property refundReason - //var instane = new Flipdish.Refund(); - //expect(instance).to.be(); - }); + it('should have the property RefundAmount (base name: "RefundAmount")', function() { + // TODO: update the code to test the property RefundAmount + expect(instance).to.have.property('RefundAmount'); + // expect(instance.RefundAmount).to.be(expectedValueLiteral); + }); - it('should have the property refundAmount (base name: "RefundAmount")', function() { - // uncomment below and update the code to test the property refundAmount - //var instane = new Flipdish.Refund(); - //expect(instance).to.be(); - }); + it('should have the property NotifyCustomer (base name: "NotifyCustomer")', function() { + // TODO: update the code to test the property NotifyCustomer + expect(instance).to.have.property('NotifyCustomer'); + // expect(instance.NotifyCustomer).to.be(expectedValueLiteral); + }); - it('should have the property notifyCustomer (base name: "NotifyCustomer")', function() { - // uncomment below and update the code to test the property notifyCustomer - //var instane = new Flipdish.Refund(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/Reject.spec.js b/test/model/Reject.spec.js index 6788591f..1f9b3c65 100644 --- a/test/model/Reject.spec.js +++ b/test/model/Reject.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,30 @@ 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); - }); + describe('(package)', function() { + describe('Reject', function() { + beforeEach(function() { + instance = new Flipdish.Reject(); + }); + + it('should create an instance of Reject', function() { + // TODO: update the code to test Reject + expect(instance).to.be.a(Flipdish.Reject); + }); + + it('should have the property RejectReason (base name: "RejectReason")', function() { + // TODO: update the code to test the property RejectReason + expect(instance).to.have.property('RejectReason'); + // expect(instance.RejectReason).to.be(expectedValueLiteral); + }); + + it('should have the property DoNotNotifyCustomer (base name: "DoNotNotifyCustomer")', function() { + // TODO: update the code to test the property DoNotNotifyCustomer + expect(instance).to.have.property('DoNotNotifyCustomer'); + // expect(instance.DoNotNotifyCustomer).to.be(expectedValueLiteral); + }); - it('should have the property rejectReason (base name: "RejectReason")', function() { - // uncomment below and update the code to test the property rejectReason - //var instane = 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..8cf4b52b --- /dev/null +++ b/test/model/RequestLoginPinModel.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RequestLoginPinModel', function() { + beforeEach(function() { + instance = new Flipdish.RequestLoginPinModel(); + }); + + it('should create an instance of RequestLoginPinModel', function() { + // TODO: update the code to test RequestLoginPinModel + expect(instance).to.be.a(Flipdish.RequestLoginPinModel); + }); + + it('should have the property Email (base name: "Email")', function() { + // TODO: update the code to test the property Email + expect(instance).to.have.property('Email'); + // expect(instance.Email).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RequestLoginPinResposne.spec.js b/test/model/RequestLoginPinResposne.spec.js new file mode 100644 index 00000000..5dc682e8 --- /dev/null +++ b/test/model/RequestLoginPinResposne.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RequestLoginPinResposne', function() { + beforeEach(function() { + instance = new Flipdish.RequestLoginPinResposne(); + }); + + it('should create an instance of RequestLoginPinResposne', function() { + // TODO: update the code to test RequestLoginPinResposne + expect(instance).to.be.a(Flipdish.RequestLoginPinResposne); + }); + + it('should have the property LoginPinSentViaEmail (base name: "LoginPinSentViaEmail")', function() { + // TODO: update the code to test the property LoginPinSentViaEmail + expect(instance).to.have.property('LoginPinSentViaEmail'); + // expect(instance.LoginPinSentViaEmail).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RequestPasswordResetModel.spec.js b/test/model/RequestPasswordResetModel.spec.js new file mode 100644 index 00000000..a0e0b0c8 --- /dev/null +++ b/test/model/RequestPasswordResetModel.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RequestPasswordResetModel', function() { + beforeEach(function() { + instance = new Flipdish.RequestPasswordResetModel(); + }); + + it('should create an instance of RequestPasswordResetModel', function() { + // TODO: update the code to test RequestPasswordResetModel + expect(instance).to.be.a(Flipdish.RequestPasswordResetModel); + }); + + it('should have the property Email (base name: "Email")', function() { + // TODO: update the code to test the property Email + expect(instance).to.have.property('Email'); + // expect(instance.Email).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultAllMetadataResult.spec.js b/test/model/RestApiArrayResultAllMetadataResult.spec.js new file mode 100644 index 00000000..e29271e2 --- /dev/null +++ b/test/model/RestApiArrayResultAllMetadataResult.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultAllMetadataResult', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultAllMetadataResult(); + }); + + it('should create an instance of RestApiArrayResultAllMetadataResult', function() { + // TODO: update the code to test RestApiArrayResultAllMetadataResult + expect(instance).to.be.a(Flipdish.RestApiArrayResultAllMetadataResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultApmCurrencyDataPoint.spec.js b/test/model/RestApiArrayResultApmCurrencyDataPoint.spec.js new file mode 100644 index 00000000..454fae77 --- /dev/null +++ b/test/model/RestApiArrayResultApmCurrencyDataPoint.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultApmCurrencyDataPoint', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultApmCurrencyDataPoint(); + }); + + it('should create an instance of RestApiArrayResultApmCurrencyDataPoint', function() { + // TODO: update the code to test RestApiArrayResultApmCurrencyDataPoint + expect(instance).to.be.a(Flipdish.RestApiArrayResultApmCurrencyDataPoint); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultApmDataPoint.spec.js b/test/model/RestApiArrayResultApmDataPoint.spec.js new file mode 100644 index 00000000..03a6335a --- /dev/null +++ b/test/model/RestApiArrayResultApmDataPoint.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultApmDataPoint', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultApmDataPoint(); + }); + + it('should create an instance of RestApiArrayResultApmDataPoint', function() { + // TODO: update the code to test RestApiArrayResultApmDataPoint + expect(instance).to.be.a(Flipdish.RestApiArrayResultApmDataPoint); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultApmHourlyDataPoint.spec.js b/test/model/RestApiArrayResultApmHourlyDataPoint.spec.js new file mode 100644 index 00000000..32a82918 --- /dev/null +++ b/test/model/RestApiArrayResultApmHourlyDataPoint.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultApmHourlyDataPoint', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultApmHourlyDataPoint(); + }); + + it('should create an instance of RestApiArrayResultApmHourlyDataPoint', function() { + // TODO: update the code to test RestApiArrayResultApmHourlyDataPoint + expect(instance).to.be.a(Flipdish.RestApiArrayResultApmHourlyDataPoint); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultBankAccountSummary.spec.js b/test/model/RestApiArrayResultBankAccountSummary.spec.js new file mode 100644 index 00000000..ce515fd6 --- /dev/null +++ b/test/model/RestApiArrayResultBankAccountSummary.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultBankAccountSummary', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultBankAccountSummary(); + }); + + it('should create an instance of RestApiArrayResultBankAccountSummary', function() { + // TODO: update the code to test RestApiArrayResultBankAccountSummary + expect(instance).to.be.a(Flipdish.RestApiArrayResultBankAccountSummary); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultBusinessHoursPeriod.spec.js b/test/model/RestApiArrayResultBusinessHoursPeriod.spec.js new file mode 100644 index 00000000..f00f7696 --- /dev/null +++ b/test/model/RestApiArrayResultBusinessHoursPeriod.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultBusinessHoursPeriod', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultBusinessHoursPeriod(); + }); + + it('should create an instance of RestApiArrayResultBusinessHoursPeriod', function() { + // TODO: update the code to test RestApiArrayResultBusinessHoursPeriod + expect(instance).to.be.a(Flipdish.RestApiArrayResultBusinessHoursPeriod); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultCountryWithAccountFieldsDefinitions.spec.js b/test/model/RestApiArrayResultCountryWithAccountFieldsDefinitions.spec.js new file mode 100644 index 00000000..af2fb397 --- /dev/null +++ b/test/model/RestApiArrayResultCountryWithAccountFieldsDefinitions.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultCountryWithAccountFieldsDefinitions', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultCountryWithAccountFieldsDefinitions(); + }); + + it('should create an instance of RestApiArrayResultCountryWithAccountFieldsDefinitions', function() { + // TODO: update the code to test RestApiArrayResultCountryWithAccountFieldsDefinitions + expect(instance).to.be.a(Flipdish.RestApiArrayResultCountryWithAccountFieldsDefinitions); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultDeliveryZone.spec.js b/test/model/RestApiArrayResultDeliveryZone.spec.js new file mode 100644 index 00000000..f1111b26 --- /dev/null +++ b/test/model/RestApiArrayResultDeliveryZone.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultDeliveryZone', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultDeliveryZone(); + }); + + it('should create an instance of RestApiArrayResultDeliveryZone', function() { + // TODO: update the code to test RestApiArrayResultDeliveryZone + expect(instance).to.be.a(Flipdish.RestApiArrayResultDeliveryZone); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultDriver.spec.js b/test/model/RestApiArrayResultDriver.spec.js new file mode 100644 index 00000000..62ddb853 --- /dev/null +++ b/test/model/RestApiArrayResultDriver.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultDriver', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultDriver(); + }); + + it('should create an instance of RestApiArrayResultDriver', function() { + // TODO: update the code to test RestApiArrayResultDriver + expect(instance).to.be.a(Flipdish.RestApiArrayResultDriver); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultDriverStore.spec.js b/test/model/RestApiArrayResultDriverStore.spec.js new file mode 100644 index 00000000..5357c156 --- /dev/null +++ b/test/model/RestApiArrayResultDriverStore.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultDriverStore', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultDriverStore(); + }); + + it('should create an instance of RestApiArrayResultDriverStore', function() { + // TODO: update the code to test RestApiArrayResultDriverStore + expect(instance).to.be.a(Flipdish.RestApiArrayResultDriverStore); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultEmvTerminalWithAssignments.spec.js b/test/model/RestApiArrayResultEmvTerminalWithAssignments.spec.js new file mode 100644 index 00000000..91797a9a --- /dev/null +++ b/test/model/RestApiArrayResultEmvTerminalWithAssignments.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultEmvTerminalWithAssignments', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultEmvTerminalWithAssignments(); + }); + + it('should create an instance of RestApiArrayResultEmvTerminalWithAssignments', function() { + // TODO: update the code to test RestApiArrayResultEmvTerminalWithAssignments + expect(instance).to.be.a(Flipdish.RestApiArrayResultEmvTerminalWithAssignments); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultHomeAction.spec.js b/test/model/RestApiArrayResultHomeAction.spec.js new file mode 100644 index 00000000..c46cb663 --- /dev/null +++ b/test/model/RestApiArrayResultHomeAction.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultHomeAction', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultHomeAction(); + }); + + it('should create an instance of RestApiArrayResultHomeAction', function() { + // TODO: update the code to test RestApiArrayResultHomeAction + expect(instance).to.be.a(Flipdish.RestApiArrayResultHomeAction); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultLocalisedTimeZone.spec.js b/test/model/RestApiArrayResultLocalisedTimeZone.spec.js new file mode 100644 index 00000000..4252d01c --- /dev/null +++ b/test/model/RestApiArrayResultLocalisedTimeZone.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultLocalisedTimeZone', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultLocalisedTimeZone(); + }); + + it('should create an instance of RestApiArrayResultLocalisedTimeZone', function() { + // TODO: update the code to test RestApiArrayResultLocalisedTimeZone + expect(instance).to.be.a(Flipdish.RestApiArrayResultLocalisedTimeZone); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultLoyaltyCampaign.spec.js b/test/model/RestApiArrayResultLoyaltyCampaign.spec.js new file mode 100644 index 00000000..59b52c00 --- /dev/null +++ b/test/model/RestApiArrayResultLoyaltyCampaign.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultLoyaltyCampaign', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultLoyaltyCampaign(); + }); + + it('should create an instance of RestApiArrayResultLoyaltyCampaign', function() { + // TODO: update the code to test RestApiArrayResultLoyaltyCampaign + expect(instance).to.be.a(Flipdish.RestApiArrayResultLoyaltyCampaign); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultMenuCheckpoint.spec.js b/test/model/RestApiArrayResultMenuCheckpoint.spec.js new file mode 100644 index 00000000..cea8dd60 --- /dev/null +++ b/test/model/RestApiArrayResultMenuCheckpoint.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultMenuCheckpoint', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuCheckpoint(); + }); + + it('should create an instance of RestApiArrayResultMenuCheckpoint', function() { + // TODO: update the code to test RestApiArrayResultMenuCheckpoint + expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuCheckpoint); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultMenuElementEditResponse.spec.js b/test/model/RestApiArrayResultMenuElementEditResponse.spec.js new file mode 100644 index 00000000..b49c38b4 --- /dev/null +++ b/test/model/RestApiArrayResultMenuElementEditResponse.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultMenuElementEditResponse', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuElementEditResponse(); + }); + + it('should create an instance of RestApiArrayResultMenuElementEditResponse', function() { + // TODO: update the code to test RestApiArrayResultMenuElementEditResponse + expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuElementEditResponse); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultMenuItemOptionSet.spec.js b/test/model/RestApiArrayResultMenuItemOptionSet.spec.js index 8c9d5662..25a5b2bc 100644 --- a/test/model/RestApiArrayResultMenuItemOptionSet.spec.js +++ b/test/model/RestApiArrayResultMenuItemOptionSet.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiArrayResultMenuItemOptionSet', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuItemOptionSet(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiArrayResultMenuItemOptionSet', function() { + // TODO: update the code to test RestApiArrayResultMenuItemOptionSet + expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuItemOptionSet); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiArrayResultMenuItemOptionSet(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiArrayResultMenuItemOptionSetItem.spec.js b/test/model/RestApiArrayResultMenuItemOptionSetItem.spec.js index 9d807401..8ab44b0b 100644 --- a/test/model/RestApiArrayResultMenuItemOptionSetItem.spec.js +++ b/test/model/RestApiArrayResultMenuItemOptionSetItem.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiArrayResultMenuItemOptionSetItem', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuItemOptionSetItem(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiArrayResultMenuItemOptionSetItem', function() { + // TODO: update the code to test RestApiArrayResultMenuItemOptionSetItem + expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuItemOptionSetItem); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiArrayResultMenuItemOptionSetItem(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiArrayResultMenuSection.spec.js b/test/model/RestApiArrayResultMenuSection.spec.js index f4cd2078..086584ca 100644 --- a/test/model/RestApiArrayResultMenuSection.spec.js +++ b/test/model/RestApiArrayResultMenuSection.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiArrayResultMenuSection', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuSection(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiArrayResultMenuSection', function() { + // TODO: update the code to test RestApiArrayResultMenuSection + expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuSection); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiArrayResultMenuSection(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiArrayResultMenuSectionItem.spec.js b/test/model/RestApiArrayResultMenuSectionItem.spec.js index 0cd783e8..d7317c0f 100644 --- a/test/model/RestApiArrayResultMenuSectionItem.spec.js +++ b/test/model/RestApiArrayResultMenuSectionItem.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiArrayResultMenuSectionItem', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuSectionItem(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiArrayResultMenuSectionItem', function() { + // TODO: update the code to test RestApiArrayResultMenuSectionItem + expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuSectionItem); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = 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..ecc355f3 --- /dev/null +++ b/test/model/RestApiArrayResultMenuStoreNames.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultMenuStoreNames', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuStoreNames(); + }); + + it('should create an instance of RestApiArrayResultMenuStoreNames', function() { + // TODO: update the code to test RestApiArrayResultMenuStoreNames + expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuStoreNames); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultMenuSummary.spec.js b/test/model/RestApiArrayResultMenuSummary.spec.js new file mode 100644 index 00000000..4222f3d7 --- /dev/null +++ b/test/model/RestApiArrayResultMenuSummary.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultMenuSummary', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuSummary(); + }); + + it('should create an instance of RestApiArrayResultMenuSummary', function() { + // TODO: update the code to test RestApiArrayResultMenuSummary + expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuSummary); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultMenuTaxDetails.spec.js b/test/model/RestApiArrayResultMenuTaxDetails.spec.js new file mode 100644 index 00000000..2ae98abd --- /dev/null +++ b/test/model/RestApiArrayResultMenuTaxDetails.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultMenuTaxDetails', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuTaxDetails(); + }); + + it('should create an instance of RestApiArrayResultMenuTaxDetails', function() { + // TODO: update the code to test RestApiArrayResultMenuTaxDetails + expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuTaxDetails); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultMetadata.spec.js b/test/model/RestApiArrayResultMetadata.spec.js index ee85e74b..857abe0a 100644 --- a/test/model/RestApiArrayResultMetadata.spec.js +++ b/test/model/RestApiArrayResultMetadata.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiArrayResultMetadata', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMetadata(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiArrayResultMetadata', function() { + // TODO: update the code to test RestApiArrayResultMetadata + expect(instance).to.be.a(Flipdish.RestApiArrayResultMetadata); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiArrayResultMetadata(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiArrayResultOAuthApp.spec.js b/test/model/RestApiArrayResultOAuthApp.spec.js new file mode 100644 index 00000000..685b9ef2 --- /dev/null +++ b/test/model/RestApiArrayResultOAuthApp.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultOAuthApp', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultOAuthApp(); + }); + + it('should create an instance of RestApiArrayResultOAuthApp', function() { + // TODO: update the code to test RestApiArrayResultOAuthApp + expect(instance).to.be.a(Flipdish.RestApiArrayResultOAuthApp); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultOAuthClient.spec.js b/test/model/RestApiArrayResultOAuthClient.spec.js deleted file mode 100644 index 44ac356c..00000000 --- a/test/model/RestApiArrayResultOAuthClient.spec.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Flipdish Open API v1.0 - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.Flipdish); - } -}(this, function(expect, Flipdish) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Flipdish.RestApiArrayResultOAuthClient(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RestApiArrayResultOAuthClient', function() { - it('should create an instance of RestApiArrayResultOAuthClient', function() { - // uncomment below and update the code to test RestApiArrayResultOAuthClient - //var instane = new Flipdish.RestApiArrayResultOAuthClient(); - //expect(instance).to.be.a(Flipdish.RestApiArrayResultOAuthClient); - }); - - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiArrayResultOAuthClient(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RestApiArrayResultOauthClientRedirectUri.spec.js b/test/model/RestApiArrayResultOauthClientRedirectUri.spec.js index 4fda4490..7919b9d1 100644 --- a/test/model/RestApiArrayResultOauthClientRedirectUri.spec.js +++ b/test/model/RestApiArrayResultOauthClientRedirectUri.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiArrayResultOauthClientRedirectUri', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultOauthClientRedirectUri(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiArrayResultOauthClientRedirectUri', function() { + // TODO: update the code to test RestApiArrayResultOauthClientRedirectUri + expect(instance).to.be.a(Flipdish.RestApiArrayResultOauthClientRedirectUri); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiArrayResultOauthClientRedirectUri(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiArrayResultPayoutSummary.spec.js b/test/model/RestApiArrayResultPayoutSummary.spec.js new file mode 100644 index 00000000..b856bbf8 --- /dev/null +++ b/test/model/RestApiArrayResultPayoutSummary.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultPayoutSummary', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultPayoutSummary(); + }); + + it('should create an instance of RestApiArrayResultPayoutSummary', function() { + // TODO: update the code to test RestApiArrayResultPayoutSummary + expect(instance).to.be.a(Flipdish.RestApiArrayResultPayoutSummary); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultPreOrderTime.spec.js b/test/model/RestApiArrayResultPreOrderTime.spec.js new file mode 100644 index 00000000..a91ede10 --- /dev/null +++ b/test/model/RestApiArrayResultPreOrderTime.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultPreOrderTime', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultPreOrderTime(); + }); + + it('should create an instance of RestApiArrayResultPreOrderTime', function() { + // TODO: update the code to test RestApiArrayResultPreOrderTime + expect(instance).to.be.a(Flipdish.RestApiArrayResultPreOrderTime); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultProcessingFeeConfig.spec.js b/test/model/RestApiArrayResultProcessingFeeConfig.spec.js new file mode 100644 index 00000000..566339a5 --- /dev/null +++ b/test/model/RestApiArrayResultProcessingFeeConfig.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultProcessingFeeConfig', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultProcessingFeeConfig(); + }); + + it('should create an instance of RestApiArrayResultProcessingFeeConfig', function() { + // TODO: update the code to test RestApiArrayResultProcessingFeeConfig + expect(instance).to.be.a(Flipdish.RestApiArrayResultProcessingFeeConfig); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultRestApiDefaultResponse.spec.js b/test/model/RestApiArrayResultRestApiDefaultResponse.spec.js index f0ed153b..8baa3234 100644 --- a/test/model/RestApiArrayResultRestApiDefaultResponse.spec.js +++ b/test/model/RestApiArrayResultRestApiDefaultResponse.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiArrayResultRestApiDefaultResponse', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultRestApiDefaultResponse(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiArrayResultRestApiDefaultResponse', function() { + // TODO: update the code to test RestApiArrayResultRestApiDefaultResponse + expect(instance).to.be.a(Flipdish.RestApiArrayResultRestApiDefaultResponse); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiArrayResultRestApiDefaultResponse(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiArrayResultRetentionCampaign.spec.js b/test/model/RestApiArrayResultRetentionCampaign.spec.js new file mode 100644 index 00000000..967e76bf --- /dev/null +++ b/test/model/RestApiArrayResultRetentionCampaign.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultRetentionCampaign', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultRetentionCampaign(); + }); + + it('should create an instance of RestApiArrayResultRetentionCampaign', function() { + // TODO: update the code to test RestApiArrayResultRetentionCampaign + expect(instance).to.be.a(Flipdish.RestApiArrayResultRetentionCampaign); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultStoreListItem.spec.js b/test/model/RestApiArrayResultStoreListItem.spec.js new file mode 100644 index 00000000..7cdd3563 --- /dev/null +++ b/test/model/RestApiArrayResultStoreListItem.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultStoreListItem', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultStoreListItem(); + }); + + it('should create an instance of RestApiArrayResultStoreListItem', function() { + // TODO: update the code to test RestApiArrayResultStoreListItem + expect(instance).to.be.a(Flipdish.RestApiArrayResultStoreListItem); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultStoreStatistics.spec.js b/test/model/RestApiArrayResultStoreStatistics.spec.js new file mode 100644 index 00000000..dff3f501 --- /dev/null +++ b/test/model/RestApiArrayResultStoreStatistics.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultStoreStatistics', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultStoreStatistics(); + }); + + it('should create an instance of RestApiArrayResultStoreStatistics', function() { + // TODO: update the code to test RestApiArrayResultStoreStatistics + expect(instance).to.be.a(Flipdish.RestApiArrayResultStoreStatistics); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultSupportedCountry.spec.js b/test/model/RestApiArrayResultSupportedCountry.spec.js new file mode 100644 index 00000000..7845337f --- /dev/null +++ b/test/model/RestApiArrayResultSupportedCountry.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultSupportedCountry', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultSupportedCountry(); + }); + + it('should create an instance of RestApiArrayResultSupportedCountry', function() { + // TODO: update the code to test RestApiArrayResultSupportedCountry + expect(instance).to.be.a(Flipdish.RestApiArrayResultSupportedCountry); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultTeammate.spec.js b/test/model/RestApiArrayResultTeammate.spec.js new file mode 100644 index 00000000..c14bda33 --- /dev/null +++ b/test/model/RestApiArrayResultTeammate.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultTeammate', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultTeammate(); + }); + + it('should create an instance of RestApiArrayResultTeammate', function() { + // TODO: update the code to test RestApiArrayResultTeammate + expect(instance).to.be.a(Flipdish.RestApiArrayResultTeammate); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultVoucherDataPoint.spec.js b/test/model/RestApiArrayResultVoucherDataPoint.spec.js new file mode 100644 index 00000000..ac91440a --- /dev/null +++ b/test/model/RestApiArrayResultVoucherDataPoint.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiArrayResultVoucherDataPoint', function() { + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultVoucherDataPoint(); + }); + + it('should create an instance of RestApiArrayResultVoucherDataPoint', function() { + // TODO: update the code to test RestApiArrayResultVoucherDataPoint + expect(instance).to.be.a(Flipdish.RestApiArrayResultVoucherDataPoint); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiArrayResultWebhookSubscription.spec.js b/test/model/RestApiArrayResultWebhookSubscription.spec.js deleted file mode 100644 index 42da9d13..00000000 --- a/test/model/RestApiArrayResultWebhookSubscription.spec.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Flipdish Open API v1.0 - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.Flipdish); - } -}(this, function(expect, Flipdish) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Flipdish.RestApiArrayResultWebhookSubscription(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RestApiArrayResultWebhookSubscription', function() { - it('should create an instance of RestApiArrayResultWebhookSubscription', function() { - // uncomment below and update the code to test RestApiArrayResultWebhookSubscription - //var instane = new Flipdish.RestApiArrayResultWebhookSubscription(); - //expect(instance).to.be.a(Flipdish.RestApiArrayResultWebhookSubscription); - }); - - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiArrayResultWebhookSubscription(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RestApiDefaultResponse.spec.js b/test/model/RestApiDefaultResponse.spec.js index 48cf511a..c9dfa0ee 100644 --- a/test/model/RestApiDefaultResponse.spec.js +++ b/test/model/RestApiDefaultResponse.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiDefaultResponse', function() { + beforeEach(function() { + instance = new Flipdish.RestApiDefaultResponse(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiDefaultResponse', function() { + // TODO: update the code to test RestApiDefaultResponse + expect(instance).to.be.a(Flipdish.RestApiDefaultResponse); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiDefaultResponse(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiErrorResult.spec.js b/test/model/RestApiErrorResult.spec.js index bc72ebfd..bd251010 100644 --- a/test/model/RestApiErrorResult.spec.js +++ b/test/model/RestApiErrorResult.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,45 +29,42 @@ var instance; - beforeEach(function() { - instance = new Flipdish.RestApiErrorResult(); - }); + describe('(package)', function() { + describe('RestApiErrorResult', function() { + 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]; - } + it('should create an instance of RestApiErrorResult', function() { + // TODO: update the code to test RestApiErrorResult + expect(instance).to.be.a(Flipdish.RestApiErrorResult); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property Message (base name: "Message")', function() { + // TODO: update the code to test the property Message + expect(instance).to.have.property('Message'); + // expect(instance.Message).to.be(expectedValueLiteral); + }); - 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 ErrorCode (base name: "ErrorCode")', function() { + // TODO: update the code to test the property ErrorCode + expect(instance).to.have.property('ErrorCode'); + // expect(instance.ErrorCode).to.be(expectedValueLiteral); + }); - it('should have the property message (base name: "Message")', function() { - // uncomment below and update the code to test the property message - //var instane = new Flipdish.RestApiErrorResult(); - //expect(instance).to.be(); - }); + it('should have the property StackTrace (base name: "StackTrace")', function() { + // TODO: update the code to test the property StackTrace + expect(instance).to.have.property('StackTrace'); + // expect(instance.StackTrace).to.be(expectedValueLiteral); + }); - it('should have the property errors (base name: "Errors")', function() { - // uncomment below and update the code to test the property errors - //var instane = new Flipdish.RestApiErrorResult(); - //expect(instance).to.be(); - }); + it('should have the property Errors (base name: "Errors")', function() { + // TODO: update the code to test the property Errors + expect(instance).to.have.property('Errors'); + // expect(instance.Errors).to.be(expectedValueLiteral); + }); + }); }); })); diff --git a/test/model/RestApiEventSearchPaginationResult.spec.js b/test/model/RestApiEventSearchPaginationResult.spec.js index 51a46045..2df483d5 100644 --- a/test/model/RestApiEventSearchPaginationResult.spec.js +++ b/test/model/RestApiEventSearchPaginationResult.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,57 +29,42 @@ var instance; - beforeEach(function() { - instance = new Flipdish.RestApiEventSearchPaginationResult(); - }); + describe('(package)', function() { + describe('RestApiEventSearchPaginationResult', function() { + 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]; - } + it('should create an instance of RestApiEventSearchPaginationResult', function() { + // TODO: update the code to test RestApiEventSearchPaginationResult + expect(instance).to.be.a(Flipdish.RestApiEventSearchPaginationResult); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - 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 Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiEventSearchPaginationResult(); - //expect(instance).to.be(); - }); + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); - it('should have the property page (base name: "Page")', function() { - // uncomment below and update the code to test the property page - //var instane = 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 instane = new Flipdish.RestApiEventSearchPaginationResult(); - //expect(instance).to.be(); - }); + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); - it('should have the property totalRecordCount (base name: "TotalRecordCount")', function() { - // uncomment below and update the code to test the property totalRecordCount - //var instane = new Flipdish.RestApiEventSearchPaginationResult(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiForbiddenResult.spec.js b/test/model/RestApiForbiddenResult.spec.js index 111efc1c..dec15138 100644 --- a/test/model/RestApiForbiddenResult.spec.js +++ b/test/model/RestApiForbiddenResult.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiForbiddenResult', function() { + beforeEach(function() { + instance = new Flipdish.RestApiForbiddenResult(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiForbiddenResult', function() { + // TODO: update the code to test RestApiForbiddenResult + expect(instance).to.be.a(Flipdish.RestApiForbiddenResult); + }); - 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() { + // TODO: update the code to test the property Message + expect(instance).to.have.property('Message'); + // expect(instance.Message).to.be(expectedValueLiteral); + }); - it('should have the property message (base name: "Message")', function() { - // uncomment below and update the code to test the property message - //var instane = new Flipdish.RestApiForbiddenResult(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiIntegerResult.spec.js b/test/model/RestApiIntegerResult.spec.js index 28322e70..e61d3af0 100644 --- a/test/model/RestApiIntegerResult.spec.js +++ b/test/model/RestApiIntegerResult.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiIntegerResult', function() { + beforeEach(function() { + instance = new Flipdish.RestApiIntegerResult(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiIntegerResult', function() { + // TODO: update the code to test RestApiIntegerResult + expect(instance).to.be.a(Flipdish.RestApiIntegerResult); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = 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..a31c6aab --- /dev/null +++ b/test/model/RestApiPaginationResultApp.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultApp', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultApp(); + }); + + it('should create an instance of RestApiPaginationResultApp', function() { + // TODO: update the code to test RestApiPaginationResultApp + expect(instance).to.be.a(Flipdish.RestApiPaginationResultApp); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultBusinessHoursOverride.spec.js b/test/model/RestApiPaginationResultBusinessHoursOverride.spec.js new file mode 100644 index 00000000..2e75316a --- /dev/null +++ b/test/model/RestApiPaginationResultBusinessHoursOverride.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultBusinessHoursOverride', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultBusinessHoursOverride(); + }); + + it('should create an instance of RestApiPaginationResultBusinessHoursOverride', function() { + // TODO: update the code to test RestApiPaginationResultBusinessHoursOverride + expect(instance).to.be.a(Flipdish.RestApiPaginationResultBusinessHoursOverride); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultHttpRequestAndResponseLog.spec.js b/test/model/RestApiPaginationResultHttpRequestAndResponseLog.spec.js index c8f88f22..557dcdab 100644 --- a/test/model/RestApiPaginationResultHttpRequestAndResponseLog.spec.js +++ b/test/model/RestApiPaginationResultHttpRequestAndResponseLog.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,57 +29,42 @@ var instance; - beforeEach(function() { - instance = new Flipdish.RestApiPaginationResultHttpRequestAndResponseLog(); - }); + describe('(package)', function() { + describe('RestApiPaginationResultHttpRequestAndResponseLog', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultHttpRequestAndResponseLog(); + }); - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } + it('should create an instance of RestApiPaginationResultHttpRequestAndResponseLog', function() { + // TODO: update the code to test RestApiPaginationResultHttpRequestAndResponseLog + expect(instance).to.be.a(Flipdish.RestApiPaginationResultHttpRequestAndResponseLog); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); - describe('RestApiPaginationResultHttpRequestAndResponseLog', function() { - it('should create an instance of RestApiPaginationResultHttpRequestAndResponseLog', function() { - // uncomment below and update the code to test RestApiPaginationResultHttpRequestAndResponseLog - //var instane = new Flipdish.RestApiPaginationResultHttpRequestAndResponseLog(); - //expect(instance).to.be.a(Flipdish.RestApiPaginationResultHttpRequestAndResponseLog); - }); + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); - it('should have the property page (base name: "Page")', function() { - // uncomment below and update the code to test the property page - //var instane = new Flipdish.RestApiPaginationResultHttpRequestAndResponseLog(); - //expect(instance).to.be(); - }); + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); - it('should have the property limit (base name: "Limit")', function() { - // uncomment below and update the code to test the property limit - //var instane = new Flipdish.RestApiPaginationResultHttpRequestAndResponseLog(); - //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 instane = new Flipdish.RestApiPaginationResultHttpRequestAndResponseLog(); - //expect(instance).to.be(); - }); + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiPaginationResultHttpRequestAndResponseLog(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiPaginationResultHydraDeviceDetails.spec.js b/test/model/RestApiPaginationResultHydraDeviceDetails.spec.js new file mode 100644 index 00000000..11f52ceb --- /dev/null +++ b/test/model/RestApiPaginationResultHydraDeviceDetails.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultHydraDeviceDetails', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultHydraDeviceDetails(); + }); + + it('should create an instance of RestApiPaginationResultHydraDeviceDetails', function() { + // TODO: update the code to test RestApiPaginationResultHydraDeviceDetails + expect(instance).to.be.a(Flipdish.RestApiPaginationResultHydraDeviceDetails); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultOAuthTokenModel.spec.js b/test/model/RestApiPaginationResultOAuthTokenModel.spec.js index b49c97b3..13804f00 100644 --- a/test/model/RestApiPaginationResultOAuthTokenModel.spec.js +++ b/test/model/RestApiPaginationResultOAuthTokenModel.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,57 +29,42 @@ var instance; - beforeEach(function() { - instance = new Flipdish.RestApiPaginationResultOAuthTokenModel(); - }); + describe('(package)', function() { + describe('RestApiPaginationResultOAuthTokenModel', function() { + 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]; - } + it('should create an instance of RestApiPaginationResultOAuthTokenModel', function() { + // TODO: update the code to test RestApiPaginationResultOAuthTokenModel + expect(instance).to.be.a(Flipdish.RestApiPaginationResultOAuthTokenModel); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); - 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 Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); - it('should have the property page (base name: "Page")', function() { - // uncomment below and update the code to test the property page - //var instane = new Flipdish.RestApiPaginationResultOAuthTokenModel(); - //expect(instance).to.be(); - }); + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); - it('should have the property limit (base name: "Limit")', function() { - // uncomment below and update the code to test the property limit - //var instane = 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 instane = new Flipdish.RestApiPaginationResultOAuthTokenModel(); - //expect(instance).to.be(); - }); + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiPaginationResultOAuthTokenModel(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiPaginationResultOrder.spec.js b/test/model/RestApiPaginationResultOrder.spec.js index 0c5d258b..6cb80e85 100644 --- a/test/model/RestApiPaginationResultOrder.spec.js +++ b/test/model/RestApiPaginationResultOrder.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,57 +29,42 @@ var instance; - beforeEach(function() { - instance = new Flipdish.RestApiPaginationResultOrder(); - }); + describe('(package)', function() { + describe('RestApiPaginationResultOrder', function() { + 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]; - } + it('should create an instance of RestApiPaginationResultOrder', function() { + // TODO: update the code to test RestApiPaginationResultOrder + expect(instance).to.be.a(Flipdish.RestApiPaginationResultOrder); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); - 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 Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); - it('should have the property page (base name: "Page")', function() { - // uncomment below and update the code to test the property page - //var instane = new Flipdish.RestApiPaginationResultOrder(); - //expect(instance).to.be(); - }); + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); - it('should have the property limit (base name: "Limit")', function() { - // uncomment below and update the code to test the property limit - //var instane = 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 instane = new Flipdish.RestApiPaginationResultOrder(); - //expect(instance).to.be(); - }); + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = 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..01fba1b9 --- /dev/null +++ b/test/model/RestApiPaginationResultOrderSummary.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultOrderSummary', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultOrderSummary(); + }); + + it('should create an instance of RestApiPaginationResultOrderSummary', function() { + // TODO: update the code to test RestApiPaginationResultOrderSummary + expect(instance).to.be.a(Flipdish.RestApiPaginationResultOrderSummary); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultPayout.spec.js b/test/model/RestApiPaginationResultPayout.spec.js new file mode 100644 index 00000000..40abb9ea --- /dev/null +++ b/test/model/RestApiPaginationResultPayout.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultPayout', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPayout(); + }); + + it('should create an instance of RestApiPaginationResultPayout', function() { + // TODO: update the code to test RestApiPaginationResultPayout + expect(instance).to.be.a(Flipdish.RestApiPaginationResultPayout); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultPayoutChargeback.spec.js b/test/model/RestApiPaginationResultPayoutChargeback.spec.js new file mode 100644 index 00000000..1f77a257 --- /dev/null +++ b/test/model/RestApiPaginationResultPayoutChargeback.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultPayoutChargeback', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPayoutChargeback(); + }); + + it('should create an instance of RestApiPaginationResultPayoutChargeback', function() { + // TODO: update the code to test RestApiPaginationResultPayoutChargeback + expect(instance).to.be.a(Flipdish.RestApiPaginationResultPayoutChargeback); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultPayoutOrder.spec.js b/test/model/RestApiPaginationResultPayoutOrder.spec.js new file mode 100644 index 00000000..55d61856 --- /dev/null +++ b/test/model/RestApiPaginationResultPayoutOrder.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultPayoutOrder', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPayoutOrder(); + }); + + it('should create an instance of RestApiPaginationResultPayoutOrder', function() { + // TODO: update the code to test RestApiPaginationResultPayoutOrder + expect(instance).to.be.a(Flipdish.RestApiPaginationResultPayoutOrder); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultPayoutOtherCharge.spec.js b/test/model/RestApiPaginationResultPayoutOtherCharge.spec.js new file mode 100644 index 00000000..eea48846 --- /dev/null +++ b/test/model/RestApiPaginationResultPayoutOtherCharge.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultPayoutOtherCharge', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPayoutOtherCharge(); + }); + + it('should create an instance of RestApiPaginationResultPayoutOtherCharge', function() { + // TODO: update the code to test RestApiPaginationResultPayoutOtherCharge + expect(instance).to.be.a(Flipdish.RestApiPaginationResultPayoutOtherCharge); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultPayoutRefund.spec.js b/test/model/RestApiPaginationResultPayoutRefund.spec.js new file mode 100644 index 00000000..b4a33630 --- /dev/null +++ b/test/model/RestApiPaginationResultPayoutRefund.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultPayoutRefund', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPayoutRefund(); + }); + + it('should create an instance of RestApiPaginationResultPayoutRefund', function() { + // TODO: update the code to test RestApiPaginationResultPayoutRefund + expect(instance).to.be.a(Flipdish.RestApiPaginationResultPayoutRefund); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultPhoneCall.spec.js b/test/model/RestApiPaginationResultPhoneCall.spec.js new file mode 100644 index 00000000..9d7d7059 --- /dev/null +++ b/test/model/RestApiPaginationResultPhoneCall.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultPhoneCall', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPhoneCall(); + }); + + it('should create an instance of RestApiPaginationResultPhoneCall', function() { + // TODO: update the code to test RestApiPaginationResultPhoneCall + expect(instance).to.be.a(Flipdish.RestApiPaginationResultPhoneCall); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultPushNotificationResponse.spec.js b/test/model/RestApiPaginationResultPushNotificationResponse.spec.js new file mode 100644 index 00000000..bd2a14c2 --- /dev/null +++ b/test/model/RestApiPaginationResultPushNotificationResponse.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultPushNotificationResponse', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPushNotificationResponse(); + }); + + it('should create an instance of RestApiPaginationResultPushNotificationResponse', function() { + // TODO: update the code to test RestApiPaginationResultPushNotificationResponse + expect(instance).to.be.a(Flipdish.RestApiPaginationResultPushNotificationResponse); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultStore.spec.js b/test/model/RestApiPaginationResultStore.spec.js index 0c346d18..dfb6cc66 100644 --- a/test/model/RestApiPaginationResultStore.spec.js +++ b/test/model/RestApiPaginationResultStore.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,57 +29,42 @@ var instance; - beforeEach(function() { - instance = new Flipdish.RestApiPaginationResultStore(); - }); + describe('(package)', function() { + describe('RestApiPaginationResultStore', function() { + 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]; - } + it('should create an instance of RestApiPaginationResultStore', function() { + // TODO: update the code to test RestApiPaginationResultStore + expect(instance).to.be.a(Flipdish.RestApiPaginationResultStore); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); - 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 Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); - it('should have the property page (base name: "Page")', function() { - // uncomment below and update the code to test the property page - //var instane = new Flipdish.RestApiPaginationResultStore(); - //expect(instance).to.be(); - }); + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); - it('should have the property limit (base name: "Limit")', function() { - // uncomment below and update the code to test the property limit - //var instane = 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 instane = new Flipdish.RestApiPaginationResultStore(); - //expect(instance).to.be(); - }); + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = 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..1476f06b --- /dev/null +++ b/test/model/RestApiPaginationResultStoreGroup.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultStoreGroup', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultStoreGroup(); + }); + + it('should create an instance of RestApiPaginationResultStoreGroup', function() { + // TODO: update the code to test RestApiPaginationResultStoreGroup + expect(instance).to.be.a(Flipdish.RestApiPaginationResultStoreGroup); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultStoreGroupExtended.spec.js b/test/model/RestApiPaginationResultStoreGroupExtended.spec.js new file mode 100644 index 00000000..377f9ef1 --- /dev/null +++ b/test/model/RestApiPaginationResultStoreGroupExtended.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultStoreGroupExtended', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultStoreGroupExtended(); + }); + + it('should create an instance of RestApiPaginationResultStoreGroupExtended', function() { + // TODO: update the code to test RestApiPaginationResultStoreGroupExtended + expect(instance).to.be.a(Flipdish.RestApiPaginationResultStoreGroupExtended); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultStoreHeader.spec.js b/test/model/RestApiPaginationResultStoreHeader.spec.js new file mode 100644 index 00000000..5b6669fc --- /dev/null +++ b/test/model/RestApiPaginationResultStoreHeader.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultStoreHeader', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultStoreHeader(); + }); + + it('should create an instance of RestApiPaginationResultStoreHeader', function() { + // TODO: update the code to test RestApiPaginationResultStoreHeader + expect(instance).to.be.a(Flipdish.RestApiPaginationResultStoreHeader); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultVoucher.spec.js b/test/model/RestApiPaginationResultVoucher.spec.js deleted file mode 100644 index ff0e67a2..00000000 --- a/test/model/RestApiPaginationResultVoucher.spec.js +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Flipdish Open API v1.0 - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.Flipdish); - } -}(this, function(expect, Flipdish) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Flipdish.RestApiPaginationResultVoucher(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RestApiPaginationResultVoucher', function() { - it('should create an instance of RestApiPaginationResultVoucher', function() { - // uncomment below and update the code to test RestApiPaginationResultVoucher - //var instane = new Flipdish.RestApiPaginationResultVoucher(); - //expect(instance).to.be.a(Flipdish.RestApiPaginationResultVoucher); - }); - - it('should have the property page (base name: "Page")', function() { - // uncomment below and update the code to test the property page - //var instane = new Flipdish.RestApiPaginationResultVoucher(); - //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 instane = new Flipdish.RestApiPaginationResultVoucher(); - //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 instane = new Flipdish.RestApiPaginationResultVoucher(); - //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 instane = new Flipdish.RestApiPaginationResultVoucher(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RestApiPaginationResultVoucherSummary.spec.js b/test/model/RestApiPaginationResultVoucherSummary.spec.js new file mode 100644 index 00000000..919f07d2 --- /dev/null +++ b/test/model/RestApiPaginationResultVoucherSummary.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultVoucherSummary', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultVoucherSummary(); + }); + + it('should create an instance of RestApiPaginationResultVoucherSummary', function() { + // TODO: update the code to test RestApiPaginationResultVoucherSummary + expect(instance).to.be.a(Flipdish.RestApiPaginationResultVoucherSummary); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiPaginationResultWebhookLog.spec.js b/test/model/RestApiPaginationResultWebhookLog.spec.js index 19a4b1a2..6e013dbd 100644 --- a/test/model/RestApiPaginationResultWebhookLog.spec.js +++ b/test/model/RestApiPaginationResultWebhookLog.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,57 +29,42 @@ var instance; - beforeEach(function() { - instance = new Flipdish.RestApiPaginationResultWebhookLog(); - }); + describe('(package)', function() { + describe('RestApiPaginationResultWebhookLog', function() { + 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]; - } + it('should create an instance of RestApiPaginationResultWebhookLog', function() { + // TODO: update the code to test RestApiPaginationResultWebhookLog + expect(instance).to.be.a(Flipdish.RestApiPaginationResultWebhookLog); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); - 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 Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); - it('should have the property page (base name: "Page")', function() { - // uncomment below and update the code to test the property page - //var instane = new Flipdish.RestApiPaginationResultWebhookLog(); - //expect(instance).to.be(); - }); + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); - it('should have the property limit (base name: "Limit")', function() { - // uncomment below and update the code to test the property limit - //var instane = 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 instane = new Flipdish.RestApiPaginationResultWebhookLog(); - //expect(instance).to.be(); - }); + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = 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..5b6a7b12 --- /dev/null +++ b/test/model/RestApiPaginationResultWebhookSubscription.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiPaginationResultWebhookSubscription', function() { + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultWebhookSubscription(); + }); + + it('should create an instance of RestApiPaginationResultWebhookSubscription', function() { + // TODO: update the code to test RestApiPaginationResultWebhookSubscription + expect(instance).to.be.a(Flipdish.RestApiPaginationResultWebhookSubscription); + }); + + it('should have the property Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // TODO: update the code to test the property TotalRecordCount + expect(instance).to.have.property('TotalRecordCount'); + // expect(instance.TotalRecordCount).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultAccountDetail.spec.js b/test/model/RestApiResultAccountDetail.spec.js new file mode 100644 index 00000000..51e34a6e --- /dev/null +++ b/test/model/RestApiResultAccountDetail.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultAccountDetail', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultAccountDetail(); + }); + + it('should create an instance of RestApiResultAccountDetail', function() { + // TODO: update the code to test RestApiResultAccountDetail + expect(instance).to.be.a(Flipdish.RestApiResultAccountDetail); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultAccountFieldsDefinitions.spec.js b/test/model/RestApiResultAccountFieldsDefinitions.spec.js new file mode 100644 index 00000000..0ef9dca3 --- /dev/null +++ b/test/model/RestApiResultAccountFieldsDefinitions.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultAccountFieldsDefinitions', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultAccountFieldsDefinitions(); + }); + + it('should create an instance of RestApiResultAccountFieldsDefinitions', function() { + // TODO: update the code to test RestApiResultAccountFieldsDefinitions + expect(instance).to.be.a(Flipdish.RestApiResultAccountFieldsDefinitions); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultApmStatistics.spec.js b/test/model/RestApiResultApmStatistics.spec.js new file mode 100644 index 00000000..ff8bf80d --- /dev/null +++ b/test/model/RestApiResultApmStatistics.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultApmStatistics', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultApmStatistics(); + }); + + it('should create an instance of RestApiResultApmStatistics', function() { + // TODO: update the code to test RestApiResultApmStatistics + expect(instance).to.be.a(Flipdish.RestApiResultApmStatistics); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultApmStatus.spec.js b/test/model/RestApiResultApmStatus.spec.js new file mode 100644 index 00000000..f381b8f7 --- /dev/null +++ b/test/model/RestApiResultApmStatus.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultApmStatus', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultApmStatus(); + }); + + it('should create an instance of RestApiResultApmStatus', function() { + // TODO: update the code to test RestApiResultApmStatus + expect(instance).to.be.a(Flipdish.RestApiResultApmStatus); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultApp.spec.js b/test/model/RestApiResultApp.spec.js new file mode 100644 index 00000000..af475276 --- /dev/null +++ b/test/model/RestApiResultApp.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultApp', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultApp(); + }); + + it('should create an instance of RestApiResultApp', function() { + // TODO: update the code to test RestApiResultApp + expect(instance).to.be.a(Flipdish.RestApiResultApp); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultAppCompliance.spec.js b/test/model/RestApiResultAppCompliance.spec.js new file mode 100644 index 00000000..abfd85c3 --- /dev/null +++ b/test/model/RestApiResultAppCompliance.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultAppCompliance', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultAppCompliance(); + }); + + it('should create an instance of RestApiResultAppCompliance', function() { + // TODO: update the code to test RestApiResultAppCompliance + expect(instance).to.be.a(Flipdish.RestApiResultAppCompliance); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultAssignedBankAccount.spec.js b/test/model/RestApiResultAssignedBankAccount.spec.js new file mode 100644 index 00000000..4d4d91db --- /dev/null +++ b/test/model/RestApiResultAssignedBankAccount.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultAssignedBankAccount', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultAssignedBankAccount(); + }); + + it('should create an instance of RestApiResultAssignedBankAccount', function() { + // TODO: update the code to test RestApiResultAssignedBankAccount + expect(instance).to.be.a(Flipdish.RestApiResultAssignedBankAccount); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultBankAccountDetail.spec.js b/test/model/RestApiResultBankAccountDetail.spec.js new file mode 100644 index 00000000..702c9204 --- /dev/null +++ b/test/model/RestApiResultBankAccountDetail.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultBankAccountDetail', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultBankAccountDetail(); + }); + + it('should create an instance of RestApiResultBankAccountDetail', function() { + // TODO: update the code to test RestApiResultBankAccountDetail + expect(instance).to.be.a(Flipdish.RestApiResultBankAccountDetail); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultBluetoothTerminalStatus.spec.js b/test/model/RestApiResultBluetoothTerminalStatus.spec.js new file mode 100644 index 00000000..514cdbc2 --- /dev/null +++ b/test/model/RestApiResultBluetoothTerminalStatus.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultBluetoothTerminalStatus', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultBluetoothTerminalStatus(); + }); + + it('should create an instance of RestApiResultBluetoothTerminalStatus', function() { + // TODO: update the code to test RestApiResultBluetoothTerminalStatus + expect(instance).to.be.a(Flipdish.RestApiResultBluetoothTerminalStatus); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultBusinessHoursOverride.spec.js b/test/model/RestApiResultBusinessHoursOverride.spec.js new file mode 100644 index 00000000..02d53224 --- /dev/null +++ b/test/model/RestApiResultBusinessHoursOverride.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultBusinessHoursOverride', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultBusinessHoursOverride(); + }); + + it('should create an instance of RestApiResultBusinessHoursOverride', function() { + // TODO: update the code to test RestApiResultBusinessHoursOverride + expect(instance).to.be.a(Flipdish.RestApiResultBusinessHoursOverride); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultBusinessHoursPeriod.spec.js b/test/model/RestApiResultBusinessHoursPeriod.spec.js new file mode 100644 index 00000000..e904b45a --- /dev/null +++ b/test/model/RestApiResultBusinessHoursPeriod.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultBusinessHoursPeriod', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultBusinessHoursPeriod(); + }); + + it('should create an instance of RestApiResultBusinessHoursPeriod', function() { + // TODO: update the code to test RestApiResultBusinessHoursPeriod + expect(instance).to.be.a(Flipdish.RestApiResultBusinessHoursPeriod); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultCoordinates.spec.js b/test/model/RestApiResultCoordinates.spec.js new file mode 100644 index 00000000..1b5889d5 --- /dev/null +++ b/test/model/RestApiResultCoordinates.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultCoordinates', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultCoordinates(); + }); + + it('should create an instance of RestApiResultCoordinates', function() { + // TODO: update the code to test RestApiResultCoordinates + expect(instance).to.be.a(Flipdish.RestApiResultCoordinates); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultCustomer.spec.js b/test/model/RestApiResultCustomer.spec.js new file mode 100644 index 00000000..1c2a84f6 --- /dev/null +++ b/test/model/RestApiResultCustomer.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultCustomer', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultCustomer(); + }); + + it('should create an instance of RestApiResultCustomer', function() { + // TODO: update the code to test RestApiResultCustomer + expect(instance).to.be.a(Flipdish.RestApiResultCustomer); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultDeliveryZone.spec.js b/test/model/RestApiResultDeliveryZone.spec.js new file mode 100644 index 00000000..b9ee276c --- /dev/null +++ b/test/model/RestApiResultDeliveryZone.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultDeliveryZone', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultDeliveryZone(); + }); + + it('should create an instance of RestApiResultDeliveryZone', function() { + // TODO: update the code to test RestApiResultDeliveryZone + expect(instance).to.be.a(Flipdish.RestApiResultDeliveryZone); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultDnsRecordInformation.spec.js b/test/model/RestApiResultDnsRecordInformation.spec.js new file mode 100644 index 00000000..38946914 --- /dev/null +++ b/test/model/RestApiResultDnsRecordInformation.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultDnsRecordInformation', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultDnsRecordInformation(); + }); + + it('should create an instance of RestApiResultDnsRecordInformation', function() { + // TODO: update the code to test RestApiResultDnsRecordInformation + expect(instance).to.be.a(Flipdish.RestApiResultDnsRecordInformation); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultDriver.spec.js b/test/model/RestApiResultDriver.spec.js new file mode 100644 index 00000000..aba97dbb --- /dev/null +++ b/test/model/RestApiResultDriver.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultDriver', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultDriver(); + }); + + it('should create an instance of RestApiResultDriver', function() { + // TODO: update the code to test RestApiResultDriver + expect(instance).to.be.a(Flipdish.RestApiResultDriver); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultHomeStatistics.spec.js b/test/model/RestApiResultHomeStatistics.spec.js new file mode 100644 index 00000000..7282ae39 --- /dev/null +++ b/test/model/RestApiResultHomeStatistics.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultHomeStatistics', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultHomeStatistics(); + }); + + it('should create an instance of RestApiResultHomeStatistics', function() { + // TODO: update the code to test RestApiResultHomeStatistics + expect(instance).to.be.a(Flipdish.RestApiResultHomeStatistics); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultHydraConfig.spec.js b/test/model/RestApiResultHydraConfig.spec.js new file mode 100644 index 00000000..62a49e54 --- /dev/null +++ b/test/model/RestApiResultHydraConfig.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultHydraConfig', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultHydraConfig(); + }); + + it('should create an instance of RestApiResultHydraConfig', function() { + // TODO: update the code to test RestApiResultHydraConfig + expect(instance).to.be.a(Flipdish.RestApiResultHydraConfig); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultHydraStatus.spec.js b/test/model/RestApiResultHydraStatus.spec.js new file mode 100644 index 00000000..58aba87c --- /dev/null +++ b/test/model/RestApiResultHydraStatus.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultHydraStatus', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultHydraStatus(); + }); + + it('should create an instance of RestApiResultHydraStatus', function() { + // TODO: update the code to test RestApiResultHydraStatus + expect(instance).to.be.a(Flipdish.RestApiResultHydraStatus); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultIndexPage.spec.js b/test/model/RestApiResultIndexPage.spec.js new file mode 100644 index 00000000..77bea77c --- /dev/null +++ b/test/model/RestApiResultIndexPage.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultIndexPage', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultIndexPage(); + }); + + it('should create an instance of RestApiResultIndexPage', function() { + // TODO: update the code to test RestApiResultIndexPage + expect(instance).to.be.a(Flipdish.RestApiResultIndexPage); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultIndexPageBase.spec.js b/test/model/RestApiResultIndexPageBase.spec.js new file mode 100644 index 00000000..2c879166 --- /dev/null +++ b/test/model/RestApiResultIndexPageBase.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultIndexPageBase', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultIndexPageBase(); + }); + + it('should create an instance of RestApiResultIndexPageBase', function() { + // TODO: update the code to test RestApiResultIndexPageBase + expect(instance).to.be.a(Flipdish.RestApiResultIndexPageBase); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultJobResponse.spec.js b/test/model/RestApiResultJobResponse.spec.js new file mode 100644 index 00000000..b68b593a --- /dev/null +++ b/test/model/RestApiResultJobResponse.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultJobResponse', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultJobResponse(); + }); + + it('should create an instance of RestApiResultJobResponse', function() { + // TODO: update the code to test RestApiResultJobResponse + expect(instance).to.be.a(Flipdish.RestApiResultJobResponse); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultLightspeedSettings.spec.js b/test/model/RestApiResultLightspeedSettings.spec.js new file mode 100644 index 00000000..f7836218 --- /dev/null +++ b/test/model/RestApiResultLightspeedSettings.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultLightspeedSettings', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultLightspeedSettings(); + }); + + it('should create an instance of RestApiResultLightspeedSettings', function() { + // TODO: update the code to test RestApiResultLightspeedSettings + expect(instance).to.be.a(Flipdish.RestApiResultLightspeedSettings); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultLoyaltyCampaign.spec.js b/test/model/RestApiResultLoyaltyCampaign.spec.js new file mode 100644 index 00000000..c6ff9278 --- /dev/null +++ b/test/model/RestApiResultLoyaltyCampaign.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultLoyaltyCampaign', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultLoyaltyCampaign(); + }); + + it('should create an instance of RestApiResultLoyaltyCampaign', function() { + // TODO: update the code to test RestApiResultLoyaltyCampaign + expect(instance).to.be.a(Flipdish.RestApiResultLoyaltyCampaign); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultMenu.spec.js b/test/model/RestApiResultMenu.spec.js index 0fd67a3c..96d8d7c6 100644 --- a/test/model/RestApiResultMenu.spec.js +++ b/test/model/RestApiResultMenu.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiResultMenu', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultMenu(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiResultMenu', function() { + // TODO: update the code to test RestApiResultMenu + expect(instance).to.be.a(Flipdish.RestApiResultMenu); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiResultMenu(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiResultMenuItemOptionSet.spec.js b/test/model/RestApiResultMenuItemOptionSet.spec.js index 1f232012..c2aaeb3f 100644 --- a/test/model/RestApiResultMenuItemOptionSet.spec.js +++ b/test/model/RestApiResultMenuItemOptionSet.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiResultMenuItemOptionSet', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultMenuItemOptionSet(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiResultMenuItemOptionSet', function() { + // TODO: update the code to test RestApiResultMenuItemOptionSet + expect(instance).to.be.a(Flipdish.RestApiResultMenuItemOptionSet); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiResultMenuItemOptionSet(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiResultMenuItemOptionSetItem.spec.js b/test/model/RestApiResultMenuItemOptionSetItem.spec.js index 9a98264f..25432122 100644 --- a/test/model/RestApiResultMenuItemOptionSetItem.spec.js +++ b/test/model/RestApiResultMenuItemOptionSetItem.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiResultMenuItemOptionSetItem', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultMenuItemOptionSetItem(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiResultMenuItemOptionSetItem', function() { + // TODO: update the code to test RestApiResultMenuItemOptionSetItem + expect(instance).to.be.a(Flipdish.RestApiResultMenuItemOptionSetItem); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiResultMenuItemOptionSetItem(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiResultMenuSection.spec.js b/test/model/RestApiResultMenuSection.spec.js index 79845d44..a53672f1 100644 --- a/test/model/RestApiResultMenuSection.spec.js +++ b/test/model/RestApiResultMenuSection.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiResultMenuSection', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultMenuSection(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiResultMenuSection', function() { + // TODO: update the code to test RestApiResultMenuSection + expect(instance).to.be.a(Flipdish.RestApiResultMenuSection); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = 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..3b6cb46d --- /dev/null +++ b/test/model/RestApiResultMenuSectionAvailability.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultMenuSectionAvailability', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultMenuSectionAvailability(); + }); + + it('should create an instance of RestApiResultMenuSectionAvailability', function() { + // TODO: update the code to test RestApiResultMenuSectionAvailability + expect(instance).to.be.a(Flipdish.RestApiResultMenuSectionAvailability); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultMenuSectionItem.spec.js b/test/model/RestApiResultMenuSectionItem.spec.js index d46395ec..e78a2217 100644 --- a/test/model/RestApiResultMenuSectionItem.spec.js +++ b/test/model/RestApiResultMenuSectionItem.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiResultMenuSectionItem', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultMenuSectionItem(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiResultMenuSectionItem', function() { + // TODO: update the code to test RestApiResultMenuSectionItem + expect(instance).to.be.a(Flipdish.RestApiResultMenuSectionItem); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiResultMenuSectionItem(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiResultMetadata.spec.js b/test/model/RestApiResultMetadata.spec.js index d73ece26..70d4867d 100644 --- a/test/model/RestApiResultMetadata.spec.js +++ b/test/model/RestApiResultMetadata.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiResultMetadata', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultMetadata(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiResultMetadata', function() { + // TODO: update the code to test RestApiResultMetadata + expect(instance).to.be.a(Flipdish.RestApiResultMetadata); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiResultMetadata(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiResultOAuthApp.spec.js b/test/model/RestApiResultOAuthApp.spec.js new file mode 100644 index 00000000..90b7af4f --- /dev/null +++ b/test/model/RestApiResultOAuthApp.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultOAuthApp', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultOAuthApp(); + }); + + it('should create an instance of RestApiResultOAuthApp', function() { + // TODO: update the code to test RestApiResultOAuthApp + expect(instance).to.be.a(Flipdish.RestApiResultOAuthApp); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultOAuthClient.spec.js b/test/model/RestApiResultOAuthClient.spec.js deleted file mode 100644 index 859067f5..00000000 --- a/test/model/RestApiResultOAuthClient.spec.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Flipdish Open API v1.0 - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.Flipdish); - } -}(this, function(expect, Flipdish) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Flipdish.RestApiResultOAuthClient(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RestApiResultOAuthClient', function() { - it('should create an instance of RestApiResultOAuthClient', function() { - // uncomment below and update the code to test RestApiResultOAuthClient - //var instane = new Flipdish.RestApiResultOAuthClient(); - //expect(instance).to.be.a(Flipdish.RestApiResultOAuthClient); - }); - - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiResultOAuthClient(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RestApiResultOauthClientRedirectUri.spec.js b/test/model/RestApiResultOauthClientRedirectUri.spec.js index 3a52023d..787ee225 100644 --- a/test/model/RestApiResultOauthClientRedirectUri.spec.js +++ b/test/model/RestApiResultOauthClientRedirectUri.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiResultOauthClientRedirectUri', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultOauthClientRedirectUri(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiResultOauthClientRedirectUri', function() { + // TODO: update the code to test RestApiResultOauthClientRedirectUri + expect(instance).to.be.a(Flipdish.RestApiResultOauthClientRedirectUri); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiResultOauthClientRedirectUri(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiResultOrder.spec.js b/test/model/RestApiResultOrder.spec.js index 644b153b..fca27eb6 100644 --- a/test/model/RestApiResultOrder.spec.js +++ b/test/model/RestApiResultOrder.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiResultOrder', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultOrder(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiResultOrder', function() { + // TODO: update the code to test RestApiResultOrder + expect(instance).to.be.a(Flipdish.RestApiResultOrder); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiResultOrder(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiResultOrderPaymentInformation.spec.js b/test/model/RestApiResultOrderPaymentInformation.spec.js new file mode 100644 index 00000000..7e9d3bb4 --- /dev/null +++ b/test/model/RestApiResultOrderPaymentInformation.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultOrderPaymentInformation', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultOrderPaymentInformation(); + }); + + it('should create an instance of RestApiResultOrderPaymentInformation', function() { + // TODO: update the code to test RestApiResultOrderPaymentInformation + expect(instance).to.be.a(Flipdish.RestApiResultOrderPaymentInformation); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultPaymentTerminalDetails.spec.js b/test/model/RestApiResultPaymentTerminalDetails.spec.js new file mode 100644 index 00000000..f3f261b3 --- /dev/null +++ b/test/model/RestApiResultPaymentTerminalDetails.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultPaymentTerminalDetails', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultPaymentTerminalDetails(); + }); + + it('should create an instance of RestApiResultPaymentTerminalDetails', function() { + // TODO: update the code to test RestApiResultPaymentTerminalDetails + expect(instance).to.be.a(Flipdish.RestApiResultPaymentTerminalDetails); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultPaymentTerminalTransactionDetails.spec.js b/test/model/RestApiResultPaymentTerminalTransactionDetails.spec.js new file mode 100644 index 00000000..344193a6 --- /dev/null +++ b/test/model/RestApiResultPaymentTerminalTransactionDetails.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultPaymentTerminalTransactionDetails', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultPaymentTerminalTransactionDetails(); + }); + + it('should create an instance of RestApiResultPaymentTerminalTransactionDetails', function() { + // TODO: update the code to test RestApiResultPaymentTerminalTransactionDetails + expect(instance).to.be.a(Flipdish.RestApiResultPaymentTerminalTransactionDetails); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultPreOrderConfig.spec.js b/test/model/RestApiResultPreOrderConfig.spec.js new file mode 100644 index 00000000..ea29491f --- /dev/null +++ b/test/model/RestApiResultPreOrderConfig.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultPreOrderConfig', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultPreOrderConfig(); + }); + + it('should create an instance of RestApiResultPreOrderConfig', function() { + // TODO: update the code to test RestApiResultPreOrderConfig + expect(instance).to.be.a(Flipdish.RestApiResultPreOrderConfig); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultProcessingFeeConfig.spec.js b/test/model/RestApiResultProcessingFeeConfig.spec.js new file mode 100644 index 00000000..969e3d09 --- /dev/null +++ b/test/model/RestApiResultProcessingFeeConfig.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultProcessingFeeConfig', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultProcessingFeeConfig(); + }); + + it('should create an instance of RestApiResultProcessingFeeConfig', function() { + // TODO: update the code to test RestApiResultProcessingFeeConfig + expect(instance).to.be.a(Flipdish.RestApiResultProcessingFeeConfig); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultPushNotificationResponse.spec.js b/test/model/RestApiResultPushNotificationResponse.spec.js new file mode 100644 index 00000000..bca048b4 --- /dev/null +++ b/test/model/RestApiResultPushNotificationResponse.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultPushNotificationResponse', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultPushNotificationResponse(); + }); + + it('should create an instance of RestApiResultPushNotificationResponse', function() { + // TODO: update the code to test RestApiResultPushNotificationResponse + expect(instance).to.be.a(Flipdish.RestApiResultPushNotificationResponse); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultRedeemInvitationResult.spec.js b/test/model/RestApiResultRedeemInvitationResult.spec.js new file mode 100644 index 00000000..f84cc03d --- /dev/null +++ b/test/model/RestApiResultRedeemInvitationResult.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultRedeemInvitationResult', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultRedeemInvitationResult(); + }); + + it('should create an instance of RestApiResultRedeemInvitationResult', function() { + // TODO: update the code to test RestApiResultRedeemInvitationResult + expect(instance).to.be.a(Flipdish.RestApiResultRedeemInvitationResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultRetentionCampaign.spec.js b/test/model/RestApiResultRetentionCampaign.spec.js new file mode 100644 index 00000000..136a71d7 --- /dev/null +++ b/test/model/RestApiResultRetentionCampaign.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultRetentionCampaign', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultRetentionCampaign(); + }); + + it('should create an instance of RestApiResultRetentionCampaign', function() { + // TODO: update the code to test RestApiResultRetentionCampaign + expect(instance).to.be.a(Flipdish.RestApiResultRetentionCampaign); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultStore.spec.js b/test/model/RestApiResultStore.spec.js index 74f2e382..d74f6730 100644 --- a/test/model/RestApiResultStore.spec.js +++ b/test/model/RestApiResultStore.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiResultStore', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultStore(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiResultStore', function() { + // TODO: update the code to test RestApiResultStore + expect(instance).to.be.a(Flipdish.RestApiResultStore); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = 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..def92b18 --- /dev/null +++ b/test/model/RestApiResultStoreAddress.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultStoreAddress', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultStoreAddress(); + }); + + it('should create an instance of RestApiResultStoreAddress', function() { + // TODO: update the code to test RestApiResultStoreAddress + expect(instance).to.be.a(Flipdish.RestApiResultStoreAddress); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultStoreEndOfDayReport.spec.js b/test/model/RestApiResultStoreEndOfDayReport.spec.js new file mode 100644 index 00000000..f23aedc6 --- /dev/null +++ b/test/model/RestApiResultStoreEndOfDayReport.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultStoreEndOfDayReport', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultStoreEndOfDayReport(); + }); + + it('should create an instance of RestApiResultStoreEndOfDayReport', function() { + // TODO: update the code to test RestApiResultStoreEndOfDayReport + expect(instance).to.be.a(Flipdish.RestApiResultStoreEndOfDayReport); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultStoreGroup.spec.js b/test/model/RestApiResultStoreGroup.spec.js new file mode 100644 index 00000000..370e7525 --- /dev/null +++ b/test/model/RestApiResultStoreGroup.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultStoreGroup', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultStoreGroup(); + }); + + it('should create an instance of RestApiResultStoreGroup', function() { + // TODO: update the code to test RestApiResultStoreGroup + expect(instance).to.be.a(Flipdish.RestApiResultStoreGroup); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultStoreGroupBase.spec.js b/test/model/RestApiResultStoreGroupBase.spec.js new file mode 100644 index 00000000..dbf4417f --- /dev/null +++ b/test/model/RestApiResultStoreGroupBase.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultStoreGroupBase', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultStoreGroupBase(); + }); + + it('should create an instance of RestApiResultStoreGroupBase', function() { + // TODO: update the code to test RestApiResultStoreGroupBase + expect(instance).to.be.a(Flipdish.RestApiResultStoreGroupBase); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultStoreOrderCapacityConfig.spec.js b/test/model/RestApiResultStoreOrderCapacityConfig.spec.js new file mode 100644 index 00000000..1e389c77 --- /dev/null +++ b/test/model/RestApiResultStoreOrderCapacityConfig.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultStoreOrderCapacityConfig', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultStoreOrderCapacityConfig(); + }); + + it('should create an instance of RestApiResultStoreOrderCapacityConfig', function() { + // TODO: update the code to test RestApiResultStoreOrderCapacityConfig + expect(instance).to.be.a(Flipdish.RestApiResultStoreOrderCapacityConfig); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultStripeConnectedAccount.spec.js b/test/model/RestApiResultStripeConnectedAccount.spec.js new file mode 100644 index 00000000..67fe2ff5 --- /dev/null +++ b/test/model/RestApiResultStripeConnectedAccount.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultStripeConnectedAccount', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultStripeConnectedAccount(); + }); + + it('should create an instance of RestApiResultStripeConnectedAccount', function() { + // TODO: update the code to test RestApiResultStripeConnectedAccount + expect(instance).to.be.a(Flipdish.RestApiResultStripeConnectedAccount); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultStripeTerminalPrivateKey.spec.js b/test/model/RestApiResultStripeTerminalPrivateKey.spec.js new file mode 100644 index 00000000..f8dcbf49 --- /dev/null +++ b/test/model/RestApiResultStripeTerminalPrivateKey.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultStripeTerminalPrivateKey', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultStripeTerminalPrivateKey(); + }); + + it('should create an instance of RestApiResultStripeTerminalPrivateKey', function() { + // TODO: update the code to test RestApiResultStripeTerminalPrivateKey + expect(instance).to.be.a(Flipdish.RestApiResultStripeTerminalPrivateKey); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultStuartSettings.spec.js b/test/model/RestApiResultStuartSettings.spec.js new file mode 100644 index 00000000..4ddd13fc --- /dev/null +++ b/test/model/RestApiResultStuartSettings.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultStuartSettings', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultStuartSettings(); + }); + + it('should create an instance of RestApiResultStuartSettings', function() { + // TODO: update the code to test RestApiResultStuartSettings + expect(instance).to.be.a(Flipdish.RestApiResultStuartSettings); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultTeammate.spec.js b/test/model/RestApiResultTeammate.spec.js new file mode 100644 index 00000000..d418e263 --- /dev/null +++ b/test/model/RestApiResultTeammate.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultTeammate', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultTeammate(); + }); + + it('should create an instance of RestApiResultTeammate', function() { + // TODO: update the code to test RestApiResultTeammate + expect(instance).to.be.a(Flipdish.RestApiResultTeammate); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultVoucher.spec.js b/test/model/RestApiResultVoucher.spec.js deleted file mode 100644 index cf975c29..00000000 --- a/test/model/RestApiResultVoucher.spec.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Flipdish Open API v1.0 - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } 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 instane = 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..7f6d1f1f --- /dev/null +++ b/test/model/RestApiResultVoucherWithStats.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultVoucherWithStats', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultVoucherWithStats(); + }); + + it('should create an instance of RestApiResultVoucherWithStats', function() { + // TODO: update the code to test RestApiResultVoucherWithStats + expect(instance).to.be.a(Flipdish.RestApiResultVoucherWithStats); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultWebsiteImage.spec.js b/test/model/RestApiResultWebsiteImage.spec.js new file mode 100644 index 00000000..d31de3cd --- /dev/null +++ b/test/model/RestApiResultWebsiteImage.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultWebsiteImage', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultWebsiteImage(); + }); + + it('should create an instance of RestApiResultWebsiteImage', function() { + // TODO: update the code to test RestApiResultWebsiteImage + expect(instance).to.be.a(Flipdish.RestApiResultWebsiteImage); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiResultWebsiteTestimonial.spec.js b/test/model/RestApiResultWebsiteTestimonial.spec.js new file mode 100644 index 00000000..6f8e654a --- /dev/null +++ b/test/model/RestApiResultWebsiteTestimonial.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RestApiResultWebsiteTestimonial', function() { + beforeEach(function() { + instance = new Flipdish.RestApiResultWebsiteTestimonial(); + }); + + it('should create an instance of RestApiResultWebsiteTestimonial', function() { + // TODO: update the code to test RestApiResultWebsiteTestimonial + expect(instance).to.be.a(Flipdish.RestApiResultWebsiteTestimonial); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RestApiStringArrayResult.spec.js b/test/model/RestApiStringArrayResult.spec.js index ca0c92aa..720645ec 100644 --- a/test/model/RestApiStringArrayResult.spec.js +++ b/test/model/RestApiStringArrayResult.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiStringArrayResult', function() { + beforeEach(function() { + instance = new Flipdish.RestApiStringArrayResult(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiStringArrayResult', function() { + // TODO: update the code to test RestApiStringArrayResult + expect(instance).to.be.a(Flipdish.RestApiStringArrayResult); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiStringArrayResult(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiStringResult.spec.js b/test/model/RestApiStringResult.spec.js index 7b88783a..f085b3b9 100644 --- a/test/model/RestApiStringResult.spec.js +++ b/test/model/RestApiStringResult.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiStringResult', function() { + beforeEach(function() { + instance = new Flipdish.RestApiStringResult(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiStringResult', function() { + // TODO: update the code to test RestApiStringResult + expect(instance).to.be.a(Flipdish.RestApiStringResult); + }); - 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() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); - it('should have the property data (base name: "Data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Flipdish.RestApiStringResult(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RestApiUnauthorizedResult.spec.js b/test/model/RestApiUnauthorizedResult.spec.js index 67e90a1a..7d4ef5bb 100644 --- a/test/model/RestApiUnauthorizedResult.spec.js +++ b/test/model/RestApiUnauthorizedResult.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,39 +29,24 @@ 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]; - } + describe('(package)', function() { + describe('RestApiUnauthorizedResult', function() { + beforeEach(function() { + instance = new Flipdish.RestApiUnauthorizedResult(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of RestApiUnauthorizedResult', function() { + // TODO: update the code to test RestApiUnauthorizedResult + expect(instance).to.be.a(Flipdish.RestApiUnauthorizedResult); + }); - 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() { + // TODO: update the code to test the property Message + expect(instance).to.have.property('Message'); + // expect(instance.Message).to.be(expectedValueLiteral); + }); - it('should have the property message (base name: "Message")', function() { - // uncomment below and update the code to test the property message - //var instane = new Flipdish.RestApiUnauthorizedResult(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/RetentionCampaign.spec.js b/test/model/RetentionCampaign.spec.js new file mode 100644 index 00000000..9bacb828 --- /dev/null +++ b/test/model/RetentionCampaign.spec.js @@ -0,0 +1,118 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RetentionCampaign', function() { + beforeEach(function() { + instance = new Flipdish.RetentionCampaign(); + }); + + it('should create an instance of RetentionCampaign', function() { + // TODO: update the code to test RetentionCampaign + expect(instance).to.be.a(Flipdish.RetentionCampaign); + }); + + it('should have the property CampaignId (base name: "CampaignId")', function() { + // TODO: update the code to test the property CampaignId + expect(instance).to.have.property('CampaignId'); + // expect(instance.CampaignId).to.be(expectedValueLiteral); + }); + + it('should have the property Statistics (base name: "Statistics")', function() { + // TODO: update the code to test the property Statistics + expect(instance).to.have.property('Statistics'); + // expect(instance.Statistics).to.be(expectedValueLiteral); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // TODO: update the code to test the property Stores + expect(instance).to.have.property('Stores'); + // expect(instance.Stores).to.be(expectedValueLiteral); + }); + + it('should have the property NotifyCustomerAfterMinutes (base name: "NotifyCustomerAfterMinutes")', function() { + // TODO: update the code to test the property NotifyCustomerAfterMinutes + expect(instance).to.have.property('NotifyCustomerAfterMinutes'); + // expect(instance.NotifyCustomerAfterMinutes).to.be(expectedValueLiteral); + }); + + it('should have the property PercentDiscountAmount (base name: "PercentDiscountAmount")', function() { + // TODO: update the code to test the property PercentDiscountAmount + expect(instance).to.have.property('PercentDiscountAmount'); + // expect(instance.PercentDiscountAmount).to.be(expectedValueLiteral); + }); + + it('should have the property LumpDiscountAmount (base name: "LumpDiscountAmount")', function() { + // TODO: update the code to test the property LumpDiscountAmount + expect(instance).to.have.property('LumpDiscountAmount'); + // expect(instance.LumpDiscountAmount).to.be(expectedValueLiteral); + }); + + it('should have the property VoucherValidPeriodDays (base name: "VoucherValidPeriodDays")', function() { + // TODO: update the code to test the property VoucherValidPeriodDays + expect(instance).to.have.property('VoucherValidPeriodDays'); + // expect(instance.VoucherValidPeriodDays).to.be(expectedValueLiteral); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // TODO: update the code to test the property IncludeDeliveryFee + expect(instance).to.have.property('IncludeDeliveryFee'); + // expect(instance.IncludeDeliveryFee).to.be(expectedValueLiteral); + }); + + it('should have the property AutoApplyResultingVouchers (base name: "AutoApplyResultingVouchers")', function() { + // TODO: update the code to test the property AutoApplyResultingVouchers + expect(instance).to.have.property('AutoApplyResultingVouchers'); + // expect(instance.AutoApplyResultingVouchers).to.be(expectedValueLiteral); + }); + + it('should have the property IncludeExistingOrders (base name: "IncludeExistingOrders")', function() { + // TODO: update the code to test the property IncludeExistingOrders + expect(instance).to.have.property('IncludeExistingOrders'); + // expect(instance.IncludeExistingOrders).to.be(expectedValueLiteral); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // TODO: update the code to test the property IsEnabled + expect(instance).to.have.property('IsEnabled'); + // expect(instance.IsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RetentionCampaignBase.spec.js b/test/model/RetentionCampaignBase.spec.js new file mode 100644 index 00000000..4885a26d --- /dev/null +++ b/test/model/RetentionCampaignBase.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RetentionCampaignBase', function() { + beforeEach(function() { + instance = new Flipdish.RetentionCampaignBase(); + }); + + it('should create an instance of RetentionCampaignBase', function() { + // TODO: update the code to test RetentionCampaignBase + expect(instance).to.be.a(Flipdish.RetentionCampaignBase); + }); + + it('should have the property NotifyCustomerAfterMinutes (base name: "NotifyCustomerAfterMinutes")', function() { + // TODO: update the code to test the property NotifyCustomerAfterMinutes + expect(instance).to.have.property('NotifyCustomerAfterMinutes'); + // expect(instance.NotifyCustomerAfterMinutes).to.be(expectedValueLiteral); + }); + + it('should have the property PercentDiscountAmount (base name: "PercentDiscountAmount")', function() { + // TODO: update the code to test the property PercentDiscountAmount + expect(instance).to.have.property('PercentDiscountAmount'); + // expect(instance.PercentDiscountAmount).to.be(expectedValueLiteral); + }); + + it('should have the property LumpDiscountAmount (base name: "LumpDiscountAmount")', function() { + // TODO: update the code to test the property LumpDiscountAmount + expect(instance).to.have.property('LumpDiscountAmount'); + // expect(instance.LumpDiscountAmount).to.be(expectedValueLiteral); + }); + + it('should have the property VoucherValidPeriodDays (base name: "VoucherValidPeriodDays")', function() { + // TODO: update the code to test the property VoucherValidPeriodDays + expect(instance).to.have.property('VoucherValidPeriodDays'); + // expect(instance.VoucherValidPeriodDays).to.be(expectedValueLiteral); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // TODO: update the code to test the property IncludeDeliveryFee + expect(instance).to.have.property('IncludeDeliveryFee'); + // expect(instance.IncludeDeliveryFee).to.be(expectedValueLiteral); + }); + + it('should have the property AutoApplyResultingVouchers (base name: "AutoApplyResultingVouchers")', function() { + // TODO: update the code to test the property AutoApplyResultingVouchers + expect(instance).to.have.property('AutoApplyResultingVouchers'); + // expect(instance.AutoApplyResultingVouchers).to.be(expectedValueLiteral); + }); + + it('should have the property IncludeExistingOrders (base name: "IncludeExistingOrders")', function() { + // TODO: update the code to test the property IncludeExistingOrders + expect(instance).to.have.property('IncludeExistingOrders'); + // expect(instance.IncludeExistingOrders).to.be(expectedValueLiteral); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // TODO: update the code to test the property IsEnabled + expect(instance).to.have.property('IsEnabled'); + // expect(instance.IsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RetentionCampaignCreatedEvent.spec.js b/test/model/RetentionCampaignCreatedEvent.spec.js new file mode 100644 index 00000000..895738e7 --- /dev/null +++ b/test/model/RetentionCampaignCreatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RetentionCampaignCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.RetentionCampaignCreatedEvent(); + }); + + it('should create an instance of RetentionCampaignCreatedEvent', function() { + // TODO: update the code to test RetentionCampaignCreatedEvent + expect(instance).to.be.a(Flipdish.RetentionCampaignCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property RetentionCampaign (base name: "RetentionCampaign")', function() { + // TODO: update the code to test the property RetentionCampaign + expect(instance).to.have.property('RetentionCampaign'); + // expect(instance.RetentionCampaign).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RetentionCampaignDeletedEvent.spec.js b/test/model/RetentionCampaignDeletedEvent.spec.js new file mode 100644 index 00000000..91c9f753 --- /dev/null +++ b/test/model/RetentionCampaignDeletedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RetentionCampaignDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.RetentionCampaignDeletedEvent(); + }); + + it('should create an instance of RetentionCampaignDeletedEvent', function() { + // TODO: update the code to test RetentionCampaignDeletedEvent + expect(instance).to.be.a(Flipdish.RetentionCampaignDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property RetentionCampaign (base name: "RetentionCampaign")', function() { + // TODO: update the code to test the property RetentionCampaign + expect(instance).to.have.property('RetentionCampaign'); + // expect(instance.RetentionCampaign).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RetentionCampaignUpdatedEvent.spec.js b/test/model/RetentionCampaignUpdatedEvent.spec.js new file mode 100644 index 00000000..83ed374b --- /dev/null +++ b/test/model/RetentionCampaignUpdatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RetentionCampaignUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.RetentionCampaignUpdatedEvent(); + }); + + it('should create an instance of RetentionCampaignUpdatedEvent', function() { + // TODO: update the code to test RetentionCampaignUpdatedEvent + expect(instance).to.be.a(Flipdish.RetentionCampaignUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property RetentionCampaign (base name: "RetentionCampaign")', function() { + // TODO: update the code to test the property RetentionCampaign + expect(instance).to.have.property('RetentionCampaign'); + // expect(instance.RetentionCampaign).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RevenueAdjustmentsDetails.spec.js b/test/model/RevenueAdjustmentsDetails.spec.js new file mode 100644 index 00000000..dfadd3de --- /dev/null +++ b/test/model/RevenueAdjustmentsDetails.spec.js @@ -0,0 +1,76 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RevenueAdjustmentsDetails', function() { + beforeEach(function() { + instance = new Flipdish.RevenueAdjustmentsDetails(); + }); + + it('should create an instance of RevenueAdjustmentsDetails', function() { + // TODO: update the code to test RevenueAdjustmentsDetails + expect(instance).to.be.a(Flipdish.RevenueAdjustmentsDetails); + }); + + it('should have the property OnlineSalesRefundedAmount (base name: "OnlineSalesRefundedAmount")', function() { + // TODO: update the code to test the property OnlineSalesRefundedAmount + expect(instance).to.have.property('OnlineSalesRefundedAmount'); + // expect(instance.OnlineSalesRefundedAmount).to.be(expectedValueLiteral); + }); + + it('should have the property CashSalesRefundedAmount (base name: "CashSalesRefundedAmount")', function() { + // TODO: update the code to test the property CashSalesRefundedAmount + expect(instance).to.have.property('CashSalesRefundedAmount'); + // expect(instance.CashSalesRefundedAmount).to.be(expectedValueLiteral); + }); + + it('should have the property CustomerCashFees (base name: "CustomerCashFees")', function() { + // TODO: update the code to test the property CustomerCashFees + expect(instance).to.have.property('CustomerCashFees'); + // expect(instance.CustomerCashFees).to.be(expectedValueLiteral); + }); + + it('should have the property RefundsCount (base name: "RefundsCount")', function() { + // TODO: update the code to test the property RefundsCount + expect(instance).to.have.property('RefundsCount'); + // expect(instance.RefundsCount).to.be(expectedValueLiteral); + }); + + it('should have the property TotalOnlineRevenueAdjustments (base name: "TotalOnlineRevenueAdjustments")', function() { + // TODO: update the code to test the property TotalOnlineRevenueAdjustments + expect(instance).to.have.property('TotalOnlineRevenueAdjustments'); + // expect(instance.TotalOnlineRevenueAdjustments).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/RevenueDetail.spec.js b/test/model/RevenueDetail.spec.js new file mode 100644 index 00000000..91487c24 --- /dev/null +++ b/test/model/RevenueDetail.spec.js @@ -0,0 +1,118 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('RevenueDetail', function() { + beforeEach(function() { + instance = new Flipdish.RevenueDetail(); + }); + + it('should create an instance of RevenueDetail', function() { + // TODO: update the code to test RevenueDetail + expect(instance).to.be.a(Flipdish.RevenueDetail); + }); + + it('should have the property OnlineSalesAmount (base name: "OnlineSalesAmount")', function() { + // TODO: update the code to test the property OnlineSalesAmount + expect(instance).to.have.property('OnlineSalesAmount'); + // expect(instance.OnlineSalesAmount).to.be(expectedValueLiteral); + }); + + it('should have the property OnlineSalesTax (base name: "OnlineSalesTax")', function() { + // TODO: update the code to test the property OnlineSalesTax + expect(instance).to.have.property('OnlineSalesTax'); + // expect(instance.OnlineSalesTax).to.be(expectedValueLiteral); + }); + + it('should have the property OnlineSalesIncludingTax (base name: "OnlineSalesIncludingTax")', function() { + // TODO: update the code to test the property OnlineSalesIncludingTax + expect(instance).to.have.property('OnlineSalesIncludingTax'); + // expect(instance.OnlineSalesIncludingTax).to.be(expectedValueLiteral); + }); + + it('should have the property OnlineSalesFeesBaseAmount (base name: "OnlineSalesFeesBaseAmount")', function() { + // TODO: update the code to test the property OnlineSalesFeesBaseAmount + expect(instance).to.have.property('OnlineSalesFeesBaseAmount'); + // expect(instance.OnlineSalesFeesBaseAmount).to.be(expectedValueLiteral); + }); + + it('should have the property CashSalesAmount (base name: "CashSalesAmount")', function() { + // TODO: update the code to test the property CashSalesAmount + expect(instance).to.have.property('CashSalesAmount'); + // expect(instance.CashSalesAmount).to.be(expectedValueLiteral); + }); + + it('should have the property CashSalesTax (base name: "CashSalesTax")', function() { + // TODO: update the code to test the property CashSalesTax + expect(instance).to.have.property('CashSalesTax'); + // expect(instance.CashSalesTax).to.be(expectedValueLiteral); + }); + + it('should have the property CashSalesIncludingTax (base name: "CashSalesIncludingTax")', function() { + // TODO: update the code to test the property CashSalesIncludingTax + expect(instance).to.have.property('CashSalesIncludingTax'); + // expect(instance.CashSalesIncludingTax).to.be(expectedValueLiteral); + }); + + it('should have the property CashSalesFeesBaseAmount (base name: "CashSalesFeesBaseAmount")', function() { + // TODO: update the code to test the property CashSalesFeesBaseAmount + expect(instance).to.have.property('CashSalesFeesBaseAmount'); + // expect(instance.CashSalesFeesBaseAmount).to.be(expectedValueLiteral); + }); + + it('should have the property TotalSalesIncludingTax (base name: "TotalSalesIncludingTax")', function() { + // TODO: update the code to test the property TotalSalesIncludingTax + expect(instance).to.have.property('TotalSalesIncludingTax'); + // expect(instance.TotalSalesIncludingTax).to.be(expectedValueLiteral); + }); + + it('should have the property OnlineSalesDeliveryCharges (base name: "OnlineSalesDeliveryCharges")', function() { + // TODO: update the code to test the property OnlineSalesDeliveryCharges + expect(instance).to.have.property('OnlineSalesDeliveryCharges'); + // expect(instance.OnlineSalesDeliveryCharges).to.be(expectedValueLiteral); + }); + + it('should have the property OnlineSalesTips (base name: "OnlineSalesTips")', function() { + // TODO: update the code to test the property OnlineSalesTips + expect(instance).to.have.property('OnlineSalesTips'); + // expect(instance.OnlineSalesTips).to.be(expectedValueLiteral); + }); + + it('should have the property TotalOnlineRevenue (base name: "TotalOnlineRevenue")', function() { + // TODO: update the code to test the property TotalOnlineRevenue + expect(instance).to.have.property('TotalOnlineRevenue'); + // expect(instance.TotalOnlineRevenue).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/SearchCriteria.spec.js b/test/model/SearchCriteria.spec.js index 38b96816..c41ab478 100644 --- a/test/model/SearchCriteria.spec.js +++ b/test/model/SearchCriteria.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,63 +29,96 @@ var instance; - beforeEach(function() { - instance = new Flipdish.SearchCriteria(); - }); + describe('(package)', function() { + describe('SearchCriteria', function() { + 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]; - } + it('should create an instance of SearchCriteria', function() { + // TODO: update the code to test SearchCriteria + expect(instance).to.be.a(Flipdish.SearchCriteria); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property Limit (base name: "Limit")', function() { + // TODO: update the code to test the property Limit + expect(instance).to.have.property('Limit'); + // expect(instance.Limit).to.be(expectedValueLiteral); + }); - 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 Page (base name: "Page")', function() { + // TODO: update the code to test the property Page + expect(instance).to.have.property('Page'); + // expect(instance.Page).to.be(expectedValueLiteral); + }); - it('should have the property limit (base name: "Limit")', function() { - // uncomment below and update the code to test the property limit - //var instane = new Flipdish.SearchCriteria(); - //expect(instance).to.be(); - }); + it('should have the property Start (base name: "Start")', function() { + // TODO: update the code to test the property Start + expect(instance).to.have.property('Start'); + // expect(instance.Start).to.be(expectedValueLiteral); + }); - it('should have the property page (base name: "Page")', function() { - // uncomment below and update the code to test the property page - //var instane = new Flipdish.SearchCriteria(); - //expect(instance).to.be(); - }); + it('should have the property End (base name: "End")', function() { + // TODO: update the code to test the property End + expect(instance).to.have.property('End'); + // expect(instance.End).to.be(expectedValueLiteral); + }); - it('should have the property start (base name: "Start")', function() { - // uncomment below and update the code to test the property start - //var instane = new Flipdish.SearchCriteria(); - //expect(instance).to.be(); - }); + it('should have the property OrderId (base name: "OrderId")', function() { + // TODO: update the code to test the property OrderId + expect(instance).to.have.property('OrderId'); + // expect(instance.OrderId).to.be(expectedValueLiteral); + }); - it('should have the property end (base name: "End")', function() { - // uncomment below and update the code to test the property end - //var instane = new Flipdish.SearchCriteria(); - //expect(instance).to.be(); - }); + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); - it('should have the property name (base name: "Name")', function() { - // uncomment below and update the code to test the property name - //var instane = new Flipdish.SearchCriteria(); - //expect(instance).to.be(); - }); + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property UserId (base name: "UserId")', function() { + // TODO: update the code to test the property UserId + expect(instance).to.have.property('UserId'); + // expect(instance.UserId).to.be(expectedValueLiteral); + }); + + it('should have the property UserEmail (base name: "UserEmail")', function() { + // TODO: update the code to test the property UserEmail + expect(instance).to.have.property('UserEmail'); + // expect(instance.UserEmail).to.be(expectedValueLiteral); + }); + + it('should have the property UserName (base name: "UserName")', function() { + // TODO: update the code to test the property UserName + expect(instance).to.have.property('UserName'); + // expect(instance.UserName).to.be(expectedValueLiteral); + }); + it('should have the property VoucherCode (base name: "VoucherCode")', function() { + // TODO: update the code to test the property VoucherCode + expect(instance).to.have.property('VoucherCode'); + // expect(instance.VoucherCode).to.be(expectedValueLiteral); + }); + + it('should have the property EventType (base name: "EventType")', function() { + // TODO: update the code to test the property EventType + expect(instance).to.have.property('EventType'); + // expect(instance.EventType).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + }); }); })); diff --git a/test/model/SetPasswordWithPinModel.spec.js b/test/model/SetPasswordWithPinModel.spec.js new file mode 100644 index 00000000..deab0769 --- /dev/null +++ b/test/model/SetPasswordWithPinModel.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('SetPasswordWithPinModel', function() { + beforeEach(function() { + instance = new Flipdish.SetPasswordWithPinModel(); + }); + + it('should create an instance of SetPasswordWithPinModel', function() { + // TODO: update the code to test SetPasswordWithPinModel + expect(instance).to.be.a(Flipdish.SetPasswordWithPinModel); + }); + + it('should have the property Pin (base name: "Pin")', function() { + // TODO: update the code to test the property Pin + expect(instance).to.have.property('Pin'); + // expect(instance.Pin).to.be(expectedValueLiteral); + }); + + it('should have the property NewPassword (base name: "NewPassword")', function() { + // TODO: update the code to test the property NewPassword + expect(instance).to.have.property('NewPassword'); + // expect(instance.NewPassword).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/SignupStep.spec.js b/test/model/SignupStep.spec.js new file mode 100644 index 00000000..a83e49c0 --- /dev/null +++ b/test/model/SignupStep.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('SignupStep', function() { + beforeEach(function() { + instance = new Flipdish.SignupStep(); + }); + + it('should create an instance of SignupStep', function() { + // TODO: update the code to test SignupStep + expect(instance).to.be.a(Flipdish.SignupStep); + }); + + it('should have the property Action (base name: "Action")', function() { + // TODO: update the code to test the property Action + expect(instance).to.have.property('Action'); + // expect(instance.Action).to.be(expectedValueLiteral); + }); + + it('should have the property Question (base name: "Question")', function() { + // TODO: update the code to test the property Question + expect(instance).to.have.property('Question'); + // expect(instance.Question).to.be(expectedValueLiteral); + }); + + it('should have the property PredefinedAnswers (base name: "PredefinedAnswers")', function() { + // TODO: update the code to test the property PredefinedAnswers + expect(instance).to.have.property('PredefinedAnswers'); + // expect(instance.PredefinedAnswers).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/SmsInfo.spec.js b/test/model/SmsInfo.spec.js new file mode 100644 index 00000000..ea36b610 --- /dev/null +++ b/test/model/SmsInfo.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('SmsInfo', function() { + beforeEach(function() { + instance = new Flipdish.SmsInfo(); + }); + + it('should create an instance of SmsInfo', function() { + // TODO: update the code to test SmsInfo + expect(instance).to.be.a(Flipdish.SmsInfo); + }); + + it('should have the property From (base name: "From")', function() { + // TODO: update the code to test the property From + expect(instance).to.have.property('From'); + // expect(instance.From).to.be(expectedValueLiteral); + }); + + it('should have the property To (base name: "To")', function() { + // TODO: update the code to test the property To + expect(instance).to.have.property('To'); + // expect(instance.To).to.be(expectedValueLiteral); + }); + + it('should have the property Text (base name: "Text")', function() { + // TODO: update the code to test the property Text + expect(instance).to.have.property('Text'); + // expect(instance.Text).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/SmsReceivedEvent.spec.js b/test/model/SmsReceivedEvent.spec.js new file mode 100644 index 00000000..b5613ded --- /dev/null +++ b/test/model/SmsReceivedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('SmsReceivedEvent', function() { + beforeEach(function() { + instance = new Flipdish.SmsReceivedEvent(); + }); + + it('should create an instance of SmsReceivedEvent', function() { + // TODO: update the code to test SmsReceivedEvent + expect(instance).to.be.a(Flipdish.SmsReceivedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property SmsInfo (base name: "SmsInfo")', function() { + // TODO: update the code to test the property SmsInfo + expect(instance).to.have.property('SmsInfo'); + // expect(instance.SmsInfo).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StatisticsCurrencyDataPoint.spec.js b/test/model/StatisticsCurrencyDataPoint.spec.js new file mode 100644 index 00000000..68c7c704 --- /dev/null +++ b/test/model/StatisticsCurrencyDataPoint.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StatisticsCurrencyDataPoint', function() { + beforeEach(function() { + instance = new Flipdish.StatisticsCurrencyDataPoint(); + }); + + it('should create an instance of StatisticsCurrencyDataPoint', function() { + // TODO: update the code to test StatisticsCurrencyDataPoint + expect(instance).to.be.a(Flipdish.StatisticsCurrencyDataPoint); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + it('should have the property UserCount (base name: "UserCount")', function() { + // TODO: update the code to test the property UserCount + expect(instance).to.have.property('UserCount'); + // expect(instance.UserCount).to.be(expectedValueLiteral); + }); + + it('should have the property OrderCount (base name: "OrderCount")', function() { + // TODO: update the code to test the property OrderCount + expect(instance).to.have.property('OrderCount'); + // expect(instance.OrderCount).to.be(expectedValueLiteral); + }); + + it('should have the property OrderValue (base name: "OrderValue")', function() { + // TODO: update the code to test the property OrderValue + expect(instance).to.have.property('OrderValue'); + // expect(instance.OrderValue).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/Store.spec.js b/test/model/Store.spec.js index 55873e0c..ddf1781b 100644 --- a/test/model/Store.spec.js +++ b/test/model/Store.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,237 +29,300 @@ 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = new Flipdish.Store(); - //expect(instance).to.be(); - }); + describe('(package)', function() { + describe('Store', function() { + beforeEach(function() { + instance = new Flipdish.Store(); + }); + + it('should create an instance of Store', function() { + // TODO: update the code to test Store + expect(instance).to.be.a(Flipdish.Store); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property Address (base name: "Address")', function() { + // TODO: update the code to test the property Address + expect(instance).to.have.property('Address'); + // expect(instance.Address).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryZones (base name: "DeliveryZones")', function() { + // TODO: update the code to test the property DeliveryZones + expect(instance).to.have.property('DeliveryZones'); + // expect(instance.DeliveryZones).to.be(expectedValueLiteral); + }); + + it('should have the property ApmPhoneNumber (base name: "ApmPhoneNumber")', function() { + // TODO: update the code to test the property ApmPhoneNumber + expect(instance).to.have.property('ApmPhoneNumber'); + // expect(instance.ApmPhoneNumber).to.be(expectedValueLiteral); + }); + + it('should have the property PickupHours (base name: "PickupHours")', function() { + // TODO: update the code to test the property PickupHours + expect(instance).to.have.property('PickupHours'); + // expect(instance.PickupHours).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryHours (base name: "DeliveryHours")', function() { + // TODO: update the code to test the property DeliveryHours + expect(instance).to.have.property('DeliveryHours'); + // expect(instance.DeliveryHours).to.be(expectedValueLiteral); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property OrderConfirmationMessageOverrideDelivery (base name: "OrderConfirmationMessageOverrideDelivery")', function() { + // TODO: update the code to test the property OrderConfirmationMessageOverrideDelivery + expect(instance).to.have.property('OrderConfirmationMessageOverrideDelivery'); + // expect(instance.OrderConfirmationMessageOverrideDelivery).to.be(expectedValueLiteral); + }); + + it('should have the property OrderConfirmationMessageOverridePickup (base name: "OrderConfirmationMessageOverridePickup")', function() { + // TODO: update the code to test the property OrderConfirmationMessageOverridePickup + expect(instance).to.have.property('OrderConfirmationMessageOverridePickup'); + // expect(instance.OrderConfirmationMessageOverridePickup).to.be(expectedValueLiteral); + }); + + it('should have the property PrintoutLayoutType (base name: "PrintoutLayoutType")', function() { + // TODO: update the code to test the property PrintoutLayoutType + expect(instance).to.have.property('PrintoutLayoutType'); + // expect(instance.PrintoutLayoutType).to.be(expectedValueLiteral); + }); + + it('should have the property StoreNotes (base name: "StoreNotes")', function() { + // TODO: update the code to test the property StoreNotes + expect(instance).to.have.property('StoreNotes'); + // expect(instance.StoreNotes).to.be(expectedValueLiteral); + }); + + it('should have the property MicrosoftTimeZone (base name: "MicrosoftTimeZone")', function() { + // TODO: update the code to test the property MicrosoftTimeZone + expect(instance).to.have.property('MicrosoftTimeZone'); + // expect(instance.MicrosoftTimeZone).to.be(expectedValueLiteral); + }); + + it('should have the property IanaTimeZone (base name: "IanaTimeZone")', function() { + // TODO: update the code to test the property IanaTimeZone + expect(instance).to.have.property('IanaTimeZone'); + // expect(instance.IanaTimeZone).to.be(expectedValueLiteral); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + it('should have the property PreOrderDeliveryEnabled (base name: "PreOrderDeliveryEnabled")', function() { + // TODO: update the code to test the property PreOrderDeliveryEnabled + expect(instance).to.have.property('PreOrderDeliveryEnabled'); + // expect(instance.PreOrderDeliveryEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property PreOrderPickupEnabled (base name: "PreOrderPickupEnabled")', function() { + // TODO: update the code to test the property PreOrderPickupEnabled + expect(instance).to.have.property('PreOrderPickupEnabled'); + // expect(instance.PreOrderPickupEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property LogoUrl (base name: "LogoUrl")', function() { + // TODO: update the code to test the property LogoUrl + expect(instance).to.have.property('LogoUrl'); + // expect(instance.LogoUrl).to.be(expectedValueLiteral); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // TODO: update the code to test the property PhoneNumber + expect(instance).to.have.property('PhoneNumber'); + // expect(instance.PhoneNumber).to.be(expectedValueLiteral); + }); + + it('should have the property AlwaysAppearOpen (base name: "AlwaysAppearOpen")', function() { + // TODO: update the code to test the property AlwaysAppearOpen + expect(instance).to.have.property('AlwaysAppearOpen'); + // expect(instance.AlwaysAppearOpen).to.be(expectedValueLiteral); + }); + + it('should have the property PreOrderEnabled (base name: "PreOrderEnabled")', function() { + // TODO: update the code to test the property PreOrderEnabled + expect(instance).to.have.property('PreOrderEnabled'); + // expect(instance.PreOrderEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property TakeOutEnabled (base name: "TakeOutEnabled")', function() { + // TODO: update the code to test the property TakeOutEnabled + expect(instance).to.have.property('TakeOutEnabled'); + // expect(instance.TakeOutEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property TableServiceEnabled (base name: "TableServiceEnabled")', function() { + // TODO: update the code to test the property TableServiceEnabled + expect(instance).to.have.property('TableServiceEnabled'); + // expect(instance.TableServiceEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property DineInEnabled (base name: "DineInEnabled")', function() { + // TODO: update the code to test the property DineInEnabled + expect(instance).to.have.property('DineInEnabled'); + // expect(instance.DineInEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property AllowPreOrdersAndTableService (base name: "AllowPreOrdersAndTableService")', function() { + // TODO: update the code to test the property AllowPreOrdersAndTableService + expect(instance).to.have.property('AllowPreOrdersAndTableService'); + // expect(instance.AllowPreOrdersAndTableService).to.be(expectedValueLiteral); + }); + + it('should have the property PickupEnabled (base name: "PickupEnabled")', function() { + // TODO: update the code to test the property PickupEnabled + expect(instance).to.have.property('PickupEnabled'); + // expect(instance.PickupEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryEnabled (base name: "DeliveryEnabled")', function() { + // TODO: update the code to test the property DeliveryEnabled + expect(instance).to.have.property('DeliveryEnabled'); + // expect(instance.DeliveryEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property CardOrderDeliveryEnabled (base name: "CardOrderDeliveryEnabled")', function() { + // TODO: update the code to test the property CardOrderDeliveryEnabled + expect(instance).to.have.property('CardOrderDeliveryEnabled'); + // expect(instance.CardOrderDeliveryEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property CashOrdersDeliveryEnabled (base name: "CashOrdersDeliveryEnabled")', function() { + // TODO: update the code to test the property CashOrdersDeliveryEnabled + expect(instance).to.have.property('CashOrdersDeliveryEnabled'); + // expect(instance.CashOrdersDeliveryEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property CardOrdersPickupEnabled (base name: "CardOrdersPickupEnabled")', function() { + // TODO: update the code to test the property CardOrdersPickupEnabled + expect(instance).to.have.property('CardOrdersPickupEnabled'); + // expect(instance.CardOrdersPickupEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property CashOrdersPickupEnabled (base name: "CashOrdersPickupEnabled")', function() { + // TODO: update the code to test the property CashOrdersPickupEnabled + expect(instance).to.have.property('CashOrdersPickupEnabled'); + // expect(instance.CashOrdersPickupEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property TipsEnabled (base name: "TipsEnabled")', function() { + // TODO: update the code to test the property TipsEnabled + expect(instance).to.have.property('TipsEnabled'); + // expect(instance.TipsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property AutomaticallyAcceptOrders (base name: "AutomaticallyAcceptOrders")', function() { + // TODO: update the code to test the property AutomaticallyAcceptOrders + expect(instance).to.have.property('AutomaticallyAcceptOrders'); + // expect(instance.AutomaticallyAcceptOrders).to.be(expectedValueLiteral); + }); + + it('should have the property OpenForDelivery (base name: "OpenForDelivery")', function() { + // TODO: update the code to test the property OpenForDelivery + expect(instance).to.have.property('OpenForDelivery'); + // expect(instance.OpenForDelivery).to.be(expectedValueLiteral); + }); + + it('should have the property OpenForPickup (base name: "OpenForPickup")', function() { + // TODO: update the code to test the property OpenForPickup + expect(instance).to.have.property('OpenForPickup'); + // expect(instance.OpenForPickup).to.be(expectedValueLiteral); + }); + + it('should have the property MinimumPickupOrderAmount (base name: "MinimumPickupOrderAmount")', function() { + // TODO: update the code to test the property MinimumPickupOrderAmount + expect(instance).to.have.property('MinimumPickupOrderAmount'); + // expect(instance.MinimumPickupOrderAmount).to.be(expectedValueLiteral); + }); + + it('should have the property RequireCustomerNameForPickup (base name: "RequireCustomerNameForPickup")', function() { + // TODO: update the code to test the property RequireCustomerNameForPickup + expect(instance).to.have.property('RequireCustomerNameForPickup'); + // expect(instance.RequireCustomerNameForPickup).to.be(expectedValueLiteral); + }); + + it('should have the property GdprCustomerPhoneNumbers (base name: "GdprCustomerPhoneNumbers")', function() { + // TODO: update the code to test the property GdprCustomerPhoneNumbers + expect(instance).to.have.property('GdprCustomerPhoneNumbers'); + // expect(instance.GdprCustomerPhoneNumbers).to.be(expectedValueLiteral); + }); + + it('should have the property RequireCustomerNameForDelivery (base name: "RequireCustomerNameForDelivery")', function() { + // TODO: update the code to test the property RequireCustomerNameForDelivery + expect(instance).to.have.property('RequireCustomerNameForDelivery'); + // expect(instance.RequireCustomerNameForDelivery).to.be(expectedValueLiteral); + }); + + it('should have the property AllowChefNotes (base name: "AllowChefNotes")', function() { + // TODO: update the code to test the property AllowChefNotes + expect(instance).to.have.property('AllowChefNotes'); + // expect(instance.AllowChefNotes).to.be(expectedValueLiteral); + }); + + it('should have the property EtaInPickupConfirmationSmsEnabled (base name: "EtaInPickupConfirmationSmsEnabled")', function() { + // TODO: update the code to test the property EtaInPickupConfirmationSmsEnabled + expect(instance).to.have.property('EtaInPickupConfirmationSmsEnabled'); + // expect(instance.EtaInPickupConfirmationSmsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property EtaInDeliveryConfirmationSmsEnabled (base name: "EtaInDeliveryConfirmationSmsEnabled")', function() { + // TODO: update the code to test the property EtaInDeliveryConfirmationSmsEnabled + expect(instance).to.have.property('EtaInDeliveryConfirmationSmsEnabled'); + // expect(instance.EtaInDeliveryConfirmationSmsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property IsArchived (base name: "IsArchived")', function() { + // TODO: update the code to test the property IsArchived + expect(instance).to.have.property('IsArchived'); + // expect(instance.IsArchived).to.be(expectedValueLiteral); + }); + + it('should have the property IsPublished (base name: "IsPublished")', function() { + // TODO: update the code to test the property IsPublished + expect(instance).to.have.property('IsPublished'); + // expect(instance.IsPublished).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property EmailAddress (base name: "EmailAddress")', function() { + // TODO: update the code to test the property EmailAddress + expect(instance).to.have.property('EmailAddress'); + // expect(instance.EmailAddress).to.be(expectedValueLiteral); + }); + + it('should have the property StaffLanguage (base name: "StaffLanguage")', function() { + // TODO: update the code to test the property StaffLanguage + expect(instance).to.have.property('StaffLanguage'); + // expect(instance.StaffLanguage).to.be(expectedValueLiteral); + }); - it('should have the property cardOrdersPickupEnabled (base name: "CardOrdersPickupEnabled")', function() { - // uncomment below and update the code to test the property cardOrdersPickupEnabled - //var instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = new Flipdish.Store(); - //expect(instance).to.be(); - }); - - it('should have the property deliveryFeeAreas (base name: "DeliveryFeeAreas")', function() { - // uncomment below and update the code to test the property deliveryFeeAreas - //var instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = new Flipdish.Store(); - //expect(instance).to.be(); - }); - }); })); diff --git a/test/model/StoreAddress.spec.js b/test/model/StoreAddress.spec.js index 644cce82..0e8a21f9 100644 --- a/test/model/StoreAddress.spec.js +++ b/test/model/StoreAddress.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,60 @@ 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]; - } + describe('(package)', function() { + describe('StoreAddress', function() { + beforeEach(function() { + instance = new Flipdish.StoreAddress(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of StoreAddress', function() { + // TODO: update the code to test StoreAddress + expect(instance).to.be.a(Flipdish.StoreAddress); + }); - 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() { + // TODO: update the code to test the property AddressId + expect(instance).to.have.property('AddressId'); + // expect(instance.AddressId).to.be(expectedValueLiteral); + }); - it('should have the property addressId (base name: "AddressId")', function() { - // uncomment below and update the code to test the property addressId - //var instane = new Flipdish.StoreAddress(); - //expect(instance).to.be(); - }); + it('should have the property Coordinates (base name: "Coordinates")', function() { + // TODO: update the code to test the property Coordinates + expect(instance).to.have.property('Coordinates'); + // expect(instance.Coordinates).to.be(expectedValueLiteral); + }); - it('should have the property line1 (base name: "Line1")', function() { - // uncomment below and update the code to test the property line1 - //var instane = new Flipdish.StoreAddress(); - //expect(instance).to.be(); - }); + it('should have the property Line1 (base name: "Line1")', function() { + // TODO: update the code to test the property Line1 + expect(instance).to.have.property('Line1'); + // expect(instance.Line1).to.be(expectedValueLiteral); + }); - it('should have the property postcode (base name: "Postcode")', function() { - // uncomment below and update the code to test the property postcode - //var instane = new Flipdish.StoreAddress(); - //expect(instance).to.be(); - }); + it('should have the property Postcode (base name: "Postcode")', function() { + // TODO: update the code to test the property Postcode + expect(instance).to.have.property('Postcode'); + // expect(instance.Postcode).to.be(expectedValueLiteral); + }); - it('should have the property city (base name: "City")', function() { - // uncomment below and update the code to test the property city - //var instane = new Flipdish.StoreAddress(); - //expect(instance).to.be(); - }); + it('should have the property City (base name: "City")', function() { + // TODO: update the code to test the property City + expect(instance).to.have.property('City'); + // expect(instance.City).to.be(expectedValueLiteral); + }); - it('should have the property countryCode (base name: "CountryCode")', function() { - // uncomment below and update the code to test the property countryCode - //var instane = new Flipdish.StoreAddress(); - //expect(instance).to.be(); - }); + it('should have the property CountryCode (base name: "CountryCode")', function() { + // TODO: update the code to test the property CountryCode + expect(instance).to.have.property('CountryCode'); + // expect(instance.CountryCode).to.be(expectedValueLiteral); + }); - it('should have the property displayForCustomer (base name: "DisplayForCustomer")', function() { - // uncomment below and update the code to test the property displayForCustomer - //var instane = new Flipdish.StoreAddress(); - //expect(instance).to.be(); - }); + it('should have the property DisplayForCustomer (base name: "DisplayForCustomer")', function() { + // TODO: update the code to test the property DisplayForCustomer + expect(instance).to.have.property('DisplayForCustomer'); + // expect(instance.DisplayForCustomer).to.be(expectedValueLiteral); + }); - it('should have the property coordinates (base name: "Coordinates")', function() { - // uncomment below and update the code to test the property coordinates - //var instane = 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..95acb90d --- /dev/null +++ b/test/model/StoreAddressBase.spec.js @@ -0,0 +1,76 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreAddressBase', function() { + beforeEach(function() { + instance = new Flipdish.StoreAddressBase(); + }); + + it('should create an instance of StoreAddressBase', function() { + // TODO: update the code to test StoreAddressBase + expect(instance).to.be.a(Flipdish.StoreAddressBase); + }); + + it('should have the property Line1 (base name: "Line1")', function() { + // TODO: update the code to test the property Line1 + expect(instance).to.have.property('Line1'); + // expect(instance.Line1).to.be(expectedValueLiteral); + }); + + it('should have the property Postcode (base name: "Postcode")', function() { + // TODO: update the code to test the property Postcode + expect(instance).to.have.property('Postcode'); + // expect(instance.Postcode).to.be(expectedValueLiteral); + }); + + it('should have the property City (base name: "City")', function() { + // TODO: update the code to test the property City + expect(instance).to.have.property('City'); + // expect(instance.City).to.be(expectedValueLiteral); + }); + + it('should have the property CountryCode (base name: "CountryCode")', function() { + // TODO: update the code to test the property CountryCode + expect(instance).to.have.property('CountryCode'); + // expect(instance.CountryCode).to.be(expectedValueLiteral); + }); + + it('should have the property DisplayForCustomer (base name: "DisplayForCustomer")', function() { + // TODO: update the code to test the property DisplayForCustomer + expect(instance).to.have.property('DisplayForCustomer'); + // expect(instance.DisplayForCustomer).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreAddressUpdatedEvent.spec.js b/test/model/StoreAddressUpdatedEvent.spec.js new file mode 100644 index 00000000..bfb93d2b --- /dev/null +++ b/test/model/StoreAddressUpdatedEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreAddressUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StoreAddressUpdatedEvent(); + }); + + it('should create an instance of StoreAddressUpdatedEvent', function() { + // TODO: update the code to test StoreAddressUpdatedEvent + expect(instance).to.be.a(Flipdish.StoreAddressUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreAddress (base name: "StoreAddress")', function() { + // TODO: update the code to test the property StoreAddress + expect(instance).to.have.property('StoreAddress'); + // expect(instance.StoreAddress).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreArchivedEvent.spec.js b/test/model/StoreArchivedEvent.spec.js new file mode 100644 index 00000000..7dbb3196 --- /dev/null +++ b/test/model/StoreArchivedEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreArchivedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StoreArchivedEvent(); + }); + + it('should create an instance of StoreArchivedEvent', function() { + // TODO: update the code to test StoreArchivedEvent + expect(instance).to.be.a(Flipdish.StoreArchivedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property Store (base name: "Store")', function() { + // TODO: update the code to test the property Store + expect(instance).to.have.property('Store'); + // expect(instance.Store).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreBase.spec.js b/test/model/StoreBase.spec.js new file mode 100644 index 00000000..d70d1ef5 --- /dev/null +++ b/test/model/StoreBase.spec.js @@ -0,0 +1,220 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreBase', function() { + beforeEach(function() { + instance = new Flipdish.StoreBase(); + }); + + it('should create an instance of StoreBase', function() { + // TODO: update the code to test StoreBase + expect(instance).to.be.a(Flipdish.StoreBase); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // TODO: update the code to test the property PhoneNumber + expect(instance).to.have.property('PhoneNumber'); + // expect(instance.PhoneNumber).to.be(expectedValueLiteral); + }); + + it('should have the property AlwaysAppearOpen (base name: "AlwaysAppearOpen")', function() { + // TODO: update the code to test the property AlwaysAppearOpen + expect(instance).to.have.property('AlwaysAppearOpen'); + // expect(instance.AlwaysAppearOpen).to.be(expectedValueLiteral); + }); + + it('should have the property PreOrderEnabled (base name: "PreOrderEnabled")', function() { + // TODO: update the code to test the property PreOrderEnabled + expect(instance).to.have.property('PreOrderEnabled'); + // expect(instance.PreOrderEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property TakeOutEnabled (base name: "TakeOutEnabled")', function() { + // TODO: update the code to test the property TakeOutEnabled + expect(instance).to.have.property('TakeOutEnabled'); + // expect(instance.TakeOutEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property TableServiceEnabled (base name: "TableServiceEnabled")', function() { + // TODO: update the code to test the property TableServiceEnabled + expect(instance).to.have.property('TableServiceEnabled'); + // expect(instance.TableServiceEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property DineInEnabled (base name: "DineInEnabled")', function() { + // TODO: update the code to test the property DineInEnabled + expect(instance).to.have.property('DineInEnabled'); + // expect(instance.DineInEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property AllowPreOrdersAndTableService (base name: "AllowPreOrdersAndTableService")', function() { + // TODO: update the code to test the property AllowPreOrdersAndTableService + expect(instance).to.have.property('AllowPreOrdersAndTableService'); + // expect(instance.AllowPreOrdersAndTableService).to.be(expectedValueLiteral); + }); + + it('should have the property PickupEnabled (base name: "PickupEnabled")', function() { + // TODO: update the code to test the property PickupEnabled + expect(instance).to.have.property('PickupEnabled'); + // expect(instance.PickupEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryEnabled (base name: "DeliveryEnabled")', function() { + // TODO: update the code to test the property DeliveryEnabled + expect(instance).to.have.property('DeliveryEnabled'); + // expect(instance.DeliveryEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property CardOrderDeliveryEnabled (base name: "CardOrderDeliveryEnabled")', function() { + // TODO: update the code to test the property CardOrderDeliveryEnabled + expect(instance).to.have.property('CardOrderDeliveryEnabled'); + // expect(instance.CardOrderDeliveryEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property CashOrdersDeliveryEnabled (base name: "CashOrdersDeliveryEnabled")', function() { + // TODO: update the code to test the property CashOrdersDeliveryEnabled + expect(instance).to.have.property('CashOrdersDeliveryEnabled'); + // expect(instance.CashOrdersDeliveryEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property CardOrdersPickupEnabled (base name: "CardOrdersPickupEnabled")', function() { + // TODO: update the code to test the property CardOrdersPickupEnabled + expect(instance).to.have.property('CardOrdersPickupEnabled'); + // expect(instance.CardOrdersPickupEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property CashOrdersPickupEnabled (base name: "CashOrdersPickupEnabled")', function() { + // TODO: update the code to test the property CashOrdersPickupEnabled + expect(instance).to.have.property('CashOrdersPickupEnabled'); + // expect(instance.CashOrdersPickupEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property TipsEnabled (base name: "TipsEnabled")', function() { + // TODO: update the code to test the property TipsEnabled + expect(instance).to.have.property('TipsEnabled'); + // expect(instance.TipsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property AutomaticallyAcceptOrders (base name: "AutomaticallyAcceptOrders")', function() { + // TODO: update the code to test the property AutomaticallyAcceptOrders + expect(instance).to.have.property('AutomaticallyAcceptOrders'); + // expect(instance.AutomaticallyAcceptOrders).to.be(expectedValueLiteral); + }); + + it('should have the property OpenForDelivery (base name: "OpenForDelivery")', function() { + // TODO: update the code to test the property OpenForDelivery + expect(instance).to.have.property('OpenForDelivery'); + // expect(instance.OpenForDelivery).to.be(expectedValueLiteral); + }); + + it('should have the property OpenForPickup (base name: "OpenForPickup")', function() { + // TODO: update the code to test the property OpenForPickup + expect(instance).to.have.property('OpenForPickup'); + // expect(instance.OpenForPickup).to.be(expectedValueLiteral); + }); + + it('should have the property MinimumPickupOrderAmount (base name: "MinimumPickupOrderAmount")', function() { + // TODO: update the code to test the property MinimumPickupOrderAmount + expect(instance).to.have.property('MinimumPickupOrderAmount'); + // expect(instance.MinimumPickupOrderAmount).to.be(expectedValueLiteral); + }); + + it('should have the property RequireCustomerNameForPickup (base name: "RequireCustomerNameForPickup")', function() { + // TODO: update the code to test the property RequireCustomerNameForPickup + expect(instance).to.have.property('RequireCustomerNameForPickup'); + // expect(instance.RequireCustomerNameForPickup).to.be(expectedValueLiteral); + }); + + it('should have the property GdprCustomerPhoneNumbers (base name: "GdprCustomerPhoneNumbers")', function() { + // TODO: update the code to test the property GdprCustomerPhoneNumbers + expect(instance).to.have.property('GdprCustomerPhoneNumbers'); + // expect(instance.GdprCustomerPhoneNumbers).to.be(expectedValueLiteral); + }); + + it('should have the property RequireCustomerNameForDelivery (base name: "RequireCustomerNameForDelivery")', function() { + // TODO: update the code to test the property RequireCustomerNameForDelivery + expect(instance).to.have.property('RequireCustomerNameForDelivery'); + // expect(instance.RequireCustomerNameForDelivery).to.be(expectedValueLiteral); + }); + + it('should have the property AllowChefNotes (base name: "AllowChefNotes")', function() { + // TODO: update the code to test the property AllowChefNotes + expect(instance).to.have.property('AllowChefNotes'); + // expect(instance.AllowChefNotes).to.be(expectedValueLiteral); + }); + + it('should have the property EtaInPickupConfirmationSmsEnabled (base name: "EtaInPickupConfirmationSmsEnabled")', function() { + // TODO: update the code to test the property EtaInPickupConfirmationSmsEnabled + expect(instance).to.have.property('EtaInPickupConfirmationSmsEnabled'); + // expect(instance.EtaInPickupConfirmationSmsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property EtaInDeliveryConfirmationSmsEnabled (base name: "EtaInDeliveryConfirmationSmsEnabled")', function() { + // TODO: update the code to test the property EtaInDeliveryConfirmationSmsEnabled + expect(instance).to.have.property('EtaInDeliveryConfirmationSmsEnabled'); + // expect(instance.EtaInDeliveryConfirmationSmsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property IsArchived (base name: "IsArchived")', function() { + // TODO: update the code to test the property IsArchived + expect(instance).to.have.property('IsArchived'); + // expect(instance.IsArchived).to.be(expectedValueLiteral); + }); + + it('should have the property IsPublished (base name: "IsPublished")', function() { + // TODO: update the code to test the property IsPublished + expect(instance).to.have.property('IsPublished'); + // expect(instance.IsPublished).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property EmailAddress (base name: "EmailAddress")', function() { + // TODO: update the code to test the property EmailAddress + expect(instance).to.have.property('EmailAddress'); + // expect(instance.EmailAddress).to.be(expectedValueLiteral); + }); + + it('should have the property StaffLanguage (base name: "StaffLanguage")', function() { + // TODO: update the code to test the property StaffLanguage + expect(instance).to.have.property('StaffLanguage'); + // expect(instance.StaffLanguage).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreBusinessHoursOverrideCreatedEvent.spec.js b/test/model/StoreBusinessHoursOverrideCreatedEvent.spec.js new file mode 100644 index 00000000..6d667402 --- /dev/null +++ b/test/model/StoreBusinessHoursOverrideCreatedEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreBusinessHoursOverrideCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + }); + + it('should create an instance of StoreBusinessHoursOverrideCreatedEvent', function() { + // TODO: update the code to test StoreBusinessHoursOverrideCreatedEvent + expect(instance).to.be.a(Flipdish.StoreBusinessHoursOverrideCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property BusinessHoursOverride (base name: "BusinessHoursOverride")', function() { + // TODO: update the code to test the property BusinessHoursOverride + expect(instance).to.have.property('BusinessHoursOverride'); + // expect(instance.BusinessHoursOverride).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreBusinessHoursOverrideDeletedEvent.spec.js b/test/model/StoreBusinessHoursOverrideDeletedEvent.spec.js new file mode 100644 index 00000000..cfd4ead1 --- /dev/null +++ b/test/model/StoreBusinessHoursOverrideDeletedEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreBusinessHoursOverrideDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + }); + + it('should create an instance of StoreBusinessHoursOverrideDeletedEvent', function() { + // TODO: update the code to test StoreBusinessHoursOverrideDeletedEvent + expect(instance).to.be.a(Flipdish.StoreBusinessHoursOverrideDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property BusinessHoursOverride (base name: "BusinessHoursOverride")', function() { + // TODO: update the code to test the property BusinessHoursOverride + expect(instance).to.have.property('BusinessHoursOverride'); + // expect(instance.BusinessHoursOverride).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreCampaignStartTime.spec.js b/test/model/StoreCampaignStartTime.spec.js new file mode 100644 index 00000000..d045a05e --- /dev/null +++ b/test/model/StoreCampaignStartTime.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreCampaignStartTime', function() { + beforeEach(function() { + instance = new Flipdish.StoreCampaignStartTime(); + }); + + it('should create an instance of StoreCampaignStartTime', function() { + // TODO: update the code to test StoreCampaignStartTime + expect(instance).to.be.a(Flipdish.StoreCampaignStartTime); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property TsStart (base name: "TsStart")', function() { + // TODO: update the code to test the property TsStart + expect(instance).to.have.property('TsStart'); + // expect(instance.TsStart).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreCloneSettings.spec.js b/test/model/StoreCloneSettings.spec.js new file mode 100644 index 00000000..055ee14b --- /dev/null +++ b/test/model/StoreCloneSettings.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreCloneSettings', function() { + beforeEach(function() { + instance = new Flipdish.StoreCloneSettings(); + }); + + it('should create an instance of StoreCloneSettings', function() { + // TODO: update the code to test StoreCloneSettings + expect(instance).to.be.a(Flipdish.StoreCloneSettings); + }); + + it('should have the property TargetStoreGroupId (base name: "TargetStoreGroupId")', function() { + // TODO: update the code to test the property TargetStoreGroupId + expect(instance).to.have.property('TargetStoreGroupId'); + // expect(instance.TargetStoreGroupId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreCreateBase.spec.js b/test/model/StoreCreateBase.spec.js new file mode 100644 index 00000000..1ce9fb31 --- /dev/null +++ b/test/model/StoreCreateBase.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreCreateBase', function() { + beforeEach(function() { + instance = new Flipdish.StoreCreateBase(); + }); + + it('should create an instance of StoreCreateBase', function() { + // TODO: update the code to test StoreCreateBase + expect(instance).to.be.a(Flipdish.StoreCreateBase); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property EmailAddress (base name: "EmailAddress")', function() { + // TODO: update the code to test the property EmailAddress + expect(instance).to.have.property('EmailAddress'); + // expect(instance.EmailAddress).to.be(expectedValueLiteral); + }); + + it('should have the property StaffLanguage (base name: "StaffLanguage")', function() { + // TODO: update the code to test the property StaffLanguage + expect(instance).to.have.property('StaffLanguage'); + // expect(instance.StaffLanguage).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreCreatedEvent.spec.js b/test/model/StoreCreatedEvent.spec.js index 09b7cd9f..50691a63 100644 --- a/test/model/StoreCreatedEvent.spec.js +++ b/test/model/StoreCreatedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,72 @@ var instance; - beforeEach(function() { - instance = new Flipdish.StoreCreatedEvent(); - }); + describe('(package)', function() { + describe('StoreCreatedEvent', function() { + 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]; - } + it('should create an instance of StoreCreatedEvent', function() { + // TODO: update the code to test StoreCreatedEvent + expect(instance).to.be.a(Flipdish.StoreCreatedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.StoreCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); - it('should have the property storeId (base name: "StoreId")', function() { - // uncomment below and update the code to test the property storeId - //var instane = new Flipdish.StoreCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property user (base name: "User")', function() { - // uncomment below and update the code to test the property user - //var instane = new Flipdish.StoreCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Store (base name: "Store")', function() { + // TODO: update the code to test the property Store + expect(instance).to.have.property('Store'); + // expect(instance.Store).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.StoreCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.StoreCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.StoreCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = new Flipdish.StoreCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + }); }); })); diff --git a/test/model/StoreDataPoint.spec.js b/test/model/StoreDataPoint.spec.js new file mode 100644 index 00000000..031a9951 --- /dev/null +++ b/test/model/StoreDataPoint.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreDataPoint', function() { + beforeEach(function() { + instance = new Flipdish.StoreDataPoint(); + }); + + it('should create an instance of StoreDataPoint', function() { + // TODO: update the code to test StoreDataPoint + expect(instance).to.be.a(Flipdish.StoreDataPoint); + }); + + it('should have the property Day (base name: "Day")', function() { + // TODO: update the code to test the property Day + expect(instance).to.have.property('Day'); + // expect(instance.Day).to.be(expectedValueLiteral); + }); + + it('should have the property Value (base name: "Value")', function() { + // TODO: update the code to test the property Value + expect(instance).to.have.property('Value'); + // expect(instance.Value).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreDeletedEvent.spec.js b/test/model/StoreDeletedEvent.spec.js index 3ffb2f75..48240ea1 100644 --- a/test/model/StoreDeletedEvent.spec.js +++ b/test/model/StoreDeletedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,78 @@ var instance; - beforeEach(function() { - instance = new Flipdish.StoreDeletedEvent(); - }); + describe('(package)', function() { + describe('StoreDeletedEvent', function() { + 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]; - } + it('should create an instance of StoreDeletedEvent', function() { + // TODO: update the code to test StoreDeletedEvent + expect(instance).to.be.a(Flipdish.StoreDeletedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.StoreDeletedEvent(); - //expect(instance).to.be(); - }); + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); - it('should have the property storeId (base name: "StoreId")', function() { - // uncomment below and update the code to test the property storeId - //var instane = new Flipdish.StoreDeletedEvent(); - //expect(instance).to.be(); - }); + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); - it('should have the property user (base name: "User")', function() { - // uncomment below and update the code to test the property user - //var instane = new Flipdish.StoreDeletedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.StoreDeletedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Store (base name: "Store")', function() { + // TODO: update the code to test the property Store + expect(instance).to.have.property('Store'); + // expect(instance.Store).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.StoreDeletedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.StoreDeletedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = new Flipdish.StoreDeletedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + }); }); })); diff --git a/test/model/StoreDeliveryZoneUpdatedEvent.spec.js b/test/model/StoreDeliveryZoneUpdatedEvent.spec.js deleted file mode 100644 index 19bbbb1f..00000000 --- a/test/model/StoreDeliveryZoneUpdatedEvent.spec.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Flipdish Open API v1.0 - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.Flipdish); - } -}(this, function(expect, Flipdish) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Flipdish.StoreDeliveryZoneUpdatedEvent(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('StoreDeliveryZoneUpdatedEvent', function() { - it('should create an instance of StoreDeliveryZoneUpdatedEvent', function() { - // uncomment below and update the code to test StoreDeliveryZoneUpdatedEvent - //var instane = new Flipdish.StoreDeliveryZoneUpdatedEvent(); - //expect(instance).to.be.a(Flipdish.StoreDeliveryZoneUpdatedEvent); - }); - - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.StoreDeliveryZoneUpdatedEvent(); - //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 instane = new Flipdish.StoreDeliveryZoneUpdatedEvent(); - //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 instane = new Flipdish.StoreDeliveryZoneUpdatedEvent(); - //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 instane = new Flipdish.StoreDeliveryZoneUpdatedEvent(); - //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 instane = new Flipdish.StoreDeliveryZoneUpdatedEvent(); - //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 instane = new Flipdish.StoreDeliveryZoneUpdatedEvent(); - //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 instane = new Flipdish.StoreDeliveryZoneUpdatedEvent(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/StoreEndOfDayReport.spec.js b/test/model/StoreEndOfDayReport.spec.js new file mode 100644 index 00000000..3a376bbc --- /dev/null +++ b/test/model/StoreEndOfDayReport.spec.js @@ -0,0 +1,202 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreEndOfDayReport', function() { + beforeEach(function() { + instance = new Flipdish.StoreEndOfDayReport(); + }); + + it('should create an instance of StoreEndOfDayReport', function() { + // TODO: update the code to test StoreEndOfDayReport + expect(instance).to.be.a(Flipdish.StoreEndOfDayReport); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // TODO: update the code to test the property StoreName + expect(instance).to.have.property('StoreName'); + // expect(instance.StoreName).to.be(expectedValueLiteral); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + it('should have the property OrderCount (base name: "OrderCount")', function() { + // TODO: update the code to test the property OrderCount + expect(instance).to.have.property('OrderCount'); + // expect(instance.OrderCount).to.be(expectedValueLiteral); + }); + + it('should have the property OrderValue (base name: "OrderValue")', function() { + // TODO: update the code to test the property OrderValue + expect(instance).to.have.property('OrderValue'); + // expect(instance.OrderValue).to.be(expectedValueLiteral); + }); + + it('should have the property OrderValueExcludingDeliveryFees (base name: "OrderValueExcludingDeliveryFees")', function() { + // TODO: update the code to test the property OrderValueExcludingDeliveryFees + expect(instance).to.have.property('OrderValueExcludingDeliveryFees'); + // expect(instance.OrderValueExcludingDeliveryFees).to.be(expectedValueLiteral); + }); + + it('should have the property CollectionOrderCount (base name: "CollectionOrderCount")', function() { + // TODO: update the code to test the property CollectionOrderCount + expect(instance).to.have.property('CollectionOrderCount'); + // expect(instance.CollectionOrderCount).to.be(expectedValueLiteral); + }); + + it('should have the property CollectionCashOrderCount (base name: "CollectionCashOrderCount")', function() { + // TODO: update the code to test the property CollectionCashOrderCount + expect(instance).to.have.property('CollectionCashOrderCount'); + // expect(instance.CollectionCashOrderCount).to.be(expectedValueLiteral); + }); + + it('should have the property CollectionPaidOnlineOrderCount (base name: "CollectionPaidOnlineOrderCount")', function() { + // TODO: update the code to test the property CollectionPaidOnlineOrderCount + expect(instance).to.have.property('CollectionPaidOnlineOrderCount'); + // expect(instance.CollectionPaidOnlineOrderCount).to.be(expectedValueLiteral); + }); + + it('should have the property CollectionOrderValue (base name: "CollectionOrderValue")', function() { + // TODO: update the code to test the property CollectionOrderValue + expect(instance).to.have.property('CollectionOrderValue'); + // expect(instance.CollectionOrderValue).to.be(expectedValueLiteral); + }); + + it('should have the property CollectionCashOrderValue (base name: "CollectionCashOrderValue")', function() { + // TODO: update the code to test the property CollectionCashOrderValue + expect(instance).to.have.property('CollectionCashOrderValue'); + // expect(instance.CollectionCashOrderValue).to.be(expectedValueLiteral); + }); + + it('should have the property CollectionPaidOnlineOrderValue (base name: "CollectionPaidOnlineOrderValue")', function() { + // TODO: update the code to test the property CollectionPaidOnlineOrderValue + expect(instance).to.have.property('CollectionPaidOnlineOrderValue'); + // expect(instance.CollectionPaidOnlineOrderValue).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryOrderCount (base name: "DeliveryOrderCount")', function() { + // TODO: update the code to test the property DeliveryOrderCount + expect(instance).to.have.property('DeliveryOrderCount'); + // expect(instance.DeliveryOrderCount).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryCashOrderCount (base name: "DeliveryCashOrderCount")', function() { + // TODO: update the code to test the property DeliveryCashOrderCount + expect(instance).to.have.property('DeliveryCashOrderCount'); + // expect(instance.DeliveryCashOrderCount).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryPaidOnlineOrderCount (base name: "DeliveryPaidOnlineOrderCount")', function() { + // TODO: update the code to test the property DeliveryPaidOnlineOrderCount + expect(instance).to.have.property('DeliveryPaidOnlineOrderCount'); + // expect(instance.DeliveryPaidOnlineOrderCount).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryOrderValue (base name: "DeliveryOrderValue")', function() { + // TODO: update the code to test the property DeliveryOrderValue + expect(instance).to.have.property('DeliveryOrderValue'); + // expect(instance.DeliveryOrderValue).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryCashOrderValue (base name: "DeliveryCashOrderValue")', function() { + // TODO: update the code to test the property DeliveryCashOrderValue + expect(instance).to.have.property('DeliveryCashOrderValue'); + // expect(instance.DeliveryCashOrderValue).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryPaidOnlineOrderValue (base name: "DeliveryPaidOnlineOrderValue")', function() { + // TODO: update the code to test the property DeliveryPaidOnlineOrderValue + expect(instance).to.have.property('DeliveryPaidOnlineOrderValue'); + // expect(instance.DeliveryPaidOnlineOrderValue).to.be(expectedValueLiteral); + }); + + it('should have the property PaidOnlineOrderCount (base name: "PaidOnlineOrderCount")', function() { + // TODO: update the code to test the property PaidOnlineOrderCount + expect(instance).to.have.property('PaidOnlineOrderCount'); + // expect(instance.PaidOnlineOrderCount).to.be(expectedValueLiteral); + }); + + it('should have the property CashOrderCount (base name: "CashOrderCount")', function() { + // TODO: update the code to test the property CashOrderCount + expect(instance).to.have.property('CashOrderCount'); + // expect(instance.CashOrderCount).to.be(expectedValueLiteral); + }); + + it('should have the property PaidOnlineOrderValue (base name: "PaidOnlineOrderValue")', function() { + // TODO: update the code to test the property PaidOnlineOrderValue + expect(instance).to.have.property('PaidOnlineOrderValue'); + // expect(instance.PaidOnlineOrderValue).to.be(expectedValueLiteral); + }); + + it('should have the property CashOrderValue (base name: "CashOrderValue")', function() { + // TODO: update the code to test the property CashOrderValue + expect(instance).to.have.property('CashOrderValue'); + // expect(instance.CashOrderValue).to.be(expectedValueLiteral); + }); + + it('should have the property PaidOnlineOrderValueExcludingDeliveryFees (base name: "PaidOnlineOrderValueExcludingDeliveryFees")', function() { + // TODO: update the code to test the property PaidOnlineOrderValueExcludingDeliveryFees + expect(instance).to.have.property('PaidOnlineOrderValueExcludingDeliveryFees'); + // expect(instance.PaidOnlineOrderValueExcludingDeliveryFees).to.be(expectedValueLiteral); + }); + + it('should have the property CashOrderValueExcludingDeliveryFees (base name: "CashOrderValueExcludingDeliveryFees")', function() { + // TODO: update the code to test the property CashOrderValueExcludingDeliveryFees + expect(instance).to.have.property('CashOrderValueExcludingDeliveryFees'); + // expect(instance.CashOrderValueExcludingDeliveryFees).to.be(expectedValueLiteral); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // TODO: update the code to test the property StartTime + expect(instance).to.have.property('StartTime'); + // expect(instance.StartTime).to.be(expectedValueLiteral); + }); + + it('should have the property EndTime (base name: "EndTime")', function() { + // TODO: update the code to test the property EndTime + expect(instance).to.have.property('EndTime'); + // expect(instance.EndTime).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreGroup.spec.js b/test/model/StoreGroup.spec.js new file mode 100644 index 00000000..09164315 --- /dev/null +++ b/test/model/StoreGroup.spec.js @@ -0,0 +1,76 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreGroup', function() { + beforeEach(function() { + instance = new Flipdish.StoreGroup(); + }); + + it('should create an instance of StoreGroup', function() { + // TODO: update the code to test StoreGroup + expect(instance).to.be.a(Flipdish.StoreGroup); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property GeneralRating (base name: "GeneralRating")', function() { + // TODO: update the code to test the property GeneralRating + expect(instance).to.have.property('GeneralRating'); + // expect(instance.GeneralRating).to.be(expectedValueLiteral); + }); + + it('should have the property GeneralRatingCount (base name: "GeneralRatingCount")', function() { + // TODO: update the code to test the property GeneralRatingCount + expect(instance).to.have.property('GeneralRatingCount'); + // expect(instance.GeneralRatingCount).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreGroupBase.spec.js b/test/model/StoreGroupBase.spec.js new file mode 100644 index 00000000..e98ac76f --- /dev/null +++ b/test/model/StoreGroupBase.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreGroupBase', function() { + beforeEach(function() { + instance = new Flipdish.StoreGroupBase(); + }); + + it('should create an instance of StoreGroupBase', function() { + // TODO: update the code to test StoreGroupBase + expect(instance).to.be.a(Flipdish.StoreGroupBase); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreGroupCreatedEvent.spec.js b/test/model/StoreGroupCreatedEvent.spec.js new file mode 100644 index 00000000..a5ea09ef --- /dev/null +++ b/test/model/StoreGroupCreatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreGroupCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StoreGroupCreatedEvent(); + }); + + it('should create an instance of StoreGroupCreatedEvent', function() { + // TODO: update the code to test StoreGroupCreatedEvent + expect(instance).to.be.a(Flipdish.StoreGroupCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroup (base name: "StoreGroup")', function() { + // TODO: update the code to test the property StoreGroup + expect(instance).to.have.property('StoreGroup'); + // expect(instance.StoreGroup).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreGroupDeletedEvent.spec.js b/test/model/StoreGroupDeletedEvent.spec.js new file mode 100644 index 00000000..39f51113 --- /dev/null +++ b/test/model/StoreGroupDeletedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreGroupDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StoreGroupDeletedEvent(); + }); + + it('should create an instance of StoreGroupDeletedEvent', function() { + // TODO: update the code to test StoreGroupDeletedEvent + expect(instance).to.be.a(Flipdish.StoreGroupDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroup (base name: "StoreGroup")', function() { + // TODO: update the code to test the property StoreGroup + expect(instance).to.have.property('StoreGroup'); + // expect(instance.StoreGroup).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreGroupExtended.spec.js b/test/model/StoreGroupExtended.spec.js new file mode 100644 index 00000000..6a95628a --- /dev/null +++ b/test/model/StoreGroupExtended.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreGroupExtended', function() { + beforeEach(function() { + instance = new Flipdish.StoreGroupExtended(); + }); + + it('should create an instance of StoreGroupExtended', function() { + // TODO: update the code to test StoreGroupExtended + expect(instance).to.be.a(Flipdish.StoreGroupExtended); + }); + + it('should have the property TotalStores (base name: "TotalStores")', function() { + // TODO: update the code to test the property TotalStores + expect(instance).to.have.property('TotalStores'); + // expect(instance.TotalStores).to.be(expectedValueLiteral); + }); + + it('should have the property GroupedCoordinates (base name: "GroupedCoordinates")', function() { + // TODO: update the code to test the property GroupedCoordinates + expect(instance).to.have.property('GroupedCoordinates'); + // expect(instance.GroupedCoordinates).to.be(expectedValueLiteral); + }); + + it('should have the property StoreHeaders (base name: "StoreHeaders")', function() { + // TODO: update the code to test the property StoreHeaders + expect(instance).to.have.property('StoreHeaders'); + // expect(instance.StoreHeaders).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property GeneralRating (base name: "GeneralRating")', function() { + // TODO: update the code to test the property GeneralRating + expect(instance).to.have.property('GeneralRating'); + // expect(instance.GeneralRating).to.be(expectedValueLiteral); + }); + + it('should have the property GeneralRatingCount (base name: "GeneralRatingCount")', function() { + // TODO: update the code to test the property GeneralRatingCount + expect(instance).to.have.property('GeneralRatingCount'); + // expect(instance.GeneralRatingCount).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreGroupUpdatedEvent.spec.js b/test/model/StoreGroupUpdatedEvent.spec.js new file mode 100644 index 00000000..d1250264 --- /dev/null +++ b/test/model/StoreGroupUpdatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreGroupUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StoreGroupUpdatedEvent(); + }); + + it('should create an instance of StoreGroupUpdatedEvent', function() { + // TODO: update the code to test StoreGroupUpdatedEvent + expect(instance).to.be.a(Flipdish.StoreGroupUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroup (base name: "StoreGroup")', function() { + // TODO: update the code to test the property StoreGroup + expect(instance).to.have.property('StoreGroup'); + // expect(instance.StoreGroup).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreHeader.spec.js b/test/model/StoreHeader.spec.js new file mode 100644 index 00000000..ddc19b70 --- /dev/null +++ b/test/model/StoreHeader.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreHeader', function() { + beforeEach(function() { + instance = new Flipdish.StoreHeader(); + }); + + it('should create an instance of StoreHeader', function() { + // TODO: update the code to test StoreHeader + expect(instance).to.be.a(Flipdish.StoreHeader); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreKioskSetting.spec.js b/test/model/StoreKioskSetting.spec.js new file mode 100644 index 00000000..6e9c5fcd --- /dev/null +++ b/test/model/StoreKioskSetting.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreKioskSetting', function() { + beforeEach(function() { + instance = new Flipdish.StoreKioskSetting(); + }); + + it('should create an instance of StoreKioskSetting', function() { + // TODO: update the code to test StoreKioskSetting + expect(instance).to.be.a(Flipdish.StoreKioskSetting); + }); + + it('should have the property KioskSettingId (base name: "KioskSettingId")', function() { + // TODO: update the code to test the property KioskSettingId + expect(instance).to.have.property('KioskSettingId'); + // expect(instance.KioskSettingId).to.be(expectedValueLiteral); + }); + + it('should have the property KioskName (base name: "KioskName")', function() { + // TODO: update the code to test the property KioskName + expect(instance).to.have.property('KioskName'); + // expect(instance.KioskName).to.be(expectedValueLiteral); + }); + + it('should have the property RequireCustomerName (base name: "RequireCustomerName")', function() { + // TODO: update the code to test the property RequireCustomerName + expect(instance).to.have.property('RequireCustomerName'); + // expect(instance.RequireCustomerName).to.be(expectedValueLiteral); + }); + + it('should have the property RequestTableNumber (base name: "RequestTableNumber")', function() { + // TODO: update the code to test the property RequestTableNumber + expect(instance).to.have.property('RequestTableNumber'); + // expect(instance.RequestTableNumber).to.be(expectedValueLiteral); + }); + + it('should have the property OfferDineInOrTakeawayOption (base name: "OfferDineInOrTakeawayOption")', function() { + // TODO: update the code to test the property OfferDineInOrTakeawayOption + expect(instance).to.have.property('OfferDineInOrTakeawayOption'); + // expect(instance.OfferDineInOrTakeawayOption).to.be(expectedValueLiteral); + }); + + it('should have the property PhysicalRestaurantId (base name: "PhysicalRestaurantId")', function() { + // TODO: update the code to test the property PhysicalRestaurantId + expect(instance).to.have.property('PhysicalRestaurantId'); + // expect(instance.PhysicalRestaurantId).to.be(expectedValueLiteral); + }); + + it('should have the property HydraConfigId (base name: "HydraConfigId")', function() { + // TODO: update the code to test the property HydraConfigId + expect(instance).to.have.property('HydraConfigId'); + // expect(instance.HydraConfigId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreKioskSettingUpdatedEvent.spec.js b/test/model/StoreKioskSettingUpdatedEvent.spec.js new file mode 100644 index 00000000..c16e56ba --- /dev/null +++ b/test/model/StoreKioskSettingUpdatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreKioskSettingUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StoreKioskSettingUpdatedEvent(); + }); + + it('should create an instance of StoreKioskSettingUpdatedEvent', function() { + // TODO: update the code to test StoreKioskSettingUpdatedEvent + expect(instance).to.be.a(Flipdish.StoreKioskSettingUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property StoreKioskSetting (base name: "StoreKioskSetting")', function() { + // TODO: update the code to test the property StoreKioskSetting + expect(instance).to.have.property('StoreKioskSetting'); + // expect(instance.StoreKioskSetting).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreListItem.spec.js b/test/model/StoreListItem.spec.js new file mode 100644 index 00000000..99710bbe --- /dev/null +++ b/test/model/StoreListItem.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreListItem', function() { + beforeEach(function() { + instance = new Flipdish.StoreListItem(); + }); + + it('should create an instance of StoreListItem', function() { + // TODO: update the code to test StoreListItem + expect(instance).to.be.a(Flipdish.StoreListItem); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // TODO: update the code to test the property StoreName + expect(instance).to.have.property('StoreName'); + // expect(instance.StoreName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupName (base name: "StoreGroupName")', function() { + // TODO: update the code to test the property StoreGroupName + expect(instance).to.have.property('StoreGroupName'); + // expect(instance.StoreGroupName).to.be(expectedValueLiteral); + }); + + it('should have the property HasLoyaltyCampaign (base name: "HasLoyaltyCampaign")', function() { + // TODO: update the code to test the property HasLoyaltyCampaign + expect(instance).to.have.property('HasLoyaltyCampaign'); + // expect(instance.HasLoyaltyCampaign).to.be(expectedValueLiteral); + }); + + it('should have the property HasRetentionCampaign (base name: "HasRetentionCampaign")', function() { + // TODO: update the code to test the property HasRetentionCampaign + expect(instance).to.have.property('HasRetentionCampaign'); + // expect(instance.HasRetentionCampaign).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreLogoCreatedEvent.spec.js b/test/model/StoreLogoCreatedEvent.spec.js new file mode 100644 index 00000000..ba4dc949 --- /dev/null +++ b/test/model/StoreLogoCreatedEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreLogoCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StoreLogoCreatedEvent(); + }); + + it('should create an instance of StoreLogoCreatedEvent', function() { + // TODO: update the code to test StoreLogoCreatedEvent + expect(instance).to.be.a(Flipdish.StoreLogoCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreLogoDeletedEvent.spec.js b/test/model/StoreLogoDeletedEvent.spec.js new file mode 100644 index 00000000..4002181f --- /dev/null +++ b/test/model/StoreLogoDeletedEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreLogoDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StoreLogoDeletedEvent(); + }); + + it('should create an instance of StoreLogoDeletedEvent', function() { + // TODO: update the code to test StoreLogoDeletedEvent + expect(instance).to.be.a(Flipdish.StoreLogoDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreLogoUpdatedEvent.spec.js b/test/model/StoreLogoUpdatedEvent.spec.js new file mode 100644 index 00000000..1bf6c566 --- /dev/null +++ b/test/model/StoreLogoUpdatedEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreLogoUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StoreLogoUpdatedEvent(); + }); + + it('should create an instance of StoreLogoUpdatedEvent', function() { + // TODO: update the code to test StoreLogoUpdatedEvent + expect(instance).to.be.a(Flipdish.StoreLogoUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreMenuAssignedEvent.spec.js b/test/model/StoreMenuAssignedEvent.spec.js new file mode 100644 index 00000000..cfa13791 --- /dev/null +++ b/test/model/StoreMenuAssignedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreMenuAssignedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StoreMenuAssignedEvent(); + }); + + it('should create an instance of StoreMenuAssignedEvent', function() { + // TODO: update the code to test StoreMenuAssignedEvent + expect(instance).to.be.a(Flipdish.StoreMenuAssignedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreNote.spec.js b/test/model/StoreNote.spec.js index 1c3731d6..f391b041 100644 --- a/test/model/StoreNote.spec.js +++ b/test/model/StoreNote.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,51 +29,36 @@ 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]; - } + describe('(package)', function() { + describe('StoreNote', function() { + beforeEach(function() { + instance = new Flipdish.StoreNote(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of StoreNote', function() { + // TODO: update the code to test StoreNote + expect(instance).to.be.a(Flipdish.StoreNote); + }); - 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() { + // TODO: update the code to test the property UserId + expect(instance).to.have.property('UserId'); + // expect(instance.UserId).to.be(expectedValueLiteral); + }); - it('should have the property userId (base name: "UserId")', function() { - // uncomment below and update the code to test the property userId - //var instane = new Flipdish.StoreNote(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.StoreNote(); - //expect(instance).to.be(); - }); + it('should have the property Note (base name: "Note")', function() { + // TODO: update the code to test the property Note + expect(instance).to.have.property('Note'); + // expect(instance.Note).to.be(expectedValueLiteral); + }); - it('should have the property note (base name: "Note")', function() { - // uncomment below and update the code to test the property note - //var instane = new Flipdish.StoreNote(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/StoreOpeningHoursUpdatedEvent.spec.js b/test/model/StoreOpeningHoursUpdatedEvent.spec.js index c337c175..dba53063 100644 --- a/test/model/StoreOpeningHoursUpdatedEvent.spec.js +++ b/test/model/StoreOpeningHoursUpdatedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,90 @@ var instance; - beforeEach(function() { - instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); - }); + describe('(package)', function() { + describe('StoreOpeningHoursUpdatedEvent', function() { + 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]; - } + it('should create an instance of StoreOpeningHoursUpdatedEvent', function() { + // TODO: update the code to test StoreOpeningHoursUpdatedEvent + expect(instance).to.be.a(Flipdish.StoreOpeningHoursUpdatedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.StoreOpeningHoursUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); - it('should have the property storeId (base name: "StoreId")', function() { - // uncomment below and update the code to test the property storeId - //var instane = new Flipdish.StoreOpeningHoursUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); - it('should have the property user (base name: "User")', function() { - // uncomment below and update the code to test the property user - //var instane = new Flipdish.StoreOpeningHoursUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property DeliveryType (base name: "DeliveryType")', function() { + // TODO: update the code to test the property DeliveryType + expect(instance).to.have.property('DeliveryType'); + // expect(instance.DeliveryType).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.StoreOpeningHoursUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property BusinessHoursPeriodOld (base name: "BusinessHoursPeriodOld")', function() { + // TODO: update the code to test the property BusinessHoursPeriodOld + expect(instance).to.have.property('BusinessHoursPeriodOld'); + // expect(instance.BusinessHoursPeriodOld).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.StoreOpeningHoursUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property BusinessHoursPeriod (base name: "BusinessHoursPeriod")', function() { + // TODO: update the code to test the property BusinessHoursPeriod + expect(instance).to.have.property('BusinessHoursPeriod'); + // expect(instance.BusinessHoursPeriod).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.StoreOpeningHoursUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = new Flipdish.StoreOpeningHoursUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); }); })); diff --git a/test/model/StoreOrderCapacityConfig.spec.js b/test/model/StoreOrderCapacityConfig.spec.js new file mode 100644 index 00000000..57aad91d --- /dev/null +++ b/test/model/StoreOrderCapacityConfig.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreOrderCapacityConfig', function() { + beforeEach(function() { + instance = new Flipdish.StoreOrderCapacityConfig(); + }); + + it('should create an instance of StoreOrderCapacityConfig', function() { + // TODO: update the code to test StoreOrderCapacityConfig + expect(instance).to.be.a(Flipdish.StoreOrderCapacityConfig); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property DeliveryType (base name: "DeliveryType")', function() { + // TODO: update the code to test the property DeliveryType + expect(instance).to.have.property('DeliveryType'); + // expect(instance.DeliveryType).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIntervalInMinutes (base name: "StoreIntervalInMinutes")', function() { + // TODO: update the code to test the property StoreIntervalInMinutes + expect(instance).to.have.property('StoreIntervalInMinutes'); + // expect(instance.StoreIntervalInMinutes).to.be(expectedValueLiteral); + }); + + it('should have the property OrderCapacityPeriods (base name: "OrderCapacityPeriods")', function() { + // TODO: update the code to test the property OrderCapacityPeriods + expect(instance).to.have.property('OrderCapacityPeriods'); + // expect(instance.OrderCapacityPeriods).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreOrderCapacityConfigEditModel.spec.js b/test/model/StoreOrderCapacityConfigEditModel.spec.js new file mode 100644 index 00000000..3a2ad0ff --- /dev/null +++ b/test/model/StoreOrderCapacityConfigEditModel.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreOrderCapacityConfigEditModel', function() { + beforeEach(function() { + instance = new Flipdish.StoreOrderCapacityConfigEditModel(); + }); + + it('should create an instance of StoreOrderCapacityConfigEditModel', function() { + // TODO: update the code to test StoreOrderCapacityConfigEditModel + expect(instance).to.be.a(Flipdish.StoreOrderCapacityConfigEditModel); + }); + + it('should have the property OrderCapacityPeriods (base name: "OrderCapacityPeriods")', function() { + // TODO: update the code to test the property OrderCapacityPeriods + expect(instance).to.have.property('OrderCapacityPeriods'); + // expect(instance.OrderCapacityPeriods).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreOrderCapacityPeriod.spec.js b/test/model/StoreOrderCapacityPeriod.spec.js new file mode 100644 index 00000000..aa8cc3db --- /dev/null +++ b/test/model/StoreOrderCapacityPeriod.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreOrderCapacityPeriod', function() { + beforeEach(function() { + instance = new Flipdish.StoreOrderCapacityPeriod(); + }); + + it('should create an instance of StoreOrderCapacityPeriod', function() { + // TODO: update the code to test StoreOrderCapacityPeriod + expect(instance).to.be.a(Flipdish.StoreOrderCapacityPeriod); + }); + + it('should have the property MaxOrderNumberPerStoreInterval (base name: "MaxOrderNumberPerStoreInterval")', function() { + // TODO: update the code to test the property MaxOrderNumberPerStoreInterval + expect(instance).to.have.property('MaxOrderNumberPerStoreInterval'); + // expect(instance.MaxOrderNumberPerStoreInterval).to.be(expectedValueLiteral); + }); + + it('should have the property DayOfTheWeek (base name: "DayOfTheWeek")', function() { + // TODO: update the code to test the property DayOfTheWeek + expect(instance).to.have.property('DayOfTheWeek'); + // expect(instance.DayOfTheWeek).to.be(expectedValueLiteral); + }); + + it('should have the property PeriodStartHour (base name: "PeriodStartHour")', function() { + // TODO: update the code to test the property PeriodStartHour + expect(instance).to.have.property('PeriodStartHour'); + // expect(instance.PeriodStartHour).to.be(expectedValueLiteral); + }); + + it('should have the property PeriodStartMinutes (base name: "PeriodStartMinutes")', function() { + // TODO: update the code to test the property PeriodStartMinutes + expect(instance).to.have.property('PeriodStartMinutes'); + // expect(instance.PeriodStartMinutes).to.be(expectedValueLiteral); + }); + + it('should have the property PeriodEndHour (base name: "PeriodEndHour")', function() { + // TODO: update the code to test the property PeriodEndHour + expect(instance).to.have.property('PeriodEndHour'); + // expect(instance.PeriodEndHour).to.be(expectedValueLiteral); + }); + + it('should have the property PeriodEndMinutes (base name: "PeriodEndMinutes")', function() { + // TODO: update the code to test the property PeriodEndMinutes + expect(instance).to.have.property('PeriodEndMinutes'); + // expect(instance.PeriodEndMinutes).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StorePreOrderConfigUpdatedEvent.spec.js b/test/model/StorePreOrderConfigUpdatedEvent.spec.js new file mode 100644 index 00000000..39e89b45 --- /dev/null +++ b/test/model/StorePreOrderConfigUpdatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StorePreOrderConfigUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StorePreOrderConfigUpdatedEvent(); + }); + + it('should create an instance of StorePreOrderConfigUpdatedEvent', function() { + // TODO: update the code to test StorePreOrderConfigUpdatedEvent + expect(instance).to.be.a(Flipdish.StorePreOrderConfigUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property PreOrderConfig (base name: "PreOrderConfig")', function() { + // TODO: update the code to test the property PreOrderConfig + expect(instance).to.have.property('PreOrderConfig'); + // expect(instance.PreOrderConfig).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StorePublishedEvent.spec.js b/test/model/StorePublishedEvent.spec.js new file mode 100644 index 00000000..6994a9cf --- /dev/null +++ b/test/model/StorePublishedEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StorePublishedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StorePublishedEvent(); + }); + + it('should create an instance of StorePublishedEvent', function() { + // TODO: update the code to test StorePublishedEvent + expect(instance).to.be.a(Flipdish.StorePublishedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property Store (base name: "Store")', function() { + // TODO: update the code to test the property Store + expect(instance).to.have.property('Store'); + // expect(instance.Store).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreStatistics.spec.js b/test/model/StoreStatistics.spec.js new file mode 100644 index 00000000..de248bbc --- /dev/null +++ b/test/model/StoreStatistics.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreStatistics', function() { + beforeEach(function() { + instance = new Flipdish.StoreStatistics(); + }); + + it('should create an instance of StoreStatistics', function() { + // TODO: update the code to test StoreStatistics + expect(instance).to.be.a(Flipdish.StoreStatistics); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property Data (base name: "Data")', function() { + // TODO: update the code to test the property Data + expect(instance).to.have.property('Data'); + // expect(instance.Data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreSummary.spec.js b/test/model/StoreSummary.spec.js index 95d951df..71428d76 100644 --- a/test/model/StoreSummary.spec.js +++ b/test/model/StoreSummary.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,63 +29,66 @@ var instance; - beforeEach(function() { - instance = new Flipdish.StoreSummary(); - }); + describe('(package)', function() { + describe('StoreSummary', function() { + 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]; - } + it('should create an instance of StoreSummary', function() { + // TODO: update the code to test StoreSummary + expect(instance).to.be.a(Flipdish.StoreSummary); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property Id (base name: "Id")', function() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); - 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 Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); - it('should have the property id (base name: "Id")', function() { - // uncomment below and update the code to test the property id - //var instane = new Flipdish.StoreSummary(); - //expect(instance).to.be(); - }); + it('should have the property MenuId (base name: "MenuId")', function() { + // TODO: update the code to test the property MenuId + expect(instance).to.have.property('MenuId'); + // expect(instance.MenuId).to.be(expectedValueLiteral); + }); - it('should have the property name (base name: "Name")', function() { - // uncomment below and update the code to test the property name - //var instane = new Flipdish.StoreSummary(); - //expect(instance).to.be(); - }); + it('should have the property Metadata (base name: "Metadata")', function() { + // TODO: update the code to test the property Metadata + expect(instance).to.have.property('Metadata'); + // expect(instance.Metadata).to.be(expectedValueLiteral); + }); - it('should have the property menuId (base name: "MenuId")', function() { - // uncomment below and update the code to test the property menuId - //var instane = new Flipdish.StoreSummary(); - //expect(instance).to.be(); - }); + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); - it('should have the property metadata (base name: "Metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new Flipdish.StoreSummary(); - //expect(instance).to.be(); - }); + it('should have the property Coordinates (base name: "Coordinates")', function() { + // TODO: update the code to test the property Coordinates + expect(instance).to.have.property('Coordinates'); + // expect(instance.Coordinates).to.be(expectedValueLiteral); + }); - it('should have the property currency (base name: "Currency")', function() { - // uncomment below and update the code to test the property currency - //var instane = new Flipdish.StoreSummary(); - //expect(instance).to.be(); - }); + it('should have the property StoreTimezone (base name: "StoreTimezone")', function() { + // TODO: update the code to test the property StoreTimezone + expect(instance).to.have.property('StoreTimezone'); + // expect(instance.StoreTimezone).to.be(expectedValueLiteral); + }); + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + }); }); })); diff --git a/test/model/StoreUnarchivedEvent.spec.js b/test/model/StoreUnarchivedEvent.spec.js new file mode 100644 index 00000000..28899610 --- /dev/null +++ b/test/model/StoreUnarchivedEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreUnarchivedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StoreUnarchivedEvent(); + }); + + it('should create an instance of StoreUnarchivedEvent', function() { + // TODO: update the code to test StoreUnarchivedEvent + expect(instance).to.be.a(Flipdish.StoreUnarchivedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property Store (base name: "Store")', function() { + // TODO: update the code to test the property Store + expect(instance).to.have.property('Store'); + // expect(instance.Store).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreUnpublishedEvent.spec.js b/test/model/StoreUnpublishedEvent.spec.js new file mode 100644 index 00000000..abe6e572 --- /dev/null +++ b/test/model/StoreUnpublishedEvent.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StoreUnpublishedEvent', function() { + beforeEach(function() { + instance = new Flipdish.StoreUnpublishedEvent(); + }); + + it('should create an instance of StoreUnpublishedEvent', function() { + // TODO: update the code to test StoreUnpublishedEvent + expect(instance).to.be.a(Flipdish.StoreUnpublishedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property Store (base name: "Store")', function() { + // TODO: update the code to test the property Store + expect(instance).to.have.property('Store'); + // expect(instance.Store).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StoreUpdatedEvent.spec.js b/test/model/StoreUpdatedEvent.spec.js index 15de1cbd..3c58faf9 100644 --- a/test/model/StoreUpdatedEvent.spec.js +++ b/test/model/StoreUpdatedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,78 @@ var instance; - beforeEach(function() { - instance = new Flipdish.StoreUpdatedEvent(); - }); + describe('(package)', function() { + describe('StoreUpdatedEvent', function() { + 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]; - } + it('should create an instance of StoreUpdatedEvent', function() { + // TODO: update the code to test StoreUpdatedEvent + expect(instance).to.be.a(Flipdish.StoreUpdatedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 StoreId (base name: "StoreId")', function() { + // TODO: update the code to test the property StoreId + expect(instance).to.have.property('StoreId'); + // expect(instance.StoreId).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.StoreUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // TODO: update the code to test the property StoreGroupId + expect(instance).to.have.property('StoreGroupId'); + // expect(instance.StoreGroupId).to.be(expectedValueLiteral); + }); - it('should have the property storeId (base name: "StoreId")', function() { - // uncomment below and update the code to test the property storeId - //var instane = new Flipdish.StoreUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); - it('should have the property user (base name: "User")', function() { - // uncomment below and update the code to test the property user - //var instane = new Flipdish.StoreUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.StoreUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Store (base name: "Store")', function() { + // TODO: update the code to test the property Store + expect(instance).to.have.property('Store'); + // expect(instance.Store).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.StoreUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.StoreUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = new Flipdish.StoreUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + }); }); })); diff --git a/test/model/StripeAccountLinkRequest.spec.js b/test/model/StripeAccountLinkRequest.spec.js new file mode 100644 index 00000000..9fdd3186 --- /dev/null +++ b/test/model/StripeAccountLinkRequest.spec.js @@ -0,0 +1,70 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StripeAccountLinkRequest', function() { + beforeEach(function() { + instance = new Flipdish.StripeAccountLinkRequest(); + }); + + it('should create an instance of StripeAccountLinkRequest', function() { + // TODO: update the code to test StripeAccountLinkRequest + expect(instance).to.be.a(Flipdish.StripeAccountLinkRequest); + }); + + it('should have the property StripeId (base name: "StripeId")', function() { + // TODO: update the code to test the property StripeId + expect(instance).to.have.property('StripeId'); + // expect(instance.StripeId).to.be(expectedValueLiteral); + }); + + it('should have the property ReturnUrl (base name: "ReturnUrl")', function() { + // TODO: update the code to test the property ReturnUrl + expect(instance).to.have.property('ReturnUrl'); + // expect(instance.ReturnUrl).to.be(expectedValueLiteral); + }); + + it('should have the property Collect (base name: "Collect")', function() { + // TODO: update the code to test the property Collect + expect(instance).to.have.property('Collect'); + // expect(instance.Collect).to.be(expectedValueLiteral); + }); + + it('should have the property Type (base name: "Type")', function() { + // TODO: update the code to test the property Type + expect(instance).to.have.property('Type'); + // expect(instance.Type).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StripeConnectedAccount.spec.js b/test/model/StripeConnectedAccount.spec.js new file mode 100644 index 00000000..b539ae7d --- /dev/null +++ b/test/model/StripeConnectedAccount.spec.js @@ -0,0 +1,82 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StripeConnectedAccount', function() { + beforeEach(function() { + instance = new Flipdish.StripeConnectedAccount(); + }); + + it('should create an instance of StripeConnectedAccount', function() { + // TODO: update the code to test StripeConnectedAccount + expect(instance).to.be.a(Flipdish.StripeConnectedAccount); + }); + + it('should have the property FlipdishConnectedAccountId (base name: "FlipdishConnectedAccountId")', function() { + // TODO: update the code to test the property FlipdishConnectedAccountId + expect(instance).to.have.property('FlipdishConnectedAccountId'); + // expect(instance.FlipdishConnectedAccountId).to.be(expectedValueLiteral); + }); + + it('should have the property StripeId (base name: "StripeId")', function() { + // TODO: update the code to test the property StripeId + expect(instance).to.have.property('StripeId'); + // expect(instance.StripeId).to.be(expectedValueLiteral); + }); + + it('should have the property WhitelabelConfigId (base name: "WhitelabelConfigId")', function() { + // TODO: update the code to test the property WhitelabelConfigId + expect(instance).to.have.property('WhitelabelConfigId'); + // expect(instance.WhitelabelConfigId).to.be(expectedValueLiteral); + }); + + it('should have the property CardPaymentsStatus (base name: "CardPaymentsStatus")', function() { + // TODO: update the code to test the property CardPaymentsStatus + expect(instance).to.have.property('CardPaymentsStatus'); + // expect(instance.CardPaymentsStatus).to.be(expectedValueLiteral); + }); + + it('should have the property TransfersStatus (base name: "TransfersStatus")', function() { + // TODO: update the code to test the property TransfersStatus + expect(instance).to.have.property('TransfersStatus'); + // expect(instance.TransfersStatus).to.be(expectedValueLiteral); + }); + + it('should have the property AccountStatus (base name: "AccountStatus")', function() { + // TODO: update the code to test the property AccountStatus + expect(instance).to.have.property('AccountStatus'); + // expect(instance.AccountStatus).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StripeConnectedAccountInfo.spec.js b/test/model/StripeConnectedAccountInfo.spec.js new file mode 100644 index 00000000..3d27f4f9 --- /dev/null +++ b/test/model/StripeConnectedAccountInfo.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StripeConnectedAccountInfo', function() { + beforeEach(function() { + instance = new Flipdish.StripeConnectedAccountInfo(); + }); + + it('should create an instance of StripeConnectedAccountInfo', function() { + // TODO: update the code to test StripeConnectedAccountInfo + expect(instance).to.be.a(Flipdish.StripeConnectedAccountInfo); + }); + + it('should have the property AccountStatus (base name: "AccountStatus")', function() { + // TODO: update the code to test the property AccountStatus + expect(instance).to.have.property('AccountStatus'); + // expect(instance.AccountStatus).to.be(expectedValueLiteral); + }); + + it('should have the property StripeId (base name: "StripeId")', function() { + // TODO: update the code to test the property StripeId + expect(instance).to.have.property('StripeId'); + // expect(instance.StripeId).to.be(expectedValueLiteral); + }); + + it('should have the property CardPaymentStatus (base name: "CardPaymentStatus")', function() { + // TODO: update the code to test the property CardPaymentStatus + expect(instance).to.have.property('CardPaymentStatus'); + // expect(instance.CardPaymentStatus).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StripeTerminalPrivateKey.spec.js b/test/model/StripeTerminalPrivateKey.spec.js new file mode 100644 index 00000000..36511748 --- /dev/null +++ b/test/model/StripeTerminalPrivateKey.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StripeTerminalPrivateKey', function() { + beforeEach(function() { + instance = new Flipdish.StripeTerminalPrivateKey(); + }); + + it('should create an instance of StripeTerminalPrivateKey', function() { + // TODO: update the code to test StripeTerminalPrivateKey + expect(instance).to.be.a(Flipdish.StripeTerminalPrivateKey); + }); + + it('should have the property Location (base name: "Location")', function() { + // TODO: update the code to test the property Location + expect(instance).to.have.property('Location'); + // expect(instance.Location).to.be(expectedValueLiteral); + }); + + it('should have the property Secret (base name: "Secret")', function() { + // TODO: update the code to test the property Secret + expect(instance).to.have.property('Secret'); + // expect(instance.Secret).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StuartSettings.spec.js b/test/model/StuartSettings.spec.js new file mode 100644 index 00000000..82083e3c --- /dev/null +++ b/test/model/StuartSettings.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StuartSettings', function() { + beforeEach(function() { + instance = new Flipdish.StuartSettings(); + }); + + it('should create an instance of StuartSettings', function() { + // TODO: update the code to test StuartSettings + expect(instance).to.be.a(Flipdish.StuartSettings); + }); + + it('should have the property ClientId (base name: "ClientId")', function() { + // TODO: update the code to test the property ClientId + expect(instance).to.have.property('ClientId'); + // expect(instance.ClientId).to.be(expectedValueLiteral); + }); + + it('should have the property ClientSecret (base name: "ClientSecret")', function() { + // TODO: update the code to test the property ClientSecret + expect(instance).to.have.property('ClientSecret'); + // expect(instance.ClientSecret).to.be(expectedValueLiteral); + }); + + it('should have the property Enabled (base name: "Enabled")', function() { + // TODO: update the code to test the property Enabled + expect(instance).to.have.property('Enabled'); + // expect(instance.Enabled).to.be(expectedValueLiteral); + }); + + it('should have the property WebhookUrlBasicAuthentication (base name: "WebhookUrlBasicAuthentication")', function() { + // TODO: update the code to test the property WebhookUrlBasicAuthentication + expect(instance).to.have.property('WebhookUrlBasicAuthentication'); + // expect(instance.WebhookUrlBasicAuthentication).to.be(expectedValueLiteral); + }); + + it('should have the property MinutesToPickupBeforeThanDeliveryTime (base name: "MinutesToPickupBeforeThanDeliveryTime")', function() { + // TODO: update the code to test the property MinutesToPickupBeforeThanDeliveryTime + expect(instance).to.have.property('MinutesToPickupBeforeThanDeliveryTime'); + // expect(instance.MinutesToPickupBeforeThanDeliveryTime).to.be(expectedValueLiteral); + }); + + it('should have the property PackageType (base name: "PackageType")', function() { + // TODO: update the code to test the property PackageType + expect(instance).to.have.property('PackageType'); + // expect(instance.PackageType).to.be(expectedValueLiteral); + }); + + it('should have the property TransportType (base name: "TransportType")', function() { + // TODO: update the code to test the property TransportType + expect(instance).to.have.property('TransportType'); + // expect(instance.TransportType).to.be(expectedValueLiteral); + }); + + it('should have the property CancelOrderIfStuartCancelDelivery (base name: "CancelOrderIfStuartCancelDelivery")', function() { + // TODO: update the code to test the property CancelOrderIfStuartCancelDelivery + expect(instance).to.have.property('CancelOrderIfStuartCancelDelivery'); + // expect(instance.CancelOrderIfStuartCancelDelivery).to.be(expectedValueLiteral); + }); + + it('should have the property TransportPrices (base name: "TransportPrices")', function() { + // TODO: update the code to test the property TransportPrices + expect(instance).to.have.property('TransportPrices'); + // expect(instance.TransportPrices).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/StuartSettingsTransportPrices.spec.js b/test/model/StuartSettingsTransportPrices.spec.js new file mode 100644 index 00000000..085a5215 --- /dev/null +++ b/test/model/StuartSettingsTransportPrices.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('StuartSettingsTransportPrices', function() { + beforeEach(function() { + instance = new Flipdish.StuartSettingsTransportPrices(); + }); + + it('should create an instance of StuartSettingsTransportPrices', function() { + // TODO: update the code to test StuartSettingsTransportPrices + expect(instance).to.be.a(Flipdish.StuartSettingsTransportPrices); + }); + + it('should have the property Bike (base name: "Bike")', function() { + // TODO: update the code to test the property Bike + expect(instance).to.have.property('Bike'); + // expect(instance.Bike).to.be(expectedValueLiteral); + }); + + it('should have the property Cargobike (base name: "Cargobike")', function() { + // TODO: update the code to test the property Cargobike + expect(instance).to.have.property('Cargobike'); + // expect(instance.Cargobike).to.be(expectedValueLiteral); + }); + + it('should have the property Cargobikexl (base name: "Cargobikexl")', function() { + // TODO: update the code to test the property Cargobikexl + expect(instance).to.have.property('Cargobikexl'); + // expect(instance.Cargobikexl).to.be(expectedValueLiteral); + }); + + it('should have the property Motorbike (base name: "Motorbike")', function() { + // TODO: update the code to test the property Motorbike + expect(instance).to.have.property('Motorbike'); + // expect(instance.Motorbike).to.be(expectedValueLiteral); + }); + + it('should have the property Motorbikexl (base name: "Motorbikexl")', function() { + // TODO: update the code to test the property Motorbikexl + expect(instance).to.have.property('Motorbikexl'); + // expect(instance.Motorbikexl).to.be(expectedValueLiteral); + }); + + it('should have the property Car (base name: "Car")', function() { + // TODO: update the code to test the property Car + expect(instance).to.have.property('Car'); + // expect(instance.Car).to.be(expectedValueLiteral); + }); + + it('should have the property Van (base name: "Van")', function() { + // TODO: update the code to test the property Van + expect(instance).to.have.property('Van'); + // expect(instance.Van).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/SupportedCountry.spec.js b/test/model/SupportedCountry.spec.js new file mode 100644 index 00000000..8c4cde9b --- /dev/null +++ b/test/model/SupportedCountry.spec.js @@ -0,0 +1,106 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('SupportedCountry', function() { + beforeEach(function() { + instance = new Flipdish.SupportedCountry(); + }); + + it('should create an instance of SupportedCountry', function() { + // TODO: update the code to test SupportedCountry + expect(instance).to.be.a(Flipdish.SupportedCountry); + }); + + it('should have the property CountryCode (base name: "CountryCode")', function() { + // TODO: update the code to test the property CountryCode + expect(instance).to.have.property('CountryCode'); + // expect(instance.CountryCode).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property PhoneCode (base name: "PhoneCode")', function() { + // TODO: update the code to test the property PhoneCode + expect(instance).to.have.property('PhoneCode'); + // expect(instance.PhoneCode).to.be(expectedValueLiteral); + }); + + it('should have the property LanguageCode (base name: "LanguageCode")', function() { + // TODO: update the code to test the property LanguageCode + expect(instance).to.have.property('LanguageCode'); + // expect(instance.LanguageCode).to.be(expectedValueLiteral); + }); + + it('should have the property LanguageName (base name: "LanguageName")', function() { + // TODO: update the code to test the property LanguageName + expect(instance).to.have.property('LanguageName'); + // expect(instance.LanguageName).to.be(expectedValueLiteral); + }); + + it('should have the property OtpNumber (base name: "OtpNumber")', function() { + // TODO: update the code to test the property OtpNumber + expect(instance).to.have.property('OtpNumber'); + // expect(instance.OtpNumber).to.be(expectedValueLiteral); + }); + + it('should have the property SupportNumber (base name: "SupportNumber")', function() { + // TODO: update the code to test the property SupportNumber + expect(instance).to.have.property('SupportNumber'); + // expect(instance.SupportNumber).to.be(expectedValueLiteral); + }); + + it('should have the property AddressLayout (base name: "AddressLayout")', function() { + // TODO: update the code to test the property AddressLayout + expect(instance).to.have.property('AddressLayout'); + // expect(instance.AddressLayout).to.be(expectedValueLiteral); + }); + + it('should have the property PostCodeType (base name: "PostCodeType")', function() { + // TODO: update the code to test the property PostCodeType + expect(instance).to.have.property('PostCodeType'); + // expect(instance.PostCodeType).to.be(expectedValueLiteral); + }); + + it('should have the property SupportRegion (base name: "SupportRegion")', function() { + // TODO: update the code to test the property SupportRegion + expect(instance).to.have.property('SupportRegion'); + // expect(instance.SupportRegion).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/Teammate.spec.js b/test/model/Teammate.spec.js new file mode 100644 index 00000000..51a75e35 --- /dev/null +++ b/test/model/Teammate.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('Teammate', function() { + beforeEach(function() { + instance = new Flipdish.Teammate(); + }); + + it('should create an instance of Teammate', function() { + // TODO: update the code to test Teammate + expect(instance).to.be.a(Flipdish.Teammate); + }); + + it('should have the property TeammateId (base name: "TeammateId")', function() { + // TODO: update the code to test the property TeammateId + expect(instance).to.have.property('TeammateId'); + // expect(instance.TeammateId).to.be(expectedValueLiteral); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + it('should have the property LastActivity (base name: "LastActivity")', function() { + // TODO: update the code to test the property LastActivity + expect(instance).to.have.property('LastActivity'); + // expect(instance.LastActivity).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + it('should have the property InvitationStatus (base name: "InvitationStatus")', function() { + // TODO: update the code to test the property InvitationStatus + expect(instance).to.have.property('InvitationStatus'); + // expect(instance.InvitationStatus).to.be(expectedValueLiteral); + }); + + it('should have the property Email (base name: "Email")', function() { + // TODO: update the code to test the property Email + expect(instance).to.have.property('Email'); + // expect(instance.Email).to.be(expectedValueLiteral); + }); + + it('should have the property AppAccessLevel (base name: "AppAccessLevel")', function() { + // TODO: update the code to test the property AppAccessLevel + expect(instance).to.have.property('AppAccessLevel'); + // expect(instance.AppAccessLevel).to.be(expectedValueLiteral); + }); + + it('should have the property HasAccessToAllStores (base name: "HasAccessToAllStores")', function() { + // TODO: update the code to test the property HasAccessToAllStores + expect(instance).to.have.property('HasAccessToAllStores'); + // expect(instance.HasAccessToAllStores).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/TeammateBase.spec.js b/test/model/TeammateBase.spec.js new file mode 100644 index 00000000..c04aefc0 --- /dev/null +++ b/test/model/TeammateBase.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('TeammateBase', function() { + beforeEach(function() { + instance = new Flipdish.TeammateBase(); + }); + + it('should create an instance of TeammateBase', function() { + // TODO: update the code to test TeammateBase + expect(instance).to.be.a(Flipdish.TeammateBase); + }); + + it('should have the property AppAccessLevel (base name: "AppAccessLevel")', function() { + // TODO: update the code to test the property AppAccessLevel + expect(instance).to.have.property('AppAccessLevel'); + // expect(instance.AppAccessLevel).to.be(expectedValueLiteral); + }); + + it('should have the property HasAccessToAllStores (base name: "HasAccessToAllStores")', function() { + // TODO: update the code to test the property HasAccessToAllStores + expect(instance).to.have.property('HasAccessToAllStores'); + // expect(instance.HasAccessToAllStores).to.be(expectedValueLiteral); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // TODO: update the code to test the property StoreIds + expect(instance).to.have.property('StoreIds'); + // expect(instance.StoreIds).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/TeammateDeletedEvent.spec.js b/test/model/TeammateDeletedEvent.spec.js new file mode 100644 index 00000000..19c20c20 --- /dev/null +++ b/test/model/TeammateDeletedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('TeammateDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.TeammateDeletedEvent(); + }); + + it('should create an instance of TeammateDeletedEvent', function() { + // TODO: update the code to test TeammateDeletedEvent + expect(instance).to.be.a(Flipdish.TeammateDeletedEvent); + }); + + it('should have the property Teammate (base name: "Teammate")', function() { + // TODO: update the code to test the property Teammate + expect(instance).to.have.property('Teammate'); + // expect(instance.Teammate).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/TeammateInviteAcceptedEvent.spec.js b/test/model/TeammateInviteAcceptedEvent.spec.js new file mode 100644 index 00000000..5c8d2adb --- /dev/null +++ b/test/model/TeammateInviteAcceptedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('TeammateInviteAcceptedEvent', function() { + beforeEach(function() { + instance = new Flipdish.TeammateInviteAcceptedEvent(); + }); + + it('should create an instance of TeammateInviteAcceptedEvent', function() { + // TODO: update the code to test TeammateInviteAcceptedEvent + expect(instance).to.be.a(Flipdish.TeammateInviteAcceptedEvent); + }); + + it('should have the property Teammate (base name: "Teammate")', function() { + // TODO: update the code to test the property Teammate + expect(instance).to.have.property('Teammate'); + // expect(instance.Teammate).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/TeammateInviteSentEvent.spec.js b/test/model/TeammateInviteSentEvent.spec.js new file mode 100644 index 00000000..f75f844d --- /dev/null +++ b/test/model/TeammateInviteSentEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('TeammateInviteSentEvent', function() { + beforeEach(function() { + instance = new Flipdish.TeammateInviteSentEvent(); + }); + + it('should create an instance of TeammateInviteSentEvent', function() { + // TODO: update the code to test TeammateInviteSentEvent + expect(instance).to.be.a(Flipdish.TeammateInviteSentEvent); + }); + + it('should have the property Teammate (base name: "Teammate")', function() { + // TODO: update the code to test the property Teammate + expect(instance).to.have.property('Teammate'); + // expect(instance.Teammate).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/TeammateUpdatedEvent.spec.js b/test/model/TeammateUpdatedEvent.spec.js new file mode 100644 index 00000000..8f39e44f --- /dev/null +++ b/test/model/TeammateUpdatedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('TeammateUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.TeammateUpdatedEvent(); + }); + + it('should create an instance of TeammateUpdatedEvent', function() { + // TODO: update the code to test TeammateUpdatedEvent + expect(instance).to.be.a(Flipdish.TeammateUpdatedEvent); + }); + + it('should have the property Teammate (base name: "Teammate")', function() { + // TODO: update the code to test the property Teammate + expect(instance).to.have.property('Teammate'); + // expect(instance.Teammate).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/UpdateDriverNotificationToken.spec.js b/test/model/UpdateDriverNotificationToken.spec.js new file mode 100644 index 00000000..1007a486 --- /dev/null +++ b/test/model/UpdateDriverNotificationToken.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('UpdateDriverNotificationToken', function() { + beforeEach(function() { + instance = new Flipdish.UpdateDriverNotificationToken(); + }); + + it('should create an instance of UpdateDriverNotificationToken', function() { + // TODO: update the code to test UpdateDriverNotificationToken + expect(instance).to.be.a(Flipdish.UpdateDriverNotificationToken); + }); + + it('should have the property PushNotificationsToken (base name: "PushNotificationsToken")', function() { + // TODO: update the code to test the property PushNotificationsToken + expect(instance).to.have.property('PushNotificationsToken'); + // expect(instance.PushNotificationsToken).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/UpdateDriverProfileModel.spec.js b/test/model/UpdateDriverProfileModel.spec.js new file mode 100644 index 00000000..228147c0 --- /dev/null +++ b/test/model/UpdateDriverProfileModel.spec.js @@ -0,0 +1,52 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('UpdateDriverProfileModel', function() { + beforeEach(function() { + instance = new Flipdish.UpdateDriverProfileModel(); + }); + + it('should create an instance of UpdateDriverProfileModel', function() { + // TODO: update the code to test UpdateDriverProfileModel + expect(instance).to.be.a(Flipdish.UpdateDriverProfileModel); + }); + + it('should have the property Name (base name: "Name")', function() { + // TODO: update the code to test the property Name + expect(instance).to.have.property('Name'); + // expect(instance.Name).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/UserAnsweredSignupQuestionsEvent.spec.js b/test/model/UserAnsweredSignupQuestionsEvent.spec.js new file mode 100644 index 00000000..e7269f51 --- /dev/null +++ b/test/model/UserAnsweredSignupQuestionsEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('UserAnsweredSignupQuestionsEvent', function() { + beforeEach(function() { + instance = new Flipdish.UserAnsweredSignupQuestionsEvent(); + }); + + it('should create an instance of UserAnsweredSignupQuestionsEvent', function() { + // TODO: update the code to test UserAnsweredSignupQuestionsEvent + expect(instance).to.be.a(Flipdish.UserAnsweredSignupQuestionsEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property SignupAnswers (base name: "SignupAnswers")', function() { + // TODO: update the code to test the property SignupAnswers + expect(instance).to.have.property('SignupAnswers'); + // expect(instance.SignupAnswers).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/UserCreatedEvent.spec.js b/test/model/UserCreatedEvent.spec.js new file mode 100644 index 00000000..98e331d6 --- /dev/null +++ b/test/model/UserCreatedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('UserCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.UserCreatedEvent(); + }); + + it('should create an instance of UserCreatedEvent', function() { + // TODO: update the code to test UserCreatedEvent + expect(instance).to.be.a(Flipdish.UserCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/UserDeletedEvent.spec.js b/test/model/UserDeletedEvent.spec.js new file mode 100644 index 00000000..a2c8fc6d --- /dev/null +++ b/test/model/UserDeletedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('UserDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.UserDeletedEvent(); + }); + + it('should create an instance of UserDeletedEvent', function() { + // TODO: update the code to test UserDeletedEvent + expect(instance).to.be.a(Flipdish.UserDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/UserEventInfo.spec.js b/test/model/UserEventInfo.spec.js index ce673d0b..bf750c05 100644 --- a/test/model/UserEventInfo.spec.js +++ b/test/model/UserEventInfo.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,57 +29,42 @@ var instance; - beforeEach(function() { - instance = new Flipdish.UserEventInfo(); - }); + describe('(package)', function() { + describe('UserEventInfo', function() { + 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]; - } + it('should create an instance of UserEventInfo', function() { + // TODO: update the code to test UserEventInfo + expect(instance).to.be.a(Flipdish.UserEventInfo); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property UserId (base name: "UserId")', function() { + // TODO: update the code to test the property UserId + expect(instance).to.have.property('UserId'); + // expect(instance.UserId).to.be(expectedValueLiteral); + }); - 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 UserName (base name: "UserName")', function() { + // TODO: update the code to test the property UserName + expect(instance).to.have.property('UserName'); + // expect(instance.UserName).to.be(expectedValueLiteral); + }); - it('should have the property userId (base name: "UserId")', function() { - // uncomment below and update the code to test the property userId - //var instane = new Flipdish.UserEventInfo(); - //expect(instance).to.be(); - }); + it('should have the property UserPhoneNumber (base name: "UserPhoneNumber")', function() { + // TODO: update the code to test the property UserPhoneNumber + expect(instance).to.have.property('UserPhoneNumber'); + // expect(instance.UserPhoneNumber).to.be(expectedValueLiteral); + }); - it('should have the property userName (base name: "UserName")', function() { - // uncomment below and update the code to test the property userName - //var instane = 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 instane = new Flipdish.UserEventInfo(); - //expect(instance).to.be(); - }); + it('should have the property UserEmail (base name: "UserEmail")', function() { + // TODO: update the code to test the property UserEmail + expect(instance).to.have.property('UserEmail'); + // expect(instance.UserEmail).to.be(expectedValueLiteral); + }); - it('should have the property userEmail (base name: "UserEmail")', function() { - // uncomment below and update the code to test the property userEmail - //var instane = new Flipdish.UserEventInfo(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/UserLoginEvent.spec.js b/test/model/UserLoginEvent.spec.js new file mode 100644 index 00000000..2b72603e --- /dev/null +++ b/test/model/UserLoginEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('UserLoginEvent', function() { + beforeEach(function() { + instance = new Flipdish.UserLoginEvent(); + }); + + it('should create an instance of UserLoginEvent', function() { + // TODO: update the code to test UserLoginEvent + expect(instance).to.be.a(Flipdish.UserLoginEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/UserPasswordCreatedEvent.spec.js b/test/model/UserPasswordCreatedEvent.spec.js new file mode 100644 index 00000000..29876082 --- /dev/null +++ b/test/model/UserPasswordCreatedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('UserPasswordCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.UserPasswordCreatedEvent(); + }); + + it('should create an instance of UserPasswordCreatedEvent', function() { + // TODO: update the code to test UserPasswordCreatedEvent + expect(instance).to.be.a(Flipdish.UserPasswordCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/UserUpdatedEvent.spec.js b/test/model/UserUpdatedEvent.spec.js new file mode 100644 index 00000000..8705318e --- /dev/null +++ b/test/model/UserUpdatedEvent.spec.js @@ -0,0 +1,88 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('UserUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.UserUpdatedEvent(); + }); + + it('should create an instance of UserUpdatedEvent', function() { + // TODO: update the code to test UserUpdatedEvent + expect(instance).to.be.a(Flipdish.UserUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/ValidationErrorResult.spec.js b/test/model/ValidationErrorResult.spec.js index efdff86d..dea9a9d1 100644 --- a/test/model/ValidationErrorResult.spec.js +++ b/test/model/ValidationErrorResult.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,45 +29,30 @@ 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('(package)', function() { + describe('ValidationErrorResult', function() { + beforeEach(function() { + instance = new Flipdish.ValidationErrorResult(); + }); + + it('should create an instance of ValidationErrorResult', function() { + // TODO: update the code to test ValidationErrorResult + expect(instance).to.be.a(Flipdish.ValidationErrorResult); + }); + + it('should have the property FieldName (base name: "FieldName")', function() { + // TODO: update the code to test the property FieldName + expect(instance).to.have.property('FieldName'); + // expect(instance.FieldName).to.be(expectedValueLiteral); + }); + + it('should have the property Errors (base name: "Errors")', function() { + // TODO: update the code to test the property Errors + expect(instance).to.have.property('Errors'); + // expect(instance.Errors).to.be(expectedValueLiteral); + }); - 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 instane = 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 instane = new Flipdish.ValidationErrorResult(); - //expect(instance).to.be(); - }); - }); })); diff --git a/test/model/Voucher.spec.js b/test/model/Voucher.spec.js index 1c27ae59..cdca2cb8 100644 --- a/test/model/Voucher.spec.js +++ b/test/model/Voucher.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,171 +29,180 @@ 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 instane = 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 instane = 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 instane = new Flipdish.Voucher(); - //expect(instance).to.be(); - }); - - it('should have the property isUsedUp (base name: "IsUsedUp")', function() { - // uncomment below and update the code to test the property isUsedUp - //var instane = 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 instane = new Flipdish.Voucher(); - //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 instane = new Flipdish.Voucher(); - //expect(instance).to.be(); - }); - - it('should have the property privateDescription (base name: "PrivateDescription")', function() { - // uncomment below and update the code to test the property privateDescription - //var instane = new Flipdish.Voucher(); - //expect(instance).to.be(); - }); - - it('should have the property validFrom (base name: "ValidFrom")', function() { - // uncomment below and update the code to test the property validFrom - //var instane = new Flipdish.Voucher(); - //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 instane = new Flipdish.Voucher(); - //expect(instance).to.be(); - }); - - it('should have the property voucherPayer (base name: "VoucherPayer")', function() { - // uncomment below and update the code to test the property voucherPayer - //var instane = new Flipdish.Voucher(); - //expect(instance).to.be(); - }); - - it('should have the property isVisibleToStore (base name: "IsVisibleToStore")', function() { - // uncomment below and update the code to test the property isVisibleToStore - //var instane = new Flipdish.Voucher(); - //expect(instance).to.be(); - }); - - it('should have the property isReusable (base name: "IsReusable")', function() { - // uncomment below and update the code to test the property isReusable - //var instane = 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 instane = 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 instane = new Flipdish.Voucher(); - //expect(instance).to.be(); - }); - - it('should have the property isValidForCardOrders (base name: "IsValidForCardOrders")', function() { - // uncomment below and update the code to test the property isValidForCardOrders - //var instane = new Flipdish.Voucher(); - //expect(instance).to.be(); - }); - - it('should have the property isValidForCashOrders (base name: "IsValidForCashOrders")', function() { - // uncomment below and update the code to test the property isValidForCashOrders - //var instane = new Flipdish.Voucher(); - //expect(instance).to.be(); - }); + describe('(package)', function() { + describe('Voucher', function() { + beforeEach(function() { + instance = new Flipdish.Voucher(); + }); + + it('should create an instance of Voucher', function() { + // TODO: update the code to test Voucher + expect(instance).to.be.a(Flipdish.Voucher); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // TODO: update the code to test the property VoucherId + expect(instance).to.have.property('VoucherId'); + // expect(instance.VoucherId).to.be(expectedValueLiteral); + }); + + it('should have the property Status (base name: "Status")', function() { + // TODO: update the code to test the property Status + expect(instance).to.have.property('Status'); + // expect(instance.Status).to.be(expectedValueLiteral); + }); + + it('should have the property VoucherType (base name: "VoucherType")', function() { + // TODO: update the code to test the property VoucherType + expect(instance).to.have.property('VoucherType'); + // expect(instance.VoucherType).to.be(expectedValueLiteral); + }); + + it('should have the property VoucherSubType (base name: "VoucherSubType")', function() { + // TODO: update the code to test the property VoucherSubType + expect(instance).to.have.property('VoucherSubType'); + // expect(instance.VoucherSubType).to.be(expectedValueLiteral); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // TODO: update the code to test the property Stores + expect(instance).to.have.property('Stores'); + // expect(instance.Stores).to.be(expectedValueLiteral); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // TODO: update the code to test the property StoreNames + expect(instance).to.have.property('StoreNames'); + // expect(instance.StoreNames).to.be(expectedValueLiteral); + }); + + it('should have the property AddItemDetails (base name: "AddItemDetails")', function() { + // TODO: update the code to test the property AddItemDetails + expect(instance).to.have.property('AddItemDetails'); + // expect(instance.AddItemDetails).to.be(expectedValueLiteral); + }); + + it('should have the property CreditNoteDetails (base name: "CreditNoteDetails")', function() { + // TODO: update the code to test the property CreditNoteDetails + expect(instance).to.have.property('CreditNoteDetails'); + // expect(instance.CreditNoteDetails).to.be(expectedValueLiteral); + }); + + it('should have the property LumpDiscountDetails (base name: "LumpDiscountDetails")', function() { + // TODO: update the code to test the property LumpDiscountDetails + expect(instance).to.have.property('LumpDiscountDetails'); + // expect(instance.LumpDiscountDetails).to.be(expectedValueLiteral); + }); + + it('should have the property PercentDiscountDetails (base name: "PercentDiscountDetails")', function() { + // TODO: update the code to test the property PercentDiscountDetails + expect(instance).to.have.property('PercentDiscountDetails'); + // expect(instance.PercentDiscountDetails).to.be(expectedValueLiteral); + }); + + it('should have the property Code (base name: "Code")', function() { + // TODO: update the code to test the property Code + expect(instance).to.have.property('Code'); + // expect(instance.Code).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property ValidOnOrdersOver (base name: "ValidOnOrdersOver")', function() { + // TODO: update the code to test the property ValidOnOrdersOver + expect(instance).to.have.property('ValidOnOrdersOver'); + // expect(instance.ValidOnOrdersOver).to.be(expectedValueLiteral); + }); + + it('should have the property TakesPriority (base name: "TakesPriority")', function() { + // TODO: update the code to test the property TakesPriority + expect(instance).to.have.property('TakesPriority'); + // expect(instance.TakesPriority).to.be(expectedValueLiteral); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // TODO: update the code to test the property IsEnabled + expect(instance).to.have.property('IsEnabled'); + // expect(instance.IsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property IsAutomaticallyApplied (base name: "IsAutomaticallyApplied")', function() { + // TODO: update the code to test the property IsAutomaticallyApplied + expect(instance).to.have.property('IsAutomaticallyApplied'); + // expect(instance.IsAutomaticallyApplied).to.be(expectedValueLiteral); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // TODO: update the code to test the property IncludeDeliveryFee + expect(instance).to.have.property('IncludeDeliveryFee'); + // expect(instance.IncludeDeliveryFee).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForDeliveryOrders (base name: "IsValidForDeliveryOrders")', function() { + // TODO: update the code to test the property IsValidForDeliveryOrders + expect(instance).to.have.property('IsValidForDeliveryOrders'); + // expect(instance.IsValidForDeliveryOrders).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForPickupOrders (base name: "IsValidForPickupOrders")', function() { + // TODO: update the code to test the property IsValidForPickupOrders + expect(instance).to.have.property('IsValidForPickupOrders'); + // expect(instance.IsValidForPickupOrders).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForOrdersPayedOnline (base name: "IsValidForOrdersPayedOnline")', function() { + // TODO: update the code to test the property IsValidForOrdersPayedOnline + expect(instance).to.have.property('IsValidForOrdersPayedOnline'); + // expect(instance.IsValidForOrdersPayedOnline).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForOrdersPayedByCash (base name: "IsValidForOrdersPayedByCash")', function() { + // TODO: update the code to test the property IsValidForOrdersPayedByCash + expect(instance).to.have.property('IsValidForOrdersPayedByCash'); + // expect(instance.IsValidForOrdersPayedByCash).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForFirstOrderOnly (base name: "IsValidForFirstOrderOnly")', function() { + // TODO: update the code to test the property IsValidForFirstOrderOnly + expect(instance).to.have.property('IsValidForFirstOrderOnly'); + // expect(instance.IsValidForFirstOrderOnly).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidOncePerCustomer (base name: "IsValidOncePerCustomer")', function() { + // TODO: update the code to test the property IsValidOncePerCustomer + expect(instance).to.have.property('IsValidOncePerCustomer'); + // expect(instance.IsValidOncePerCustomer).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidOnlyOnce (base name: "IsValidOnlyOnce")', function() { + // TODO: update the code to test the property IsValidOnlyOnce + expect(instance).to.have.property('IsValidOnlyOnce'); + // expect(instance.IsValidOnlyOnce).to.be(expectedValueLiteral); + }); + + it('should have the property StartDate (base name: "StartDate")', function() { + // TODO: update the code to test the property StartDate + expect(instance).to.have.property('StartDate'); + // expect(instance.StartDate).to.be(expectedValueLiteral); + }); + + it('should have the property ExpiryDate (base name: "ExpiryDate")', function() { + // TODO: update the code to test the property ExpiryDate + expect(instance).to.have.property('ExpiryDate'); + // expect(instance.ExpiryDate).to.be(expectedValueLiteral); + }); - it('should have the property isValidForFirstOrderOnly (base name: "IsValidForFirstOrderOnly")', function() { - // uncomment below and update the code to test the property isValidForFirstOrderOnly - //var instane = new Flipdish.Voucher(); - //expect(instance).to.be(); }); - - it('should have the property minimumOrderAmount (base name: "MinimumOrderAmount")', function() { - // uncomment below and update the code to test the property minimumOrderAmount - //var instane = 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 instane = new Flipdish.Voucher(); - //expect(instance).to.be(); - }); - - it('should have the property autoApply (base name: "AutoApply")', function() { - // uncomment below and update the code to test the property autoApply - //var instane = new Flipdish.Voucher(); - //expect(instance).to.be(); - }); - - it('should have the property autoApplyOrder (base name: "AutoApplyOrder")', function() { - // uncomment below and update the code to test the property autoApplyOrder - //var instane = 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 instane = 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 instane = new Flipdish.Voucher(); - //expect(instance).to.be(); - }); - }); })); diff --git a/test/model/VoucherBase.spec.js b/test/model/VoucherBase.spec.js new file mode 100644 index 00000000..99924463 --- /dev/null +++ b/test/model/VoucherBase.spec.js @@ -0,0 +1,142 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('VoucherBase', function() { + beforeEach(function() { + instance = new Flipdish.VoucherBase(); + }); + + it('should create an instance of VoucherBase', function() { + // TODO: update the code to test VoucherBase + expect(instance).to.be.a(Flipdish.VoucherBase); + }); + + it('should have the property Code (base name: "Code")', function() { + // TODO: update the code to test the property Code + expect(instance).to.have.property('Code'); + // expect(instance.Code).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property ValidOnOrdersOver (base name: "ValidOnOrdersOver")', function() { + // TODO: update the code to test the property ValidOnOrdersOver + expect(instance).to.have.property('ValidOnOrdersOver'); + // expect(instance.ValidOnOrdersOver).to.be(expectedValueLiteral); + }); + + it('should have the property TakesPriority (base name: "TakesPriority")', function() { + // TODO: update the code to test the property TakesPriority + expect(instance).to.have.property('TakesPriority'); + // expect(instance.TakesPriority).to.be(expectedValueLiteral); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // TODO: update the code to test the property IsEnabled + expect(instance).to.have.property('IsEnabled'); + // expect(instance.IsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property IsAutomaticallyApplied (base name: "IsAutomaticallyApplied")', function() { + // TODO: update the code to test the property IsAutomaticallyApplied + expect(instance).to.have.property('IsAutomaticallyApplied'); + // expect(instance.IsAutomaticallyApplied).to.be(expectedValueLiteral); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // TODO: update the code to test the property IncludeDeliveryFee + expect(instance).to.have.property('IncludeDeliveryFee'); + // expect(instance.IncludeDeliveryFee).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForDeliveryOrders (base name: "IsValidForDeliveryOrders")', function() { + // TODO: update the code to test the property IsValidForDeliveryOrders + expect(instance).to.have.property('IsValidForDeliveryOrders'); + // expect(instance.IsValidForDeliveryOrders).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForPickupOrders (base name: "IsValidForPickupOrders")', function() { + // TODO: update the code to test the property IsValidForPickupOrders + expect(instance).to.have.property('IsValidForPickupOrders'); + // expect(instance.IsValidForPickupOrders).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForOrdersPayedOnline (base name: "IsValidForOrdersPayedOnline")', function() { + // TODO: update the code to test the property IsValidForOrdersPayedOnline + expect(instance).to.have.property('IsValidForOrdersPayedOnline'); + // expect(instance.IsValidForOrdersPayedOnline).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForOrdersPayedByCash (base name: "IsValidForOrdersPayedByCash")', function() { + // TODO: update the code to test the property IsValidForOrdersPayedByCash + expect(instance).to.have.property('IsValidForOrdersPayedByCash'); + // expect(instance.IsValidForOrdersPayedByCash).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForFirstOrderOnly (base name: "IsValidForFirstOrderOnly")', function() { + // TODO: update the code to test the property IsValidForFirstOrderOnly + expect(instance).to.have.property('IsValidForFirstOrderOnly'); + // expect(instance.IsValidForFirstOrderOnly).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidOncePerCustomer (base name: "IsValidOncePerCustomer")', function() { + // TODO: update the code to test the property IsValidOncePerCustomer + expect(instance).to.have.property('IsValidOncePerCustomer'); + // expect(instance.IsValidOncePerCustomer).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidOnlyOnce (base name: "IsValidOnlyOnce")', function() { + // TODO: update the code to test the property IsValidOnlyOnce + expect(instance).to.have.property('IsValidOnlyOnce'); + // expect(instance.IsValidOnlyOnce).to.be(expectedValueLiteral); + }); + + it('should have the property StartDate (base name: "StartDate")', function() { + // TODO: update the code to test the property StartDate + expect(instance).to.have.property('StartDate'); + // expect(instance.StartDate).to.be(expectedValueLiteral); + }); + + it('should have the property ExpiryDate (base name: "ExpiryDate")', function() { + // TODO: update the code to test the property ExpiryDate + expect(instance).to.have.property('ExpiryDate'); + // expect(instance.ExpiryDate).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/VoucherCreatedEvent.spec.js b/test/model/VoucherCreatedEvent.spec.js new file mode 100644 index 00000000..49026b08 --- /dev/null +++ b/test/model/VoucherCreatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('VoucherCreatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.VoucherCreatedEvent(); + }); + + it('should create an instance of VoucherCreatedEvent', function() { + // TODO: update the code to test VoucherCreatedEvent + expect(instance).to.be.a(Flipdish.VoucherCreatedEvent); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // TODO: update the code to test the property VoucherId + expect(instance).to.have.property('VoucherId'); + // expect(instance.VoucherId).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property Voucher (base name: "Voucher")', function() { + // TODO: update the code to test the property Voucher + expect(instance).to.have.property('Voucher'); + // expect(instance.Voucher).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/VoucherDataPoint.spec.js b/test/model/VoucherDataPoint.spec.js new file mode 100644 index 00000000..6fa486ab --- /dev/null +++ b/test/model/VoucherDataPoint.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('VoucherDataPoint', function() { + beforeEach(function() { + instance = new Flipdish.VoucherDataPoint(); + }); + + it('should create an instance of VoucherDataPoint', function() { + // TODO: update the code to test VoucherDataPoint + expect(instance).to.be.a(Flipdish.VoucherDataPoint); + }); + + it('should have the property PeriodStart (base name: "PeriodStart")', function() { + // TODO: update the code to test the property PeriodStart + expect(instance).to.have.property('PeriodStart'); + // expect(instance.PeriodStart).to.be(expectedValueLiteral); + }); + + it('should have the property PeriodLengthInDays (base name: "PeriodLengthInDays")', function() { + // TODO: update the code to test the property PeriodLengthInDays + expect(instance).to.have.property('PeriodLengthInDays'); + // expect(instance.PeriodLengthInDays).to.be(expectedValueLiteral); + }); + + it('should have the property Value (base name: "Value")', function() { + // TODO: update the code to test the property Value + expect(instance).to.have.property('Value'); + // expect(instance.Value).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/VoucherDeletedEvent.spec.js b/test/model/VoucherDeletedEvent.spec.js new file mode 100644 index 00000000..1b3ada18 --- /dev/null +++ b/test/model/VoucherDeletedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('VoucherDeletedEvent', function() { + beforeEach(function() { + instance = new Flipdish.VoucherDeletedEvent(); + }); + + it('should create an instance of VoucherDeletedEvent', function() { + // TODO: update the code to test VoucherDeletedEvent + expect(instance).to.be.a(Flipdish.VoucherDeletedEvent); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // TODO: update the code to test the property VoucherId + expect(instance).to.have.property('VoucherId'); + // expect(instance.VoucherId).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property Voucher (base name: "Voucher")', function() { + // TODO: update the code to test the property Voucher + expect(instance).to.have.property('Voucher'); + // expect(instance.Voucher).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/VoucherSummary.spec.js b/test/model/VoucherSummary.spec.js index 26fa7f4f..8900772d 100644 --- a/test/model/VoucherSummary.spec.js +++ b/test/model/VoucherSummary.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,69 +29,60 @@ var instance; - beforeEach(function() { - instance = new Flipdish.VoucherSummary(); - }); + describe('(package)', function() { + describe('VoucherSummary', function() { + 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]; - } + it('should create an instance of VoucherSummary', function() { + // TODO: update the code to test VoucherSummary + expect(instance).to.be.a(Flipdish.VoucherSummary); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property VoucherId (base name: "VoucherId")', function() { + // TODO: update the code to test the property VoucherId + expect(instance).to.have.property('VoucherId'); + // expect(instance.VoucherId).to.be(expectedValueLiteral); + }); - 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 Code (base name: "Code")', function() { + // TODO: update the code to test the property Code + expect(instance).to.have.property('Code'); + // expect(instance.Code).to.be(expectedValueLiteral); + }); - it('should have the property name (base name: "Name")', function() { - // uncomment below and update the code to test the property name - //var instane = new Flipdish.VoucherSummary(); - //expect(instance).to.be(); - }); + it('should have the property Status (base name: "Status")', function() { + // TODO: update the code to test the property Status + expect(instance).to.have.property('Status'); + // expect(instance.Status).to.be(expectedValueLiteral); + }); - it('should have the property description (base name: "Description")', function() { - // uncomment below and update the code to test the property description - //var instane = new Flipdish.VoucherSummary(); - //expect(instance).to.be(); - }); + it('should have the property VoucherType (base name: "VoucherType")', function() { + // TODO: update the code to test the property VoucherType + expect(instance).to.have.property('VoucherType'); + // expect(instance.VoucherType).to.be(expectedValueLiteral); + }); - it('should have the property code (base name: "Code")', function() { - // uncomment below and update the code to test the property code - //var instane = new Flipdish.VoucherSummary(); - //expect(instance).to.be(); - }); + it('should have the property VoucherSubType (base name: "VoucherSubType")', function() { + // TODO: update the code to test the property VoucherSubType + expect(instance).to.have.property('VoucherSubType'); + // expect(instance.VoucherSubType).to.be(expectedValueLiteral); + }); - it('should have the property amount (base name: "Amount")', function() { - // uncomment below and update the code to test the property amount - //var instane = new Flipdish.VoucherSummary(); - //expect(instance).to.be(); - }); + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); - it('should have the property type (base name: "Type")', function() { - // uncomment below and update the code to test the property type - //var instane = new Flipdish.VoucherSummary(); - //expect(instance).to.be(); - }); + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // TODO: update the code to test the property IsEnabled + expect(instance).to.have.property('IsEnabled'); + // expect(instance.IsEnabled).to.be(expectedValueLiteral); + }); - it('should have the property subType (base name: "SubType")', function() { - // uncomment below and update the code to test the property subType - //var instane = 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..6b8a6477 --- /dev/null +++ b/test/model/VoucherUpdatedEvent.spec.js @@ -0,0 +1,100 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('VoucherUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.VoucherUpdatedEvent(); + }); + + it('should create an instance of VoucherUpdatedEvent', function() { + // TODO: update the code to test VoucherUpdatedEvent + expect(instance).to.be.a(Flipdish.VoucherUpdatedEvent); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // TODO: update the code to test the property VoucherId + expect(instance).to.have.property('VoucherId'); + // expect(instance.VoucherId).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property Voucher (base name: "Voucher")', function() { + // TODO: update the code to test the property Voucher + expect(instance).to.have.property('Voucher'); + // expect(instance.Voucher).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/VoucherWithStats.spec.js b/test/model/VoucherWithStats.spec.js new file mode 100644 index 00000000..2d91d599 --- /dev/null +++ b/test/model/VoucherWithStats.spec.js @@ -0,0 +1,238 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('VoucherWithStats', function() { + beforeEach(function() { + instance = new Flipdish.VoucherWithStats(); + }); + + it('should create an instance of VoucherWithStats', function() { + // TODO: update the code to test VoucherWithStats + expect(instance).to.be.a(Flipdish.VoucherWithStats); + }); + + it('should have the property TotalUsed (base name: "TotalUsed")', function() { + // TODO: update the code to test the property TotalUsed + expect(instance).to.have.property('TotalUsed'); + // expect(instance.TotalUsed).to.be(expectedValueLiteral); + }); + + it('should have the property TotalCustomers (base name: "TotalCustomers")', function() { + // TODO: update the code to test the property TotalCustomers + expect(instance).to.have.property('TotalCustomers'); + // expect(instance.TotalCustomers).to.be(expectedValueLiteral); + }); + + it('should have the property TotalAmountFromOrders (base name: "TotalAmountFromOrders")', function() { + // TODO: update the code to test the property TotalAmountFromOrders + expect(instance).to.have.property('TotalAmountFromOrders'); + // expect(instance.TotalAmountFromOrders).to.be(expectedValueLiteral); + }); + + it('should have the property TotalDiscounted (base name: "TotalDiscounted")', function() { + // TODO: update the code to test the property TotalDiscounted + expect(instance).to.have.property('TotalDiscounted'); + // expect(instance.TotalDiscounted).to.be(expectedValueLiteral); + }); + + it('should have the property AverageOrderSize (base name: "AverageOrderSize")', function() { + // TODO: update the code to test the property AverageOrderSize + expect(instance).to.have.property('AverageOrderSize'); + // expect(instance.AverageOrderSize).to.be(expectedValueLiteral); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // TODO: update the code to test the property VoucherId + expect(instance).to.have.property('VoucherId'); + // expect(instance.VoucherId).to.be(expectedValueLiteral); + }); + + it('should have the property Status (base name: "Status")', function() { + // TODO: update the code to test the property Status + expect(instance).to.have.property('Status'); + // expect(instance.Status).to.be(expectedValueLiteral); + }); + + it('should have the property VoucherType (base name: "VoucherType")', function() { + // TODO: update the code to test the property VoucherType + expect(instance).to.have.property('VoucherType'); + // expect(instance.VoucherType).to.be(expectedValueLiteral); + }); + + it('should have the property VoucherSubType (base name: "VoucherSubType")', function() { + // TODO: update the code to test the property VoucherSubType + expect(instance).to.have.property('VoucherSubType'); + // expect(instance.VoucherSubType).to.be(expectedValueLiteral); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // TODO: update the code to test the property Currency + expect(instance).to.have.property('Currency'); + // expect(instance.Currency).to.be(expectedValueLiteral); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // TODO: update the code to test the property Stores + expect(instance).to.have.property('Stores'); + // expect(instance.Stores).to.be(expectedValueLiteral); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // TODO: update the code to test the property StoreNames + expect(instance).to.have.property('StoreNames'); + // expect(instance.StoreNames).to.be(expectedValueLiteral); + }); + + it('should have the property AddItemDetails (base name: "AddItemDetails")', function() { + // TODO: update the code to test the property AddItemDetails + expect(instance).to.have.property('AddItemDetails'); + // expect(instance.AddItemDetails).to.be(expectedValueLiteral); + }); + + it('should have the property CreditNoteDetails (base name: "CreditNoteDetails")', function() { + // TODO: update the code to test the property CreditNoteDetails + expect(instance).to.have.property('CreditNoteDetails'); + // expect(instance.CreditNoteDetails).to.be(expectedValueLiteral); + }); + + it('should have the property LumpDiscountDetails (base name: "LumpDiscountDetails")', function() { + // TODO: update the code to test the property LumpDiscountDetails + expect(instance).to.have.property('LumpDiscountDetails'); + // expect(instance.LumpDiscountDetails).to.be(expectedValueLiteral); + }); + + it('should have the property PercentDiscountDetails (base name: "PercentDiscountDetails")', function() { + // TODO: update the code to test the property PercentDiscountDetails + expect(instance).to.have.property('PercentDiscountDetails'); + // expect(instance.PercentDiscountDetails).to.be(expectedValueLiteral); + }); + + it('should have the property Code (base name: "Code")', function() { + // TODO: update the code to test the property Code + expect(instance).to.have.property('Code'); + // expect(instance.Code).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property ValidOnOrdersOver (base name: "ValidOnOrdersOver")', function() { + // TODO: update the code to test the property ValidOnOrdersOver + expect(instance).to.have.property('ValidOnOrdersOver'); + // expect(instance.ValidOnOrdersOver).to.be(expectedValueLiteral); + }); + + it('should have the property TakesPriority (base name: "TakesPriority")', function() { + // TODO: update the code to test the property TakesPriority + expect(instance).to.have.property('TakesPriority'); + // expect(instance.TakesPriority).to.be(expectedValueLiteral); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // TODO: update the code to test the property IsEnabled + expect(instance).to.have.property('IsEnabled'); + // expect(instance.IsEnabled).to.be(expectedValueLiteral); + }); + + it('should have the property IsAutomaticallyApplied (base name: "IsAutomaticallyApplied")', function() { + // TODO: update the code to test the property IsAutomaticallyApplied + expect(instance).to.have.property('IsAutomaticallyApplied'); + // expect(instance.IsAutomaticallyApplied).to.be(expectedValueLiteral); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // TODO: update the code to test the property IncludeDeliveryFee + expect(instance).to.have.property('IncludeDeliveryFee'); + // expect(instance.IncludeDeliveryFee).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForDeliveryOrders (base name: "IsValidForDeliveryOrders")', function() { + // TODO: update the code to test the property IsValidForDeliveryOrders + expect(instance).to.have.property('IsValidForDeliveryOrders'); + // expect(instance.IsValidForDeliveryOrders).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForPickupOrders (base name: "IsValidForPickupOrders")', function() { + // TODO: update the code to test the property IsValidForPickupOrders + expect(instance).to.have.property('IsValidForPickupOrders'); + // expect(instance.IsValidForPickupOrders).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForOrdersPayedOnline (base name: "IsValidForOrdersPayedOnline")', function() { + // TODO: update the code to test the property IsValidForOrdersPayedOnline + expect(instance).to.have.property('IsValidForOrdersPayedOnline'); + // expect(instance.IsValidForOrdersPayedOnline).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForOrdersPayedByCash (base name: "IsValidForOrdersPayedByCash")', function() { + // TODO: update the code to test the property IsValidForOrdersPayedByCash + expect(instance).to.have.property('IsValidForOrdersPayedByCash'); + // expect(instance.IsValidForOrdersPayedByCash).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidForFirstOrderOnly (base name: "IsValidForFirstOrderOnly")', function() { + // TODO: update the code to test the property IsValidForFirstOrderOnly + expect(instance).to.have.property('IsValidForFirstOrderOnly'); + // expect(instance.IsValidForFirstOrderOnly).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidOncePerCustomer (base name: "IsValidOncePerCustomer")', function() { + // TODO: update the code to test the property IsValidOncePerCustomer + expect(instance).to.have.property('IsValidOncePerCustomer'); + // expect(instance.IsValidOncePerCustomer).to.be(expectedValueLiteral); + }); + + it('should have the property IsValidOnlyOnce (base name: "IsValidOnlyOnce")', function() { + // TODO: update the code to test the property IsValidOnlyOnce + expect(instance).to.have.property('IsValidOnlyOnce'); + // expect(instance.IsValidOnlyOnce).to.be(expectedValueLiteral); + }); + + it('should have the property StartDate (base name: "StartDate")', function() { + // TODO: update the code to test the property StartDate + expect(instance).to.have.property('StartDate'); + // expect(instance.StartDate).to.be(expectedValueLiteral); + }); + + it('should have the property ExpiryDate (base name: "ExpiryDate")', function() { + // TODO: update the code to test the property ExpiryDate + expect(instance).to.have.property('ExpiryDate'); + // expect(instance.ExpiryDate).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/WebhookEventSample.spec.js b/test/model/WebhookEventSample.spec.js new file mode 100644 index 00000000..30934d04 --- /dev/null +++ b/test/model/WebhookEventSample.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('WebhookEventSample', function() { + beforeEach(function() { + instance = new Flipdish.WebhookEventSample(); + }); + + it('should create an instance of WebhookEventSample', function() { + // TODO: update the code to test WebhookEventSample + expect(instance).to.be.a(Flipdish.WebhookEventSample); + }); + + it('should have the property Type (base name: "Type")', function() { + // TODO: update the code to test the property Type + expect(instance).to.have.property('Type'); + // expect(instance.Type).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Body (base name: "Body")', function() { + // TODO: update the code to test the property Body + expect(instance).to.have.property('Body'); + // expect(instance.Body).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/WebhookLog.spec.js b/test/model/WebhookLog.spec.js index 6d8e6ce7..c45b7975 100644 --- a/test/model/WebhookLog.spec.js +++ b/test/model/WebhookLog.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,123 +29,108 @@ 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = 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 instane = new Flipdish.WebhookLog(); - //expect(instance).to.be(); - }); + describe('(package)', function() { + describe('WebhookLog', function() { + beforeEach(function() { + instance = new Flipdish.WebhookLog(); + }); + + it('should create an instance of WebhookLog', function() { + // TODO: update the code to test WebhookLog + expect(instance).to.be.a(Flipdish.WebhookLog); + }); + + it('should have the property WebhookSubscriptionOwnerUserId (base name: "WebhookSubscriptionOwnerUserId")', function() { + // TODO: update the code to test the property WebhookSubscriptionOwnerUserId + expect(instance).to.have.property('WebhookSubscriptionOwnerUserId'); + // expect(instance.WebhookSubscriptionOwnerUserId).to.be(expectedValueLiteral); + }); + + it('should have the property EventCreated (base name: "EventCreated")', function() { + // TODO: update the code to test the property EventCreated + expect(instance).to.have.property('EventCreated'); + // expect(instance.EventCreated).to.be(expectedValueLiteral); + }); + + it('should have the property WebhookTriggered (base name: "WebhookTriggered")', function() { + // TODO: update the code to test the property WebhookTriggered + expect(instance).to.have.property('WebhookTriggered'); + // expect(instance.WebhookTriggered).to.be(expectedValueLiteral); + }); + + it('should have the property WebhookEventName (base name: "WebhookEventName")', function() { + // TODO: update the code to test the property WebhookEventName + expect(instance).to.have.property('WebhookEventName'); + // expect(instance.WebhookEventName).to.be(expectedValueLiteral); + }); + + it('should have the property WebhookSubscriptionCallbackUrl (base name: "WebhookSubscriptionCallbackUrl")', function() { + // TODO: update the code to test the property WebhookSubscriptionCallbackUrl + expect(instance).to.have.property('WebhookSubscriptionCallbackUrl'); + // expect(instance.WebhookSubscriptionCallbackUrl).to.be(expectedValueLiteral); + }); + + it('should have the property HttpResponseStatusCode (base name: "HttpResponseStatusCode")', function() { + // TODO: update the code to test the property HttpResponseStatusCode + expect(instance).to.have.property('HttpResponseStatusCode'); + // expect(instance.HttpResponseStatusCode).to.be(expectedValueLiteral); + }); + + it('should have the property HttpResponseStatus (base name: "HttpResponseStatus")', function() { + // TODO: update the code to test the property HttpResponseStatus + expect(instance).to.have.property('HttpResponseStatus'); + // expect(instance.HttpResponseStatus).to.be(expectedValueLiteral); + }); + + it('should have the property RequestHeaders (base name: "RequestHeaders")', function() { + // TODO: update the code to test the property RequestHeaders + expect(instance).to.have.property('RequestHeaders'); + // expect(instance.RequestHeaders).to.be(expectedValueLiteral); + }); + + it('should have the property RequestBody (base name: "RequestBody")', function() { + // TODO: update the code to test the property RequestBody + expect(instance).to.have.property('RequestBody'); + // expect(instance.RequestBody).to.be(expectedValueLiteral); + }); + + it('should have the property ResponseHeaders (base name: "ResponseHeaders")', function() { + // TODO: update the code to test the property ResponseHeaders + expect(instance).to.have.property('ResponseHeaders'); + // expect(instance.ResponseHeaders).to.be(expectedValueLiteral); + }); + + it('should have the property ResponseBody (base name: "ResponseBody")', function() { + // TODO: update the code to test the property ResponseBody + expect(instance).to.have.property('ResponseBody'); + // expect(instance.ResponseBody).to.be(expectedValueLiteral); + }); + + it('should have the property Duration (base name: "Duration")', function() { + // TODO: update the code to test the property Duration + expect(instance).to.have.property('Duration'); + // expect(instance.Duration).to.be(expectedValueLiteral); + }); + + it('should have the property RetryCount (base name: "RetryCount")', function() { + // TODO: update the code to test the property RetryCount + expect(instance).to.have.property('RetryCount'); + // expect(instance.RetryCount).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishWebhookId (base name: "FlipdishWebhookId")', function() { + // TODO: update the code to test the property FlipdishWebhookId + expect(instance).to.have.property('FlipdishWebhookId'); + // expect(instance.FlipdishWebhookId).to.be(expectedValueLiteral); + }); + + it('should have the property Version (base name: "Version")', function() { + // TODO: update the code to test the property Version + expect(instance).to.have.property('Version'); + // expect(instance.Version).to.be(expectedValueLiteral); + }); - it('should have the property responseBody (base name: "ResponseBody")', function() { - // uncomment below and update the code to test the property responseBody - //var instane = 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 instane = 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 instane = 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 instane = 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 instane = new Flipdish.WebhookLog(); - //expect(instance).to.be(); - }); - }); })); diff --git a/test/model/WebhookSubscription.spec.js b/test/model/WebhookSubscription.spec.js index 7b78eb21..3f134c3c 100644 --- a/test/model/WebhookSubscription.spec.js +++ b/test/model/WebhookSubscription.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,75 +29,60 @@ 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]; - } + describe('(package)', function() { + describe('WebhookSubscription', function() { + beforeEach(function() { + instance = new Flipdish.WebhookSubscription(); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should create an instance of WebhookSubscription', function() { + // TODO: update the code to test WebhookSubscription + expect(instance).to.be.a(Flipdish.WebhookSubscription); + }); - 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() { + // TODO: update the code to test the property Id + expect(instance).to.have.property('Id'); + // expect(instance.Id).to.be(expectedValueLiteral); + }); - it('should have the property id (base name: "Id")', function() { - // uncomment below and update the code to test the property id - //var instane = new Flipdish.WebhookSubscription(); - //expect(instance).to.be(); - }); + it('should have the property OwnerUserId (base name: "OwnerUserId")', function() { + // TODO: update the code to test the property OwnerUserId + expect(instance).to.have.property('OwnerUserId'); + // expect(instance.OwnerUserId).to.be(expectedValueLiteral); + }); - it('should have the property ownerUserId (base name: "OwnerUserId")', function() { - // uncomment below and update the code to test the property ownerUserId - //var instane = new Flipdish.WebhookSubscription(); - //expect(instance).to.be(); - }); + it('should have the property Version (base name: "Version")', function() { + // TODO: update the code to test the property Version + expect(instance).to.have.property('Version'); + // expect(instance.Version).to.be(expectedValueLiteral); + }); - it('should have the property version (base name: "Version")', function() { - // uncomment below and update the code to test the property version - //var instane = new Flipdish.WebhookSubscription(); - //expect(instance).to.be(); - }); + it('should have the property EventNames (base name: "EventNames")', function() { + // TODO: update the code to test the property EventNames + expect(instance).to.have.property('EventNames'); + // expect(instance.EventNames).to.be(expectedValueLiteral); + }); - it('should have the property eventNames (base name: "EventNames")', function() { - // uncomment below and update the code to test the property eventNames - //var instane = new Flipdish.WebhookSubscription(); - //expect(instance).to.be(); - }); + it('should have the property CallbackUrl (base name: "CallbackUrl")', function() { + // TODO: update the code to test the property CallbackUrl + expect(instance).to.have.property('CallbackUrl'); + // expect(instance.CallbackUrl).to.be(expectedValueLiteral); + }); - it('should have the property callbackUrl (base name: "CallbackUrl")', function() { - // uncomment below and update the code to test the property callbackUrl - //var instane = new Flipdish.WebhookSubscription(); - //expect(instance).to.be(); - }); + it('should have the property Enabled (base name: "Enabled")', function() { + // TODO: update the code to test the property Enabled + expect(instance).to.have.property('Enabled'); + // expect(instance.Enabled).to.be(expectedValueLiteral); + }); - it('should have the property enabled (base name: "Enabled")', function() { - // uncomment below and update the code to test the property enabled - //var instane = new Flipdish.WebhookSubscription(); - //expect(instance).to.be(); - }); + it('should have the property VerifyToken (base name: "VerifyToken")', function() { + // TODO: update the code to test the property VerifyToken + expect(instance).to.have.property('VerifyToken'); + // expect(instance.VerifyToken).to.be(expectedValueLiteral); + }); - it('should have the property verifyToken (base name: "VerifyToken")', function() { - // uncomment below and update the code to test the property verifyToken - //var instane = new Flipdish.WebhookSubscription(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/WebhookSubscriptionCreatedEvent.spec.js b/test/model/WebhookSubscriptionCreatedEvent.spec.js index 68cef086..ce198960 100644 --- a/test/model/WebhookSubscriptionCreatedEvent.spec.js +++ b/test/model/WebhookSubscriptionCreatedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,63 +29,54 @@ var instance; - beforeEach(function() { - instance = new Flipdish.WebhookSubscriptionCreatedEvent(); - }); + describe('(package)', function() { + describe('WebhookSubscriptionCreatedEvent', function() { + 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]; - } + it('should create an instance of WebhookSubscriptionCreatedEvent', function() { + // TODO: update the code to test WebhookSubscriptionCreatedEvent + expect(instance).to.be.a(Flipdish.WebhookSubscriptionCreatedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 WebhookSubscriptionEventInfo (base name: "WebhookSubscriptionEventInfo")', function() { + // TODO: update the code to test the property WebhookSubscriptionEventInfo + expect(instance).to.have.property('WebhookSubscriptionEventInfo'); + // expect(instance.WebhookSubscriptionEventInfo).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.WebhookSubscriptionCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property webhookSubscriptionEventInfo (base name: "WebhookSubscriptionEventInfo")', function() { - // uncomment below and update the code to test the property webhookSubscriptionEventInfo - //var instane = new Flipdish.WebhookSubscriptionCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.WebhookSubscriptionCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.WebhookSubscriptionCreatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = new Flipdish.WebhookSubscriptionCreatedEvent(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/WebhookSubscriptionDeletedEvent.spec.js b/test/model/WebhookSubscriptionDeletedEvent.spec.js index 5713d00a..fbf906c3 100644 --- a/test/model/WebhookSubscriptionDeletedEvent.spec.js +++ b/test/model/WebhookSubscriptionDeletedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,63 +29,54 @@ var instance; - beforeEach(function() { - instance = new Flipdish.WebhookSubscriptionDeletedEvent(); - }); + describe('(package)', function() { + describe('WebhookSubscriptionDeletedEvent', function() { + 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]; - } + it('should create an instance of WebhookSubscriptionDeletedEvent', function() { + // TODO: update the code to test WebhookSubscriptionDeletedEvent + expect(instance).to.be.a(Flipdish.WebhookSubscriptionDeletedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 WebhookSubscriptionEventInfo (base name: "WebhookSubscriptionEventInfo")', function() { + // TODO: update the code to test the property WebhookSubscriptionEventInfo + expect(instance).to.have.property('WebhookSubscriptionEventInfo'); + // expect(instance.WebhookSubscriptionEventInfo).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.WebhookSubscriptionDeletedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property webhookSubscriptionEventInfo (base name: "WebhookSubscriptionEventInfo")', function() { - // uncomment below and update the code to test the property webhookSubscriptionEventInfo - //var instane = new Flipdish.WebhookSubscriptionDeletedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.WebhookSubscriptionDeletedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.WebhookSubscriptionDeletedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = new Flipdish.WebhookSubscriptionDeletedEvent(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/WebhookSubscriptionEventInfo.spec.js b/test/model/WebhookSubscriptionEventInfo.spec.js index 46379a83..c1a147b0 100644 --- a/test/model/WebhookSubscriptionEventInfo.spec.js +++ b/test/model/WebhookSubscriptionEventInfo.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,57 +29,42 @@ var instance; - beforeEach(function() { - instance = new Flipdish.WebhookSubscriptionEventInfo(); - }); + describe('(package)', function() { + describe('WebhookSubscriptionEventInfo', function() { + 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]; - } + it('should create an instance of WebhookSubscriptionEventInfo', function() { + // TODO: update the code to test WebhookSubscriptionEventInfo + expect(instance).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property OwnerUserId (base name: "OwnerUserId")', function() { + // TODO: update the code to test the property OwnerUserId + expect(instance).to.have.property('OwnerUserId'); + // expect(instance.OwnerUserId).to.be(expectedValueLiteral); + }); - 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 WebhookSubscriptionId (base name: "WebhookSubscriptionId")', function() { + // TODO: update the code to test the property WebhookSubscriptionId + expect(instance).to.have.property('WebhookSubscriptionId'); + // expect(instance.WebhookSubscriptionId).to.be(expectedValueLiteral); + }); - it('should have the property ownerUserId (base name: "OwnerUserId")', function() { - // uncomment below and update the code to test the property ownerUserId - //var instane = new Flipdish.WebhookSubscriptionEventInfo(); - //expect(instance).to.be(); - }); + it('should have the property ClientId (base name: "ClientId")', function() { + // TODO: update the code to test the property ClientId + expect(instance).to.have.property('ClientId'); + // expect(instance.ClientId).to.be(expectedValueLiteral); + }); - it('should have the property webhookSubscriptionId (base name: "WebhookSubscriptionId")', function() { - // uncomment below and update the code to test the property webhookSubscriptionId - //var instane = 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 instane = new Flipdish.WebhookSubscriptionEventInfo(); - //expect(instance).to.be(); - }); + it('should have the property CallbackUrl (base name: "CallbackUrl")', function() { + // TODO: update the code to test the property CallbackUrl + expect(instance).to.have.property('CallbackUrl'); + // expect(instance.CallbackUrl).to.be(expectedValueLiteral); + }); - it('should have the property callbackUrl (base name: "CallbackUrl")', function() { - // uncomment below and update the code to test the property callbackUrl - //var instane = new Flipdish.WebhookSubscriptionEventInfo(); - //expect(instance).to.be(); }); - }); })); diff --git a/test/model/WebhookSubscriptionUpdatedEvent.spec.js b/test/model/WebhookSubscriptionUpdatedEvent.spec.js index 5e6156b2..550706f6 100644 --- a/test/model/WebhookSubscriptionUpdatedEvent.spec.js +++ b/test/model/WebhookSubscriptionUpdatedEvent.spec.js @@ -1,4 +1,4 @@ -/** +/* * Flipdish Open API v1.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.19 * * Do not edit the class manually. * @@ -29,63 +29,54 @@ var instance; - beforeEach(function() { - instance = new Flipdish.WebhookSubscriptionUpdatedEvent(); - }); + describe('(package)', function() { + describe('WebhookSubscriptionUpdatedEvent', function() { + 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]; - } + it('should create an instance of WebhookSubscriptionUpdatedEvent', function() { + // TODO: update the code to test WebhookSubscriptionUpdatedEvent + expect(instance).to.be.a(Flipdish.WebhookSubscriptionUpdatedEvent); + }); - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); - 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 WebhookSubscriptionEventInfo (base name: "WebhookSubscriptionEventInfo")', function() { + // TODO: update the code to test the property WebhookSubscriptionEventInfo + expect(instance).to.have.property('WebhookSubscriptionEventInfo'); + // expect(instance.WebhookSubscriptionEventInfo).to.be(expectedValueLiteral); + }); - it('should have the property eventName (base name: "EventName")', function() { - // uncomment below and update the code to test the property eventName - //var instane = new Flipdish.WebhookSubscriptionUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); - it('should have the property webhookSubscriptionEventInfo (base name: "WebhookSubscriptionEventInfo")', function() { - // uncomment below and update the code to test the property webhookSubscriptionEventInfo - //var instane = new Flipdish.WebhookSubscriptionUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); - it('should have the property flipdishEventId (base name: "FlipdishEventId")', function() { - // uncomment below and update the code to test the property flipdishEventId - //var instane = new Flipdish.WebhookSubscriptionUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); - it('should have the property createTime (base name: "CreateTime")', function() { - // uncomment below and update the code to test the property createTime - //var instane = new Flipdish.WebhookSubscriptionUpdatedEvent(); - //expect(instance).to.be(); - }); + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); - it('should have the property position (base name: "Position")', function() { - // uncomment below and update the code to test the property position - //var instane = 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..6fca8dab --- /dev/null +++ b/test/model/WebsiteImage.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('WebsiteImage', function() { + beforeEach(function() { + instance = new Flipdish.WebsiteImage(); + }); + + it('should create an instance of WebsiteImage', function() { + // TODO: update the code to test WebsiteImage + expect(instance).to.be.a(Flipdish.WebsiteImage); + }); + + it('should have the property ImageId (base name: "ImageId")', function() { + // TODO: update the code to test the property ImageId + expect(instance).to.have.property('ImageId'); + // expect(instance.ImageId).to.be(expectedValueLiteral); + }); + + it('should have the property ImageLocation (base name: "ImageLocation")', function() { + // TODO: update the code to test the property ImageLocation + expect(instance).to.have.property('ImageLocation'); + // expect(instance.ImageLocation).to.be(expectedValueLiteral); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // TODO: update the code to test the property ImageUrl + expect(instance).to.have.property('ImageUrl'); + // expect(instance.ImageUrl).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/WebsiteTestimonial.spec.js b/test/model/WebsiteTestimonial.spec.js new file mode 100644 index 00000000..61bc114e --- /dev/null +++ b/test/model/WebsiteTestimonial.spec.js @@ -0,0 +1,64 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('WebsiteTestimonial', function() { + beforeEach(function() { + instance = new Flipdish.WebsiteTestimonial(); + }); + + it('should create an instance of WebsiteTestimonial', function() { + // TODO: update the code to test WebsiteTestimonial + expect(instance).to.be.a(Flipdish.WebsiteTestimonial); + }); + + it('should have the property TestimonialId (base name: "TestimonialId")', function() { + // TODO: update the code to test the property TestimonialId + expect(instance).to.have.property('TestimonialId'); + // expect(instance.TestimonialId).to.be(expectedValueLiteral); + }); + + it('should have the property Author (base name: "Author")', function() { + // TODO: update the code to test the property Author + expect(instance).to.have.property('Author'); + // expect(instance.Author).to.be(expectedValueLiteral); + }); + + it('should have the property Message (base name: "Message")', function() { + // TODO: update the code to test the property Message + expect(instance).to.have.property('Message'); + // expect(instance.Message).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/WebsiteTestimonialBase.spec.js b/test/model/WebsiteTestimonialBase.spec.js new file mode 100644 index 00000000..ef0eb357 --- /dev/null +++ b/test/model/WebsiteTestimonialBase.spec.js @@ -0,0 +1,58 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('WebsiteTestimonialBase', function() { + beforeEach(function() { + instance = new Flipdish.WebsiteTestimonialBase(); + }); + + it('should create an instance of WebsiteTestimonialBase', function() { + // TODO: update the code to test WebsiteTestimonialBase + expect(instance).to.be.a(Flipdish.WebsiteTestimonialBase); + }); + + it('should have the property Author (base name: "Author")', function() { + // TODO: update the code to test the property Author + expect(instance).to.have.property('Author'); + // expect(instance.Author).to.be(expectedValueLiteral); + }); + + it('should have the property Message (base name: "Message")', function() { + // TODO: update the code to test the property Message + expect(instance).to.have.property('Message'); + // expect(instance.Message).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/WebsiteUpdatedEvent.spec.js b/test/model/WebsiteUpdatedEvent.spec.js new file mode 100644 index 00000000..f9548202 --- /dev/null +++ b/test/model/WebsiteUpdatedEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('WebsiteUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.WebsiteUpdatedEvent(); + }); + + it('should create an instance of WebsiteUpdatedEvent', function() { + // TODO: update the code to test WebsiteUpdatedEvent + expect(instance).to.be.a(Flipdish.WebsiteUpdatedEvent); + }); + + it('should have the property AppNameId (base name: "AppNameId")', function() { + // TODO: update the code to test the property AppNameId + expect(instance).to.have.property('AppNameId'); + // expect(instance.AppNameId).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/model/WebsiteVanityUrlUpdatedEvent.spec.js b/test/model/WebsiteVanityUrlUpdatedEvent.spec.js new file mode 100644 index 00000000..1059ed8b --- /dev/null +++ b/test/model/WebsiteVanityUrlUpdatedEvent.spec.js @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.4.19 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('WebsiteVanityUrlUpdatedEvent', function() { + beforeEach(function() { + instance = new Flipdish.WebsiteVanityUrlUpdatedEvent(); + }); + + it('should create an instance of WebsiteVanityUrlUpdatedEvent', function() { + // TODO: update the code to test WebsiteVanityUrlUpdatedEvent + expect(instance).to.be.a(Flipdish.WebsiteVanityUrlUpdatedEvent); + }); + + it('should have the property Description (base name: "Description")', function() { + // TODO: update the code to test the property Description + expect(instance).to.have.property('Description'); + // expect(instance.Description).to.be(expectedValueLiteral); + }); + + it('should have the property User (base name: "User")', function() { + // TODO: update the code to test the property User + expect(instance).to.have.property('User'); + // expect(instance.User).to.be(expectedValueLiteral); + }); + + it('should have the property VanityUrl (base name: "VanityUrl")', function() { + // TODO: update the code to test the property VanityUrl + expect(instance).to.have.property('VanityUrl'); + // expect(instance.VanityUrl).to.be(expectedValueLiteral); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // TODO: update the code to test the property EventName + expect(instance).to.have.property('EventName'); + // expect(instance.EventName).to.be(expectedValueLiteral); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // TODO: update the code to test the property FlipdishEventId + expect(instance).to.have.property('FlipdishEventId'); + // expect(instance.FlipdishEventId).to.be(expectedValueLiteral); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // TODO: update the code to test the property CreateTime + expect(instance).to.have.property('CreateTime'); + // expect(instance.CreateTime).to.be(expectedValueLiteral); + }); + + it('should have the property Position (base name: "Position")', function() { + // TODO: update the code to test the property Position + expect(instance).to.have.property('Position'); + // expect(instance.Position).to.be(expectedValueLiteral); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // TODO: update the code to test the property AppId + expect(instance).to.have.property('AppId'); + // expect(instance.AppId).to.be(expectedValueLiteral); + }); + + }); + }); + +}));